This is the ROS package of the driver for the Weiss Robotics gripper, model IEG 76-030.
##Device Configurator in Windows The gripper comes with a CD containing the application Device Configurator that can be installed and used in Windows to configure and test the gripper.
###Installation Follow the installation procedures described in the Installationsguide.pdf on the CD. If you get the error "The INF file you selected does not support this method of installation" while installing dciolink.inf then:
- Run the installer of the Device Configurator from the CD
- Go to the Device Manager in Control Panel and disable/enable the COM port allocated for the device under Ports(COM&LPT)
- Launch the application Device Configurator
###Configuration The gripper provides 4 grasping configurations. The linux driver uses by default the first configuration Griff 0 but the others can also be used. To configure it click on the button "Parameter" and edit the values for Griff 0.
- Launch the application Device Configurator
- Select the port allocated for the device
- Click the button Verbinden
- Click on the tab Steuerung and then click on the parameter that you would like to modify Öffnungsposition, Schließposition or Greifkraft. Another possibility is to click on the tab Parameter and edit the values.
- Click the button Trennen
- Close the application "Device Configurator"
###Usage
- Launch the application Device Configurator
- Select the port allocated for the device
- Click the button Verbinden
- Click the button Aktivieren
- Click the button Referenzieren
- Click the buttons Schließen / Öffnen of the grasp configuration you would like to use to close/open the gripper
- Click the button Deaktivieren
- Click the button Trennen
##Linux Driver ###Driver Installation
-
Navigate on your local machine to the src folder of your catkin workspace and clone this repository:
$ cd ~/catkin_ws/src $ git clone https://github.com/ipa-lth/weiss_gripper_ieg76.git
-
Navigate to the root of your catkin workspace and "build" your workspace:
$ cd .. $ catkin_make
-
Source your setup file to overlay the workspace on top of your environment:
$ source devel/setup.bash
To check that the ROS package has been successfully sourced execute the command
rospack find weiss_gripper_ieg76
and the absolute path to the ROS package weiss_gripper_ieg76 should be displayed in the terminal. -
Add yourself to the group dialout in order to get access the serial port
sudo adduser $USER dialout
.
You need to log-out/log-in to apply the changes.
###Start-up
- The driver uses by default the port /dev/ttyACM0 to communicate with the gripper. Issue the command
ls /dev/tty*
before and after pluging-in the USB cabel into your computer to determine the port allocated for the device. Besides /dev/ttyACM0, another common allocated port is /dev/ttyACM1. If this is the case then open the file weiss_gripper_ieg76.launch and change the line:
<param name="serial_port_address" value="/dev/ttyACM0"/>
to
<param name="serial_port_address" value="/dev/ttyACM1"/>
-
Execute
$roscore
to start roscore in a separate terminal. By starting roscore separately you do not have to kill and restart rostopic whenever the driver restarts or reconnects in order to display the messages published on the topics. -
Start the driver by executing the command:
$ roslaunch weiss_gripper_ieg76 weiss_gripper_ieg76.launch
-
The ROS package contains an application for testing the interaction with the gripper. Start it as a ROS node by executing the command:
$ rosrun weiss_gripper_ieg76 test_client.py
-
Display the messages published on the /joint_states topic:
$ rostopic echo /joint_states
-
Display the messages published on the /diagnostics topic:
$ rostopic echo /diagnostics
###Driver Usage
The test_client provides a simple menu for interacting with the gripper:
-------- Commands Weiss Robotics Gripper ieg76 --------
- Reference
- Open jaws
- Close jaws
- Grasp object
- Ack error
- Ack reference error
- Select grasp configuration
- Get all the grasp configuration's param
- Set all the grasp configuration's param
- Set the grasping force
- Set the opening position
- Set the closing position
- Exit Select a command to send:
####Reference This is the first command that should be sent to the gripper after it is powered up. It performs a reference motion by completely opening the gripper's jaws. In case an error occurs during the reference it can be acknowledge by selecting option 6. Ack reference error in the menu and the reference procedure must be performed again. After the gripper has been successfully referenced the closing/opening of the jaws and object grasping can be triggered.
####Open jaws This option in the menu triggers the opening of the gripper's jaws. In case an error occurs during the opening of the jaws the gripper's light will switch its color from blue to red. Use the menu option 5. Ack error to acknowledge the error (the gripper's light will switch its color from red to blue) and try again.
####Close jaws This option in the menu triggers the closing of the gripper's jaws. In case an error occurs during the opening of the jaws the gripper's light will switch its color from blue to red. Use the menu option 5. Ack error to acknowledge the error (the gripper's light will switch its color from red to blue) and try again.
####Grasp object Use this option to grasp an object. When an object is grasped the gripper's light will switch it's color from blue to green. If there is no object between the jaws for the gripper to grasp the light will remain blue and a message will be printed to inform the user. In case an error occurs use the menu option 5. Ack error to acknowledge it.
####Ack error Use this option to acknowledge any error that may occur during opening/closing of the gripper or while grasping an object. When an error occurs the gripper's light will turn red. After acknowledging the error the light will switch its color to blue.
Note: For testing purposes an error can be sometimes be triggered by following this procedure:
- Unplug the power source and USB cable and then plug them back in
- Launch the driver and start the test_client
- Perform a reference motion. After the reference the jaws are completely opened.
- Now issue an open jaws command and sometimes an error occurs.
- Use the menu option 5. Ack error since the error occurred during opening of the gripper's jaws
####Ack reference error Use this option to acknowledge any error that may occur during the reference procedure. When an error occurs the gripper's light will turn red. After acknowledging the error the light will switch its color to blue.
####Select grasp configuration Use this option to select another grasp configuration. The default grasp configuration number is 0. Other available grasp configurations are 1, 2 and 3. A grasp configurations contains 3 parameters which can be set: grasping force, opening position and close position.
The grasping force may have a value between 0 and 100%. The opening/closing positions may have values between 0.0 mm and 30.0 mm.
####Get all the grasp configuration's param This option in the test_client's menu returns all the parameters (grasping force, opening position, closing position) of the currently selected grasp configuration.
####Set all the grasp configuration's param This option in the test_client's menu sets all the parameters (grasping force, opening position, closing position) of the currently selected grasp configuration.
####Set the grasping force Use this option in the test_client's menu to set the grasping force of the currently selected grasp configuration.
####Set the opening position Use this option in the test_client's menu to set the grasping force of the currently selected grasp configuration.
####Set the closing position Use this option in the test_client's menu to set the closing position of the currently selected grasp configuration.
####Exit This option in the menu closes the test_client application. It does not shutdown the driver. To shutdown the driver switch to the terminal where the driver is running and press Ctrl + C.
####Reconnect The driver will automatically try to reconnect to the serial port if it detects a communication problem. For example, while the driver is up and running unplug the USB cable and then plug it back again.
####Shutdown To shutdown the driver switch to the terminal where the driver is running and press Ctrl + C. The driver will gracefully shutdown.
This project is a result of the LIAA project. http://www.project-leanautomation.eu/
LIAA received funding from the European Union’s Seventh Framework Programme for research, technological development and demonstration under grant agreement no. 608604.
Project runtime: 02.09.2013 – 31.08.2017.