PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.21k stars 13.38k forks source link

make px4_sitl_default gazebo failed #21478

Open zondafeng opened 1 year ago

zondafeng commented 1 year ago

ubuntu 20.04 gazebo9 2023-04-14 23-37-40 的屏幕截图 does anybody know how to solve?

JohnTGZ commented 1 year ago

I faced a similar issue on Ubuntu 20.04 with ROS Noetic. You have to make sure to have installed any PX4 SITL dependencies for simulation with Gazebo. This is done by OMITTING the "--no-sim-tools" flag from the ubuntu.sh bash script as follows:

bash ./PX4-Autopilot/Tools/setup/ubuntu.sh 

The tutorials would have you add a "--no-sim-tools" flag. Which prevents PX4 simulation dependencies from being installed.

Then, the following should build successfully:

make px4_sitl gazebo-classic
farhangnaderi commented 1 year ago

glad it solved. Could you close the issue?