control_leds.cpp
Go to the documentation of this file.
00001 //Parker Conroy
00002 //ARLab
00003 //This code controls the led's of the ardrone via ardrone_autonomy package
00004 //according to this:
00005 
00006 /*
00007 # 0 : BLINK_GREEN_RED
00008 # 1 : BLINK_GREEN
00009 # 2 : BLINK_RED
00010 # 3 : BLINK_ORANGE
00011 # 4 : SNAKE_GREEN_RED
00012 # 5 : FIRE
00013 # 6 : STANDARD
00014 # 7 : RED
00015 # 8 : GREEN
00016 # 9 : RED_SNAKE
00017 # 10: BLANK
00018 # 11: LEFT_GREEN_RIGHT_RED
00019 # 12: LEFT_RED_RIGHT_GREEN
00020 # 13: BLINK_STANDARD
00021 uint8 type
00022 
00023 # In Hz
00024 float32 freq
00025 
00026 # In Seconds
00027 uint8 duration 
00028 
00029 */
00030 
00031 
00032 #include <cstdlib>
00033 #include "ros/ros.h"
00034 
00035 int main(int argc, char **argv)
00036 {
00037         
00038 using namespace std;
00039   
00040 system( "rosservice  call /ardrone/setledanimation 5 2 5" );
00041 }


arl_ardrone_examples
Author(s): parcon
autogenerated on Mon Jan 6 2014 11:03:12