Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::LocatorState Struct Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ LocatorState() [1/2]

momentum::LocatorState::LocatorState ( )
defaultnoexcept

Referenced by LocatorState().

◆ LocatorState() [2/2]

momentum::LocatorState::LocatorState ( const SkeletonState & skeletonState,
const LocatorList & referenceLocators )
inlinenoexcept

Creates a locator state and immediately updates positions based on the given skeleton state.

Parameters
skeletonStateCurrent pose of the skeleton
referenceLocatorsList of locators to track

Definition at line 31 of file locator_state.h.

References LocatorState(), and update().

Member Function Documentation

◆ update()

void momentum::LocatorState::update ( const SkeletonState & skeletonState,
const LocatorList & referenceLocators )
noexcept

Updates the world positions of all locators based on the current skeleton pose.

Parameters
skeletonStateCurrent pose of the skeleton
referenceLocatorsList 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().

Member Data Documentation

◆ position

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().


The documentation for this struct was generated from the following files: