Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

RemoteState.h

Go to the documentation of this file.
00001 #ifndef REMOTESTATE_H_
00002 #define REMOTESTATE_H_
00003 
00004 #include "Shared/RobotInfo.h"
00005 #include <vector>
00006 #include <iostream>
00007 
00008 class RemoteRouter;
00009 
00010 /*! This class represents remote state information recieved from a
00011  *  remote dog, and can be treated like a WorldState object */
00012 class RemoteState {
00013     public:
00014     RemoteState(const RemoteRouter *p);
00015     virtual ~RemoteState();
00016     float outputs[NumOutputs];
00017   float buttons[NumButtons];
00018   float sensors[NumSensors];
00019 
00020     void update(char *data);
00021     
00022     enum StateType {
00023         OutputState,
00024     ButtonState,
00025     SensorState,
00026     };
00027 
00028     static const int sizes[];
00029     
00030     private:
00031     const RemoteRouter *parent;
00032 
00033     
00034     RemoteState(RemoteState&);
00035     RemoteState &operator=(const RemoteState&);
00036 };
00037 
00038 // no-op, just eat a pointer
00039 inline std::istream& operator>>(std::istream& s, const RemoteState*&) { void * x; s>>x; return s; }
00040 
00041 #endif /* REMOTESTATE_H_ */

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:50 2016 by Doxygen 1.6.3