00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef MTN_h_DEFINED
00013 #define MTN_h_DEFINED
00014
00015 #include <OPENR/ODataFormats.h>
00016 #include "MTNFile.h"
00017
00018 class MTN {
00019 public:
00020 MTN();
00021 ~MTN() {}
00022
00023 void Set(MTNFile* file);
00024 char* GetName();
00025 char* GetRobotDesign();
00026
00027 void First();
00028 bool More();
00029 void Next(int numFrames);
00030 int InterpolateCommandVectorData(OCommandVectorData* commandVec,
00031 int maxNumFrames);
00032
00033 private:
00034 int InterpolateCommandData(int jointIndex,
00035 OCommandData* data,
00036 int valueIndex,
00037 int keyFrame, int frame, int maxNumFrames);
00038
00039 MTNFile* mtnfile;
00040 int currentKeyFrame;
00041 int currentFrame;
00042 };
00043
00044 #endif // MTN_h_DEFINED