I am doing a project where I have to use a UR10e to do defects inspection with a camera. I am new with the robot programming, so my problem is how to conect the robot to a PC.
What I have at this moment is a python code where it opens a camera (in this case a basler ace aca1300-30gm), calls a yolov5 model to detect the defects and saves the image.
What I want is: the robot moves to a destination_point, when it reaches this points it sends a signal to PC to run the python code and then returns to first position. I am doing the robot program using the teach pendent.
You should not connect the robot and the PC directly with an ethernet cable.
They dont simply need to be connected. They need to be on the same network. Plugging the robot into the PC will not automatically give the robot a valid IP-address.
Instead, get a router and plug both your pc and the robot into the router.
The router will give your pc and the robot an IP address, making it possible for them to communicate.
Re: image #1: what did you specify in urscript as your xmlrpc server? in my experience, you have to explicitly specify “http://{serverIP}:{serverPort}/” in the address. Double check. the “/” is important, too, depending on how the server is setup.
Re:Image #2: it looks like your rtde loop is not petting the watchdog. you either need to add that to your rtde config on the server end (and set it each loop) or remove it from your robot program