As the old “ignition” (gazebo 5 based) is not retired, and the “gz” (Gazebo garden) is the main simulator, I noticed that PX4 v1.13’s ignition simulation won’t work with current ignition gazebo packages available (v1.14 ~).
So I have left comment in this issue to address this problem:
opened 12:20PM - 23 May 23 UTC
closed 03:48AM - 29 May 23 UTC
gazebo classic
v1.13
Issue Description:
Unable to start gz_x500 or gazebo simulation targets, in lat… est version (1.13.3) of px4 using Ubuntu 22 OS as development environment. But jmavsim works as usual.
Terminal Command:
make px4_sitl gz_x500
Logs:
ninja: error: unknown target 'gz_x500'
make: *** [Makefile:232: px4_sitl] Error 1
**Detailed Description:**
OS Version : Ubuntu 22
Machine Capacity: intel i9 64 bit machine
Steps to reproduce:
1. clone the master codebase
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
2. Checkout the v1.13.3 and update submodules
git switch -c v1.13.3
make submodulesclean
3. Install dependent packages
bash ./Tools/setup/ubuntu.sh
4. Compile for gazebo gz_x500 Target
make px4_sitl gz_x500
Logs as follows,
-- PX4 version: v1.13.3
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.6", minimum required is "3")
-- PX4 config file: /home/my/test/PX4-Autopilot/boards/px4/sitl/default.px4board
-- PLATFORM posix
-- ROMFSROOT px4fmu_common
-- TESTING y
-- ETHERNET y
-- PX4 config: px4_sitl_default
-- PX4 platform: posix
-- PX4 lockstep: enabled
-- cmake build type: RelWithDebInfo
-- The CXX compiler identification is GNU 11.3.0
-- The C compiler identification is GNU 11.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Building for code coverage
-- ROMFS: ROMFS/px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /home/my/test/PX4-Autopilot/build/px4_sitl_default
ninja: error: unknown target 'gz_x500'
make: *** [Makefile:235: px4_sitl] Error 1
Key summary is:
Update “simulation-ignition” to use Gazebo6
Remove force to use Gazebo 5 condition in sitl run script