|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include "momentum/marker_tracking/glove_utils.h"#include "momentum/character/character.h"#include "momentum/character/skeleton.h"#include "momentum/character/skeleton_state.h"#include "momentum/character/types.h"#include "momentum/character_sequence_solver/sequence_solver_function.h"#include "momentum/character_solver/orientation_error_function.h"#include "momentum/character_solver/position_error_function.h"#include "momentum/character_solver/skeleton_solver_function.h"#include "momentum/common/checks.h"#include "momentum/common/log.h"#include "momentum/math/utility.h"#include <Eigen/Core>#include <Eigen/Geometry>#include <string>#include <unordered_map>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| Character | momentum::addGloveBones (Character character, const GloveConfig &cfg, const std::array< GloveOffset, 2 > &offsets={}, const std::string &prefix="glove_") |
| Add glove joints to the skeleton with given offsets but no model parameters. | |
| Character | momentum::addGloveCalibrationParameters (Character character, const GloveConfig &cfg, const std::string &prefix="glove_") |
| Add 6-DOF model parameters for existing glove bones. | |
| Character | momentum::createGloveCharacter (const Character &src, const GloveConfig &cfg, const std::string &prefix="glove_") |
| Add glove bones with 6-DOF model parameters (convenience wrapper). | |
| std::array< GloveOffset, 2 > | momentum::extractGloveOffsetsFromCharacter (const Character &gloveChar, const CharacterParameters ¶ms, const GloveConfig &cfg) |
| Extract calibrated glove offsets from solved parameters. | |
| void | momentum::bakeGloveOffsetsFromParams (Character &character, const ModelParameters &solvedParams, const Character &solvingCharacter, const std::optional< GloveConfig > &cfg) |
| Bake solved glove offsets from calibration parameters into the skeleton. | |
| std::vector< std::vector< JointToJointPositionDataT< float > > > | momentum::createGlovePositionConstraintData (std::span< const GloveFrameData > gloveData, const Character &character, const GloveConfig &cfg, size_t handIndex) |
| Convert per-frame glove observations to JointToJoint position constraints. | |
| std::vector< std::vector< JointToJointOrientationDataT< float > > > | momentum::createGloveOrientationConstraintData (std::span< const GloveFrameData > gloveData, const Character &character, const GloveConfig &cfg, size_t handIndex) |
| Convert per-frame glove observations to JointToJoint orientation constraints. | |
| void | momentum::addGloveConstraintsToSequenceSolver (SequenceSolverFunctionT< float > &solverFunc, size_t solverFrame, const Character &character, const std::vector< std::vector< JointToJointPositionDataT< float > > > &posData, const std::vector< std::vector< JointToJointOrientationDataT< float > > > &oriData, size_t iFrame, float posWeight, float oriWeight) |
| Add glove error functions to a SequenceSolverFunction for one frame. | |
| std::optional< GloveErrorFunctions > | momentum::setupGloveErrorFunctions (SkeletonSolverFunctionT< float > &solverFunc, const Character &character, std::span< const GloveFrameData > gloveData, const GloveConfig &cfg, size_t handIndex) |
| Create and register glove error functions for the per-frame solver. | |
| void | momentum::updateGloveConstraintsForFrame (GloveErrorFunctions &funcs, size_t iFrame) |
| Swap per-frame glove constraint data on already-registered error functions. | |