|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Base structure of constraint data for joint-based error functions. More...
#include <error_function_types.h>
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. | |
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.
|
inline |
Definition at line 42 of file error_function_types.h.
References name, parent, and weight.
Referenced by momentum::FixedAxisDataT< float >::FixedAxisDataT(), momentum::OrientationDataT< float >::OrientationDataT(), momentum::PlaneDataT< float >::PlaneDataT(), and momentum::PositionDataT< float >::PositionDataT().
| std::string momentum::ConstraintData::name = {} |
Name of the constraint.
Definition at line 40 of file error_function_types.h.
Referenced by ConstraintData().
| 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().
| float momentum::ConstraintData::weight = 0.0f |
Weight of the constraint.
Definition at line 38 of file error_function_types.h.
Referenced by ConstraintData().