00001 00006 #ifndef _ATLAS_MESSAGES_H_ 00007 #define _ATLAS_MESSAGES_H_ 00008 00015 #define ATLAS_RESET_OCCURRED_NAME "atlas_reset_occurred" 00016 typedef carmen_default_message atlaso_reset_occurred_message; 00017 00021 #define ATLAS_RESET_COMMAND_NAME "atlas_reset_command" 00022 typedef carmen_default_message atlas_reset_command_message; 00023 00027 typedef struct { 00028 double timestamp; 00029 double brake; 00030 double dir; 00031 double speed; 00032 int priority; 00033 double life; 00034 char *host; 00035 } robot_motion_command_message; 00036 00040 #define ROBOT_MOTION_COMMAND_NAME (char*)"robot_motion_command" 00041 00045 #define ROBOT_MOTION_COMMAND_FMT (char*)"{double,double,double,double,int,double,string}" 00046 00050 typedef struct { 00051 double timestamp; 00052 int turnright; 00053 int turnleft; 00054 int headlights; 00055 int taillights; 00056 int reverselights; 00057 char *host; 00058 } robot_lights_command_message; 00059 00063 #define ROBOT_LIGHTS_COMMAND_NAME (char*)"robot_lights_command" 00064 00068 #define ROBOT_LIGHTS_COMMAND_FMT (char*)"{double,int,int,int,int,int,string}" 00069 00074 typedef struct 00075 { 00076 double timestamp; 00077 int vert_sign; 00078 char* host; 00079 } robot_vert_sign_command_message; 00080 00084 #define ROBOT_VERT_SIGN_COMMAND_NAME (char*)"robot_vert_sign_command" 00085 00089 #define ROBOT_VERT_SIGN_COMMAND_FMT (char*)"{double,int,string}" 00090 00094 typedef struct { 00095 double timestamp; 00096 double brake; 00097 double dir; 00098 double speed; 00099 double x; 00100 double y; 00101 double orientation; 00102 double distance_traveled; 00103 int turnright; 00104 int turnleft; 00105 int headlights; 00106 int taillights; 00107 int reverselights; 00108 int cross_sensor; 00109 int vert_sign; 00110 int errors; 00111 char *host; 00112 } robot_status_message; 00113 00117 #define ROBOT_STATUS_NAME (char*)"robot_status" 00118 00122 #define ROBOT_STATUS_FMT (char*)"{double,double,double,double,double,double,double,double,int,int,int,int,int,int,int,int,string}" 00123 00127 typedef struct { 00128 double timestamp; 00129 int toggle; 00130 char *host; 00131 } robot_brake_toggle_message; 00132 00136 #define ROBOT_BRAKE_TOGGLE_NAME (char*)"robot_brake_toggle_status" 00137 00141 #define ROBOT_BRAKE_TOGGLE_FMT (char*)"{double,int,string}" 00142 00143 00144 #endif 00145