Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.13.3 - PX4 Gazebo build broken - Ubuntu 22 #21628

Closed
satzguyz opened this issue May 23, 2023 · 5 comments
Closed

v1.13.3 - PX4 Gazebo build broken - Ubuntu 22 #21628

satzguyz opened this issue May 23, 2023 · 5 comments
Labels
Sim: gazebo classic Gazebo classic simulator v1.13

Comments

@satzguyz
Copy link

satzguyz commented May 23, 2023

Issue Description:
Unable to start gz_x500 or gazebo simulation targets, in latest 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

@Jaeyoung-Lim
Copy link
Member

Jaeyoung-Lim commented May 23, 2023

@satzguyz The issue template was there to encourage you to put down the details as much as possible.

Please provide more information on your system. e.g. what your operating system version is, the full log of your terminal and what simulator is installed and what is not installed.

For example, Ubuntu 22.04 primarily supports Gazebo (gz) but not Gazebo classic(gazebo-classic). With the limited information you have provided, it is hard to reproduce the problem you are running into.

@junwoo091400 junwoo091400 added v1.13 Sim: gazebo classic Gazebo classic simulator labels May 23, 2023
@satzguyz
Copy link
Author

satzguyz commented May 24, 2023

I am new to this. Kindly point me the template reference which I can follow in Future. I tried to provide more details as possible. Let me know if it needs more details.

@Jaeyoung-Lim
Copy link
Member

Jaeyoung-Lim commented May 25, 2023

@satzguyz I see the issue there. v1.13.3 does not support the new gazebo, which is what you are trying to run with gz.

If you want to use the new gazebo, you should use the master branch of PX4 (don't checkout to v1.13.3)

@junwoo091400
Copy link
Contributor

@satzguyz In case you are interested, here's how I got the v1.13.2 to work with Ignition Gazebo 6:

  1. Update ignition simulation submodule to include this change: Gazebo6 Auterion/px4-simulation-ignition#26
  2. Remove the force to use gazebo 5 for ignition from this change: Force ignition to use version 5 (edifice) in sitl run #19225

Then, make px4_sitl ignition should work, if you have the ignition installed.

I did this to test if the current ignition (somehow different from old ignition "edifice" that is now retired) works with v1.13.2. And seems like changing that dependency in submodule & changing the script does the job of using the gazebo 6 ignition (whatever it means).

image

@DronecodeBot
Copy link

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-v1-13-2-with-ignition-gazebo-6-simulation/35653/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sim: gazebo classic Gazebo classic simulator v1.13
Projects
None yet
Development

No branches or pull requests

5 participants