simulator_messages.h

Go to the documentation of this file.
00001 /*********************************************************
00002  *
00003  * This source code is part of the Carnegie Mellon Robot
00004  * Navigation Toolkit (CARMEN)
00005  *
00006  * CARMEN Copyright (c) 2002 Michael Montemerlo, Nicholas
00007  * Roy, and Sebastian Thrun
00008  *
00009  * CARMEN is free software; you can redistribute it and/or 
00010  * modify it under the terms of the GNU General Public 
00011  * License as published by the Free Software Foundation; 
00012  * either version 2 of the License, or (at your option)
00013  * any later version.
00014  *
00015  * CARMEN is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied 
00017  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00018  * PURPOSE.  See the GNU General Public License for more 
00019  * details.
00020  *
00021  * You should have received a copy of the GNU General 
00022  * Public License along with CARMEN; if not, write to the
00023  * Free Software Foundation, Inc., 59 Temple Place, 
00024  * Suite 330, Boston, MA  02111-1307 USA
00025  *
00026  ********************************************************/
00027 
00029 // @{
00030 
00038 #ifndef SIMULATOR_MESSAGES_H
00039 #define SIMULATOR_MESSAGES_H
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 #define CARMEN_SIMULATOR_CLEAR_OBJECTS_NAME   "carmen_simulator_clear_objects"
00046 typedef carmen_default_message carmen_simulator_clear_objects_message;
00047 #define CARMEN_SIMULATOR_NEXT_TICK_NAME       "carmen_simulator_next_tick"
00048 typedef carmen_default_message carmen_simulator_next_tick_message;
00049 #define CARMEN_SIMULATOR_TRUEPOS_QUERY_NAME   "carmen_simulator_truepos_query"
00050 typedef carmen_default_message carmen_simulator_truepos_query_message;
00051 #define CARMEN_SIMULATOR_OBJECTS_QUERY_NAME   "carmen_simulator_objects_query"
00052 typedef carmen_default_message carmen_simulator_objects_query_message;
00053 
00054 typedef enum {CARMEN_SIMULATOR_RANDOM_OBJECT, CARMEN_SIMULATOR_LINE_FOLLOWER,
00055               CARMEN_SIMULATOR_OTHER_ROBOT} carmen_simulator_object_t;
00056 
00057 typedef struct {
00058   carmen_point_t pose;
00059   double timestamp;
00060   char *host;
00061 } carmen_simulator_set_truepose_message;
00062 
00063 #define CARMEN_SIMULATOR_SET_TRUEPOSE_NAME "carmen_simulator_set_truepose"
00064 #define CARMEN_SIMULATOR_SET_TRUEPOSE_FMT  "{{double,double,double},double,string}"
00065 
00066 typedef struct {
00067   carmen_point_t truepose;
00068   carmen_point_t odometrypose;
00069   double timestamp;
00070   char *host;
00071 } carmen_simulator_truepos_message;
00072 
00073 #define      CARMEN_SIMULATOR_TRUEPOS_NAME       "carmen_simulator_truepos"
00074 #define      CARMEN_SIMULATOR_TRUEPOS_FMT        "{{double,double,double},{double,double,double},double,string}"
00075 
00076 typedef struct {
00077   char *other_central;
00078   double timestamp;
00079   char *host;
00080 } carmen_simulator_connect_robots_message;
00081 
00082 #define CARMEN_SIMULATOR_CONNECT_ROBOTS_NAME "carmen_simulator_connect_robots"
00083 #define CARMEN_SIMULATOR_CONNECT_ROBOTS_FMT  "{string,double,string}"
00084 
00085 typedef struct {
00086   carmen_point_t pose;
00087   double speed;
00088   carmen_simulator_object_t type;
00089   double timestamp;
00090   char *host;
00091 } carmen_simulator_set_object_message;
00092 
00093 #define CARMEN_SIMULATOR_SET_OBJECT_NAME "carmen_simulator_set_object"
00094 #define CARMEN_SIMULATOR_SET_OBJECT_FMT  "{{double,double,double},double,int,double,string}"
00095 
00096 typedef struct {
00097   int num_objects;
00098   carmen_traj_point_t *objects_list;
00099   double timestamp;
00100   char *host;
00101 } carmen_simulator_objects_message;
00102 
00103 #define CARMEN_SIMULATOR_OBJECTS_NAME "carmen_simulator_objects"
00104 #define CARMEN_SIMULATOR_OBJECTS_FMT  "{int,<{double,double,double,double,double}:1>,double,string}"
00105 
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109 
00110 #endif
00111 
00112 
00113 // @}

Generated on Wed Apr 5 18:34:18 2006 for CARMEN by  doxygen 1.4.4