Hello everybody,
I have an external software controlling the UR e-series sending commands through the c++ driver. This works flawlessy if I put the robot manually in remote control and using only my software.
Anyway, I am trying to develop a URCAP program node for using my software with Polyscope.
So basically the node should:
- open remote control (to make the external software able to control the robot with the driver)
- send string (the task to perform) via socket to my program
- wait until my program sends back the “finished” signal
- close the remote control and go on with the flow
My questions are:
- Is it possible to switch between modes in some way? (e.g. opening a certain port is the same as switching to remote control)
- Are there any other options to achieve what I want?
So far I have being able to use sockets for sending stuff to my program but I had no chance to test whether I can somehow switch to remote control in ursim.
Thank you
Hi,
it is not possible to switch between remote and local control mode automatically. This action has to be performed from the teach pendant. Switching between these two states without the approval of the user of the robot could lead to dangerous situations, as no automated arm movement would be expected.
Also sending Script Commands over the socket connection while a program is already running, will stop the program and then only execute the sent script commando.
A possible solution would be using XML-RPCs inserted by the program node in script for retrieving the data from your external program. Then you can have a this information stored in a script variable and used it in a movel() command (or similar).
Hello UR+ Development Support,
I have an application where I have to use the PolyScope Program half of the time but the partial process has been handled by the Python code to move UR Robot to certain positions as needed and then return back to the PolyScope again. Do we still have to use XML-RPC for python commands to move the UR robot to different coordinates and switch between Python and PolyScope?
Hi @Akshat
Maybe the Interpreter Mode could be helpful for your cause.
You can find more insight about it in this article.
sko
Hi sko,
i would ask to the user the approval to switch in remote control with a poup up?
I could you use the primary interface to send a request and the user enable it from poup up.
Is it possible?
Could you help me?
Thanks a lot.
Best regards .
Michele
Hi @mikiposa
as stated in the first answer in this thread there is no other way to switch between local and remote mode than by using the correspondent buttons in Polyscope.
What would a popup solve what the dedicated Polyscope buttons cannot?
sko