ethz-asl / rotors_simulator

RotorS is a UAV gazebo simulator
1.2k stars 756 forks source link

Symbol Lookup Error: librotors_gazebo_multirotor_base_plugin.so #669

Open hr1799 opened 3 years ago

hr1799 commented 3 years ago

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?

Zyhlibrary commented 2 years ago

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

Zyhlibrary commented 2 years ago

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)

ana-lys commented 2 years ago

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.

Arcane-01 commented 6 months ago

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?