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

Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[115200])] #16

Open
kmbashayan opened this issue Jul 13, 2024 · 1 comment

Comments

@kmbashayan
Copy link

whenever I try to connect the gello with the UR5e arm, I run into this error:
in ur robot
in ur robot
in ur robot
in ur robot
Unable to connect to /tmp/ttyUR
Traceback (most recent call last):
File "/home/kholoudbashayan/GitHub/gello_software/gello/robots/robotiq_gripper.py", line 75, in sendCommand
self.client.write_registers(0x03E8, message, unit=0x0009)
File "/home/kholoudbashayan/miniconda3/envs/gello/lib/python3.8/site-packages/pymodbus/client/common.py", line 103, in write_registers
return self.execute(request)
File "/home/kholoudbashayan/miniconda3/envs/gello/lib/python3.8/site-packages/pymodbus/client/sync.py", line 105, in execute
raise ConnectionException("Failed to connect[%s]" % (self.str()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[115200])]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "experiments/launch_nodes.py", line 94, in
main(tyro.cli(Args))
File "experiments/launch_nodes.py", line 90, in main
launch_robot_server(args)
File "experiments/launch_nodes.py", line 65, in launch_robot_server
robot = URRobot(robot_ip=args.robot_ip, no_gripper=args.no_gripper)
File "/home/kholoudbashayan/GitHub/gello_software/gello/robots/ur.py", line 30, in init
self.gripper.connect(device="/tmp/ttyUR")
File "/home/kholoudbashayan/GitHub/gello_software/gello/robots/robotiq_gripper.py", line 263, in connect
self._reset()
File "/home/kholoudbashayan/GitHub/gello_software/gello/robots/robotiq_gripper.py", line 369, in _reset
self.gripper.sendCommand()
File "/home/kholoudbashayan/GitHub/gello_software/gello/robots/robotiq_gripper.py", line 169, in sendCommand
self.client.sendCommand(self.message)
File "/home/kholoudbashayan/GitHub/gello_software/gello/robots/robotiq_gripper.py", line 77, in sendCommand
raise WriteGripperError("Failed to write to registers of gripper")
gello.robots.robotiq_gripper.WriteGripperError: Failed to write to registers of gripper

@wuphilipp
Copy link
Owner

Humm I'm not sure about this exact issue. As i have not worked directly with the UR5e robotics.
Are you able to run the robotiq_gripper.py as a stand alone script to control just the gripper?

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

2 participants