Karlsruhe Institute of Technology (KIT) Logo

Master Motor Map

Whole-body human reference model and tools for unifying representations of whole-body human motion

Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
MMM::MotionReaderC3D Class Reference

This reader parses a Vicon C3D data file and creates a PrefixMarkerData object. More...

#include <MotionReaderC3D.h>

Public Member Functions

PrefixMarkerDataPtr loadC3D (const std::filesystem::path &filename)
 

Protected Member Functions

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 ()
 
std::vector< Eigen::Vector3f > Read_C3D_Marker (unsigned short marker_num)
 
std::vector< std::string > Read_C3D_Marker_Labels ()
 
std::vector< Eigen::Vector3f > readMarkerData (unsigned short marker_num)
 
void RPF (int *offset, char *type, char *dim)
 

Static Protected Member Functions

static float ConvertDecToFloat (char bytes[4])
 
static void ConvertFloatToDec (float f, char *bytes)
 

Protected Attributes

std::filesystem::path filename
 
unsigned short first_field
 
unsigned short frames_per_field
 
std::ifstream infile
 
unsigned short last_field
 
unsigned short num_channels
 
unsigned short num_markers
 
unsigned char ptype
 
float scale_factor
 
unsigned short start_record_num
 
float video_rate
 

Detailed Description

This reader parses a Vicon C3D data file and creates a PrefixMarkerData object.

Member Function Documentation

◆ loadC3D()

PrefixMarkerDataPtr MMM::MotionReaderC3D::loadC3D ( const std::filesystem::path &  filename)

Load marker data from c3d document.

Parameters
filenamePath to c3d document.

The documentation for this class was generated from the following files:
KoroiBot Logo WALK-MAN Logo Xperience Logo SecondHands Logo TimeStorm Logo I-SUPPORT Logo
PACO-PLUS Logo SFB-588 Logo SPP1527 Logo