robin-shaun / XTDrone

UAV Simulation Platform based on PX4, ROS and Gazebo
MIT License
1.18k stars 210 forks source link

ubuntu20.04 make px4_sitl gazebo报错 #41

Open ghost opened 2 years ago

ghost commented 2 years ago

sitl_gazebo/src/gazebo_gimbal_controller_plugin.cpp:633:11: error: ‘class gazebo::GimbalControllerPlugin’ has no member named ‘yawPub’; did you mean ‘yawPid’? 633 | this->yawPub->Publish(m); | ^~ | yawPid ninja: build stopped: subcommand failed. FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build /home/chc/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-build cd /home/chc/PX4-Autopilot/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build /home/chc/PX4-Autopilot/build/px4_sitl_default/build_gazebo -- -j 5 ninja: build stopped: subcommand failed. make: *** [Makefile:235:px4_sitl] 错误 1

robin-shaun commented 2 years ago

按照文档要求,git checkout到指定版本