rotors_simulator icon indicating copy to clipboard operation
rotors_simulator copied to clipboard

Symbol Lookup Error: librotors_gazebo_multirotor_base_plugin.so

Open hr1799 opened this issue 3 years ago • 4 comments

Error while running roslaunch rotors_gazebo mav_hovering_example.launch mav_name:=firefly world_name:=basic Error: gzserver: symbol lookup error: /home/hariharan/eth_ws/devel/lib/librotors_gazebo_multirotor_base_plugin.so: undefined symbol: _ZN14gz_sensor_msgs9ActuatorsC1Ev

I'm using ROS Melodic on Ubuntu 18.04. Have tried solutions from other issues or sources. Reinstalled ROS and Gazebo. Did catkin clean and then built again. Nothing works.

Is there any solution to rectify this issue?

hr1799 avatar Jun 12 '21 15:06 hr1799

Hi, i met the same error, do you find the solution? Looking forward to your reply.

Zyhlibrary avatar Dec 02 '21 12:12 Zyhlibrary

I found the reason. You just need to copy the Actuators.pb.cc and Actuators.pb.h to rotors_gazebo_plugins, and add it to your cmakelist.txt where you generate the librotors_gazebo_multirotor_base_plugin.so. add_library(rotors_gazebo_multirotor_base_plugin SHARED src/gazebo_multirotor_base_plugin.cpp src/Actuators.pb.cc)

Zyhlibrary avatar Dec 05 '21 08:12 Zyhlibrary

I also got this problem. I am using Ros Noetic and Gazebo 11.3. I tried both the rotors_simulator that come with flightmare and the rotors_simulator master one. The mentioned method above is not working for me.

ana-lys avatar Mar 20 '22 13:03 ana-lys

Hello! I'm encountering a similar error. My setup includes Ros Noetic and Gazebo 11.14.0. Despite running catkin clean followed by a rebuild, the problem persists. Additionally, I couldn't locate the mentioned Actuators.pb.cc and Actuators.pb.h files. Have you managed to find a solution to this issue?

Arcane-01 avatar Dec 24 '23 20:12 Arcane-01