Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
locator_state.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
13
14namespace momentum {
15
22 std::vector<Vector3f> position;
23
24 public:
25 LocatorState() noexcept = default;
26
31 LocatorState(const SkeletonState& skeletonState, const LocatorList& referenceLocators) noexcept {
32 update(skeletonState, referenceLocators);
33 }
34
39 void update(const SkeletonState& skeletonState, const LocatorList& referenceLocators) noexcept;
40};
41
42} // namespace momentum
SkeletonStateT< float > SkeletonState
Definition fwd.h:282
std::vector< Locator > LocatorList
A collection of locators attached to a skeleton.
Definition locator.h:79
LocatorState() noexcept=default
std::vector< Vector3f > position
World-space positions of all locators, updated when the skeleton moves.
void update(const SkeletonState &skeletonState, const LocatorList &referenceLocators) noexcept
Updates the world positions of all locators based on the current skeleton pose.