33 #ifndef DART_UTILS_FILEINFOC3D_HPP_
34 #define DART_UTILS_FILEINFOC3D_HPP_
37 #include <Eigen/Dense>
54 inline Eigen::Vector3d
getDataAt(
int _frame,
int _idx)
const {
return mData.at(_frame).at(_idx); }
55 inline void addData(
const std::vector<Eigen::Vector3d>& _data) {
mData.push_back(_data); }
58 virtual bool saveFile(
const char*,
int _start,
int _end,
double _sampleRate = 1);
63 std::vector<std::vector<Eigen::Vector3d>>
mData;
Definition: FileInfoC3D.hpp:44
int mNumMarkers
Definition: FileInfoC3D.hpp:61
virtual ~FileInfoC3D()
Definition: FileInfoC3D.hpp:48
char mFileName[256]
Definition: FileInfoC3D.hpp:65
FileInfoC3D()
Definition: FileInfoC3D.cpp:41
double mFPS
Definition: FileInfoC3D.hpp:64
virtual bool saveFile(const char *, int _start, int _end, double _sampleRate=1)
Note: down sampling not implemented yet.
Definition: FileInfoC3D.cpp:59
std::vector< std::vector< Eigen::Vector3d > > mData
Definition: FileInfoC3D.hpp:63
virtual bool loadFile(const char *)
Definition: FileInfoC3D.cpp:46
int mNumFrames
Definition: FileInfoC3D.hpp:62
int getNumMarkers() const
Definition: FileInfoC3D.hpp:50
double getFPS() const
Definition: FileInfoC3D.hpp:52
void addData(const std::vector< Eigen::Vector3d > &_data)
Definition: FileInfoC3D.hpp:55
Eigen::Vector3d getDataAt(int _frame, int _idx) const
Note: not checking index range.
Definition: FileInfoC3D.hpp:54
int getNumFrames() const
Definition: FileInfoC3D.hpp:51
Definition: BulletCollisionDetector.cpp:63