|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include <momentum/character/character.h>#include <momentum/character/locator.h>#include <momentum/character/marker.h>#include <momentum/character_solver/fwd.h>#include <momentum/character_solver/plane_error_function.h>#include <momentum/character_solver/skinned_locator_triangle_error_function.h>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| std::vector< std::vector< momentum::PositionData > > | momentum::createConstraintData (std::span< const std::vector< momentum::Marker > > markerData, const momentum::LocatorList &locators) |
| std::vector< std::vector< momentum::SkinnedLocatorConstraint > > | momentum::createSkinnedConstraintData (std::span< const std::vector< momentum::Marker > > markerData, const momentum::SkinnedLocatorList &locators) |
| Character | momentum::createLocatorCharacter (const Character &sourceCharacter, const std::string &prefix) |
| momentum::Character | momentum::locatorsToSkinnedLocators (const momentum::Character &sourceCharacter, float maxDistance=3.0f, float minSkinWeight=0.03f, bool verbose=false, float markerDiameter=0.0f) |
| Convert locators to skinned locators by finding the closest point on the mesh surface that matches the correct bone index and using the skinned weights from that point. | |
| momentum::Character | momentum::skinnedLocatorsToLocators (const momentum::Character &sourceCharacter) |
| Convert skinned locators to regular locators by selecting the bone with the highest skin weight. | |
| std::vector< momentum::SkinnedLocatorTriangleConstraintT< float > > | momentum::createSkinnedLocatorMeshConstraints (const momentum::Character &character, float cutoffWeight, float maxSearchDistanceCm, float maxNormalAngleDeg) |
| std::vector< std::vector< size_t > > | momentum::buildTriangleAdjacency (const momentum::Mesh &mesh) |
| Build triangle adjacency: for each triangle, find triangles that share an edge. | |
| std::vector< CandidateTriangle > | momentum::findCandidateTrianglesDfs (const momentum::Mesh &mesh, const momentum::SkinWeights &skin, const momentum::Skeleton &skeleton, std::span< const std::vector< size_t > > adjacency, size_t startTriangleIdx, const Eigen::Vector3f &initialPoint, const Eigen::Vector3f &referenceNormal, uint32_t parentJointIdx, float maxSearchDistanceCm, float maxNormalAngleDeg=30.0f) |
| Find candidate triangles by walking along the mesh surface using DFS. | |
| LocatorList | momentum::extractLocatorsFromCharacter (const Character &locatorCharacter, const CharacterParameters &calibParams) |
| std::vector< std::vector< momentum::PlaneDataT< float > > > | momentum::computeFloorContactConstraints (const momentum::Character &character, const Eigen::MatrixXf &motion, const std::vector< momentum::PlaneDataT< float > > &floorConstraints, const std::vector< size_t > &frameIndices, float percentile) |
| Compute per-frame floor contact constraints based on solved locator heights. | |
| ModelParameters | momentum::extractParameters (const ModelParameters ¶ms, const ParameterSet ¶meterSet) |
| std::tuple< Eigen::VectorXf, LocatorList, SkinnedLocatorList > | momentum::extractIdAndLocatorsFromParams (const ModelParameters ¶m, const Character &sourceCharacter, const Character &targetCharacter) |
| Mesh | momentum::extractBlendShapeFromParams (const momentum::ModelParameters ¶m, const momentum::Character &sourceCharacter) |
| void | momentum::fillIdentity (const ParameterSet &idSet, const ModelParameters &identity, Eigen::MatrixXf &motionNoId) |
| ModelParameters | momentum::jointIdentityToModelIdentity (const Character &c, const ParameterSet &idSet, const JointParameters &jointIdentity) |
| void | momentum::removeIdentity (const ParameterSet &idSet, const ModelParameters &identity, Eigen::MatrixXf &motionWithId) |
| std::vector< std::vector< Marker > > | momentum::extractMarkersFromMotion (const Character &character, const Eigen::MatrixXf &motion) |
| std::vector< std::pair< std::string, float > > | momentum::computeSkinnedLocatorMeshDistances (const momentum::Character &character) |
| Compute the distance from each skinned locator to the closest point on the mesh surface. | |