Gazebo | Ignition | Community
Ask Your Question

Failed to load plugin from gazebo_plugins (gazebo_ros_depth_camera) using ROS hydro and gazebo 1.9

asked 2013-10-08 00:00:27 -0500

Dubya gravatar image

Hi I'm currently trying to use the gazeborosdepthcamera plugin provided by the gazeboplugins package and am getting an error. The SDF I am using also contains other custom written plugins that successfully loads. However I can't seem to get gazebo to load the gazeborosdepthcamera. I've tried exporting the "pluginpath" within the package.xml file as well as set the absolute plugin path in the SDF. The error I am getting is this:

Error [Plugin.hh:127] Failed to load plugin /opt/ros/hydro/lib/ cannot open shared object file: No such file or directory

I have verified exists at the default location (/opt/ros/hydro/lib/). The way I am using the SDF is by first launching a world via roslaunch. I then spawn the SDF using rosrun gazeboros spawn_model. Any ideas why Plugin.hh would fail to load this plugin when the file is verified to be at the specified location? Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-10-08 18:51:38 -0500


Check this post:

Hope this help you!!

edit flag offensive delete link more

answered 2013-10-08 05:11:54 -0500

It seems like the plugin can not to find another plugin which is shipped with gazebo

Is /usr/lib/gazebo-1.9/plugins (or /usr/local/lib/gazebo-1.9/plugins if you installed from source) in your GAZEBO_PLUGIN_PATH variable?

and is this directory containing the missing library?

Hope this helps...

edit flag offensive delete link more


Thanks for the response. I verified the plugin library is in /usr/lib/gazebo-1.9/plugins. I then attempted to get gazebo to find this file by trying the following methods: 1. export GAZEBOPLUGINPATH=/usr/lib/gazebo-1.9/plugins/ 2. Set the "pluginpath" argument in the "gazeboros" tag of package.xml to : plugin_path="/usr/lib/gazebo-1.9/plugins:/opt/ros/hydro/lib"

However both approaches does not help gazebo in locating the libraries. Is there a different way to set GAZEBOPLUGINPATH? Thanks

Dubya gravatar imageDubya ( 2013-10-10 15:20:21 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-10-08 00:00:27 -0500

Seen: 13,415 times

Last updated: Oct 08 '13