Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
c3d_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 <span>
14
15namespace momentum {
16
27[[nodiscard]] std::vector<MarkerSequence> loadC3d(
28 const std::string& filename,
30 std::span<const std::string> validMarkerNames = {});
31
32#ifdef MOMENTUM_WITH_EZC3D_ISTREAM
41[[nodiscard]] std::vector<MarkerSequence> loadC3d(
42 std::span<const std::byte> bytes,
44 std::span<const std::string> validMarkerNames = {});
45#endif
46
47} // namespace momentum
std::vector< MarkerSequence > loadC3d(const std::string &filename, UpVector up, std::span< const std::string > validMarkerNames)
Loads all the subjects from a C3D file into a vector of MarkerSequences.
Definition c3d_io.cpp:292
UpVector
This enumeration is used to define the primary up vector directions for various coordinate systems an...
@ Y
Y-axis up vector.