GAZEBO11. Error loading plugin from commandline
I'm trying to load the plugin "libgazeborosstate.so" using on the command line:
gazebo --verbose -s libgazebo_ros_state.so
But I get the following error:
[Err] [gazebo_shared.cc:46] System is attempting to load a plugin, but detected an incorrect plugin type.
What could be the problem?
Regards.
Asked by jec on 2023-03-30 10:19:33 UTC
Answers
The plugin in libgazebo_ros_state.so
is not a system plugin. Inside the source code, you need to extend your plugin class from gazebo::SystemPlugin
and add something like
GZ_REGISTER_SYSTEM_PLUGIN(gazebo_ros_state_plugin)
where the gazebo_ros_state_plugin
is the name of your class. See more from https://classic.gazebosim.org/tutorials?tut=system_plugin&cat=write_plugin
Asked by Veerachart on 2023-03-30 21:25:44 UTC
Comments