00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00058 #ifndef _ROBOT_PARAMS_H
00059 #define _ROBOT_PARAMS_H
00060 
00061 
00062 void initialize_robot_params(void);
00063 
00064 #define PLAYER_NUM_ROBOT_TYPES 28
00065 
00066 
00067 typedef struct
00068 {
00069   double x;
00070   double y;
00071   double th;
00072 } sonar_pose_t;
00073 
00074 
00075 typedef struct
00076 {
00077   double AngleConvFactor; 
00078   char* Class;
00079   double DiffConvFactor; 
00080   double DistConvFactor; 
00081   int FrontBumpers; 
00082   double GyroScaler; 
00083   int HasMoveCommand; 
00084   int Holonomic; 
00085   int IRNum; 
00086   int IRUnit; 
00087   int LaserFlipped; 
00088   char* LaserIgnore;
00089   char* LaserPort;
00090   int LaserPossessed; 
00091   int LaserPowerControlled; 
00092   int LaserTh; 
00093   int LaserX; 
00094   int LaserY; 
00095   int MaxRVelocity; 
00096   int MaxVelocity; 
00097   int NewTableSensingIR; 
00098   int NumFrontBumpers; 
00099   int NumRearBumpers; 
00100   double RangeConvFactor; 
00101   int RearBumpers; 
00102   int RequestEncoderPackets; 
00103   int RequestIOPackets; 
00104   int RobotDiagonal; 
00105   int RobotLength; 
00106   int RobotRadius; 
00107   int RobotWidth; 
00108   int RotAccel; 
00109   int RotDecel; 
00110   int RotVelMax; 
00111   int SettableAccsDecs; 
00112   int SettableVelMaxes; 
00113   int SonarNum; 
00114   char* Subclass;
00115   int SwitchToBaudRate; 
00116   int TableSensingIR; 
00117   int TransAccel; 
00118   int TransDecel; 
00119   int TransVelMax; 
00120   int Vel2Divisor; 
00121   double VelConvFactor; 
00122   sonar_pose_t sonar_pose[32];
00123 } RobotParams_t;
00124 
00125 
00126 extern RobotParams_t PlayerRobotParams[];
00127 
00128 
00129 #endif