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

Constraint data on 3x3 rotation represented in quaternions. More...

#include <orientation_error_function.h>

Inheritance diagram for momentum::OrientationDataT< T >:

Public Member Functions

 OrientationDataT (const Eigen::Quaternion< T > &inOffset, const Eigen::Quaternion< T > &inTarget, size_t pIndex, float w, const std::string &n="")
 param[in] inOffset: input rotation offset in the parent space param[in] inTarget: input target rotation in global space param[in] pIndex: joint index of the parent joint param[in] w: weight param[in] n: name of this constraint
Public Member Functions inherited from momentum::ConstraintData
 ConstraintData (size_t pIndex, float w, const std::string &n="")

Public Attributes

Eigen::Quaternion< T > offset
 Rotation offset in the parent space.
Eigen::Quaternion< T > target
 Target rotation in global space.
Public Attributes inherited from momentum::ConstraintData
size_t parent = kInvalidIndex
 Parent joint index this constraint is under.
float weight = 0.0f
 Weight of the constraint.
std::string name = {}
 Name of the constraint.

Detailed Description

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

Constraint data on 3x3 rotation represented in quaternions.

Definition at line 16 of file orientation_error_function.h.

Constructor & Destructor Documentation

◆ OrientationDataT()

template<typename T>
momentum::OrientationDataT< T >::OrientationDataT ( const Eigen::Quaternion< T > & inOffset,
const Eigen::Quaternion< T > & inTarget,
size_t pIndex,
float w,
const std::string & n = "" )
inlineexplicit

param[in] inOffset: input rotation offset in the parent space param[in] inTarget: input target rotation in global space param[in] pIndex: joint index of the parent joint param[in] w: weight param[in] n: name of this constraint

Definition at line 27 of file orientation_error_function.h.

Member Data Documentation

◆ offset

template<typename T>
Eigen::Quaternion<T> momentum::OrientationDataT< T >::offset

◆ target

template<typename T>
Eigen::Quaternion<T> momentum::OrientationDataT< T >::target

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