Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
types.h File Reference
#include <momentum/character/fwd.h>
#include <Eigen/Dense>
#include <array>
#include <string>
#include <tuple>
#include <vector>

Go to the source code of this file.

Classes

struct  momentum::EigenStrongType< Derived, EigenType >
struct  momentum::ModelParametersT< T >
 A vector of size numModelParams holding the values of all model parameters for a character. More...
struct  momentum::BlendWeightsT< T >
struct  momentum::JointParametersT< T >
 A vector describing joint parameters, of size numSkeletonJoints * kParametersPerJoint. More...
struct  momentum::CharacterParametersT< T >
 A struct that encapsulates both pose and identity parameters for a character. More...

Namespaces

namespace  momentum

Typedefs

template<typename T>
using momentum::JointVectorT = Eigen::Matrix<T, kParametersPerJoint, 1>
using momentum::JointVector = JointVectorT<float>
using momentum::ModelParameters = ModelParametersT<float>
using momentum::ModelParametersd = ModelParametersT<double>
using momentum::BlendWeights = BlendWeightsT<float>
using momentum::BlendWeightsd = BlendWeightsT<double>
using momentum::JointParameters = JointParametersT<float>
using momentum::JointParametersd = JointParametersT<double>
using momentum::JointStateListd = JointStateListT<double>
using momentum::CharacterParameters = CharacterParametersT<float>
using momentum::CharacterParametersd = CharacterParametersT<double>
using momentum::MotionParameters = std::tuple<std::vector<std::string>, Eigen::MatrixXf>
 A tuple of model parameter names and a matrix of poses across a sequence of frames.
using momentum::IdentityParameters = std::tuple<std::vector<std::string>, JointParameters>
 A tuple of skeleton joint names and identity parameters.

Enumerations

enum  momentum::JointParameterNames {
  momentum::TX = 0 , momentum::TY , momentum::TZ , momentum::RX ,
  momentum::RY , momentum::RZ , momentum::SC
}

Variables

constexpr size_t momentum::kParametersPerJoint = 7
constexpr std::array< const char *, kParametersPerJoint > momentum::kJointParameterNames {"tx", "ty", "tz", "rx", "ry", "rz", "sc"}
constexpr size_t momentum::kInvalidIndex = std::numeric_limits<size_t>::max()
 Sentinel value indicating an invalid or unset size_t index.