Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::PositionConstraintT< T > Struct Template Reference

#include <fully_differentiable_position_error_function.h>

Public Member Functions

 PositionConstraintT (const Vector3< T > &offset, const Vector3< T > &target, size_t parent, float w, const std::string &n="")

Public Attributes

Vector3< T > offset
 Positional offset in the parent joint space.
Vector3< T > target
 Target position.
size_t parent
 Parent joint index this constraint is under.
float weight
 Weight of the constraint.
std::string name
 Name of the constraint.

Detailed Description

template<typename T>
struct momentum::PositionConstraintT< T >

Definition at line 19 of file fully_differentiable_position_error_function.h.

Constructor & Destructor Documentation

◆ PositionConstraintT()

template<typename T>
momentum::PositionConstraintT< T >::PositionConstraintT ( const Vector3< T > & offset,
const Vector3< T > & target,
size_t parent,
float w,
const std::string & n = "" )
inlineexplicit

Member Data Documentation

◆ name

template<typename T>
std::string momentum::PositionConstraintT< T >::name

Name of the constraint.

Definition at line 24 of file fully_differentiable_position_error_function.h.

◆ offset

template<typename T>
Vector3<T> momentum::PositionConstraintT< T >::offset

Positional offset in the parent joint space.

Definition at line 20 of file fully_differentiable_position_error_function.h.

Referenced by momentum::PositionConstraintStateT< T >::update().

◆ parent

template<typename T>
size_t momentum::PositionConstraintT< T >::parent

Parent joint index this constraint is under.

Definition at line 22 of file fully_differentiable_position_error_function.h.

Referenced by momentum::PositionConstraintStateT< T >::update().

◆ target

template<typename T>
Vector3<T> momentum::PositionConstraintT< T >::target

◆ weight


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