undefined symbol error in gazebo
I wanna make camera gazebo plugin so i tried to follow this tutorial
http://www.theconstructsim.com/create-a-ros-sensor-plugin-for-gazebo/
you can check that cpp source and .h files...
but it have some errors when i build it...
gzserver: symbol lookup error: /home/gwkim/light_sensor_ws/devel/lib/libgazebo_light_sensor_plugin.so: undefined symbol: _ZN6gazebo20GazeboRosCameraUtilsC2Ev
[gazebo-2] process has died [pid 24539, exit code 127, cmd /opt/ros/indigo/lib/gazebo_ros/gzserver --verbose -e ode /home/gwkim/light_sensor_ws/src/gazebo_light_sensor_plugin/worlds/light.world __name:=gazebo __log:=/home/gwkim/.ros/log/f9e256d6-caee-11e5-8656-001e6595291c/gazebo-2.log].
log file: /home/gwkim/.ros/log/f9e256d6-caee-11e5-8656-001e6595291c/gazebo-2*.log
i tried to serch its answer but i didnt find correct solution
i need your help.
im using 14.04 ubuntu and indigo version.
please answer here or send me e-mail please.
Asked by dividkim on 2016-02-04 19:37:19 UTC
Answers
I think the package needs to depend on gazebo_plugins
also (add to catkin_create_pkg
command, CMakeLists.txt, and package.xml).
Asked by scpeters on 2016-02-05 19:14:52 UTC
Comments
What version of Gazebo and ROS are you using? The error you have posted looks like a run-time error, not a build error, right? My first guess would be your light sensor plugin cannot find the
GazeboRosCameraUtils
library. Make sure all the necessary plugins and libraries are in the correct paths.Asked by nkoenig on 2016-02-05 12:12:47 UTC