#include <ardrone_autonomy/ardrone_driver.h>
#include <ardrone_autonomy/teleop_twist.h>
#include <ardrone_autonomy/video.h>
#include <signal.h>
#include <config_keys.h>
#include <ardrone_autonomy/NavdataMessageDefinitions.h>
Go to the source code of this file.
Defines | |
#define | ARDRONE_CONFIG_KEY_IMM_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY) { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) } |
#define | ARDRONE_CONFIG_KEY_IMM_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY) { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) } |
#define | ARDRONE_CONFIG_KEY_REF_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY) |
#define | ARDRONE_CONFIG_KEY_STR_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY) { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) } |
#define | ARDRONE_CONFIG_KEY_STR_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY) { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) } |
#define | NAVDATA_STRUCTS_INITIALIZE |
#define | NAVDATA_STRUCTS_SOURCE |
#define | SEND_PARAM_NUM(NAME, CATEGORY, DEFAULT) |
#define | SEND_PARAM_STR(NAME, CATEGORY, DEFAULT) |
Functions | |
void | controlCHandler (int signal) |
int | main (int argc, char **argv) |
#define ARDRONE_CONFIG_KEY_IMM_a10 | ( | KEY, | |
NAME, | |||
INI_TYPE, | |||
C_TYPE, | |||
C_TYPE_PTR, | |||
RW, | |||
RW_CUSTOM, | |||
DEFAULT, | |||
CALLBACK, | |||
CATEGORY | |||
) | { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) } |
#define ARDRONE_CONFIG_KEY_IMM_a10 | ( | KEY, | |
NAME, | |||
INI_TYPE, | |||
C_TYPE, | |||
C_TYPE_PTR, | |||
RW, | |||
RW_CUSTOM, | |||
DEFAULT, | |||
CALLBACK, | |||
CATEGORY | |||
) | { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) } |
#define ARDRONE_CONFIG_KEY_REF_a10 | ( | KEY, | |
NAME, | |||
INI_TYPE, | |||
C_TYPE, | |||
C_TYPE_PTR, | |||
RW, | |||
RW_CUSTOM, | |||
DEFAULT, | |||
CALLBACK, | |||
CATEGORY | |||
) |
#define ARDRONE_CONFIG_KEY_STR_a10 | ( | KEY, | |
NAME, | |||
INI_TYPE, | |||
C_TYPE, | |||
C_TYPE_PTR, | |||
RW, | |||
RW_CUSTOM, | |||
DEFAULT, | |||
CALLBACK, | |||
CATEGORY | |||
) | { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) } |
#define ARDRONE_CONFIG_KEY_STR_a10 | ( | KEY, | |
NAME, | |||
INI_TYPE, | |||
C_TYPE, | |||
C_TYPE_PTR, | |||
RW, | |||
RW_CUSTOM, | |||
DEFAULT, | |||
CALLBACK, | |||
CATEGORY | |||
) | { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) } |
#define NAVDATA_STRUCTS_INITIALIZE |
#define NAVDATA_STRUCTS_SOURCE |
Definition at line 766 of file ardrone_driver.cpp.
#define SEND_PARAM_NUM | ( | NAME, | |
CATEGORY, | |||
DEFAULT | |||
) |
{ \ if(ardrone_application_default_config.NAME!=DEFAULT) \ { \ ROS_INFO(" SEND: "#CATEGORY"/"#NAME" = %f (DEFAULT = %f)", (float)ardrone_application_default_config.NAME, (float)DEFAULT); \ ARDRONE_TOOL_CONFIGURATION_ADDEVENT (NAME, &ardrone_application_default_config.NAME, NULL); \ } \ }
#define SEND_PARAM_STR | ( | NAME, | |
CATEGORY, | |||
DEFAULT | |||
) |
{ \ if(0!=strcmp(ardrone_application_default_config.NAME,DEFAULT)) \ { \ ROS_INFO("SEND: "#CATEGORY"/"#NAME" = %s (DEFAULT = %s)", ardrone_application_default_config.NAME, DEFAULT); \ ARDRONE_TOOL_CONFIGURATION_ADDEVENT (NAME, ardrone_application_default_config.NAME, NULL); \ } \ }
void controlCHandler | ( | int | signal | ) |
Definition at line 793 of file ardrone_driver.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 803 of file ardrone_driver.cpp.