| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef TRACEPOINTSTATION_H
- #define TRACEPOINTSTATION_H
- namespace iv {
- struct Station
- {
- int index;
- GPS_INS station_location;
- int map_index;
- };
- class TracePoint
- {
- public:
- double x = 0, y = 0, speed=0;
- int v1 = 0, v2 = 0;
- int roadMode = 0;
- TracePoint()
- {
- x = y = v1 = 0;
- }
- TracePoint(double _x, double _y)
- {
- x = _x; y = _y;
- }
- };
- class TrafficLight
- {
- public:
- int leftColor = 0, rightColor = 0, straightColor=0, uturnColor=0;
- int leftTime=0, rightTime=0 ,straightTime=0, uturnTime=0;
- TrafficLight()
- {
- leftColor = 0, rightColor = 0, straightColor=0, uturnColor=0;
- leftTime=0, rightTime=0 ,straightTime=0, uturnTime=0;
- }
- };
- class StationCmd
- {
- public:
- bool received;
- uint32_t carID,carMode,emergencyStop,stationStop;
- bool has_carID,has_carMode,has_emergencyStop,has_stationStop,mode_manual_drive;
- uint32_t stationID[20];
- GPS_INS stationGps[20];
- uint32_t stationTotalNum;
- StationCmd()
- {
- received=false;
- has_carID=false;
- has_carMode=false;
- has_emergencyStop=false;
- has_stationStop=false;
- mode_manual_drive=false;
- carID=0;
- carMode=0;
- emergencyStop=0;
- stationStop=0;
- stationTotalNum=0;
- }
- };
- }
- #endif // TRACEPOINTSTATION_H
|