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

Base structure of constraint data for joint-based error functions. More...

#include <error_function_types.h>

Inheritance diagram for momentum::ConstraintData:

Public Member Functions

 ConstraintData (size_t pIndex, float w, const std::string &n="")

Public Attributes

size_t parent = kInvalidIndex
 Parent joint index this constraint is under.
float weight = 0.0f
 Weight of the constraint.
std::string name = {}
 Name of the constraint.

Detailed Description

Base structure of constraint data for joint-based error functions.

Provides the common fields shared by all constraint types: the parent joint index, constraint weight, and an optional name for debugging.

Definition at line 34 of file error_function_types.h.

Constructor & Destructor Documentation

◆ ConstraintData()

momentum::ConstraintData::ConstraintData ( size_t pIndex,
float w,
const std::string & n = "" )
inline

Member Data Documentation

◆ name

std::string momentum::ConstraintData::name = {}

Name of the constraint.

Definition at line 40 of file error_function_types.h.

Referenced by ConstraintData().

◆ parent

size_t momentum::ConstraintData::parent = kInvalidIndex

Parent joint index this constraint is under.

Definition at line 36 of file error_function_types.h.

Referenced by ConstraintData().

◆ weight

float momentum::ConstraintData::weight = 0.0f

Weight of the constraint.

Definition at line 38 of file error_function_types.h.

Referenced by ConstraintData().


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