First time here? Check out the FAQ!


ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Failed converting xacro to urdf

asked Feb 18 '17

Chunting gravatar image

updated Feb 18 '17

When I run the command rosrun xacro xacro.py ur5.urdf.xacro > ur5.urdf, the result is not as good as I expected.

<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> </robot>

Preview: (hide)

Comments

Could I please ask you to not cross-post questions like these to both ROS Answers and the package's issue tracker (universal_robot#288)? Besides bad etiquette, it leads to duplication of effort and reduced visibility of solutions.

gvdhoorn gravatar image gvdhoorn  ( Feb 18 '17 )edit

Thanks for your kind remainder. I published this issue here firstly, then I think Universal_robot is the more suitable category, so I pulbished a second time. Sorry for my mistake and I will pay attention to your advice. Thanks.

Chunting gravatar image Chunting  ( Feb 18 '17 )edit

1 Answer

Sort by » oldest newest most voted
2

answered Feb 18 '17

dhood gravatar image

Maybe try the ur5_robot.urdf.xacro file instead because I think that ur5.urdf.xacro just defines the macro, and the ur5_robot.urdf.xacro uses the macro here: https://github.com/ros-industrial/uni...

Preview: (hide)

Comments

1

This is indeed the cause. ur5.urdf.xacro is not a top-level xacro, but only defines a macro. The ur5_robot.urdf.xacro is the one instantiating the model, and should those be used.

See also universal_robot#288.

gvdhoorn gravatar image gvdhoorn  ( Feb 18 '17 )edit

Thank you for your help, it works now. That is indeed the cause.

Chunting gravatar image Chunting  ( Feb 18 '17 )edit

-Code: "rosrun xacro xacro --inorder -o E:\work\universal_robot-kinetic-devel\ur_description\urdf\ur5_robot.urdf E:\work\universal_robot-kinetic-devel\ur_description\urdf\ur5_robot.urdf.xacro"

-Error: "xacro: in-order processing became default in ROS Melodic. You can drop the option. ←[91mresource not found: ur_description ROS path [0]=c:\opt\ros\noetic\x64\share\ros ROS path [1]=c:\opt\ros\noetic\x64\share←[0m when processing file: E:\work\universal_robot-melodic-devel\ur_description\urdf\ur10_robot.urdf.xacro"

Can someone help me?

vincentgoh gravatar image vincentgoh  ( Oct 8 '21 )edit

Question Tools

1 follower

Stats

Asked: Feb 18 '17

Seen: 1,559 times

Last updated: Feb 17 '17