Failed to load plugin from gazebo_plugins (gazebo_ros_depth_camera) using ROS hydro and gazebo 1.9
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/libgazeborosdepth_camera.so: libDepthCameraPlugin.so: cannot open shared object file: No such file or directory
I have verified libgazeborosdepthcamera.so 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.
Asked by Dubya on 2013-10-08 00:00:27 UTC
Answers
It seems like the plugin can not to find another plugin libDepthCameraPlugin.so
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...
Asked by evilBiber on 2013-10-08 05:11:54 UTC
Comments
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 GAZEBO_PLUGIN_PATH=/usr/lib/gazebo-1.9/plugins/ 2. Set the "plugin_path" argument in the "gazebo_ros" 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 GAZEBO_PLUGIN_PATH? Thanks
Asked by Dubya on 2013-10-10 15:20:21 UTC
Hello,
Check this post:
http://answers.gazebosim.org/question/4535/error-pluginhh127/
Hope this help you!!
Asked by vncntmh on 2013-10-08 18:51:38 UTC
Comments