XACRO to URDF #548
-
Hi, I'm trying to generate a UR5 .urdf, for use in Isaac Sim. I've followed a similar answer from #459 but I keep getting an error. @danzimmerman suggested running: I tried to execute:
I thought I needed a joints limit file so I copied one from #220 and tried to execute that:
I'm kind of stuck and out of ideas so any help would be greatly appreciated. I'm using ROS2 Foxy |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The ur description is built in a way that uses one common URDF structure for all robot arms and loads all robot-specific parameters from config yaml files. Apart from the joint limits, you need at least the kinematic + physical + visual parameter files. You can take a look at the view_ur.launch.py file to see how these can be set. In your case, try ros2 run xacro xacro $(ros2 pkg prefix ur_description --share)/urdf/ur.urdf.xacro \
name:=ur5 \
joint_limit_params:=$(ros2 pkg prefix ur_description --share)/config/ur5/joint_limits.yaml \
physical_params:=$(ros2 pkg prefix ur_description --share)/config/ur5/physical_parameters.yaml \
kinematics_params:=$(ros2 pkg prefix ur_description --share)/config/ur5/default_kinematics.yaml \
visual_params:=$(ros2 pkg prefix ur_description --share)/config/ur5/visual_parameters.yaml |
Beta Was this translation helpful? Give feedback.
The ur description is built in a way that uses one common URDF structure for all robot arms and loads all robot-specific parameters from config yaml files. Apart from the joint limits, you need at least the kinematic + physical + visual parameter files. You can take a look at the view_ur.launch.py file to see how these can be set.
In your case, try