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.
This node should be built only on the Parrot S.L.A.M.dunk and not on your workstation.
sudo apt-get update
sudo apt-get install build-essential git
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
git clone https://github.com/Parrot-Developers/slamdunk_obstacle_avoidance_example.git src/slamdunk_obstacle_avoidance_example
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -y
catkin_make -j2
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.
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")
Once you are logged in, launch the node:
source ~/slamdunk_catkin_ws/devel/setup.bash
roslaunch slamdunk_obstacle_avoidance_example bebop_avoidance.launch
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?)
On your workstation open a new terminal and launch the node responsible of the gamepad, see this part of the documentation .
Find more information about the command used in this readme at: http://developer.parrot.com/docs/slamdunk/