mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 04:43:34 +08:00
Obstacle Avoidance testing in CI (#10780)
This commit is contained in:
committed by
Daniel Agar
parent
1083af21e8
commit
09b795161e
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#! /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.1.0' --single-branch --depth 1 https://github.com/PX4/avoidance.git src/avoidance
|
||||
|
||||
catkin init
|
||||
catkin build local_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/sim/models
|
||||
|
||||
source $DIR/rostest_px4_run.sh "$@"
|
||||
Reference in New Issue
Block a user