|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
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. | |
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.
|
inline |
Definition at line 42 of file joint_to_joint_distance_error_function.h.
References cast().
Referenced by cast().
| 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.
| 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.
| 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.
| 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.
| 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.
| T momentum::JointToJointDistanceConstraintT< T >::weight = T(1) |
Weight for this constraint.
Definition at line 39 of file joint_to_joint_distance_error_function.h.