ROS Package (and utilities) to run the ardrone controller with a qualisys system.
Clone the package into your catkin workspace:
git clone https://github.com/duhoduc/ardrone_controller.git
Additionally, you need to have ardrone_autonomy (https://github.com/AutonomyLab/ardrone_autonomy) and qualisys (https://github.com/KTH-SML/motion_capture_system) in your ROS Path.
Setup the qualisys system, keep the x axis of qualisys aligns to x of drone (forward), set the name of drone as ARDrone in qualisys
Qualisys publishs frame "ARDrone" if this was set as name of 6D object, mocap is base-frame of the qualisys.
- Connect the AR.Drone to our network:
- Launch the ardrone driver
roslaunch ardrone_autonomy ardrone.launch - Launch the vicon driver
roslaunch mocap_qualisys qualisys.launch - Launch the rviz file
roslaunch rviz rviz -d controller.rvizfrom the launch directory of ardrone_controller - Run the controller
rosrun ardrone_controller controller.py - Run the ui for the controller
rosrun ardrone_controller control_ui.py
- If the firmware for the drone comes up a 0.0.0 on launch of ardrone_autonomy, you have to restart the drone and often the computer
- If the drone is in emergency mode (red LEDs on), you can reset using
rostopic pub /ardrone/reset std_msgs/Empty - To run the python files (steps 5 and 6), the files need to be executable. Use chmod +x on each of the .py files.