|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Constraint data for joint-to-joint position error between two joints. More...
#include <joint_to_joint_position_error_function.h>
Public Member Functions | |
| template<typename T2> | |
| JointToJointPositionDataT< T2 > | cast () const |
Public Attributes | |
| size_t | sourceJoint = kInvalidIndex |
| Index of the source joint (the joint whose position we want to constrain). | |
| Vector3< T > | sourceOffset = Vector3<T>::Zero() |
| Offset from sourceJoint in the local coordinate system of sourceJoint. | |
| size_t | referenceJoint = kInvalidIndex |
| Index of the reference joint (the joint whose coordinate frame we use). | |
| Vector3< T > | referenceOffset = Vector3<T>::Zero() |
| Offset from referenceJoint in the local coordinate system of referenceJoint. | |
| Vector3< T > | target = Vector3<T>::Zero() |
| Target position in the reference joint's coordinate frame. | |
| T | weight = T(1) |
| Weight for this constraint. | |
| std::string | name = {} |
| Name of the constraint (for debugging). | |
Constraint data for joint-to-joint position error between two joints.
This constraint measures the position of a point attached to the source joint in the coordinate frame of the reference joint, and compares it to a target position (also expressed in the reference joint's coordinate frame).
Definition at line 22 of file joint_to_joint_position_error_function.h.
|
inline |
Definition at line 46 of file joint_to_joint_position_error_function.h.
References cast().
Referenced by cast().
| std::string momentum::JointToJointPositionDataT< T >::name = {} |
Name of the constraint (for debugging).
Definition at line 43 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().
| size_t momentum::JointToJointPositionDataT< T >::referenceJoint = kInvalidIndex |
Index of the reference joint (the joint whose coordinate frame we use).
Definition at line 30 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().
| Vector3<T> momentum::JointToJointPositionDataT< T >::referenceOffset = Vector3<T>::Zero() |
Offset from referenceJoint in the local coordinate system of referenceJoint.
This defines the origin of the reference frame.
Definition at line 34 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().
| size_t momentum::JointToJointPositionDataT< T >::sourceJoint = kInvalidIndex |
Index of the source joint (the joint whose position we want to constrain).
Definition at line 24 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().
| Vector3<T> momentum::JointToJointPositionDataT< T >::sourceOffset = Vector3<T>::Zero() |
Offset from sourceJoint in the local coordinate system of sourceJoint.
Definition at line 27 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().
| Vector3<T> momentum::JointToJointPositionDataT< T >::target = Vector3<T>::Zero() |
Target position in the reference joint's coordinate frame.
Definition at line 37 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().
| T momentum::JointToJointPositionDataT< T >::weight = T(1) |
Weight for this constraint.
Definition at line 40 of file joint_to_joint_position_error_function.h.
Referenced by momentum::JointToJointPositionErrorFunctionT< T >::addConstraint(), and momentum::createGlovePositionConstraintData().