33 #ifndef DART_UTILS_FILEINFOC3D_HPP_
34 #define DART_UTILS_FILEINFOC3D_HPP_
37 #include <Eigen/Dense>
66 inline Eigen::Vector3d
getDataAt(
int _frame,
int _idx)
const
68 return mData.at(_frame).at(_idx);
70 inline void addData(
const std::vector<Eigen::Vector3d>& _data)
72 mData.push_back(_data);
80 double _sampleRate = 1);
85 std::vector<std::vector<Eigen::Vector3d>>
mData;
Definition: FileInfoC3D.hpp:45
int mNumMarkers
Definition: FileInfoC3D.hpp:83
virtual ~FileInfoC3D()
Definition: FileInfoC3D.hpp:49
char mFileName[256]
Definition: FileInfoC3D.hpp:87
FileInfoC3D()
Definition: FileInfoC3D.cpp:41
double mFPS
Definition: FileInfoC3D.hpp:86
virtual bool saveFile(const char *, int _start, int _end, double _sampleRate=1)
Note: down sampling not implemented yet.
Definition: FileInfoC3D.cpp:62
std::vector< std::vector< Eigen::Vector3d > > mData
Definition: FileInfoC3D.hpp:85
virtual bool loadFile(const char *)
Definition: FileInfoC3D.cpp:46
int mNumFrames
Definition: FileInfoC3D.hpp:84
int getNumMarkers() const
Definition: FileInfoC3D.hpp:53
double getFPS() const
Definition: FileInfoC3D.hpp:61
void addData(const std::vector< Eigen::Vector3d > &_data)
Definition: FileInfoC3D.hpp:70
Eigen::Vector3d getDataAt(int _frame, int _idx) const
Note: not checking index range.
Definition: FileInfoC3D.hpp:66
int getNumFrames() const
Definition: FileInfoC3D.hpp:57
Definition: BulletCollisionDetector.cpp:65