Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
marker.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/math/types.h>
11
12#include <string>
13#include <vector>
14
15namespace momentum {
16
18struct Marker {
20 std::string name = "Undefined";
21
23 Vector3d pos = {0.0, 0.0, 0.0};
24
26 bool occluded = true;
27
30 float confidence = 1.0;
31};
32
39 std::string name;
40
42 std::vector<std::vector<Marker>> frames;
43
45 float fps = 30.0f;
46};
47
48} // namespace momentum
Vector3< double > Vector3d
Definition types.h:261
All frames from a single motion capture sequence for one subject (actor).
Definition marker.h:37
float fps
Frame rate of the capture, in frames per second.
Definition marker.h:45
std::vector< std::vector< Marker > > frames
All marker observations across the sequence. Layout: [numFrames][numMarkers].
Definition marker.h:42
std::string name
Identifier for the actor or subject this sequence belongs to.
Definition marker.h:39
A single motion capture marker observation (position, occlusion, confidence).
Definition marker.h:18
Vector3d pos
The 3D position of the marker, in centimeters.
Definition marker.h:23
bool occluded
True if the marker is occluded in this frame, false if visible.
Definition marker.h:26
float confidence
Trust weight for this observation (e.g.
Definition marker.h:30
std::string name
The name of the marker.
Definition marker.h:20