UniversalRobots / Universal_Robots_ROS2_Driver

Universal Robots ROS2 driver supporting CB3 and e-Series
BSD 3-Clause "New" or "Revised" License
438 stars 228 forks source link

Custom URDF File to use with Moveit2 #135

Closed ppascotto closed 3 years ago

ppascotto commented 3 years ago

I am trying to run the driver with moveit and a custom urdf description. I am using a ur10e, with other components (a frame the robot is attached to and cart) in the urdf file. On the readme, there is a mention of testing launch files and descriptions. I believe moveit2 does not have a setup assistant yet, how were the examples with the robot alone set up?

livanov93 commented 3 years ago

@ppascotto You are right, the moveit2 setup assistant is not ready yet, but it is on its way to become available in the future releases of Moveit2. However, you can easily follow this moveit launch file which starts the robot with moveit2. You have to follow the existing instructions here under the point To test the driver with the example MoveIt-setup, first start the controllers then start MoveIt. (This requires a vcs import of MoveIt packages) . For this, it will be helpful to also check out ur_moveit_config subpackage. Here you can find examples of .srdf, .yaml and .rviz files that are used with basic configurations of ur robots in combination with moveit2 and ros2_control. If you take a closer look, the files are actually quite the same as in the ROS(1) version generated by setup_assistant. If you don't want to write some of the moveit2-required files manually for your specific robot ( it is not too complicated ) you can generate these files with setup_assistant from ROS(1) version and then just adapt the launch file which is referencing .srdf, .yaml and .rviz files.

livanov93 commented 3 years ago

@ppascotto Here is the issue you can follow for further information. Feel free to continue collaboration there.