ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

[Err] [Plugin.hh:178] Failed to load plugin libgazebo_light_sensor_plugin.so

asked 2020-03-26 10:50:51 -0500

jesusy gravatar image

Hello, I'm a beginner trying to follow this tutorial: https://robohub.org/create-a-ros-sens.... I'm using Ubuntu 18.04, ros melodic and gazebo 9, it's necessary to install the gazebo_ros_pkgs. The tutorial uses a camera sensor to get a image a then calculate the illuminance of the image, at the end it says:

Now launch the world. Be sure that a roscore is running or your machine, and that the GAZEBO_PLUGIN_PATH environment var includes the path to the new plugin.

But when I try runing roslaunch gazebo_light_sensor_plugin main.launch I get the next msg in the terminal:

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.3
[ INFO] [1585232434.291802849]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1585232434.318936454]: Physics dynamic reconfigure ready.

[Err] [Plugin.hh:178] Failed to load plugin libgazebo_light_sensor_plugin.so: /home/yepez/catkin_ws/devel/lib/libgazebo_light_sensor_plugin.so: undefined symbol: _ZN6gazebo20GazeboRosCameraUtils13TriggerCameraEv

The $GAZEBO_PLUGIN_PATH is blank by default, but even if I change it for /home/yepez/catkin_ws/src/gazebo_light_sensor_plugin/include where the file .h is located, it still send me that error.

Thanks in advance to everyone for reading it.

edit retag flag offensive close merge delete

Comments

Did you get this to work?

student_Ros_melodic_mobile_manipulator gravatar image student_Ros_melodic_mobile_manipulator  ( 2020-05-15 05:43:06 -0500 )edit

Try to set GAZEBO_PLUGIN_PATH to <path_to_catkin_ws>/devel/lib instead.

m.bahno gravatar image m.bahno  ( 2021-02-16 04:26:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-15 05:50:08 -0500

updated 2020-05-15 06:40:30 -0500

Add gazebo_plugins to the CMake file under gazebo_ros in find_package and catkin_package + add gazebo_plugins to the package.xml in the <build_depend>, <build_export_depend> and <exec_depend> tags. Than once again catkin_make the workspace.

or use this tutorial instead.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-03-26 10:50:51 -0500

Seen: 3,280 times

Last updated: May 15 '20