I am trying to control the Robotiq Epick gripper which is connected to my UR5e robot. I am using ROS (ur_robot_driver) to communicate with the robot. I am curious about how to use the Robotiq URScript commands to control the gripper.
I have tried following commands and similar others but it did not work for me.
rostopic pub /ur_hardware_interface/script_command std_msgs/String "data: 'rq_activate_and_wait ()'"
Can you please help me to control the end effector using the URScript commands? Please let me know if I am not doing this correctly.
To send URScript commands to an e-Series robot, the robot needs to be in remote_control mode. See this explanation for details.
I have used the above command after putting the robot into the remote control mode. I am able to send other URScript commands except the end-effector specific. I have also installed the URCap for Robotiq.
But for controlling the robot via ROS, it must be in local control mode. Then how can one combine ROS control (via local control mode) and sending UR scripts (via remote control mode)?