Error Running the "Example_Control_loop.py" .xml file

Hello,

Using UR3 I am trying to implement the “example_control_loop.py” file explained in the you tube video from Universa lrobots: https://www.youtube.com/watch?v=N2nh3iG7kvo
The problem is that although everything is set, when I runt the python file I got all the time this error that .xml fiule does not exist!! Although it does and it is in the exact folder as the file "“example_control_loop.py”.

As you can see above.
Does anyone knows what the problem is? What setting should I change?

Just replace the Backslash \ with forwardslash /.

Backslash are escape characters in Python.
Also if the file is not in same directory as the entrypoint of your script, then you need to specify the absolute path.

1 Like