Home | Tutorials | Wiki | Issues
Ask Your Question
0

Failed to load plugin /opt/ros/kinetic/lib/libgazebo_ros_api_plugin.so

asked 2018-04-23 08:06:23 -0500

NT gravatar image

Hello,

I installed gazebo 7.11.1 from the source code.
In addition, I installed gazebo-ros-pkgs and gazebo-ros-control from the binary.
With the following command, Gazebo starts without error.

 $ rosrun gazebo_ros gazebbo

However, when running the rrbot_gazebo launch file of a "Tutorial: Using a URDF in Gazebo", the RRBot did not spawn. (But I can spawn sdf model by Insert tab.)

$ roslaunch rrbot_gazebo rrbot_world.launch

I rewritten rrbot_world.launch to run empty_world.launch with the --verbose option.
Then the following error was occurred.

[Err] [Plugin.hh:165] Failed to load plugin /opt/ros/kinetic/lib/libgazebo_ros_api_plugin.so: /opt/ros/kinetic/lib/libgazebo_ros_api_plugin.so: undefined symbol: _ZN6gazebo4msgs15WorldStatistics17default_instance_E

libgazebo_ros_api_plugin.so exists in /opt/ros/kinetic/lib/.
So I thought that the path did not export and I set GAZEBO_PLUGIN_PATH.

$ export GAZEBO_PLUGIN_PATH=/opt/ros/kinetc/lib:${GAZEBO_PLUGIN_PATH}
$ echo $GAZEBO_PLUGIN_PATH
/opt/ros/kinetc/lib:

However, the error did not change.

A question with a similar error already exists, but it seems that use custom plugins.
I did not find anything about errors with default plugins, as far as I was looking for.

I wonder how I can resolve this problem.

The environment is as follows.
Ubuntu: 16.04
ROS: Kinetic
Gazebo: 7.11.1

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-31 18:27:13 -0500

I have meet such issue because I tried to install gazebo from source. The main season is that libgazebo_ros_api_plugin.so is trying to use gazebo::msgs::WorldStatistics which is not provided. That is, it does not link to all "libgazebo_msgs.so...." files. The thing you can do is delete gazebo7 completely and reinstall it with apt-get. Then it will solve the issue.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-04-23 08:06:23 -0500

Seen: 655 times

Last updated: Apr 23 '18