Robotics StackExchange | Archived questions

xacro to urdf

Hi to all,

I am new to ROS and I am working on schunk_lwa4p arm and pg70 gripper attached at the end of it. I want to create moveit package and give movement to arm. And I have found the urdf file for this arm here as robot.urdf.xacro and I have converted this file to robot.urdf using rosrun xacro xacro --inorder -o robot.urdf robot.urdf.xacro ,

And I have found the urdf file for this gripper as pg70.urdf.xacro.

My question is how can I edit these two files and create the arm including the gripper at the end ?

Asked by k5519995 on 2019-06-13 11:25:11 UTC

Comments

Answers

This is typically done with another xacro file. So you write one xacro file that includes the xacro file for the arm and the gripper, and then connects them with a join of some kind (probably a fixed joint). Here's an example for the Sawyer robot: https://github.com/RethinkRobotics/sawyer_robot/blob/593eedabbe35d33e9974b89370f76b212192d756/sawyer_description/urdf/sawyer.urdf.xacro

Note that this xacro file includes xacro files for the robot, the Gazebo parameters, and the grippers.

Asked by jarvisschultz on 2019-06-13 14:35:03 UTC

Comments