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

failed to resolve RegisterPlugin libdiff_drive_controller.so:undefined symbol

asked 2015-08-03 04:31:57 -0500

zxawangxiaomu gravatar image

Hello all: I am a beginner to ros, and I met a problem when I am learning gazebo which is as followed:

Error [Plugin.hh:147] Failed to resolve RegisterPlugin: /opt/ros/hydro/lib/libdiff_drive_controller.so: undefined symbol: RegisterPlugin[ INFO] [1438586829.560869251, 0.021000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.

I do not know how to solve this problem. Can anyone help me? Thanks very much.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-08-24 18:12:30 -0500

jwatson_utah_edu gravatar image

updated 2016-08-24 18:13:17 -0500

Make sure to

 #include <gazebo/common/Plugin.hh>

at the beginning of the plugin source, and register the plugin with Gazebo with

GZ_REGISTER_WORLD_PLUGIN( YourWorldPluginClass ) //Different function for each type of Gazebo plugin

These solved the issue for a plugin I was writing.

I realize this is an old question, but this was the first search hit I got when trying to solve a similar problem.

edit flag offensive delete link more

Comments

Top include fixed my issue even now Ubuntu 20.04, Gazebo 11. Note the tutorial for the plugins does not mention this...

hillripper21 gravatar image hillripper21  ( 2020-06-02 19:39:15 -0500 )edit

Works even for Gazebo 9

kodplayer gravatar image kodplayer  ( 2021-02-08 11:59:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-03 04:31:57 -0500

Seen: 632 times

Last updated: Aug 24 '16