DynamicRobotState.h
Go to the documentation of this file.00001
00002 #ifndef INCLUDED_DynamicRobotState_h_
00003 #define INCLUDED_DynamicRobotState_h_
00004
00005 #include "Shared/plist.h"
00006 #include "Shared/plistSpecialty.h"
00007
00008
00009
00010
00011
00012
00013 class DynamicRobotState : public plist::Dictionary {
00014 public:
00015
00016 DynamicRobotState() : outputs(), buttons(), sensors(), torques(), framePositions(), frameOrientations() { init(); }
00017
00018 DynamicRobotState(const DynamicRobotState& drs) : outputs(drs.outputs), buttons(drs.buttons), sensors(drs.sensors), torques(drs.torques), framePositions(drs.framePositions), frameOrientations(drs.framePositions) { init(); }
00019
00020 plist::DictionaryOf<plist::Primitive<float> > outputs;
00021 plist::DictionaryOf<plist::Primitive<float> > buttons;
00022 plist::DictionaryOf<plist::Primitive<float> > sensors;
00023 plist::DictionaryOf<plist::Primitive<float> > torques;
00024
00025 plist::DictionaryOf<plist::Point> framePositions;
00026 plist::DictionaryOf<plist::Point> frameOrientations;
00027
00028 protected:
00029
00030 void init() {
00031 addEntry("Outputs",outputs);
00032 addEntry("Buttons",buttons);
00033 addEntry("Sensors",sensors);
00034 addEntry("Torques",torques);
00035 addEntry("FramePositions",framePositions);
00036 addEntry("FrameOrientations",frameOrientations);
00037 setLoadSavePolicy(FIXED,SYNC);
00038 }
00039 };
00040
00041
00042
00043
00044
00045
00046 #endif