ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
So instead of enabling gripper communication through the UR package, I ended up SSH-ing directly into the UR computer and forwarding the USB port (that connects to the gripper) to my ROS host computer.
From ROS Host:
$ roscore
$ sudo socat pty,link=/dev/ttyTool,raw,ignoreeof,waitslave tcp:<robot-ip>:54321
From UR Computer:
$ socat tcp-l:54321,reuseaddr,fork file:/dev/ttyTool,nonblock,raw,waitlock=/var/run/tty
From Ros Host
$ sudo chmod 777 /dev/ttyTool
$ rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py /dev/ttyTool
$ rosrun robotiq_2f_gripper_control Robotiq2FGripperSimpleController.py
Additional Notes:
ssh root@<robot-ip>
. The default UR password is easybot
I am currently rewriting this as a bash script that I can call from a roslaunch file. It isn't the most beautiful solution, but it works :)
I got the socat stuff from this Robotiq DOF thread: https://dof.robotiq.com/discussion/comment/5714#Comment_5714