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

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).

Detailed Description

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

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.

Member Function Documentation

◆ cast()

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

Member Data Documentation

◆ name

template<typename T>
std::string momentum::JointToJointOrientationDataT< T >::name = {}

◆ referenceJoint

◆ sourceJoint

◆ target

template<typename T>
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().

◆ weight


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