-
Install dependencies:
$ sudo apt-get install python-serial ros-indigo-joystick-drivers
-
Download code:
$ cd ~/catkin_ws/src $ git clone https://github.com/SAKErobotics/EZGripper.git $ cd .. $ catkin_make
-
Setup parameters in joy.launch file
- ~port - serial device to use
- ~baud - baud rate
- servo_ids - the servo(s) id controlled as a group of grippers, for example [9,10,11]
-
Launch the node
$ roslaunch ezgripper_driver joy.launch
The driver provides an implementation of the SimpleActionServer, that takes in control_msgs/GripperCommand actions. A sample client (nodes/client.py) is included that provides joystick control using the action API.