How to run a python script on my computer in between Polyscript prompts

Is there a way to send a command to my laptop to run a python file. I am trying to intermittently control a external device by using a python program and the devices API, however, since part of my application involves the use of the UR5e robot arm, I’m trying to send the command to run the python program for the external device through polyscope.

Can this be done using the RTDE python package, or would it be better to try using the XML RPC communication method to make this work? feel free to ask questions and I can clarify about what I plan to do with my application.

Hi Tobias,

Have you tried our guides related to remote operation?
Here is a good place to start.
Remote operation of robots

We also have a Python RTDE library on GitHub.
GitHub Python RTDE LIb

I hope this helps.

Hi

RTDE can be a little tricky to get up and going.

I have made a “How To” on all the practical on setting up a RTDE connection.

You can also find it on the Universal Robots channel on Discord.

Look for RTDE under Help