Open osrf-migration opened 7 years ago
Original comment by Deanna Hood (Bitbucket: d_hood).
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
The tricky thing here is the meaning of the include tag, which is indeed confusing. As noted in the nested model tutorial, include tags, which existed before nested models, don't "nest" models. The include tag expands the contents of the given URI. So you technically, this:
<model name="A">
<link name="modelAlink"/>
<include>
<uri>model://modelBuri>
</include>
</model>
Is expanded like this:
<model name="A">
<link name="modelAlink"/>
<link name="modelABink"/>
</model>
As you noted, to have a nested model using the include tag, you must wrap the include in a new model tag.
I think it might be useful to add these examples to the tutorial.
Original report (archived issue) by Deanna Hood (Bitbucket: d_hood).
If I have an sdf with:
then NestedModels() on the agv1 model doesn't list tag. I think this is caused by this line, explicitly looking for tags
kit_tray
. It will only list thekit_tray
model if I wrap the include in a