MTN.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2002 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
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

Generated on Sun Dec 2 23:04:29 2007 for openSDK by  doxygen 1.3.9.1