Gazebo | Ignition | Community
Ask Your Question
0

What is the best way to share links between models?

asked 2016-08-25 11:32:20 -0500

I need to make a bunch of models each having an identical copy of a particular link. What's the best way of doing that without copying and pasting the entire XML for the link every time? Can I use an <include> element for this somehow?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-08-25 12:07:08 -0500

chapulina gravatar image

I've never tried this, but it should be possible to <include> a model within another one. The SDF parser just expands the links of the included model within the parent model. You can see an example here.

So in your case, you could make a base model which has the link that should be shared, and include that in each new model.

edit flag offensive delete link more

Comments

This definitely works. Thanks!

JasonMel gravatar imageJasonMel ( 2016-09-19 16:38:41 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-08-25 11:32:20 -0500

Seen: 302 times

Last updated: Aug 25 '16