Gazebo-classic: add define for development.xml

And update submodule.
This commit is contained in:
Julian Oes 2025-11-10 13:11:26 +13:00 committed by Jacob Dahl
parent c89667d911
commit 2ef2580388
2 changed files with 9 additions and 1 deletions

@ -1 +1 @@
Subproject commit 6697ab169ceab512dc706acea63df4c882662c60
Subproject commit ac718b6fb2d6b337248e23702e75d6d1e2125054

View File

@ -44,12 +44,20 @@ if(gazebo_FOUND)
# project to build sitl_gazebo if necessary
px4_add_git_submodule(TARGET git_sitl_gazebo-classic PATH "${PX4_SOURCE_DIR}/Tools/simulation/gazebo-classic/sitl_gazebo-classic")
include(ExternalProject)
# Set MAVLINK_DEVELOPMENT if using development dialect
set(GAZEBO_MAVLINK_ARGS)
if(CONFIG_MAVLINK_DIALECT STREQUAL "development")
list(APPEND GAZEBO_MAVLINK_ARGS -DMAVLINK_DEVELOPMENT=1)
endif()
ExternalProject_Add(sitl_gazebo-classic
SOURCE_DIR ${PX4_SOURCE_DIR}/Tools/simulation/gazebo-classic/sitl_gazebo-classic
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DSEND_ODOMETRY_DATA=ON
-DGENERATE_ROS_MODELS=ON
${GAZEBO_MAVLINK_ARGS}
BINARY_DIR ${PX4_BINARY_DIR}/build_gazebo-classic
INSTALL_COMMAND ""
DEPENDS git_sitl_gazebo-classic