项目场景:
在仿真rpg_mpc项目时加载不出来模型
问题描述
加载不出来
报错:
gzserver: symbol lookup error: /home/luli/rpg_mpc/devel/lib/librotors_gazebo_multirotor_base_plugin.so: undefined symbol: _ZN14gz_sensor_msgs9ActuatorsC1Ev
[gazebo-1] process has died [pid 129835, exit code 127, cmd /opt/ros/noetic/lib/gazebo_ros/gzserver -u -e ode
/home/luli/rpg_mpc/src/rotors_simulator/rotors_gazebo/worlds/basic.world __name:=gazebo __log:=/home/luli/.ros
/log/317c38b8-6b55-11ef-a4e4-2f5d722d56eb/gazebo-1.log].
log file: /home/luli/.ros/log/317c38b8-6b55-11ef-a4e4-2f5d722d56eb/gazebo-1*.log
原因分析:
解决方案:
删除 libmav_msgs.so
删除 ~/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/libmav_msgs.so
不同的px4版本可能不一样,但是大概位置都差不多,可以搜搜libmav_msgs.so文件