|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Constraint data for joint-to-joint orientation error between two joints. More...
#include <joint_to_joint_orientation_error_function.h>
Public Member Functions | |
| template<typename T2> | |
| JointToJointOrientationDataT< T2 > | cast () const |
Public Attributes | |
| size_t | sourceJoint = kInvalidIndex |
| Index of the source joint (the joint whose orientation we want to constrain). | |
| size_t | referenceJoint = kInvalidIndex |
| Index of the reference joint (the joint whose coordinate frame we use). | |
| Eigen::Quaternion< T > | target = Eigen::Quaternion<T>::Identity() |
| Target relative orientation as a quaternion (R_ref^T * R_src should match this). | |
| T | weight = T(1) |
| Weight for this constraint. | |
| std::string | name = {} |
| Name of the constraint (for debugging). | |
Constraint data for joint-to-joint orientation error between two joints.
This constraint measures the orientation of a source joint relative to a reference joint, and compares it to a target orientation (expressed as a quaternion in the reference joint's coordinate frame).
Definition at line 25 of file joint_to_joint_orientation_error_function.h.
|
inline |
Definition at line 42 of file joint_to_joint_orientation_error_function.h.
Referenced by momentum::JointToJointOrientationDataT< float >::cast().
| std::string momentum::JointToJointOrientationDataT< T >::name = {} |
Name of the constraint (for debugging).
Definition at line 39 of file joint_to_joint_orientation_error_function.h.
Referenced by momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), and momentum::createGloveOrientationConstraintData().
| size_t momentum::JointToJointOrientationDataT< T >::referenceJoint = kInvalidIndex |
Index of the reference joint (the joint whose coordinate frame we use).
Definition at line 30 of file joint_to_joint_orientation_error_function.h.
Referenced by momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), and momentum::createGloveOrientationConstraintData().
| size_t momentum::JointToJointOrientationDataT< T >::sourceJoint = kInvalidIndex |
Index of the source joint (the joint whose orientation we want to constrain).
Definition at line 27 of file joint_to_joint_orientation_error_function.h.
Referenced by momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), and momentum::createGloveOrientationConstraintData().
| Eigen::Quaternion<T> momentum::JointToJointOrientationDataT< T >::target = Eigen::Quaternion<T>::Identity() |
Target relative orientation as a quaternion (R_ref^T * R_src should match this).
Definition at line 33 of file joint_to_joint_orientation_error_function.h.
Referenced by momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), and momentum::createGloveOrientationConstraintData().
| T momentum::JointToJointOrientationDataT< T >::weight = T(1) |
Weight for this constraint.
Definition at line 36 of file joint_to_joint_orientation_error_function.h.
Referenced by momentum::JointToJointOrientationErrorFunctionT< T >::addConstraint(), and momentum::createGloveOrientationConstraintData().