33 #ifndef DART_UTILS_C3D_HPP_
34 #define DART_UTILS_C3D_HPP_
38 #include <Eigen/Dense>
46 #define C3D_REC_SIZE 512
89 const char* _fileName,
90 std::vector<std::vector<Eigen::Vector3d>>& _pointData,
95 const char* _fileName,
96 std::vector<std::vector<Eigen::Vector3d>>& _pointData,
#define C3D_REC_SIZE
Definition: C3D.hpp:46
struct dart::utils::c3d_head_t c3d_head
void convertFloatToDec(float _f, char *_bytes)
Definition: C3D.cpp:61
bool loadC3DFile(const char *_fileName, std::vector< std::vector< Eigen::Vector3d >> &_pointData, int *_nFrame, int *_nMarker, double *_freq)
Definition: C3D.cpp:72
struct dart::utils::c3d_frame_t c3d_frame
bool saveC3DFile(const char *_fileName, std::vector< std::vector< Eigen::Vector3d >> &_pointData, int _nFrame, int _nMarker, double _freq)
Definition: C3D.cpp:198
struct dart::utils::c3d_frameSI_t c3d_frameSI
struct dart::utils::c3d_param_t c3d_param
float convertDecToFloat(char _bytes[4])
Definition: C3D.cpp:45
Definition: BulletCollisionDetector.cpp:65
unsigned char cam_byte
Definition: C3D.hpp:75
short z
Definition: C3D.hpp:74
unsigned char residual
Definition: C3D.hpp:76
short y
Definition: C3D.hpp:74
short x
Definition: C3D.hpp:74
float residual
Definition: C3D.hpp:82
float y
Definition: C3D.hpp:81
float x
Definition: C3D.hpp:81
float z
Definition: C3D.hpp:81
short stuff[244]
Definition: C3D.hpp:61
short start_frame
Definition: C3D.hpp:54
short int_gap
Definition: C3D.hpp:56
float freq
Definition: C3D.hpp:60
short pnt_cnt
Definition: C3D.hpp:52
short end_frame
Definition: C3D.hpp:55
short a_channels
Definition: C3D.hpp:53
unsigned char key
Definition: C3D.hpp:51
unsigned char prec_start
Definition: C3D.hpp:50
short a_frames
Definition: C3D.hpp:59
float scale
Definition: C3D.hpp:57
short rec_start
Definition: C3D.hpp:58
unsigned char reserved[2]
Definition: C3D.hpp:66
char stuff[512 - 4]
Definition: C3D.hpp:69
unsigned char pblocks
Definition: C3D.hpp:67
unsigned char ftype
Definition: C3D.hpp:68