33 #ifndef DART_UTILS_FILEINFODOF_HPP_
34 #define DART_UTILS_FILEINFODOF_HPP_
38 #include <Eigen/Dense>
59 bool loadFile(
const char* _fileName);
64 const char* _fileName,
67 double _sampleRate = 1.0);
70 void addDof(
const Eigen::VectorXd& _dofs);
73 double getDofAt(std::size_t _frame, std::size_t _id)
const;
class Skeleton
Definition: Skeleton.hpp:59
class FileInfoDof
Definition: FileInfoDof.hpp:50
bool saveFile(const char *_fileName, std::size_t _start, std::size_t _end, double _sampleRate=1.0)
Save file.
Definition: FileInfoDof.cpp:115
FileInfoDof(dynamics::Skeleton *_skel, double _fps=120.0)
Constructor.
Definition: FileInfoDof.cpp:47
int getNumFrames() const
Get number of frames.
Definition: FileInfoDof.cpp:197
dynamics::Skeleton * mSkel
Model associated with.
Definition: FileInfoDof.hpp:92
std::size_t mNumFrames
Number of frames.
Definition: FileInfoDof.hpp:98
void addDof(const Eigen::VectorXd &_dofs)
Add Dof.
Definition: FileInfoDof.cpp:165
double getDofAt(std::size_t _frame, std::size_t _id) const
Get Dof.
Definition: FileInfoDof.cpp:172
std::vector< Eigen::VectorXd > mDofs
Dof data [frame][dofIndex].
Definition: FileInfoDof.hpp:104
void setFPS(double _fps)
Set frames per second.
Definition: FileInfoDof.cpp:185
double mFPS
Frame rate.
Definition: FileInfoDof.hpp:95
Eigen::VectorXd getPoseAtFrame(int _frame) const
Get pose at frame.
Definition: FileInfoDof.cpp:179
double getFPS() const
Get frames per second.
Definition: FileInfoDof.cpp:191
bool loadFile(const char *_fileName)
Load file.
Definition: FileInfoDof.cpp:61
dynamics::Skeleton * getSkel() const
Get skeleton associated with.
Definition: FileInfoDof.cpp:203
virtual ~FileInfoDof()
Destructor.
Definition: FileInfoDof.cpp:54
char mFileName[256]
File name.
Definition: FileInfoDof.hpp:101
Definition: BulletCollisionDetector.cpp:65