Gazebo | Ignition | Community
Ask Your Question

Other models not loading after using model plugin.

asked 2013-11-02 15:24:06 -0500

informednoob gravatar image

After using my model plugin on a model the other models following that model will not be loaded in Gazebo.

For example,

<model with plugin>

<model does not load>

but if I do this

<model loads>

<model with plugin>

<model does not load>

I am unsure why this is happening. This is the sdf.

Additionally I am trying to use the same plugin on several models. I am assuming this is possible but I am not sure.

edit retag flag offensive close merge delete



I don't have problems with using more than one model with a plugin.Is it possible that your plugin crashes when it is loaded. Which gazebo Version are you using?

evilBiber gravatar imageevilBiber ( 2013-11-04 02:00:37 -0500 )edit

I am using Gazebo 1.9. I am using code very similar to the one found in model manipulation plugin tutorial. Here is the code .

informednoob gravatar imageinformednoob ( 2013-11-06 11:19:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-11-09 14:53:26 -0500

informednoob gravatar image

The reason why the other models were not loading is because the plugin tags were not closed. So instead of:

<plugin name="move_model" filename="">

It should be:

<plugin name="move_model" filename=""></plugin>

I took the sdf file as it was written in the plugin tutorials and expanded on it. Maybe someone should correct the tutorial.

edit flag offensive delete link more


Which tutorial?

nkoenig gravatar imagenkoenig ( 2013-11-12 16:16:19 -0500 )edit

answered 2013-11-06 12:01:32 -0500

nkoenig gravatar image

updated 2013-11-12 16:20:41 -0500

Try giving each plugin a different name.

<plugin name="move_model" filename=""/>


<plugin name="move_model_other" filename=""/>


<plugin name="move_model_differnt" filename=""/>

edit flag offensive delete link more

Question Tools


Asked: 2013-11-02 15:24:06 -0500

Seen: 241 times

Last updated: Nov 12 '13