Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not connect gripper by USB #45

Closed
james2254 opened this issue Jan 11, 2016 · 12 comments
Closed

Can not connect gripper by USB #45

james2254 opened this issue Jan 11, 2016 · 12 comments

Comments

@james2254
Copy link

@james2254 james2254 commented Jan 11, 2016

When I run rosrun robotiq_c_model_control CModelRtuNode.py,there is a misstake.What should I do?
2016-01-11 21 36 31

@shaun-edwards

This comment has been minimized.

Copy link
Member

@shaun-edwards shaun-edwards commented Jan 11, 2016

@james2254, looks like the node is expecting command line arguments.

@james2254

This comment has been minimized.

Copy link
Author

@james2254 james2254 commented Jan 12, 2016

@shaun-edwards I download the package and run the node by the ROS wiki .Change the node or other
method, which can solve this issue ? thank you !

@carlosjoserg

This comment has been minimized.

Copy link

@carlosjoserg carlosjoserg commented Aug 1, 2016

Hi @james2254 , don't know if you solved the issue.

After you connect the gripper, check with lsusb it connected, you should see something like:

Bus 001 Device 008: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)

Then check with dmesg | grep tty what port it connected to. You should see something like:

[ 6416.940532] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0

If that all goes well, then you also need to create a modbus config file (at least for me, it didn't work until I did this), you can run this bash script to do so:

# configuration of virtual port com FT X series
FTDI_CONF_FILE='/etc/modprobe.d/ftdi_sio.conf'
FTDI_CONF_OPTION='options ftdi_sio product=0x6015 vendor=0x0403'
FTDI_CONF_ALIAS='alias usb:v0403p6015d*dc*dsc*dp*ic*isc*ip* ftdi_sio'
if [ -f $FTDI_CONF_FILE ]; then
        MSG="FTDI conf file already exists."
        echo $MSG
else
        MSG="FTDI conf file does not exist. Creating it."
        echo $MSG

        echo "# This file allows the ftdi_sio driver to use FT X series." > $FTDI_CONF_FILE
        echo $FTDI_CONF_OPTION >> $FTDI_CONF_FILE
        echo $FTDI_CONF_ALIAS >> $FTDI_CONF_FILE

        #reload the module for the changes to have effect
        modprobe -r ftdi_sio
        modprobe ftdi_sio
fi

If all that went well, then you can run in one terminal (it does not print anything):

rosrun robotiq_c_model_control CModelRtuNode.py /dev/ttyUSB0

And in another terminal:

rosrun robotiq_c_model_control CModelSimpleController.py

to get a simple menu to activate and move the gripper using the USB adaptor... the rest is up to you.

Cheers 🍻

@james2254

This comment has been minimized.

Copy link
Author

@james2254 james2254 commented Aug 1, 2016

@carlosjoserg Thank you very much! I have not sloved it and I will try it recently.

@wuguangbin1230

This comment has been minimized.

Copy link

@wuguangbin1230 wuguangbin1230 commented Nov 2, 2017

@james2254 How did you solve the problems mentioned above?
I also could not the robotiq gripper by USB

@wuguangbin1230

This comment has been minimized.

Copy link

@wuguangbin1230 wuguangbin1230 commented Nov 2, 2017

@james2254 How did you solve the problems mentioned above?
I also could not the robotiq gripper by USB

@newuhe

This comment has been minimized.

Copy link

@newuhe newuhe commented Jan 10, 2018

@carlosjoserg I followed your instructions mentioned above, but I still receives
Unable to connect to /dev/ttyUSB0
though I can get Bus 001 Device 024: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)

@carlosjoserg

This comment has been minimized.

Copy link

@carlosjoserg carlosjoserg commented Jan 10, 2018

@newuhe

  • Check that the gripper connected to the port that you use when calling
    rosrun robotiq_c_model_control CModelRtuNode.py /dev/ttyUSB0

  • I have tested with the 2F-85mm, but I've also receive positive feedback with the 2F-140mm, both new models. Don't know about the old molde, and I don't think it'd work with the 3-fingers model.

@newuhe

This comment has been minimized.

Copy link

@newuhe newuhe commented Mar 20, 2018

I've sloved the problem, which arise from my socket version.

@yamunamaccarana

This comment has been minimized.

Copy link

@yamunamaccarana yamunamaccarana commented Mar 20, 2018

@newuhe I think I have exactly the same problems that you had. How did you manage to solve them?
Thanks

@yamunamaccarana

This comment has been minimized.

Copy link

@yamunamaccarana yamunamaccarana commented Mar 21, 2018

@newuhe here you say that you found other useful packages. Can you please specify which package you used?

@jproberge

This comment has been minimized.

Copy link
Contributor

@jproberge jproberge commented Jan 25, 2019

Please make sure to provide the device path as line argument, as well as to make sure your user is in the dialout group, as mentioned here : http://wiki.ros.org/robotiq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.