First, follow the instructions under sky_sim.
Then, just clone this repository, by running the follow command:
git clone --recursive git@github.com:hfcaio/obstacle-avoidance.gitInside obstacle-avoidance, run catkin build:
cd ~/obstacle-avoidance
catkin buildTo test the code in simulation we need 3 terminals:
sim_vehicle.py -v ArduCopter -f gazebo-iriscd ~/obstacle-avoidance
source devel/setup.bash
roslaunch obstacle_avoidance mission_sim.launchAfter gazebo opens insert an object for the drone to avoid.
cd ~/obstacle-avoidance
source devel/setup.bash
rosrun obstacle_avoidance mission.py