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

Configuration for glove constraints. More...

#include <glove_utils.h>

Public Attributes

float positionWeight = 1.0f
 Weight for position constraints between glove and finger joints.
float orientationWeight = 1.0f
 Weight for orientation constraints between glove and finger joints.
std::array< std::string, 2 > wristJointNames = {"l_wrist", "r_wrist"}
 Names of the left and right wrist joints in the skeleton.

Detailed Description

Configuration for glove constraints.

Controls how glove data is integrated into the solver, including constraint weights and which wrist joints to attach glove bones to.

Definition at line 55 of file glove_utils.h.

Member Data Documentation

◆ orientationWeight

float momentum::GloveConfig::orientationWeight = 1.0f

Weight for orientation constraints between glove and finger joints.

Scaled internally by OrientationErrorFunction::kLegacyWeight for consistency with marker constraint weighting.

Definition at line 64 of file glove_utils.h.

Referenced by momentum::setupGloveErrorFunctions().

◆ positionWeight

float momentum::GloveConfig::positionWeight = 1.0f

Weight for position constraints between glove and finger joints.

Scaled internally by PositionErrorFunction::kLegacyWeight for consistency with marker constraint weighting.

Definition at line 59 of file glove_utils.h.

Referenced by momentum::setupGloveErrorFunctions().

◆ wristJointNames

std::array<std::string, 2> momentum::GloveConfig::wristJointNames = {"l_wrist", "r_wrist"}

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