Home | Tutorials | Wiki | Issues
Ask Your Question
0

Other models not loading after using model plugin.

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

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. http://pastebin.com/pZpYUH00

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

Comments

Hi,

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 -0600 )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 http://pastebin.com/UQV0DTsU .

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

2 Answers

Sort by ยป oldest newest most voted
0

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

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="libmove_model.so">

It should be:

<plugin name="move_model" filename="libmove_model.so"></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

Comments

Which tutorial?

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

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

nkoenig gravatar image

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

Try giving each plugin a different name.

<plugin name="move_model" filename="libmove_model.so"/>

...

<plugin name="move_model_other" filename="libmove_model.so"/>

...

<plugin name="move_model_differnt" filename="libmove_model.so"/>

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

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

Seen: 118 times

Last updated: Nov 12 '13