Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,29 @@ The documentation contains information about how to setup and run the two planne

## Installation

### Script Installation (Recommended)
1. Go to the [PX4 Development Guide](https://dev.px4.io/v1.8.2/en/setup/dev_env_linux.html#gazebo-with-ros) and run the Gazebo with ROS Kinetic installation script (Note: make sure to be on the version 1.8.2)
1. Download [install_avoidance.sh](https://github.com/PX4/avoidance/blob/master/install_avoidance.sh)
1. Run the script
``` bash
source install_avoidance.sh
```
Run the desired planner:
* Local planner:
```bash
roslaunch local_planner local_planner_sitl_3cam.launch
```
* Safe landing planner:
```bash
roslaunch safe_landing_planner safe_landing_planner.launch
```
* Global planner:
```bash
roslaunch global_planner global_planner_depth-camera.launch
```

Alternatively you can follow the step by step instructions in the following sections.

### Installation for Ubuntu 16.04 and ROS Kinetic

This is a step-by-step guide to install and build all the prerequisites for running this module on Ubuntu 16.04. You might want to skip some of them if your system is already partially installed.
Expand Down
9 changes: 9 additions & 0 deletions tools/install_avoidance.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW Don't know what is standard, but generally I quite like it if scripts have brief docs about what they do/when they are used. Maybe a link to where this is defined.

Entirely up to you


cd ~/src/Firmware && git submodule update --init --recursive && DONT_RUN=1 make px4_sitl_default gazebo

cd ~/catkin_ws/src && git clone https://github.com/PX4/avoidance.git && catkin build

echo "source ~/src/Firmware/Tools/setup_gazebo.bash ~/src/Firmware ~/src/Firmware/build/px4_sitl_default > /dev/null
export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:~/catkin_ws/src/avoidance/avoidance/sim/models:~/catkin_ws/src/avoidance/avoidance/sim/worlds
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:~/src/Firmware:~/src/Firmware/Tools/sitl_gazebo" >> ~/.bashrc