33 #ifndef DART_UTILS_C3D_HPP_
34 #define DART_UTILS_C3D_HPP_
38 #include <Eigen/Dense>
46 #define C3D_REC_SIZE 512
84 bool loadC3DFile(
const char* _fileName, std::vector<std::vector<Eigen::Vector3d>>& _pointData,
85 int* _nFrame,
int* _nMarker,
double* _freq );
86 bool saveC3DFile(
const char* _fileName, std::vector<std::vector<Eigen::Vector3d>>& _pointData,
87 int _nFrame,
int _nMarker,
double _freq );
#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:60
bool loadC3DFile(const char *_fileName, std::vector< std::vector< Eigen::Vector3d >> &_pointData, int *_nFrame, int *_nMarker, double *_freq)
Definition: C3D.cpp:71
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:178
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:63
unsigned char cam_byte
Definition: C3D.hpp:72
short z
Definition: C3D.hpp:71
unsigned char residual
Definition: C3D.hpp:73
short y
Definition: C3D.hpp:71
short x
Definition: C3D.hpp:71
float residual
Definition: C3D.hpp:78
float y
Definition: C3D.hpp:77
float x
Definition: C3D.hpp:77
float z
Definition: C3D.hpp:77
short stuff[244]
Definition: C3D.hpp:60
short start_frame
Definition: C3D.hpp:53
short int_gap
Definition: C3D.hpp:55
float freq
Definition: C3D.hpp:59
short pnt_cnt
Definition: C3D.hpp:51
short end_frame
Definition: C3D.hpp:54
short a_channels
Definition: C3D.hpp:52
unsigned char key
Definition: C3D.hpp:50
unsigned char prec_start
Definition: C3D.hpp:49
short a_frames
Definition: C3D.hpp:58
float scale
Definition: C3D.hpp:56
short rec_start
Definition: C3D.hpp:57
unsigned char reserved[2]
Definition: C3D.hpp:64
char stuff[512 -4]
Definition: C3D.hpp:67
unsigned char pblocks
Definition: C3D.hpp:65
unsigned char ftype
Definition: C3D.hpp:66