Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
marker_io.h File Reference
#include <momentum/character/marker.h>
#include <momentum/io/marker/coordinate_system.h>
#include <optional>
#include <span>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

std::vector< MarkerSequence > momentum::loadMarkers (const std::string &filename, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads all actor sequences from a marker file (c3d, trc, glb) and converts the positions to the target coordinate system.
std::optional< MarkerSequence > momentum::loadMarkersForMainSubject (const std::string &filename, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads the main subject's marker data from a marker file (c3d, trc, glb) and converts the positions to the target coordinate system.
int momentum::findMainSubjectIndex (std::span< const MarkerSequence > markerSequences)
 Finds the "main subject" from a vector of MarkerSequences.
std::vector< MarkerSequence > momentum::loadMarkers (std::span< const std::byte > bytes, const std::string &format, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads all actor sequences from an in-memory marker file buffer (c3d, trc, glb, fbx).
std::optional< MarkerSequence > momentum::loadMarkersForMainSubject (std::span< const std::byte > bytes, const std::string &format, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads the main subject's marker data from an in-memory marker file buffer.