mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 19:01:37 +08:00
PX4 ROS2 msg conformity and explicit topics
- .msg files are PascalCase - topics are still either per msg or explicitly listed in TOPICS - compatible structs are still generated (eg struct msg_s), but ROS2 style px4::msg::Msg is also available
This commit is contained in:
@@ -110,7 +110,7 @@ def is_everything_ready(config: Dict[str, str], build_dir: str) -> bool:
|
||||
print("PX4 SITL is not built\n"
|
||||
"run `DONT_RUN=1 "
|
||||
"make px4_sitl gazebo mavsdk_tests` or "
|
||||
"`DONT_RUN=1 make px4_sitl_rtps gazebo mavsdk_tests`")
|
||||
"`DONT_RUN=1 make px4_sitl_default gazebo mavsdk_tests`")
|
||||
result = False
|
||||
if config['simulator'] == 'gazebo':
|
||||
if is_running('gzserver'):
|
||||
@@ -127,7 +127,7 @@ def is_everything_ready(config: Dict[str, str], build_dir: str) -> bool:
|
||||
print("Test runner is not built\n"
|
||||
"run `DONT_RUN=1 "
|
||||
"make px4_sitl gazebo mavsdk_tests` or "
|
||||
"`DONT_RUN=1 make px4_sitl_rtps gazebo mavsdk_tests`")
|
||||
"`DONT_RUN=1 make px4_sitl_default gazebo mavsdk_tests`")
|
||||
result = False
|
||||
|
||||
return result
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
PX4_SRC_DIR=${DIR}/..
|
||||
|
||||
source /opt/ros/${ROS_DISTRO:-kinetic}/setup.bash
|
||||
mkdir -p ${PX4_SRC_DIR}/catkin_ws/src
|
||||
cd ${PX4_SRC_DIR}/catkin_ws/
|
||||
git clone -b 0.3.1 --single-branch --depth 1 https://github.com/PX4/avoidance.git src/avoidance
|
||||
|
||||
catkin init
|
||||
catkin build local_planner safe_landing_planner --cmake-args -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
source ${PX4_SRC_DIR}/catkin_ws/devel/setup.bash
|
||||
source /usr/share/gazebo/setup.sh
|
||||
|
||||
export CATKIN_SETUP_UTIL_ARGS=--extend
|
||||
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:${PX4_SRC_DIR}/catkin_ws/src/avoidance/avoidance/sim/models
|
||||
|
||||
source $DIR/rostest_px4_run.sh "$@"
|
||||
Reference in New Issue
Block a user