mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Gazebo-classic: add define for development.xml
And update submodule.
This commit is contained in:
parent
c89667d911
commit
2ef2580388
@ -1 +1 @@
|
||||
Subproject commit 6697ab169ceab512dc706acea63df4c882662c60
|
||||
Subproject commit ac718b6fb2d6b337248e23702e75d6d1e2125054
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user