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

Constraint that enforces a distance relationship between two points attached to different joints. More...

#include <joint_to_joint_distance_error_function.h>

Public Member Functions

template<typename T2>
JointToJointDistanceConstraintT< T2 > cast () const

Public Attributes

size_t joint1 = kInvalidIndex
 Index of the first joint.
Vector3< T > offset1 = Vector3<T>::Zero()
 Offset from joint1 in the local coordinate system of joint1.
size_t joint2 = kInvalidIndex
 Index of the second joint.
Vector3< T > offset2 = Vector3<T>::Zero()
 Offset from joint2 in the local coordinate system of joint2.
T targetDistance = T(0)
 Target distance between the two points (in world space).
T weight = T(1)
 Weight for this constraint.

Detailed Description

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

Constraint that enforces a distance relationship between two points attached to different joints.

Each point is specified by a joint index and an offset in the local coordinate system of that joint.

Definition at line 22 of file joint_to_joint_distance_error_function.h.

Member Function Documentation

◆ cast()

template<typename T>
template<typename T2>
JointToJointDistanceConstraintT< T2 > momentum::JointToJointDistanceConstraintT< T >::cast ( ) const
inline

Definition at line 42 of file joint_to_joint_distance_error_function.h.

References cast().

Referenced by cast().

Member Data Documentation

◆ joint1

template<typename T>
size_t momentum::JointToJointDistanceConstraintT< T >::joint1 = kInvalidIndex

Index of the first joint.

Definition at line 24 of file joint_to_joint_distance_error_function.h.

◆ joint2

template<typename T>
size_t momentum::JointToJointDistanceConstraintT< T >::joint2 = kInvalidIndex

Index of the second joint.

Definition at line 30 of file joint_to_joint_distance_error_function.h.

◆ offset1

template<typename T>
Vector3<T> momentum::JointToJointDistanceConstraintT< T >::offset1 = Vector3<T>::Zero()

Offset from joint1 in the local coordinate system of joint1.

Definition at line 27 of file joint_to_joint_distance_error_function.h.

◆ offset2

template<typename T>
Vector3<T> momentum::JointToJointDistanceConstraintT< T >::offset2 = Vector3<T>::Zero()

Offset from joint2 in the local coordinate system of joint2.

Definition at line 33 of file joint_to_joint_distance_error_function.h.

◆ targetDistance

template<typename T>
T momentum::JointToJointDistanceConstraintT< T >::targetDistance = T(0)

Target distance between the two points (in world space).

Definition at line 36 of file joint_to_joint_distance_error_function.h.

◆ weight

template<typename T>
T momentum::JointToJointDistanceConstraintT< T >::weight = T(1)

Weight for this constraint.

Definition at line 39 of file joint_to_joint_distance_error_function.h.


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