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
10
#include <
momentum/character/marker.h
>
11
#include <
momentum/io/marker/coordinate_system.h
>
12
13
#include <istream>
14
#include <span>
15
16
namespace
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
coordinate_system.h
marker.h
momentum
Definition
aligned.h:15
momentum::UpVector
UpVector
This enumeration is used to define the primary up vector directions for various coordinate systems an...
Definition
coordinate_system.h:14
momentum::UpVector::Y
@ Y
Y-axis up vector.
Definition
coordinate_system.h:16
momentum::loadTrc
MarkerSequence loadTrc(std::istream &stream, UpVector up)
Loads marker data from a TRC input stream into a MarkerSequence.
Definition
trc_io.cpp:19
momentum::MarkerSequence
All frames from a single motion capture sequence for one subject (actor).
Definition
marker.h:37
io
marker
trc_io.h
Generated on
for Momentum by
1.15.0