rospix / gazebo_timepix

Timepix for Gazebo/ROS simulator
1 stars 0 forks source link

gzserver: symbol lookup error: ... undefined symbol _ZN7TimepixC1Ev #1

Closed zandermuechue closed 3 years ago

zandermuechue commented 3 years ago

I got a error when trying to run the gazebo_timepix plugin. I use the following setup:

Operating System | Ubuntu 20.04 ROS | noetic gazebo | 11

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /model: burger
 * /robot_description: <?xml version="1....
 * /rosdistro: noetic
 * /rosversion: 1.15.9
 * /use_sim_time: True

NODES
  /
    base_footprint_publisher (tf/static_transform_publisher)
    gazebo (gazebo_ros/gzserver)
    laser_link_publisher (tf/static_transform_publisher)
    my_rviz (rviz/rviz)
    odom_publisher (tf/static_transform_publisher)
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    sapwn_robot (gazebo_ros/spawn_model)
    turtlebot3_teleop_keyboard (turtlebot3_teleop/turtlebot3_teleop_key)

auto-starting new master
process[master]: started with pid [21675]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 628bc2a6-9acb-11eb-beca-17f689719811
process[rosout-1]: started with pid [21685]
started core service [/rosout]
process[gazebo-2]: started with pid [21688]
process[robot_state_publisher-3]: started with pid [21695]
process[sapwn_robot-4]: started with pid [21698]
process[laser_link_publisher-5]: started with pid [21700]
process[base_footprint_publisher-6]: started with pid [21705]
process[odom_publisher-7]: started with pid [21707]
process[my_rviz-8]: started with pid [21713]
process[turtlebot3_teleop_keyboard-9]: started with pid [21717]
[ INFO] [1618148390.407188645]: rviz version 1.14.4
[ INFO] [1618148390.407301885]: compiled against Qt version 5.12.8
[ INFO] [1618148390.407324842]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1618148390.432247896]: Forcing OpenGl version 0.
[ INFO] [1618148390.806195011]: Stereo is NOT SUPPORTED
[ INFO] [1618148390.806313228]: OpenGl version: 3,1 (GLSL 1,4).
[ INFO] [1618148390.901549126]: [/my_rviz]: initializing MRS-patched tf listener
Gazebo multi-robot simulator, version 11.3.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[ INFO] [1618148391.213210306]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1618148391.214858091]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://...
[Msg] Publicized address: ...
[Msg] Loading world file [/home/USERNAME/catkin_ws/src/PACKAGE/worlds/maze.world]
[ INFO] [1618148391.887447861]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1618148392.005383242]: [RadiationSource75]: Plugin initialized
gzserver: symbol lookup error: /home/USERNAME/catkin_ws/devel/lib/libgazebo_timepix.so: undefined symbol: _ZN7TimepixC1Ev
[ERROR] [1618148392.107129, 0.000000]: Spawn service failed. Exiting.
[gazebo-2] process has died [pid 21688, exit code 127, cmd /opt/ros/noetic/lib/gazebo_ros/gzserver --verbose -e ode /home/USERNAME/catkin_ws/src/PACKAGE/worlds/maze.world __name:=gazebo __log:=/home/USERNAME/.ros/log/628bc2a6-9acb-11eb-beca-17f689719811/gazebo-2.log].

Have someone experienced the same issue or has a hint to a solution?

stibipet commented 3 years ago

Hi, these issues are usually caused by Gazebo missing the path to the plugin. Make sure that your catkin_ws/devel/lib folder contains the libgazebo_timepix.so file (should be created automatically with a successful catkin build). Also make sure, that this directory is included in the GAZEBO_PLUGIN_PATH