-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Avoidance Interface CI #10780
Merged
Merged
Avoidance Interface CI #10780
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
90c0136
add mission plan for the obstacle avoidance test
mrivi 49e59b2
add ros test for obstacle avoidance
mrivi a206323
add script to initialize catkin workspace and build PX4 avoidance local
mrivi 59f27b3
Makefile: add tests_avoidance target
mrivi 6dae676
test: hardcode path to catkin ws
mrivi f6038c4
test: refactor avoidance test
lamping7 6f66382
test: avoidance: add to GAZEBO_MODEL_PATH and fix clone path
lamping7 2a653ae
jenkinsfile-SITL_tests add avoidance test
mrivi 3b515f5
jenkins: add parameter to ROS SITL test node generation to specify th…
lamping7 0b84e8c
rostest_avoidance_run: source gazebo setup.sh to remove gzserver core…
mrivi c1094c1
enable MPC_OBS_AVOID in iris_obs_avoid
mrivi 43e08d3
avoidance.plan: add lading waypoint plus slightly change position of the
mrivi 6b081b3
Jenkinsfile-SITL_tests: rename test avoidance -> MC_avoidance
mrivi de06679
avoidance.plan: change waypoints to remove mission check fail "takeoff
mrivi 643689f
mavros_posix_test_avoidance: enable local planner ouput on console
mrivi f8b9fcb
mavros_posix_test_avoidance: add pointcloud topic paramete and load p…
mrivi bdb1365
Jenkinsfile-SITL_tests: fix rebase mistake
mrivi 40bdb4d
run xvfb to run cameras headlessly
mrivi b86eb67
update ros-kinetic container to tag 2019-01-31. Remove xvfb since it …
mrivi 11b4e44
test: avoidance: set gazebo verbose
lamping7 7c13404
test px4-dev-ros:2019-02-03
mrivi a305bdd
mavros_posix_test_avidance: remove yaml paramters
mrivi b41c35e
use iris model with 3 depth sensor
mrivi 8fa10bc
avoidance.plan: lower land waypoint
mrivi 15b5e56
rostest_avoidance_run: checkout avoidance stable release 0.1.0
mrivi ae68309
- 1015_iris_obs_avoid: #!nsh -> #!/bin/bash
mrivi 8cb3e19
Makefile: avoidance test @$(SRC_DIR) -> @"$(SRC_DIR)"
mrivi ba381cf
1015_iris_obs_avoid: change param name MPC_OBS_AVOID -> COM_OBS_AVOID
mrivi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
# | ||
# @name 3DR Iris Quadrotor SITL (Obstacle Avoidance) | ||
# | ||
# @type Quadrotor Wide | ||
# | ||
|
||
sh /etc/init.d-posix/10016_iris | ||
|
||
if [ $AUTOCNF = yes ] | ||
then | ||
param set COM_OBS_AVOID 1 | ||
fi |
88 changes: 88 additions & 0 deletions
88
integrationtests/python_src/px4_it/mavros/missions/avoidance.plan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"fileType": "Plan", | ||
"geoFence": { | ||
"circles": [ | ||
], | ||
"polygons": [ | ||
], | ||
"version": 2 | ||
}, | ||
"groundStation": "QGroundControl", | ||
"mission": { | ||
"cruiseSpeed": 15, | ||
"firmwareType": 12, | ||
"hoverSpeed": 5, | ||
"items": [ | ||
{ | ||
"AMSLAltAboveTerrain": null, | ||
"Altitude": 4, | ||
"AltitudeMode": 0, | ||
"autoContinue": true, | ||
"command": 22, | ||
"doJumpId": 1, | ||
"frame": 3, | ||
"params": [ | ||
15, | ||
0, | ||
0, | ||
null, | ||
47.3977432, | ||
8.5456085, | ||
4 | ||
], | ||
"type": "SimpleItem" | ||
}, | ||
{ | ||
"AMSLAltAboveTerrain": null, | ||
"Altitude": 4, | ||
"AltitudeMode": 0, | ||
"autoContinue": true, | ||
"command": 16, | ||
"doJumpId": 2, | ||
"frame": 3, | ||
"params": [ | ||
0, | ||
0, | ||
0, | ||
null, | ||
47.3977432, | ||
8.5458765, | ||
4 | ||
], | ||
"type": "SimpleItem" | ||
}, | ||
{ | ||
"AMSLAltAboveTerrain": null, | ||
"Altitude": -1, | ||
"AltitudeMode": 0, | ||
"autoContinue": true, | ||
"command": 21, | ||
"doJumpId": 3, | ||
"frame": 3, | ||
"params": [ | ||
0, | ||
0, | ||
0, | ||
null, | ||
47.3977432, | ||
8.5458812, | ||
-1 | ||
], | ||
"type": "SimpleItem" | ||
} | ||
], | ||
"plannedHomePosition": [ | ||
47.3977419, | ||
8.5458854, | ||
487.923 | ||
], | ||
"vehicleType": 2, | ||
"version": 2 | ||
}, | ||
"rallyPoints": { | ||
"points": [ | ||
], | ||
"version": 2 | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<!-- Posix SITL MAVROS integration tests --> | ||
<!-- Test a mission --> | ||
<arg name="est" default="ekf2"/> | ||
<arg name="gui" default="false"/> | ||
<arg name="interactive" default="false"/> | ||
<arg name="mission" default="avoidance"/> | ||
<arg name="sdf" default="$(find local_planner)/../sim/models/iris_depth_camera_3/iris_depth_camera.sdf"/> | ||
<arg name="vehicle" default="iris_obs_avoid"/> | ||
<arg name="world" default="$(find local_planner)/../sim/worlds/boxes1.world"/> | ||
<!-- PX4 SITL and Gazebo --> | ||
<include file="$(find px4)/launch/posix_sitl.launch"> | ||
<arg name="est" value="$(arg est)"/> | ||
<arg name="gui" value="$(arg gui)"/> | ||
<arg name="interactive" value="$(arg interactive)"/> | ||
<arg name="respawn_gazebo" value="true"/> | ||
<arg name="sdf" value="$(arg sdf)"/> | ||
<arg name="vehicle" value="$(arg vehicle)"/> | ||
<arg name="verbose" value="true"/> | ||
<arg name="world" value="$(arg world)"/> | ||
</include> | ||
<!-- MAVROS --> | ||
<include file="$(find mavros)/launch/node.launch"> | ||
<arg name="pluginlists_yaml" value="$(find mavros)/launch/px4_pluginlists.yaml"/> | ||
<arg name="config_yaml" value="$(find local_planner)/resource/px4_config.yaml"/> | ||
<arg name="gcs_url" value=""/> | ||
<arg name="fcu_url" value="udp://:14540@localhost:14557"/> | ||
<arg name="tgt_system" value="1"/> | ||
<arg name="tgt_component" value="1"/> | ||
<arg name="respawn_mavros" value="true"/> | ||
</include> | ||
<!-- Transformation Publishers --> | ||
<node pkg="tf" type="static_transform_publisher" name="tf_front_camera" | ||
args="0 0 0 -1.57 0 -1.57 fcu front_camera_link 10"/> | ||
<node pkg="tf" type="static_transform_publisher" name="tf_right_camera" | ||
args="0 0 0 -3.14 0 -1.57 fcu right_camera_link 10"/> | ||
<node pkg="tf" type="static_transform_publisher" name="tf_left_camera" | ||
args="0 0 0 0 0 -1.57 fcu left_camera_link 10"/> | ||
<!-- Suppress console outputs --> | ||
<env name="ROSCONSOLE_CONFIG_FILE" value="$(find local_planner)/resource/custom_rosconsole.conf"/> | ||
<!-- Launch Local Planner --> | ||
<arg name="pointcloud_topics" default="[/camera_front/depth/points,/camera_left/depth/points,/camera_right/depth/points]"/> | ||
<node name="local_planner_node" pkg="local_planner" type="local_planner_node" output="screen"> | ||
<param name="goal_x_param" value="17" /> | ||
<param name="goal_y_param" value="15"/> | ||
<param name="goal_z_param" value="3" /> | ||
<rosparam param="pointcloud_topics" subst_value="True">$(arg pointcloud_topics)</rosparam> | ||
</node> | ||
<!-- ROStest --> | ||
<test test-name="$(arg mission)" pkg="px4" type="mission_test.py" time-limit="300.0" args="$(arg mission).plan"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for now, but we should try to think of a better way to do this. For example having it locally and running repeatedly shouldn't have to clone and build each time.