Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
trc_io.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
12
13#include <istream>
14#include <span>
15
16namespace momentum {
17
28[[nodiscard]] MarkerSequence loadTrc(const std::string& filename, UpVector up = UpVector::Y);
29
38[[nodiscard]] MarkerSequence loadTrc(std::istream& stream, UpVector up = UpVector::Y);
39
47[[nodiscard]] MarkerSequence loadTrc(std::span<const std::byte> bytes, UpVector up = UpVector::Y);
48
49} // namespace momentum
UpVector
This enumeration is used to define the primary up vector directions for various coordinate systems an...
@ Y
Y-axis up vector.
MarkerSequence loadTrc(std::istream &stream, UpVector up)
Loads marker data from a TRC input stream into a MarkerSequence.
Definition trc_io.cpp:19
All frames from a single motion capture sequence for one subject (actor).
Definition marker.h:37