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

Better Error Message when Gripper is not Connected #63

Open
Abishalini opened this issue Aug 15, 2024 · 5 comments
Open

Better Error Message when Gripper is not Connected #63

Abishalini opened this issue Aug 15, 2024 · 5 comments

Comments

@Abishalini
Copy link

During bringup, the RobotiqGripperHardwareInterface throws the following error if the gripper is not connected.
We need to get a better error message about the failure to connect to the gripper.

drivers-1       | [ros2_control_node-4] [INFO] [1723749978.912978825] [resource_manager]: 'configure' hardware 'RobotiqGripperHardwareInterface' 
drivers-1       | [ros2_control_node-4] [ERROR] [1723749978.913051693] [RobotiqGripperHardwareInterface]: Cannot configure the Robotiq gripper: IO Exception (2): No such file or directory, file /home/demo/user_ws/src/moveit_studio_ur_ws/src/external_dependencies/serial/src/impl/unix.cc, line 151.
@Abishalini Abishalini changed the title Better Error Messge when Gripper is not connected Better Error Message when Gripper is not Connected Aug 15, 2024
@Mokchanic
Copy link

Mokchanic commented Aug 26, 2024

2024.08.26
Hi did you connect the gripper to the control box or labtop???
Which one does the gripper use, 2f-140.2f-85?
I use a 2f-140 gripper.

First, find robotiq_2f_140_macro.urdf.xacro.
Second, find "com_port:=/dev/ttyUSB0">"
It'll be in the 15th row.

If you connected with labtop, use ttyUSB.
But if you're connected to the control box, try using ttyS.

I wrote the following while I was connected to the control box. It was connected.

Thank you.

2024.08.27
It was confirmed that ttyS is not working.
Use ttyUSB.

@Abishalini
Copy link
Author

Hi @Mokchanic

The 2f-85 gripper was connected through USB to a computer. Before I figured out to set the com_portfield in the xacro, I was stumped by the error message mentioned above. There should be a better message to indicate gripper connection is not detected.

@Mokchanic
Copy link

Hi @Abishalini
Does the computer not detect the port connection or is it designated ttyUSB0?
Check out udevadm.

sudo udevadm monitor

Find your ttyUSB number while connecting or removing the port.
image

By the way, are you using 'ros humble'?
Did you run the .repos file?

@abuibaid
Copy link

Hi @Abishalini,

were you able to fix this issue?

@Aruen24
Copy link

Aruen24 commented Nov 19, 2024

During bringup, the RobotiqGripperHardwareInterface throws the following error if the gripper is not connected. We need to get a better error message about the failure to connect to the gripper.

drivers-1       | [ros2_control_node-4] [INFO] [1723749978.912978825] [resource_manager]: 'configure' hardware 'RobotiqGripperHardwareInterface' 
drivers-1       | [ros2_control_node-4] [ERROR] [1723749978.913051693] [RobotiqGripperHardwareInterface]: Cannot configure the Robotiq gripper: IO Exception (2): No such file or directory, file /home/demo/user_ws/src/moveit_studio_ur_ws/src/external_dependencies/serial/src/impl/unix.cc, line 151.

@Abishalini Hi, Have you fixed the problem
I also report the error.
Ros2 humble ubuntu 22.04.
the port connection /tmp/ttyUR

[ERROR] [1732020153.874565794] [RobotiqGripperHardwareInterface]: Cannot configure the Robotiq gripper: IO Exception (2): No such file or directory, file /src/planning_control-1119/serial-ros2/src/impl/unix.cc, line 152.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants