Skip to content

why use xacro to generate a single file? #331

Answered by gavanderhoorn
sancelot asked this question in Q&A
Discussion options

You must be logged in to vote

Not a silly question at all.

If you are referring to the use of xacro in the load_...launch files: ROS-Industrial robot support packages are all structured in a similar way.

All robot support packages contain -- per robot variant -- a top-level .xacro file which does nothing more than instantiate the model using its xacro:macro, and a file defining that xacro:macro (in the ..._macro.xacro file).

If we only ship .xacros, we have to use xacro to convert it to plain URDF so it can be loaded into the robot_description parameter.

And the reason we only ship .xacros is because we want these robot support packages to be as useful as possible. If we'd only provide .urdfs, the models could not be …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gavanderhoorn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #330 on February 26, 2022 14:50.