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") && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) LOAD_PARAM_NUM(NAME,C_TYPE, 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") && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) LOAD_PARAM_STR(NAME, DEFAULT) } |
#define | LOAD_PARAM_NUM(NAME, C_TYPE, DEFAULT) |
#define | LOAD_PARAM_STR(NAME, DEFAULT) |
Functions | |
ARDRONE_TOOL_CONFIGURATION_ADDEVENT (profile_id, buffer, NULL) | |
ARDRONE_TOOL_CONFIGURATION_ADDEVENT (application_id, buffer, NULL) | |
bool_t | ardrone_tool_exit () |
C_RESULT | ardrone_tool_init_custom (void) |
ardrone_tool_set_refresh_time (25) | |
C_RESULT | ardrone_tool_shutdown_custom () |
DEFINE_THREAD_ROUTINE (update_ros, data) | |
if (ARDRONE_VERSION() >=2) | |
C_RESULT | navdata_custom_init (void *) |
C_RESULT | navdata_custom_process (const navdata_unpacked_t *const pnd) |
C_RESULT | navdata_custom_release () |
printf ("Deleting Profile %s\n", buffer) | |
printf ("Deleting Application %s\n", buffer) | |
sprintf (buffer,"-%s", usr_id) | |
sprintf (buffer,"-%s", app_id) | |
START_THREAD (video_stage, params) | |
START_THREAD (update_ros, rosDriver) | |
video_stage_init () | |
video_stage_resume_thread () | |
Variables | |
char | buffer [MULTICONFIG_ID_SIZE+1] |
return | C_OK |
out_picture | cb_buf = NULL |
out_picture | cb_line_size = 0 |
driver_post_stages stages_list[post_stages_index] | cfg = NULL |
out_picture | cr_buf = NULL |
out_picture | cr_line_size = 0 |
long int | current_navdata_id = 0 |
specific_stages_t * | driver_post_stages = (specific_stages_t*)vp_os_calloc(1, sizeof(specific_stages_t)) |
specific_stages_t * | driver_pre_stages = (specific_stages_t*)vp_os_calloc(1, sizeof(specific_stages_t)) |
out_picture | format = PIX_FMT_RGB24 |
out_picture | framerate = 20 |
driver_post_stages stages_list[post_stages_index++] | funcs = vp_stages_export_funcs |
in_picture | height = _h |
params | in_pic = in_picture |
vp_api_picture_t * | in_picture = (vp_api_picture_t*) vp_os_calloc(1, sizeof(vp_api_picture_t)) |
driver_pre_stages | length = 0 |
int32_t | looprate |
driver_post_stages stages_list[post_stages_index] | name = "ExtractData" |
vp_os_mutex_t | navdata_lock |
params | needSetPriority = 1 |
params | out_pic = out_picture |
vp_api_picture_t * | out_picture = (vp_api_picture_t*) vp_os_calloc(1, sizeof(vp_api_picture_t)) |
specific_parameters_t * | params = (specific_parameters_t *)vp_os_calloc(1,sizeof(specific_parameters_t)) |
params | post_processing_stages_list = driver_post_stages |
uint8_t | post_stages_index = 0 |
params | pre_processing_stages_list = driver_pre_stages |
params | priority = 31 |
bool | realtime_navdata |
bool | realtime_video |
ARDroneDriver * | rosDriver |
ros::Time | shared_navdata_receive_time |
navdata_unpacked_t * | shared_raw_navdata |
int32_t | should_exit |
driver_pre_stages | stages_list = NULL |
ardrone_tool_input_add & | teleop |
vp_os_mutex_t | twist_lock |
driver_post_stages stages_list[post_stages_index] | type = VP_API_OUTPUT_SDL |
vp_os_mutex_t | video_lock |
vp_stages_latency_estimation_config_t | vlat |
in_picture | width = _w |
out_picture | y_buf = (uint8_t*) vp_os_malloc( _w * _h * 3 ) |
out_picture | y_line_size = _w * 3 |
#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") && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) LOAD_PARAM_NUM(NAME,C_TYPE, DEFAULT) } |
Definition at line 118 of file ardrone_sdk.cpp.
#define ARDRONE_CONFIG_KEY_REF_a10 | ( | KEY, | |
NAME, | |||
INI_TYPE, | |||
C_TYPE, | |||
C_TYPE_PTR, | |||
RW, | |||
RW_CUSTOM, | |||
DEFAULT, | |||
CALLBACK, | |||
CATEGORY | |||
) |
Definition at line 117 of file ardrone_sdk.cpp.
#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") && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) LOAD_PARAM_STR(NAME, DEFAULT) } |
Definition at line 119 of file ardrone_sdk.cpp.
#define LOAD_PARAM_NUM | ( | NAME, | |
C_TYPE, | |||
DEFAULT | |||
) |
{ \ double param; \ ROS_DEBUG("CHECK: "#NAME" (Default = "#DEFAULT" = %f)",(float)DEFAULT); \ if(ros::param::get("~"#NAME,param)) \ { \ ardrone_application_default_config.NAME = (C_TYPE)param; \ ROS_DEBUG("SET: "#NAME" = %f (DEFAULT = %f)", (float)ardrone_application_default_config.NAME, (float)DEFAULT); \ } \ }
#define LOAD_PARAM_STR | ( | NAME, | |
DEFAULT | |||
) |
{ \ std::string param; \ ROS_DEBUG("CHECK: "#NAME" (Default = "#DEFAULT" = %s)",DEFAULT); \ if(ros::param::get("~"#NAME,param)) \ { \ param = param.substr(0,STRING_T_SIZE-1); \ strcpy(ardrone_application_default_config.NAME , param.c_str()); \ ROS_DEBUG("SET: "#NAME" = %s (DEFAULT = %s)", ardrone_application_default_config.NAME, DEFAULT); \
ARDRONE_TOOL_CONFIGURATION_ADDEVENT | ( | profile_id | , |
buffer | , | ||
NULL | |||
) |
ARDRONE_TOOL_CONFIGURATION_ADDEVENT | ( | application_id | , |
buffer | , | ||
NULL | |||
) |
bool_t ardrone_tool_exit | ( | ) |
Definition at line 248 of file ardrone_sdk.cpp.
C_RESULT ardrone_tool_init_custom | ( | void | ) |
Definition at line 35 of file ardrone_sdk.cpp.
C_RESULT ardrone_tool_shutdown_custom | ( | ) |
Definition at line 214 of file ardrone_sdk.cpp.
DEFINE_THREAD_ROUTINE | ( | update_ros | , |
data | |||
) |
Definition at line 27 of file ardrone_sdk.cpp.
if | ( | ARDRONE_VERSION() >= | 2 | ) |
Definition at line 200 of file ardrone_sdk.cpp.
C_RESULT navdata_custom_init | ( | void * | ) |
Definition at line 224 of file ardrone_sdk.cpp.
C_RESULT navdata_custom_process | ( | const navdata_unpacked_t *const | pnd | ) |
Definition at line 228 of file ardrone_sdk.cpp.
C_RESULT navdata_custom_release | ( | ) |
Definition at line 244 of file ardrone_sdk.cpp.
START_THREAD | ( | video_stage | , |
params | |||
) |
START_THREAD | ( | update_ros | , |
rosDriver | |||
) |
video_stage_init | ( | ) |
char buffer[MULTICONFIG_ID_SIZE+1] |
Definition at line 132 of file ardrone_sdk.cpp.
return C_OK |
Definition at line 211 of file ardrone_sdk.cpp.
out_picture cb_buf = NULL |
Definition at line 164 of file ardrone_sdk.cpp.
Definition at line 167 of file ardrone_sdk.cpp.
Definition at line 185 of file ardrone_sdk.cpp.
out_picture cr_buf = NULL |
Definition at line 163 of file ardrone_sdk.cpp.
Definition at line 168 of file ardrone_sdk.cpp.
long int current_navdata_id = 0 |
Definition at line 13 of file ardrone_sdk.cpp.
specific_stages_t* driver_post_stages = (specific_stages_t*)vp_os_calloc(1, sizeof(specific_stages_t)) |
Definition at line 150 of file ardrone_sdk.cpp.
specific_stages_t* driver_pre_stages = (specific_stages_t*)vp_os_calloc(1, sizeof(specific_stages_t)) |
Definition at line 149 of file ardrone_sdk.cpp.
out_picture format = PIX_FMT_RGB24 |
Definition at line 158 of file ardrone_sdk.cpp.
out_picture framerate = 20 |
Definition at line 157 of file ardrone_sdk.cpp.
Definition at line 186 of file ardrone_sdk.cpp.
out_picture height = _h |
Definition at line 155 of file ardrone_sdk.cpp.
Definition at line 191 of file ardrone_sdk.cpp.
vp_api_picture_t* in_picture = (vp_api_picture_t*) vp_os_calloc(1, sizeof(vp_api_picture_t)) |
Definition at line 151 of file ardrone_sdk.cpp.
Definition at line 188 of file ardrone_sdk.cpp.
int32_t looprate |
Definition at line 17 of file ardrone_sdk.cpp.
driver_post_stages stages_list [post_stages_index] name = "ExtractData" |
Definition at line 183 of file ardrone_sdk.cpp.
vp_os_mutex_t navdata_lock |
Definition at line 9 of file ardrone_sdk.cpp.
Definition at line 195 of file ardrone_sdk.cpp.
Definition at line 192 of file ardrone_sdk.cpp.
vp_api_picture_t* out_picture = (vp_api_picture_t*) vp_os_calloc(1, sizeof(vp_api_picture_t)) |
Definition at line 152 of file ardrone_sdk.cpp.
specific_parameters_t* params = (specific_parameters_t *)vp_os_calloc(1,sizeof(specific_parameters_t)) |
Definition at line 148 of file ardrone_sdk.cpp.
Definition at line 194 of file ardrone_sdk.cpp.
uint8_t post_stages_index = 0 |
Definition at line 145 of file ardrone_sdk.cpp.
Definition at line 193 of file ardrone_sdk.cpp.
Definition at line 196 of file ardrone_sdk.cpp.
bool realtime_navdata |
Definition at line 18 of file ardrone_sdk.cpp.
bool realtime_video |
Definition at line 19 of file ardrone_sdk.cpp.
Definition at line 15 of file ardrone_sdk.cpp.
ros::Time shared_navdata_receive_time |
Definition at line 7 of file ardrone_sdk.cpp.
navdata_unpacked_t* shared_raw_navdata |
Definition at line 6 of file ardrone_sdk.cpp.
int32_t should_exit |
Definition at line 21 of file ardrone_sdk.cpp.
driver_post_stages stages_list = NULL |
Definition at line 171 of file ardrone_sdk.cpp.
ardrone_tool_input_add& teleop |
Definition at line 144 of file ardrone_sdk.cpp.
vp_os_mutex_t twist_lock |
Definition at line 11 of file ardrone_sdk.cpp.
driver_post_stages stages_list [post_stages_index] type = VP_API_OUTPUT_SDL |
Definition at line 184 of file ardrone_sdk.cpp.
vp_os_mutex_t video_lock |
Definition at line 10 of file ardrone_sdk.cpp.
vp_stages_latency_estimation_config_t vlat |
Definition at line 24 of file ardrone_sdk.cpp.
out_picture width = _w |
Definition at line 154 of file ardrone_sdk.cpp.
out_picture y_buf = (uint8_t*) vp_os_malloc( _w * _h * 3 ) |
Definition at line 162 of file ardrone_sdk.cpp.
out_picture y_line_size = _w * 3 |
Definition at line 166 of file ardrone_sdk.cpp.