/slamdunk_obstacle_avoidance_example

Parrot S.L.A.M.dunk obstacle avoidance example ROS node

Primary LanguageC++OtherNOASSERTION

Parrot S.L.A.M.dunk obstacle avoidance example with Bebop 2 and ROS

Workstation: Ubuntu 14.04

This ROS node demonstrates how to subscribe to information coming from Parrot S.L.A.M.dunk, Bebop 2 and gamepad. Process them and publish them to Bebop 2. The obstacle avoidance algorithm used in this node is for example only and is provided without any warranty.

How to build the node?

This node should be built only on the Parrot S.L.A.M.dunk and not on your workstation.

Prerequisites

sudo apt-get update
sudo apt-get install build-essential git

Prepare Workspace

source /opt/ros/indigo/setup.bash
mkdir -p ~/slamdunk_catkin_ws/src
cd ~/slamdunk_catkin_ws/src
catkin_init_workspace
cd ~/slamdunk_catkin_ws/
catkin_make -j2
source devel/setup.bash

Get slamdunk packages sources

git clone https://github.com/Parrot-Developers/slamdunk_obstacle_avoidance_example.git src/slamdunk_obstacle_avoidance_example

Install

sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -y
catkin_make -j2

How to launch?

Hardware configuration

Connect the Parrot S.L.A.M.dunk to the Bebop 2 with a micro USB A to micro USB B cable. Micro USB A is on the Parrot S.L.A.M.dunk side. Also power the Parrot S.L.A.M.dunk.

Launch the node on the Parrot S.L.A.M.dunk

Add a route to your workstation to access Parrot S.L.A.M.dunk through Bebop 2 Wi-Fi:

sudo route add -net 192.168.43.0 netmask 255.255.255.0 gw 192.168.42.1

Connect to Parrot S.L.A.M.dunk (password is "slamdunk")

ssh slamdunk@192.168.43.2

Once you are logged in, launch the node:

source ~/slamdunk_catkin_ws/devel/setup.bash
roslaunch slamdunk_obstacle_avoidance_example bebop_avoidance.launch

Prerequisites for the gamepad

Install the slamdunk_bebop_joystick ROS package on your worstation, to do so, follow the instruction in the slamdunk_ros repository. (part How to build the node yourself?)

Launch the gamepad on your workstation

On your workstation open a new terminal and launch the node responsible of the gamepad, see this part of the documentation .

Parrot S.L.A.M.dunk documentation

Find more information about the command used in this readme at: http://developer.parrot.com/docs/slamdunk/