Polyscope version: 5.17 and also polyscope 10.14.0
Ros version: humble
UR driver: recent commit
Scenario:
When the robot is in remote control mode, pausing the robot using ros service pauses the program but resume is not resuming the motion sent via moveit through passthrough or scaled JTC.
Without remote control and while running external control, pause and resume works as expected, trajectory sent via moveit is paused as is and resumed from there.
With headless remote control, pause works as expected but resume is not working. In worst case resume is starting the urp opened in UR.
All pause and resume is done using ros services
Request:
What to do for pausing the trajectory sent to SJTC or passthrough and again resume the trajectory in headless remote control mode
Yes, I can understand that is is feeling a bit awkward. You are referring to the dashboard services “pause” and “resume” / “play”, I guess.
The dashboard server (and the RobotAPI on PolyScope X) are living in PolyScope’s context rather than on the script code level. When running in headless mode, there is no PolyScope program running, so PolyScope cannot resume to it.
If you only want to run the robot without a teach pendant and do that, you can simply put the robot in remote control mode, not start the driver in headless mode but just load and execute a PolyScope program containing the ExternalControl node. This way, you can happily pause and unpause the program through the dashboard services. On my test robots I usually load the program through PolyScope by default when the robot is booting, so I only have to call “play” at the beginning.