xArm-Developer / xarm_ros2

ROS2 developer packages for robotic products from UFACTORY
https://www.ufactory.cc/pages/xarm
BSD 3-Clause "New" or "Revised" License
125 stars 77 forks source link

Dual setup with gripper fails #79

Open mcres opened 4 months ago

mcres commented 4 months ago

Launching the following dual setup with grippers:

ros2 launch xarm_moveit_config dual_uf850_moveit_fake.launch.py add_gripper:=true

leads to the ros2_control_node process being terminated:

[ros2_control_node-7]   what():  Hardware name XArmGripperSystem is duplicated. Please provide a unique 'name' in the URDF.

The fix is as easy as parametrizing each gripper ros2_control tag name using the prefix, e.g. this one. I've done that locally and was able to ros2_control both arms and both grippers.

Of course, this should be extended to the rest of the grippers as well.

vimior commented 4 months ago

@mcres Thanks for pointing this out, we will fix it.