Analog data and parameters are stored as a struct.
Definitions for data and parameters are from the C3D file format documentation.
Represents a parsed C3D file.
Each field contains the data from the corresponding section of the file.
The Events
struct contains the events from the C3D file header.
MarkerPoint contains both the points and residuals for a marker.
The residuals are the average distance between the marker and the reconstructed point.
Cameras is a bitfield of which cameras saw the marker.
The parameters of a C3D file are stored in a Parameters
struct.
Each group of parameters is stored in a separate struct.
The raw_parameters
field is a HashMap
of HashMap
s.
The first key is the group name, and the second key is the parameter name.
The value is a tuple of the parameter data and the description.
Common in older C3D files, this parameter section is used to store
parameters related to how the raw data was processed.
Although this section is not required, it is recommended to include
since it provides useful information about the data if any issues
need to be resolved related to collection or processing.
The STO struct contains the data for writing an STO file.
The TRC struct contains the data for writing a TRC file.