Hi everyone,
This is an old topic, however seems to be the best approach to what I want to implement. On my current setup, I am using a UR5e robot which is controlled via ROS2 (Humble distro). I was interested, when there is an action that triggers a specific part of the code, then this part sends the following command via ROS2 urscript_interface topic: force_mode(get_actual_tcp_pose(), [0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0], 2, [0.5, 0.5, 0.5, 0.5, 0.5, 5.0])
I know that when I send this command, then the rest of the nodes will get deactivated on robot’s side. Moreover, a requirement is to set the robot on remote control mode. However, whenever I try to send this command via ROS2, even if I simple try to send this command via ros2 topic pub, nothing is happening on the robot’s side. ROS2 says that the command sent succesfuly, but the robot won’t respond. If I run the code on the tablet via Polyscope, then it responds.
To be noted that I am using Polyscope 5.12. ROS2 that is launched thanks to URCaps is using a TCP protocol if I am not mistaken.
If this can not be achieved via ROS2 and we need a TCP connection using Python, then can the robot run URCaps that on the same time can can be cotroled from ROS2 and also have a parallel tcp connection open probably to a different port than the one used from URcaps (50002).
Any thoughts on that ?