Gazebo | Ignition | Community
Ask Your Question
0

GAZEBO11. Error loading plugin from commandline

asked 2023-03-30 10:19:33 -0500

jec gravatar image

I'm trying to load the plugin "libgazebo_ros_state.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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-03-30 21:25:44 -0500

Veerachart gravatar image

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_pluginis the name of your class. See more from https://classic.gazebosim.org/tutoria...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-03-30 10:19:33 -0500

Seen: 537 times

Last updated: Mar 30 '23