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

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

Detailed Description

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

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.

Member Function Documentation

◆ cast()

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

Definition at line 46 of file joint_to_joint_position_error_function.h.

References cast().

Referenced by cast().

Member Data Documentation

◆ name

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

◆ referenceJoint

template<typename T>
size_t momentum::JointToJointPositionDataT< T >::referenceJoint = kInvalidIndex

◆ referenceOffset

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

◆ sourceJoint

template<typename T>
size_t momentum::JointToJointPositionDataT< T >::sourceJoint = kInvalidIndex

◆ sourceOffset

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

◆ target

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

◆ weight


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