Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
RemoteState.hGo to the documentation of this file.00001 #ifndef REMOTESTATE_H_ 00002 #define REMOTESTATE_H_ 00003 00004 #include "Shared/RobotInfo.h" 00005 #include <vector> 00006 00007 class RemoteRouter; 00008 00009 /*! This class represents remote state information recieved from a 00010 * remote dog, and can be treated like a WorldState object */ 00011 class RemoteState { 00012 public: 00013 RemoteState(const RemoteRouter *p); 00014 virtual ~RemoteState(); 00015 float outputs[NumOutputs]; 00016 float buttons[NumButtons]; 00017 float sensors[NumSensors]; 00018 00019 void update(char *data); 00020 00021 enum StateType { 00022 OutputState, 00023 ButtonState, 00024 SensorState, 00025 }; 00026 00027 static const int sizes[]; 00028 00029 private: 00030 const RemoteRouter *parent; 00031 00032 00033 RemoteState(RemoteState&); 00034 RemoteState &operator=(const RemoteState&); 00035 }; 00036 00037 #endif /* REMOTESTATE_H_ */ |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:54:55 2007 by Doxygen 1.5.4 |