Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to load plugin with Ignition Gazebo

Hello everybody,

I'm currently working on Ignition Gazebo Citadel (not Gazebo classic) and I need to write some plugins.
In order to understand how plugins work with Ignition, I did some tests by creating and compiling plugins with Gazebo classic (no problem) and with Ignition Gazebo.
For Ignition Gazebo, I follow the instruction of this page https://ignitionrobotics.org/api/gazebo/3.0/createsystemplugins.html and theses files https://github.com/ignitionrobotics/ign-gazebo/tree/ign-gazebo3/examples/plugin/system_plugin.
I had no errors when I compiled the plugin (cmake . & make)
Unfortenaly, I have an error when I launch my .sdf file to test how plugins works ([Err] [SystemLoader.cc:75] Failed to load system plugin [libSampleSystem.so] : couldn't load library on path [libSampleSystem.so].)

The plugin directory looks like this

  • sample_system
    • SampleSystem.hh
    • SampleSystem.cc
    • SampleSystem2.cc
    • SampleSystem.sdf
    • CMakeLists.txt
    • Makefile
    • libSampleSystem.so

In this .sdf file, I use plugins with that

<plugin
  filename="libSampleSystem.so"
  name="sample_system::SampleSystem">
</plugin>
<plugin filename="libSampleSystem.so"
        name="sample_system::SampleSystem2">
</plugin>

And IGN_GAZEBO_SYSTEM_PLUGIN_PATH is set to "<path_to_my_plugin_dir>/plugins/sample_system/"

It would be a great miracle for me if you had a solution or a lead concerning this.