This legacy reader parses a Vicon C3D data file and creates a MarkerMotion object.
More...
#include <LegacyMotionReaderC3D.h>
|
| MarkerMotionPtr | loadC3D (const std::string filename) |
| |
| UnlabeledMarkerMotionPtr | loadUnlabeledC3D (const std::string filename) |
| |
|
|
float | convertFloat (char mem_float[4]) |
| |
|
long | getFilePositionGroup (const char *group) |
| |
|
long | getFilePositionParams (long group_pos, const char *parameters) |
| |
|
int | getNumFrames () |
| |
|
int | getNumMarkers () |
| |
|
void | Read_C3D_Header () |
| |
|
void | Read_C3D_Marker (unsigned short marker_num, std::vector< Eigen::Vector3f > &val, Eigen::VectorXf &res) |
| |
|
void | Read_C3D_Marker_Labels () |
| |
|
void | readMarkerData (MarkerMotionPtr data) |
| |
|
void | readMarkerData (unsigned short marker_num, std::vector< Eigen::Vector3f > &val, Eigen::VectorXf &res) |
| |
|
void | RPF (int *offset, char *type, char *dim) |
| |
|
bool | validate () |
| |
|
|
static float | ConvertDecToFloat (char bytes[4]) |
| |
|
static void | ConvertFloatToDec (float f, char *bytes) |
| |
|
|
std::string | filename |
| |
|
unsigned short | first_field |
| |
|
unsigned short | frames_per_field |
| |
|
std::ifstream | infile |
| |
|
std::vector< std::string > | labels |
| |
|
unsigned short | last_field |
| |
|
unsigned short | num_channels |
| |
|
unsigned short | num_markers |
| |
|
unsigned short | num_used_markers |
| |
|
unsigned char | ptype |
| |
|
float | scale_factor |
| |
|
unsigned short | start_record_num |
| |
|
float | video_rate |
| |
This legacy reader parses a Vicon C3D data file and creates a MarkerMotion object.
◆ loadC3D()
| MarkerMotionPtr MMM::LegacyMotionReaderC3D::loadC3D |
( |
const std::string |
filename | ) |
|
Opens the file and parses the content to build a MarkerMotion object.
\param filename The file to read.
- Returns
- In case of failures an empty MarkerMotionPtr is returned.
◆ loadUnlabeledC3D()
| UnlabeledMarkerMotionPtr MMM::LegacyMotionReaderC3D::loadUnlabeledC3D |
( |
const std::string |
filename | ) |
|
Opens the file and parses the content to build a UnlabeledMarkerMotion object.
- Parameters
-
| filename | The file to read. |
The documentation for this class was generated from the following files:
- /builds/sw/mmm/core/MMM/Motion/Legacy/LegacyMotionReaderC3D.h
- /builds/sw/mmm/core/MMM/Motion/Legacy/LegacyMotionReaderC3D.cpp