|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Tracks the current world positions of locators in a skeleton. More...
#include <locator_state.h>
Public Member Functions | |
| LocatorState () noexcept=default | |
| LocatorState (const SkeletonState &skeletonState, const LocatorList &referenceLocators) noexcept | |
| Creates a locator state and immediately updates positions based on the given skeleton state. | |
| void | update (const SkeletonState &skeletonState, const LocatorList &referenceLocators) noexcept |
| Updates the world positions of all locators based on the current skeleton pose. | |
Public Attributes | |
| std::vector< Vector3f > | position |
| World-space positions of all locators, updated when the skeleton moves. | |
Tracks the current world positions of locators in a skeleton.
This class maintains the transformed positions of locators based on the current state of the skeleton they're attached to.
Definition at line 20 of file locator_state.h.
|
defaultnoexcept |
Referenced by LocatorState().
|
inlinenoexcept |
Creates a locator state and immediately updates positions based on the given skeleton state.
| skeletonState | Current pose of the skeleton |
| referenceLocators | List of locators to track |
Definition at line 31 of file locator_state.h.
References LocatorState(), and update().
|
noexcept |
Updates the world positions of all locators based on the current skeleton pose.
| skeletonState | Current pose of the skeleton |
| referenceLocators | List of locators to update positions for |
Definition at line 14 of file locator_state.cpp.
References momentum::Locator::offset, momentum::Locator::parent, and position.
Referenced by LocatorState().
| std::vector<Vector3f> momentum::LocatorState::position |
World-space positions of all locators, updated when the skeleton moves.
Definition at line 22 of file locator_state.h.
Referenced by momentum::logLocators(), momentum::logMarkerLocatorCorrespondence(), momentum::saveLocators(), and update().