Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum Namespace Reference

Namespaces

namespace  detail
namespace  detail_sdf_collision
namespace  fbx_internal
namespace  io_detail

Classes

struct  AlignedDeleter
 Custom deleter for aligned memory. More...
class  AlignedAllocator
 An allocator that aligns memory blocks according to a specified alignment. More...
class  ProgressBar
 A terminal progress bar rendered as Name [===> ] 60%. More...
struct  CoordinateSystem
 A 3D coordinate system defined by its up axis, handedness, and length unit. More...
class  LowRankCovarianceMatrixT
 Efficient and numerically stable representation of a low-rank-plus-diagonal Gaussian covariance matrix C = sigma^2 * I + A^T * A where C and I are [n x n] and the basis A is [m x n] (m may be larger or smaller than n). More...
struct  MeshT
 A generic mesh representation with support for vertices, faces, lines, and texture coordinates. More...
struct  MppcaT
 Mixture of Probabilistic Principal Component Analyzers (MPPCA). More...
struct  SupportPlaneT
 Oriented plane used to classify support contacts and project support polygons. More...
struct  TransformT
 Lightweight transform with separate rotation, translation, and uniform scaling. More...
class  GeneralizedLossT
 Implementation of "A General and Adaptive Robust Loss Function" (https://arxiv.org/abs/1701.03077). More...
class  SimdGeneralizedLossT
 SIMD (vectorized) variant of GeneralizedLossT that operates on DrJit Packet<T> lanes instead of individual scalars. More...
class  ColumnIndexedMatrix
 View over a matrix that exposes a (possibly reordered) subset of its columns. More...
class  OnlineHouseholderQR
 Online (incremental) Householder QR solver for tall, column-sparse least-squares problems. More...
class  OnlineBlockHouseholderQR
 Online Householder QR solver for least-squares problems with block-arrowhead structure. More...
class  OnlineBandedHouseholderQR
 Online Householder QR solver for band-plus-arrowhead matrices. More...
class  Random
 A consolidated random number generator providing convenient APIs wrapping the C++ standard library <random>. More...
class  ResizeableMatrix
 A dense column-major matrix whose underlying storage capacity grows monotonically and is reused across resizes, unlike Eigen::Matrix<T, Dynamic, Dynamic> which reallocates on every resize() / conservativeResize() call. More...
struct  DeduceSpanType
 A utility struct that facilitates the deduction of a momentum::span type from a given type. More...
class  SolverT
 Base class for numerical optimization solvers. More...
class  SolverFunctionT
 Abstract base class for optimization objective functions. More...
class  GaussNewtonSolverT
 Dense implementation of the Gauss-Newton optimization algorithm. More...
class  SparseGaussNewtonSolverT
 Sparse implementation of the Gauss-Newton optimization algorithm. More...
class  GradientDescentSolverT
 First-order optimization algorithm that follows the negative gradient. More...
class  SubsetGaussNewtonSolverT
 Gauss-Newton solver that optimizes only a selected subset of parameters. More...
struct  GaussNewtonSolverBaseOptions
 Base options shared by all dense Gauss-Newton solver variants. More...
struct  GaussNewtonSolverOptions
 Extended options specific to the Gauss-Newton optimization algorithm. More...
struct  SparseGaussNewtonSolverOptions
 Extended options specific to the sparse Gauss-Newton optimization algorithm. More...
struct  GradientDescentSolverOptions
 Extended options for the Gradient Descent optimization algorithm. More...
struct  SolverOptions
 Common options for numerical optimization solvers. More...
struct  SubsetGaussNewtonSolverOptions
 Extended options for the Subset Gauss-Newton optimization algorithm. More...
struct  BlendShape
 Skinning class that combines blend shape vectors with a base shape. More...
struct  BlendShapeBase
 Skinning class that manages blend shape vectors/offsets. More...
struct  Character
 A character model with skeletal structure, mesh, and optional components. More...
struct  CharacterStateT
 Represents the complete state of a character at a specific point in time. More...
struct  RigidTransformNodeResult
 Result of addRigidTransformNode containing the new character and indices of the added joint and model parameters. More...
struct  TaperedCapsuleT
 Tapered capsule collision geometry for character collision detection. More...
struct  CollisionEllipsoidT
 Ellipsoid collision geometry for character collision detection. More...
struct  CollisionBoxT
 Box collision geometry for character collision detection. More...
struct  CollisionPrimitiveT
 Collision geometry primitive. More...
struct  CollisionGeometryStateT
 Represents collision geometry states using a Structure of Arrays (SoA) format. More...
struct  CollisionOverlapResultT
 Narrow-phase collision information for a pair of primitives. More...
struct  JointT
 A simplified version of a Maya joint with pre-rotation only (no post-rotation). More...
struct  JointStateT
 Represents the state of a joint with local and global transformations. More...
struct  ParameterTransformT
 A parameter transform is an abstraction of the joint parameters that maps a model_parameter vector to a joint_parameter vector. More...
struct  SkeletonT
 The skeletal structure of a momentum Character. More...
struct  SkeletonStateT
 Represents the complete state of a skeleton. More...
struct  MeshStateT
 Represents the complete state of a model's mesh. More...
struct  SDFColliderT
 SDF collision geometry for character collision detection. More...
struct  InverseParameterTransformT
 Maps from joint parameters back to the model parameters. More...
struct  JointPhysicalProperties
 Physical mass properties attached to one skeleton joint. More...
struct  Locator
 Represents a point attached to a joint in a skeleton. More...
struct  LocatorState
 Tracks the current world positions of locators in a skeleton. More...
struct  Marker
 A single motion capture marker observation (position, occlusion, confidence). More...
struct  MarkerSequence
 All frames from a single motion capture sequence for one subject (actor). More...
struct  LimitMinMax
struct  LimitMinMaxJoint
struct  LimitLinear
 Linear relationship between parameters: p_0 = s * p_1 - o. More...
struct  LimitLinearJoint
struct  LimitEllipsoid
 Constrains a point (offset in parent joint's frame) to lie on the surface of an ellipsoid defined in ellipsoidParent's frame. More...
struct  LimitHalfPlane
 Constraint: (p1, p2) ยท (normal) - offset >= 0. More...
union  LimitData
struct  ParameterLimit
struct  PoseConstraint
struct  PoseShape
 Computes shape deformations based on joint rotations. More...
struct  StateSimilarity
 Measures of similarity between two skeleton states. More...
struct  SkinWeights
 Linear blend skinning weights for a character mesh: per-vertex joint indices and influence weights. More...
struct  SkinnedLocator
 A locator attached to multiple joints, with its runtime position determined by blending the skinning transforms (LBS) of those joints. More...
struct  TextureView
 View into a contiguous RGB texture image (non-owning). More...
struct  RegionColorsView
 View into a contiguous array of RGB region colors (non-owning). More...
struct  EigenStrongType
struct  ModelParametersT
 A vector of size numModelParams holding the values of all model parameters for a character. More...
struct  BlendWeightsT
struct  JointParametersT
 A vector describing joint parameters, of size numSkeletonJoints * kParametersPerJoint. More...
struct  CharacterParametersT
 A struct that encapsulates both pose and identity parameters for a character. More...
struct  AimDataT
 Aim constraint data: a local ray (point, dir) passes a global point target. More...
class  AimDistErrorFunctionT
 The AimDistErrorFunction computes the distance from the aim target point to an aim ray (an original and a positive direction). More...
class  AimDirErrorFunctionT
 The AimDirErrorFunction. More...
struct  CameraIntrinsicsMapping
 Cached mapping between intrinsic parameters and model parameter indices. More...
struct  ProjectionConstraintT
 Per-constraint data for CameraProjectionErrorFunctionT. More...
class  CameraProjectionErrorFunctionT
 Error function that projects 3D skeleton points through a bone-parented camera using an IntrinsicsModelT<T> and penalizes reprojection error in pixel space. More...
struct  CameraVertexProjectionDataT
 Per-constraint data for CameraVertexProjectionErrorFunctionT. More...
class  CameraVertexProjectionErrorFunctionT
 Error function that projects skinned mesh vertices through a bone-parented camera using an IntrinsicsModelT<T> and penalizes reprojection error. More...
struct  CenterOfMassConstraintT
 Constraint data for a center of mass target. More...
class  CenterOfMassErrorFunctionT
 Error function that constrains the center of mass to a target position. More...
struct  CollisionDebugEntryT
 Per-pair collision debug information returned by getCollisionDebugInfo(). More...
class  CollisionErrorFunctionT
class  CollisionErrorFunctionStatelessT
 NOTE: This is a resurrected version of the CollisionErrorFunction (previously updated by D50818775). More...
struct  DistanceConstraintDataT
class  DistanceErrorFunctionT
struct  ConstraintData
 Base structure of constraint data for joint-based error functions. More...
struct  FixedAxisDataT
 Axis constraint data. More...
class  FixedAxisDiffErrorFunctionT
 Diff: compute the element wise differences between the two axis. More...
class  FixedAxisCosErrorFunctionT
 Cos: compute the dot product between the two axis - cosine of the angle between them. More...
class  FixedAxisAngleErrorFunctionT
 Angle: compute the angle. More...
class  FloorErrorFunctionT
 Error function that constrains the minimum vertex height to a target value. More...
struct  JointToJointOrientationDataT
 Constraint data for joint-to-joint orientation error between two joints. More...
struct  NormalDataT
 Normal constraint data: data needed to compute the point-to-plane distance for "data-to-template" in ICP. More...
struct  OrientationDataT
 Constraint data on 3x3 rotation represented in quaternions. More...
struct  PlaneCollisionContactPointT
 World-space plane contact point selected for support/contact queries. More...
struct  PlaneCollisionDebugEntryT
 Per-primitive collision debug information returned by plane-collision queries. More...
struct  PointTriangleVertexConstraintT
struct  PlaneDataT
 Point-on-plane or Point-in-half-plane constraint data. More...
struct  PositionDataT
 3D position constraint data More...
struct  SkinnedLocatorConstraintT
 Constraint structure for skinned locator error function. More...
struct  SkinnedLocatorTriangleConstraintT
struct  SupportContactT
 Support/contact point selected for floor-locator and collision support queries. More...
struct  SupportContactListT
 Floor-locator and collision support-contact query result for a skeleton state. More...
struct  VertexSDFConstraintT
 Constraint specifying that a vertex should be at a target signed distance from the SDF. More...
class  GaussNewtonSolverQRT
class  HeightErrorFunctionT
 Error function for character height constraints. More...
class  JointToJointDistanceErrorFunctionT
 Error function that penalizes deviation from a target distance between two points attached to different joints. More...
class  JointToJointPositionErrorFunctionT
 Error function that penalizes deviation from a target position expressed in a reference joint's coordinate frame. More...
class  JointToJointOrientationErrorFunctionT
 Error function that penalizes deviation from a target orientation expressed relative to a reference joint's coordinate frame. More...
class  LimitErrorFunctionT
 Penalizes model/joint parameters that violate their configured limits. More...
class  ModelParametersErrorFunctionT
class  NormalErrorFunctionT
 The NormalErrorFunction computes a "point-to-plane" (signed) distance from a target point to the plane defined by a local point and a local normal vector. More...
class  OrientationErrorFunctionT
 The OrientationErrorFunction minimizes the F-norm of the element-wise difference of a 3x3 rotation matrix to a target rotation. More...
class  OrientationRotDiffErrorFunctionT
 The OrientationRotDiffErrorFunction minimizes the F-norm of (R_target^T * R_current - I), the rotation difference relative to identity. More...
class  PlaneCollisionErrorFunctionT
 Penalizes collision between character collision primitives and a fixed plane. More...
class  PlaneCollisionQueryT
 Stateful query helper for collision primitives against a fixed world plane. More...
class  PlaneErrorFunctionT
 The PlaneErrorFunction computes the point-on-plane error or point-in-half-plane error. More...
class  PointTriangleVertexErrorFunctionT
 Support constraining different parts of the mesh together by specifying that a source vertex should target a location on the mesh defined by a target triangle and its normal. More...
class  PosePriorErrorFunctionT
class  PoseTransformSolverT
 Solver which can be reused to repeatedly apply the transformPose function listed above. More...
class  PositionErrorFunctionT
 The PositionErrorFunction computes the 3D positional errors from a list of Constraints. More...
class  ProjectionErrorFunctionT
class  SkeletonDerivativeT
 Shared utility for derivative computation in error functions. More...
class  SkeletonErrorFunctionT
class  SkeletonSolverFunctionT
class  SkinnedLocatorErrorFunctionT
 Error function for skinned locator constraints. More...
class  SkinnedLocatorTriangleErrorFunctionT
 Support constraining a skinned locator to a location on the mesh defined by a target triangle and its normal. More...
class  StateErrorFunctionT
class  TrustRegionQRT
class  VertexNormalErrorFunctionT
 Error function for vertex Normal and SymmetricNormal constraints. More...
class  VertexPlaneErrorFunctionT
 Error function that constrains mesh vertices to a plane. More...
class  VertexPositionErrorFunctionT
 Error function that constrains mesh vertices to target positions. More...
class  VertexProjectionErrorFunctionT
 Error function that constrains mesh vertices to 2D projected positions. More...
class  VertexSDFErrorFunctionT
 Error function that penalizes deviation of mesh vertex SDF distance from a target value. More...
class  VertexVertexDistanceErrorFunctionT
 Error function for vertex-to-vertex distance constraints. More...
struct  GaussNewtonSolverQROptions
 Gauss-Newton solver with QR decomposition specific options. More...
class  JointErrorFunctionT
 The JointErrorFunction is a base class for constraint errors of the form l = w * loss(f^2), where w is the weight (could be a product of different weighting terms), loss() is the generalized loss function (see math/generalized_loss.h), and f is a difference vector we want to minimize. More...
struct  JointToJointDistanceConstraintT
 Constraint that enforces a distance relationship between two points attached to different joints. More...
struct  JointToJointPositionDataT
 Constraint data for joint-to-joint position error between two joints. More...
struct  ProjectionConstraintDataT
struct  BoneVertexRange
 Range structure for efficiently storing vertex indices per bone. More...
struct  BoneCollisionPairT
 Collision pair information for bone-SDF collider combinations. More...
class  SDFCollisionErrorFunctionT
 SDF-based collision error function that penalizes vertex penetration into SDF colliders. More...
struct  CandidateTriangle
 Represents a candidate triangle for sliding constraints. More...
struct  BoneWeightT
class  SkinningWeightIteratorT
struct  TrustRegionQROptions
 Trust Region with QR decomposition specific options. More...
struct  VertexConstraintData
 Base structure for vertex constraint data. More...
class  VertexErrorFunctionT
 Mid-level adapter for single-vertex constraints. More...
struct  VertexNormalDataT
 Constraint data for a vertex normal constraint. More...
struct  VertexPlaneDataT
 Constraint data for a vertex plane target. More...
struct  VertexPositionDataT
 Constraint data for a vertex position target. More...
struct  VertexProjectionDataT
 Constraint data for a vertex 2D projection target. More...
struct  VertexVertexDistanceConstraintT
 Constraint for vertex-to-vertex distance errors. More...
class  AccelerationSequenceErrorFunctionT
 Error function that penalizes the acceleration of joint positions across three consecutive frames using a standard finite difference stencil [1, -2, 1]. More...
class  FiniteDifferenceSequenceErrorFunctionT
 Base class for error functions that penalize finite difference derivatives of joint positions across consecutive frames using a configurable stencil. More...
struct  JointToJointSequenceConstraintT
 Constraint data for the joint-to-joint sequence error function. More...
class  JerkSequenceErrorFunctionT
 Error function that penalizes the jerk (third derivative) of joint positions across four consecutive frames using a standard finite difference stencil [1, -3, 3, -1]. More...
class  JointToJointSequenceErrorFunctionT
 Error function that penalizes frame-to-frame changes in the relative transform between two joints. More...
class  SequenceErrorFunctionT
class  ModelParametersSequenceErrorFunctionT
class  MultiposeSolverT
class  MultiposeSolverFunctionT
class  SequenceCholeskySolverT
 Sequence solver based on banded normal equations and banded factorization. More...
class  SequenceSolverBaseT
 Shared base class for sequence solvers. More...
class  SequenceSolverT
class  SequenceSolverFunctionT
class  StateSequenceErrorFunctionT
 Error function that penalizes the difference between the current skeleton state and the next skeleton state. More...
class  VelocityMagnitudeSequenceErrorFunctionT
 Error function that penalizes the deviation of per-joint velocity magnitude from a target speed. More...
class  VertexSequenceErrorFunctionT
 Error function that penalizes differences in vertex velocity between source and target motion. More...
struct  MultiposeSolverOptions
 Multipose solver specific options. More...
class  SDFCollisionSequenceErrorFunctionT
 Continuous (swept) SDF collision error function over two consecutive frames. More...
struct  SequenceCholeskySolverOptions
 Sequence Cholesky solver specific options. More...
struct  SequenceSolverOptions
 Sequence solver specific options. More...
struct  SequenceSolverOptionsBase
 Shared options for sequence solvers. More...
struct  PerFrameStateT
struct  VertexVelocityConstraintT
 Constraint structure for vertex velocity. More...
struct  ErrorFunctionDerivativesT
class  FullyDifferentiableDistanceErrorFunctionT
class  FullyDifferentiableMotionErrorFunctionT
struct  OrientationConstraintT
class  FullyDifferentiableOrientationErrorFunctionT
class  FullyDifferentiablePosePriorErrorFunctionT
struct  PositionConstraintT
struct  PositionConstraintStateT
class  FullyDifferentiablePositionErrorFunctionT
class  FullyDifferentiableProjectionErrorFunctionT
class  FullyDifferentiableSkeletonErrorFunctionT
class  FullyDifferentiableStateErrorFunctionT
struct  OrientationConstraintStateT
class  UnionErrorFunctionT
struct  spanstreambuf
 Stream buffer based on a span. More...
struct  ispanstream
 istream that takes a span of const bytes as input. More...
class  FbxBuilder
 Builder class for creating FBX files with multiple characters and animations. More...
struct  PolygonData
struct  FbxCoordSystemInfo
 A struct containing the up, front vectors and coordinate system for FBX export. More...
struct  FileSaveOptions
 Unified options for saving files in both FBX and GLTF formats. More...
class  GltfBuilder
 Helper class to build a glb scene. More...
struct  IOOptions
struct  ModelOptions
struct  GloveSensorObservation
 Single glove sensor observation for one finger joint in one frame. More...
struct  GloveConfig
 Configuration for glove constraints. More...
struct  GloveOffset
 Calibrated glove-to-wrist offset for one hand. More...
struct  GloveErrorFunctions
 Holds per-frame glove error functions for the single-frame solver. More...
struct  GapFillConfig
 Configuration for marker gap filling and blend-off. More...
struct  KeypointObservation
 A single 2D keypoint observation from a camera view. More...
struct  CameraKeypointData
 Per-camera 2D keypoint data for all frames. More...
struct  BaseConfig
 Common configuration for a tracking problem. More...
struct  CalibrationConfig
 Configuration for running body and/or locator calibration. More...
struct  TrackingConfig
 Configuration for pose tracking given a calibrated body and locators. More...
struct  RefineConfig
 Configuration for refining an already tracked motion, eg. More...
class  SectionContent
 Holds all segments of a section and provides line-aware iteration This is used internally to track line numbers across potentially duplicate sections. More...

Typedefs

using ProgressBar_p = ::std::shared_ptr<ProgressBar>
using ProgressBar_u = ::std::unique_ptr<ProgressBar>
using ProgressBar_w = ::std::weak_ptr<ProgressBar>
using ProgressBar_const_p = ::std::shared_ptr<const ProgressBar>
using ProgressBar_const_u = ::std::unique_ptr<const ProgressBar>
using ProgressBar_const_w = ::std::weak_ptr<const ProgressBar>
template<typename T>
using Packet = drjit::Packet<T, kSimdPacketSize>
 A fixed-size SIMD packet of kSimdPacketSize elements of type T.
template<typename T, int Dim>
using VectorP = drjit::Array<Packet<T>, Dim>
 A Dim-dimensional vector where each component is a SIMD packet.
template<typename T>
using Vector2P = VectorP<T, 2>
template<typename T>
using Vector3P = VectorP<T, 3>
using ByteP = Packet<uint8_t>
using UintP = Packet<uint32_t>
using Vector2iP = drjit::Array<IntP, 2>
 Integer and byte vector types.
using Vector3iP = drjit::Array<IntP, 3>
using Vector3bP = drjit::Array<ByteP, 3>
template<typename T>
using Vector4P = VectorP<T, 4>
 4D vector types.
using Vector4fP = Vector4P<float>
using Vector4dP = Vector4P<double>
template<typename T, int Dim>
using MatrixP = drjit::Matrix<Packet<T>, Dim>
 Matrix types for SIMD packets.
template<typename T>
using Matrix3P = MatrixP<T, 3>
template<typename T>
using Matrix4P = MatrixP<T, 4>
using Matrix3fP = Matrix3P<float>
using Matrix3dP = Matrix3P<double>
using Matrix4fP = Matrix4P<float>
using Matrix4dP = Matrix4P<double>
using Mesh = MeshT<float>
using Meshd = MeshT<double>
using Mesh_p = ::std::shared_ptr<Mesh>
using Mesh_u = ::std::unique_ptr<Mesh>
using Mesh_w = ::std::weak_ptr<Mesh>
using Mesh_const_p = ::std::shared_ptr<const Mesh>
using Mesh_const_u = ::std::unique_ptr<const Mesh>
using Mesh_const_w = ::std::weak_ptr<const Mesh>
using Meshd_p = ::std::shared_ptr<Meshd>
using Meshd_u = ::std::unique_ptr<Meshd>
using Meshd_w = ::std::weak_ptr<Meshd>
using Meshd_const_p = ::std::shared_ptr<const Meshd>
using Meshd_const_u = ::std::unique_ptr<const Meshd>
using Meshd_const_w = ::std::weak_ptr<const Meshd>
using Mppca = MppcaT<float>
using Mppcad = MppcaT<double>
using Mppca_p = ::std::shared_ptr<Mppca>
using Mppca_u = ::std::unique_ptr<Mppca>
using Mppca_w = ::std::weak_ptr<Mppca>
using Mppca_const_p = ::std::shared_ptr<const Mppca>
using Mppca_const_u = ::std::unique_ptr<const Mppca>
using Mppca_const_w = ::std::weak_ptr<const Mppca>
using Mppcad_p = ::std::shared_ptr<Mppcad>
using Mppcad_u = ::std::unique_ptr<Mppcad>
using Mppcad_w = ::std::weak_ptr<Mppcad>
using Mppcad_const_p = ::std::shared_ptr<const Mppcad>
using Mppcad_const_u = ::std::unique_ptr<const Mppcad>
using Mppcad_const_w = ::std::weak_ptr<const Mppcad>
using SupportPlane = SupportPlaneT<float>
using SupportPlaned = SupportPlaneT<double>
using SupportPlane_p = ::std::shared_ptr<SupportPlane>
using SupportPlane_u = ::std::unique_ptr<SupportPlane>
using SupportPlane_w = ::std::weak_ptr<SupportPlane>
using SupportPlane_const_p = ::std::shared_ptr<const SupportPlane>
using SupportPlane_const_u = ::std::unique_ptr<const SupportPlane>
using SupportPlane_const_w = ::std::weak_ptr<const SupportPlane>
using SupportPlaned_p = ::std::shared_ptr<SupportPlaned>
using SupportPlaned_u = ::std::unique_ptr<SupportPlaned>
using SupportPlaned_w = ::std::weak_ptr<SupportPlaned>
using SupportPlaned_const_p = ::std::shared_ptr<const SupportPlaned>
using SupportPlaned_const_u = ::std::unique_ptr<const SupportPlaned>
using SupportPlaned_const_w = ::std::weak_ptr<const SupportPlaned>
using Transform = TransformT<float>
using Transformd = TransformT<double>
using Transform_p = ::std::shared_ptr<Transform>
using Transform_u = ::std::unique_ptr<Transform>
using Transform_w = ::std::weak_ptr<Transform>
using Transform_const_p = ::std::shared_ptr<const Transform>
using Transform_const_u = ::std::unique_ptr<const Transform>
using Transform_const_w = ::std::weak_ptr<const Transform>
using Transformd_p = ::std::shared_ptr<Transformd>
using Transformd_u = ::std::unique_ptr<Transformd>
using Transformd_w = ::std::weak_ptr<Transformd>
using Transformd_const_p = ::std::shared_ptr<const Transformd>
using Transformd_const_u = ::std::unique_ptr<const Transformd>
using Transformd_const_w = ::std::weak_ptr<const Transformd>
using LowRankCovarianceMatrix = LowRankCovarianceMatrixT<float>
using LowRankCovarianceMatrixd = LowRankCovarianceMatrixT<double>
using LowRankCovarianceMatrix_p = ::std::shared_ptr<LowRankCovarianceMatrix>
using LowRankCovarianceMatrix_u = ::std::unique_ptr<LowRankCovarianceMatrix>
using LowRankCovarianceMatrix_w = ::std::weak_ptr<LowRankCovarianceMatrix>
using LowRankCovarianceMatrix_const_p = ::std::shared_ptr<const LowRankCovarianceMatrix>
using LowRankCovarianceMatrix_const_u = ::std::unique_ptr<const LowRankCovarianceMatrix>
using LowRankCovarianceMatrix_const_w = ::std::weak_ptr<const LowRankCovarianceMatrix>
using LowRankCovarianceMatrixd_p = ::std::shared_ptr<LowRankCovarianceMatrixd>
using LowRankCovarianceMatrixd_u = ::std::unique_ptr<LowRankCovarianceMatrixd>
using LowRankCovarianceMatrixd_w = ::std::weak_ptr<LowRankCovarianceMatrixd>
using LowRankCovarianceMatrixd_const_p = ::std::shared_ptr<const LowRankCovarianceMatrixd>
using LowRankCovarianceMatrixd_const_u = ::std::unique_ptr<const LowRankCovarianceMatrixd>
using LowRankCovarianceMatrixd_const_w = ::std::weak_ptr<const LowRankCovarianceMatrixd>
using GeneralizedLoss = GeneralizedLossT<float>
using GeneralizedLossd = GeneralizedLossT<double>
using GeneralizedLoss_p = ::std::shared_ptr<GeneralizedLoss>
using GeneralizedLoss_u = ::std::unique_ptr<GeneralizedLoss>
using GeneralizedLoss_w = ::std::weak_ptr<GeneralizedLoss>
using GeneralizedLoss_const_p = ::std::shared_ptr<const GeneralizedLoss>
using GeneralizedLoss_const_u = ::std::unique_ptr<const GeneralizedLoss>
using GeneralizedLoss_const_w = ::std::weak_ptr<const GeneralizedLoss>
using GeneralizedLossd_p = ::std::shared_ptr<GeneralizedLossd>
using GeneralizedLossd_u = ::std::unique_ptr<GeneralizedLossd>
using GeneralizedLossd_w = ::std::weak_ptr<GeneralizedLossd>
using GeneralizedLossd_const_p = ::std::shared_ptr<const GeneralizedLossd>
using GeneralizedLossd_const_u = ::std::unique_ptr<const GeneralizedLossd>
using GeneralizedLossd_const_w = ::std::weak_ptr<const GeneralizedLossd>
using SimdGeneralizedLoss = SimdGeneralizedLossT<float>
using SimdGeneralizedLossd = SimdGeneralizedLossT<double>
using SimdGeneralizedLoss_p = ::std::shared_ptr<SimdGeneralizedLoss>
using SimdGeneralizedLoss_u = ::std::unique_ptr<SimdGeneralizedLoss>
using SimdGeneralizedLoss_w = ::std::weak_ptr<SimdGeneralizedLoss>
using SimdGeneralizedLoss_const_p = ::std::shared_ptr<const SimdGeneralizedLoss>
using SimdGeneralizedLoss_const_u = ::std::unique_ptr<const SimdGeneralizedLoss>
using SimdGeneralizedLoss_const_w = ::std::weak_ptr<const SimdGeneralizedLoss>
using SimdGeneralizedLossd_p = ::std::shared_ptr<SimdGeneralizedLossd>
using SimdGeneralizedLossd_u = ::std::unique_ptr<SimdGeneralizedLossd>
using SimdGeneralizedLossd_w = ::std::weak_ptr<SimdGeneralizedLossd>
using SimdGeneralizedLossd_const_p = ::std::shared_ptr<const SimdGeneralizedLossd>
using SimdGeneralizedLossd_const_u = ::std::unique_ptr<const SimdGeneralizedLossd>
using SimdGeneralizedLossd_const_w = ::std::weak_ptr<const SimdGeneralizedLossd>
template<typename T>
using span = gsl::span<T>
 Span type alias using gsl::span (C++17 fallback).
template<typename T>
using TransformListT = std::vector<TransformT<T>>
 Per-joint transform list describing the state of all joints in a skeleton (one entry per joint, indexed by joint id).
using TransformList = TransformListT<float>
template<class T>
using Map = Eigen::Map<T>
template<class T>
using Ref = Eigen::Ref<T>
template<typename Scalar, int Dim>
using Line = Eigen::ParametrizedLine<Scalar, Dim>
template<typename Scalar, int Dim>
using Plane = Eigen::Hyperplane<Scalar, Dim>
template<typename Scalar, int Dim>
using Box = Eigen::AlignedBox<Scalar, Dim>
template<int Dim>
using Boxf = Eigen::AlignedBox<float, Dim>
template<int Dim>
using Boxd = Eigen::AlignedBox<double, Dim>
template<int Dim>
using Boxi = Eigen::AlignedBox<std::int32_t, Dim>
template<typename T>
using Box2 = Eigen::AlignedBox<T, 2>
template<typename T>
using Box3 = Eigen::AlignedBox<T, 3>
using Box2f = Box2<float>
using Box3f = Box3<float>
using Box2d = Box2<double>
using Box3d = Box3<double>
using Box2i = Box2<std::int32_t>
using Box3i = Box3<std::int32_t>
template<typename T>
using MatrixX = Eigen::Matrix<T, Dynamic, Dynamic>
 Dynamic-size, column-major dense matrix.
using MatrixXf = MatrixX<float>
using MatrixXd = MatrixX<double>
using MatrixXb = MatrixX<std::uint8_t>
using MatrixXs = MatrixX<std::uint16_t>
using MatrixXu = MatrixX<std::uint32_t>
using MatrixXi = MatrixX<std::int32_t>
template<typename T>
using Matrix0 = Eigen::Matrix<T, 0, 0>
template<typename T>
using Matrix1 = Eigen::Matrix<T, 1, 1>
template<typename T>
using Matrix2 = Eigen::Matrix<T, 2, 2>
template<typename T>
using Matrix3 = Eigen::Matrix<T, 3, 3>
template<typename T>
using Matrix4 = Eigen::Matrix<T, 4, 4>
template<typename T>
using Matrix5 = Eigen::Matrix<T, 5, 5>
template<typename T>
using Matrix6 = Eigen::Matrix<T, 6, 6>
using Matrix0f = Matrix0<float>
using Matrix1f = Matrix1<float>
using Matrix2f = Matrix2<float>
using Matrix3f = Matrix3<float>
using Matrix4f = Matrix4<float>
using Matrix5f = Matrix5<float>
using Matrix6f = Matrix6<float>
using Matrix0d = Matrix0<double>
using Matrix1d = Matrix1<double>
using Matrix2d = Matrix2<double>
using Matrix3d = Matrix3<double>
using Matrix4d = Matrix4<double>
using Matrix5d = Matrix5<double>
using Matrix6d = Matrix6<double>
using Matrix0b = Matrix0<std::uint8_t>
using Matrix1b = Matrix1<std::uint8_t>
using Matrix2b = Matrix2<std::uint8_t>
using Matrix3b = Matrix3<std::uint8_t>
using Matrix4b = Matrix4<std::uint8_t>
using Matrix5b = Matrix5<std::uint8_t>
using Matrix6b = Matrix6<std::uint8_t>
using Matrix0s = Matrix0<std::uint16_t>
using Matrix1s = Matrix1<std::uint16_t>
using Matrix2s = Matrix2<std::uint16_t>
using Matrix3s = Matrix3<std::uint16_t>
using Matrix4s = Matrix4<std::uint16_t>
using Matrix5s = Matrix5<std::uint16_t>
using Matrix6s = Matrix6<std::uint16_t>
using Matrix0u = Matrix0<std::uint32_t>
using Matrix1u = Matrix1<std::uint32_t>
using Matrix2u = Matrix2<std::uint32_t>
using Matrix3u = Matrix3<std::uint32_t>
using Matrix4u = Matrix4<std::uint32_t>
using Matrix5u = Matrix5<std::uint32_t>
using Matrix6u = Matrix6<std::uint32_t>
using Matrix0i = Matrix0<std::int32_t>
using Matrix1i = Matrix1<std::int32_t>
using Matrix2i = Matrix2<std::int32_t>
using Matrix3i = Matrix3<std::int32_t>
using Matrix4i = Matrix4<std::int32_t>
using Matrix5i = Matrix5<std::int32_t>
using Matrix6i = Matrix6<std::int32_t>
template<typename T>
using Matrix3X = Eigen::Matrix<T, 3, Dynamic>
 3-row, dynamic-column matrix.
using Matrix3Xf = Matrix3X<float>
using Matrix3Xd = Matrix3X<double>
using Matrix3Xb = Matrix3X<std::uint8_t>
using Matrix3Xs = Matrix3X<std::uint16_t>
using Matrix3Xu = Matrix3X<std::uint32_t>
using Matrix3Xi = Matrix3X<std::int32_t>
template<typename T>
using MatrixX3 = Eigen::Matrix<T, Dynamic, 3>
using MatrixX3f = MatrixX3<float>
using MatrixX3d = MatrixX3<double>
using MatrixX3b = MatrixX3<std::uint8_t>
using MatrixX3s = MatrixX3<std::uint16_t>
using MatrixX3u = MatrixX3<std::uint32_t>
using MatrixX3i = MatrixX3<std::int32_t>
template<typename T, int N, int M = N>
using RowMatrix = Eigen::Matrix<T, N, M, Eigen::RowMajor>
 Row-major dense matrix alias.
template<typename T>
using RowMatrixX = RowMatrix<T, Dynamic>
template<typename T>
using SparseMatrix = Eigen::SparseMatrix<T>
 Column-major sparse matrix.
using SparseMatrixf = SparseMatrix<float>
using SparseMatrixd = SparseMatrix<double>
using SparseMatrixb = SparseMatrix<std::uint8_t>
using SparseMatrixs = SparseMatrix<std::uint16_t>
using SparseMatrixu = SparseMatrix<std::uint32_t>
using SparseMatrixi = SparseMatrix<std::int32_t>
template<typename T>
using SparseRowMatrix = Eigen::SparseMatrix<T, Eigen::RowMajor>
using SparseRowMatrixf = SparseRowMatrix<float>
using SparseRowMatrixd = SparseRowMatrix<double>
using SparseRowMatrixb = SparseRowMatrix<std::uint8_t>
using SparseRowMatrixs = SparseRowMatrix<std::uint16_t>
using SparseRowMatrixu = SparseRowMatrix<std::uint32_t>
using SparseRowMatrixi = SparseRowMatrix<std::int32_t>
template<typename T, int Dim, int Options = 0>
using Vector = Eigen::Matrix<T, Dim, 1, Options>
 Column vector alias (an Nx1 Eigen matrix).
template<typename T>
using VectorX = Vector<T, Dynamic>
 Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
using VectorXf = VectorX<float>
using VectorXd = VectorX<double>
using VectorXb = VectorX<std::uint8_t>
using VectorXs = VectorX<std::uint16_t>
using VectorXu = VectorX<std::uint32_t>
using VectorXi = VectorX<std::int32_t>
template<int Dim>
using Vectorf = Vector<float, Dim>
template<int Dim>
using Vectord = Vector<double, Dim>
template<int Dim>
using Vectorb = Vector<std::uint8_t, Dim>
template<int Dim>
using Vectors = Vector<std::uint16_t, Dim>
template<int Dim>
using Vectoru = Vector<std::uint32_t, Dim>
template<int Dim>
using Vectori = Vector<std::int32_t, Dim>
template<typename T>
using Vector0 = Vector<T, 0>
template<typename T>
using Vector1 = Vector<T, 1>
template<typename T>
using Vector2 = Vector<T, 2>
template<typename T>
using Vector3 = Vector<T, 3>
template<typename T>
using Vector4 = Vector<T, 4>
template<typename T>
using Vector5 = Vector<T, 5>
template<typename T>
using Vector6 = Vector<T, 6>
template<typename T>
using Vector7 = Vector<T, 7>
template<typename T>
using Vector8 = Vector<T, 8>
using Vector0f = Vector0<float>
using Vector1f = Vector1<float>
using Vector2f = Vector2<float>
using Vector3f = Vector3<float>
using Vector4f = Vector4<float>
using Vector5f = Vector5<float>
using Vector6f = Vector6<float>
using Vector7f = Vector7<float>
using Vector8f = Vector8<float>
using Vector0d = Vector0<double>
using Vector1d = Vector1<double>
using Vector2d = Vector2<double>
using Vector3d = Vector3<double>
using Vector4d = Vector4<double>
using Vector5d = Vector5<double>
using Vector6d = Vector6<double>
using Vector0b = Vector0<std::uint8_t>
using Vector1b = Vector1<std::uint8_t>
using Vector2b = Vector2<std::uint8_t>
using Vector3b = Vector3<std::uint8_t>
using Vector4b = Vector4<std::uint8_t>
using Vector5b = Vector5<std::uint8_t>
using Vector6b = Vector6<std::uint8_t>
using Vector0s = Vector0<std::uint16_t>
using Vector1s = Vector1<std::uint16_t>
using Vector2s = Vector2<std::uint16_t>
using Vector3s = Vector3<std::uint16_t>
using Vector4s = Vector4<std::uint16_t>
using Vector5s = Vector5<std::uint16_t>
using Vector6s = Vector6<std::uint16_t>
using Vector0u = Vector0<std::uint32_t>
using Vector1u = Vector1<std::uint32_t>
using Vector2u = Vector2<std::uint32_t>
using Vector3u = Vector3<std::uint32_t>
using Vector4u = Vector4<std::uint32_t>
using Vector5u = Vector5<std::uint32_t>
using Vector6u = Vector6<std::uint32_t>
using Vector0i = Vector0<std::int32_t>
using Vector1i = Vector1<std::int32_t>
using Vector2i = Vector2<std::int32_t>
using Vector3i = Vector3<std::int32_t>
using Vector4i = Vector4<std::int32_t>
using Vector5i = Vector5<std::int32_t>
using Vector6i = Vector6<std::int32_t>
template<typename T, int Dim>
using RowVector = Eigen::Matrix<T, 1, Dim>
template<typename T>
using RowVectorX = RowVector<T, Dynamic>
using RowVectorXf = RowVectorX<float>
using RowVectorXd = RowVectorX<double>
using RowVectorXb = RowVectorX<std::uint8_t>
using RowVectorXs = RowVectorX<std::uint16_t>
using RowVectorXu = RowVectorX<std::uint32_t>
using RowVectorXi = RowVectorX<std::int32_t>
template<typename T>
using RowVector0 = RowVector<T, 0>
template<typename T>
using RowVector1 = RowVector<T, 1>
template<typename T>
using RowVector2 = RowVector<T, 2>
template<typename T>
using RowVector3 = RowVector<T, 3>
template<typename T>
using RowVector4 = RowVector<T, 4>
template<typename T>
using RowVector5 = RowVector<T, 5>
template<typename T>
using RowVector6 = RowVector<T, 6>
using RowVector0f = RowVector0<float>
using RowVector1f = RowVector1<float>
using RowVector2f = RowVector2<float>
using RowVector3f = RowVector3<float>
using RowVector4f = RowVector4<float>
using RowVector5f = RowVector5<float>
using RowVector6f = RowVector6<float>
using RowVector0d = RowVector0<double>
using RowVector1d = RowVector1<double>
using RowVector2d = RowVector2<double>
using RowVector3d = RowVector3<double>
using RowVector4d = RowVector4<double>
using RowVector5d = RowVector5<double>
using RowVector6d = RowVector6<double>
using RowVector0b = RowVector0<std::uint8_t>
using RowVector1b = RowVector1<std::uint8_t>
using RowVector2b = RowVector2<std::uint8_t>
using RowVector3b = RowVector3<std::uint8_t>
using RowVector4b = RowVector4<std::uint8_t>
using RowVector5b = RowVector5<std::uint8_t>
using RowVector6b = RowVector6<std::uint8_t>
using RowVector0s = RowVector0<std::uint16_t>
using RowVector1s = RowVector1<std::uint16_t>
using RowVector2s = RowVector2<std::uint16_t>
using RowVector3s = RowVector3<std::uint16_t>
using RowVector4s = RowVector4<std::uint16_t>
using RowVector5s = RowVector5<std::uint16_t>
using RowVector6s = RowVector6<std::uint16_t>
using RowVector0u = RowVector0<std::uint32_t>
using RowVector1u = RowVector1<std::uint32_t>
using RowVector2u = RowVector2<std::uint32_t>
using RowVector3u = RowVector3<std::uint32_t>
using RowVector4u = RowVector4<std::uint32_t>
using RowVector5u = RowVector5<std::uint32_t>
using RowVector6u = RowVector6<std::uint32_t>
using RowVector0i = RowVector0<std::int32_t>
using RowVector1i = RowVector1<std::int32_t>
using RowVector2i = RowVector2<std::int32_t>
using RowVector3i = RowVector3<std::int32_t>
using RowVector4i = RowVector4<std::int32_t>
using RowVector5i = RowVector5<std::int32_t>
using RowVector6i = RowVector6<std::int32_t>
template<typename T>
using AngleAxis = Eigen::AngleAxis<T>
using AngleAxisf = AngleAxis<float>
using AngleAxisd = AngleAxis<double>
template<typename T>
using Quaternion = Eigen::Quaternion<T>
 Unit quaternion representing a 3D rotation.
using Quaternionf = Quaternion<float>
using Quaterniond = Quaternion<double>
template<typename T>
using Translation3 = Eigen::Translation<T, 3>
using Translation3f = Translation3<float>
using Translation3d = Translation3<double>
template<typename T>
using Isometry3 = Eigen::Transform<T, 3, Eigen::Isometry>
 3D rigid transform (rotation + translation, no scale or shear).
using Isometry3f = Isometry3<float>
using Isometry3d = Isometry3<double>
template<typename T>
using Affine3 = Eigen::Transform<T, 3, Eigen::Affine>
 3D affine transform (linear part + translation).
using Affine3f = Affine3<float>
using Affine3d = Affine3<double>
using TransformationList = std::vector<Affine3f>
 One affine transform per joint, indexed by joint id.
template<typename T>
using TransformationListT = std::vector<Affine3<T>>
 Scalar-templated counterpart of TransformationList.
using VertexArray = Matrix3Xf
 Mesh vertex positions; column i is the position of vertex i (size: 3 x numVertices).
using NormalArray = Matrix3Xf
 Per-vertex normals matching the layout of VertexArray (size: 3 x numVertices).
using TriangleArray = Matrix3Xi
 Triangle index buffer; column i holds the three vertex indices of triangle i (size: 3 x numTriangles).
using ColorArray = Matrix3Xb
 Per-vertex RGB color in [0, 255] bytes (size: 3 x numVertices).
using ParameterSet = std::bitset<kMaxModelParams>
 Bitset for model parameter enablement.
using SolverOptions_p = ::std::shared_ptr<SolverOptions>
using SolverOptions_u = ::std::unique_ptr<SolverOptions>
using SolverOptions_w = ::std::weak_ptr<SolverOptions>
using SolverOptions_const_p = ::std::shared_ptr<const SolverOptions>
using SolverOptions_const_u = ::std::unique_ptr<const SolverOptions>
using SolverOptions_const_w = ::std::weak_ptr<const SolverOptions>
using GaussNewtonSolverOptions_p = ::std::shared_ptr<GaussNewtonSolverOptions>
using GaussNewtonSolverOptions_u = ::std::unique_ptr<GaussNewtonSolverOptions>
using GaussNewtonSolverOptions_w = ::std::weak_ptr<GaussNewtonSolverOptions>
using GaussNewtonSolverOptions_const_p = ::std::shared_ptr<const GaussNewtonSolverOptions>
using GaussNewtonSolverOptions_const_u = ::std::unique_ptr<const GaussNewtonSolverOptions>
using GaussNewtonSolverOptions_const_w = ::std::weak_ptr<const GaussNewtonSolverOptions>
using SparseGaussNewtonSolverOptions_p = ::std::shared_ptr<SparseGaussNewtonSolverOptions>
using SparseGaussNewtonSolverOptions_u = ::std::unique_ptr<SparseGaussNewtonSolverOptions>
using SparseGaussNewtonSolverOptions_w = ::std::weak_ptr<SparseGaussNewtonSolverOptions>
using SparseGaussNewtonSolverOptions_const_p
using SparseGaussNewtonSolverOptions_const_u
using SparseGaussNewtonSolverOptions_const_w
using Solver = SolverT<float>
using Solverd = SolverT<double>
using Solver_p = ::std::shared_ptr<Solver>
using Solver_u = ::std::unique_ptr<Solver>
using Solver_w = ::std::weak_ptr<Solver>
using Solver_const_p = ::std::shared_ptr<const Solver>
using Solver_const_u = ::std::unique_ptr<const Solver>
using Solver_const_w = ::std::weak_ptr<const Solver>
using Solverd_p = ::std::shared_ptr<Solverd>
using Solverd_u = ::std::unique_ptr<Solverd>
using Solverd_w = ::std::weak_ptr<Solverd>
using Solverd_const_p = ::std::shared_ptr<const Solverd>
using Solverd_const_u = ::std::unique_ptr<const Solverd>
using Solverd_const_w = ::std::weak_ptr<const Solverd>
using SolverFunction = SolverFunctionT<float>
using SolverFunctiond = SolverFunctionT<double>
using SolverFunction_p = ::std::shared_ptr<SolverFunction>
using SolverFunction_u = ::std::unique_ptr<SolverFunction>
using SolverFunction_w = ::std::weak_ptr<SolverFunction>
using SolverFunction_const_p = ::std::shared_ptr<const SolverFunction>
using SolverFunction_const_u = ::std::unique_ptr<const SolverFunction>
using SolverFunction_const_w = ::std::weak_ptr<const SolverFunction>
using SolverFunctiond_p = ::std::shared_ptr<SolverFunctiond>
using SolverFunctiond_u = ::std::unique_ptr<SolverFunctiond>
using SolverFunctiond_w = ::std::weak_ptr<SolverFunctiond>
using SolverFunctiond_const_p = ::std::shared_ptr<const SolverFunctiond>
using SolverFunctiond_const_u = ::std::unique_ptr<const SolverFunctiond>
using SolverFunctiond_const_w = ::std::weak_ptr<const SolverFunctiond>
using GaussNewtonSolver = GaussNewtonSolverT<float>
using GaussNewtonSolverd = GaussNewtonSolverT<double>
using GaussNewtonSolver_p = ::std::shared_ptr<GaussNewtonSolver>
using GaussNewtonSolver_u = ::std::unique_ptr<GaussNewtonSolver>
using GaussNewtonSolver_w = ::std::weak_ptr<GaussNewtonSolver>
using GaussNewtonSolver_const_p = ::std::shared_ptr<const GaussNewtonSolver>
using GaussNewtonSolver_const_u = ::std::unique_ptr<const GaussNewtonSolver>
using GaussNewtonSolver_const_w = ::std::weak_ptr<const GaussNewtonSolver>
using GaussNewtonSolverd_p = ::std::shared_ptr<GaussNewtonSolverd>
using GaussNewtonSolverd_u = ::std::unique_ptr<GaussNewtonSolverd>
using GaussNewtonSolverd_w = ::std::weak_ptr<GaussNewtonSolverd>
using GaussNewtonSolverd_const_p = ::std::shared_ptr<const GaussNewtonSolverd>
using GaussNewtonSolverd_const_u = ::std::unique_ptr<const GaussNewtonSolverd>
using GaussNewtonSolverd_const_w = ::std::weak_ptr<const GaussNewtonSolverd>
using SparseGaussNewtonSolver = SparseGaussNewtonSolverT<float>
using SparseGaussNewtonSolverd = SparseGaussNewtonSolverT<double>
using SparseGaussNewtonSolver_p = ::std::shared_ptr<SparseGaussNewtonSolver>
using SparseGaussNewtonSolver_u = ::std::unique_ptr<SparseGaussNewtonSolver>
using SparseGaussNewtonSolver_w = ::std::weak_ptr<SparseGaussNewtonSolver>
using SparseGaussNewtonSolver_const_p = ::std::shared_ptr<const SparseGaussNewtonSolver>
using SparseGaussNewtonSolver_const_u = ::std::unique_ptr<const SparseGaussNewtonSolver>
using SparseGaussNewtonSolver_const_w = ::std::weak_ptr<const SparseGaussNewtonSolver>
using SparseGaussNewtonSolverd_p = ::std::shared_ptr<SparseGaussNewtonSolverd>
using SparseGaussNewtonSolverd_u = ::std::unique_ptr<SparseGaussNewtonSolverd>
using SparseGaussNewtonSolverd_w = ::std::weak_ptr<SparseGaussNewtonSolverd>
using SparseGaussNewtonSolverd_const_p = ::std::shared_ptr<const SparseGaussNewtonSolverd>
using SparseGaussNewtonSolverd_const_u = ::std::unique_ptr<const SparseGaussNewtonSolverd>
using SparseGaussNewtonSolverd_const_w = ::std::weak_ptr<const SparseGaussNewtonSolverd>
using GradientDescentSolver = GradientDescentSolverT<float>
using GradientDescentSolverd = GradientDescentSolverT<double>
using GradientDescentSolver_p = ::std::shared_ptr<GradientDescentSolver>
using GradientDescentSolver_u = ::std::unique_ptr<GradientDescentSolver>
using GradientDescentSolver_w = ::std::weak_ptr<GradientDescentSolver>
using GradientDescentSolver_const_p = ::std::shared_ptr<const GradientDescentSolver>
using GradientDescentSolver_const_u = ::std::unique_ptr<const GradientDescentSolver>
using GradientDescentSolver_const_w = ::std::weak_ptr<const GradientDescentSolver>
using GradientDescentSolverd_p = ::std::shared_ptr<GradientDescentSolverd>
using GradientDescentSolverd_u = ::std::unique_ptr<GradientDescentSolverd>
using GradientDescentSolverd_w = ::std::weak_ptr<GradientDescentSolverd>
using GradientDescentSolverd_const_p = ::std::shared_ptr<const GradientDescentSolverd>
using GradientDescentSolverd_const_u = ::std::unique_ptr<const GradientDescentSolverd>
using GradientDescentSolverd_const_w = ::std::weak_ptr<const GradientDescentSolverd>
using SubsetGaussNewtonSolver = SubsetGaussNewtonSolverT<float>
using SubsetGaussNewtonSolverd = SubsetGaussNewtonSolverT<double>
using SubsetGaussNewtonSolver_p = ::std::shared_ptr<SubsetGaussNewtonSolver>
using SubsetGaussNewtonSolver_u = ::std::unique_ptr<SubsetGaussNewtonSolver>
using SubsetGaussNewtonSolver_w = ::std::weak_ptr<SubsetGaussNewtonSolver>
using SubsetGaussNewtonSolver_const_p = ::std::shared_ptr<const SubsetGaussNewtonSolver>
using SubsetGaussNewtonSolver_const_u = ::std::unique_ptr<const SubsetGaussNewtonSolver>
using SubsetGaussNewtonSolver_const_w = ::std::weak_ptr<const SubsetGaussNewtonSolver>
using SubsetGaussNewtonSolverd_p = ::std::shared_ptr<SubsetGaussNewtonSolverd>
using SubsetGaussNewtonSolverd_u = ::std::unique_ptr<SubsetGaussNewtonSolverd>
using SubsetGaussNewtonSolverd_w = ::std::weak_ptr<SubsetGaussNewtonSolverd>
using SubsetGaussNewtonSolverd_const_p = ::std::shared_ptr<const SubsetGaussNewtonSolverd>
using SubsetGaussNewtonSolverd_const_u = ::std::unique_ptr<const SubsetGaussNewtonSolverd>
using SubsetGaussNewtonSolverd_const_w = ::std::weak_ptr<const SubsetGaussNewtonSolverd>
template<typename S>
using CollisionGeometryT = std::vector<CollisionPrimitiveT<S>>
 Collection of primitives representing a character's collision geometry.
using CollisionGeometry = CollisionGeometryT<float>
using CollisionGeometryd = CollisionGeometryT<double>
using BlendShape_p = ::std::shared_ptr<BlendShape>
using BlendShape_u = ::std::unique_ptr<BlendShape>
using BlendShape_w = ::std::weak_ptr<BlendShape>
using BlendShape_const_p = ::std::shared_ptr<const BlendShape>
using BlendShape_const_u = ::std::unique_ptr<const BlendShape>
using BlendShape_const_w = ::std::weak_ptr<const BlendShape>
using BlendShapeBase_p = ::std::shared_ptr<BlendShapeBase>
using BlendShapeBase_u = ::std::unique_ptr<BlendShapeBase>
using BlendShapeBase_w = ::std::weak_ptr<BlendShapeBase>
using BlendShapeBase_const_p = ::std::shared_ptr<const BlendShapeBase>
using BlendShapeBase_const_u = ::std::unique_ptr<const BlendShapeBase>
using BlendShapeBase_const_w = ::std::weak_ptr<const BlendShapeBase>
using Character_p = ::std::shared_ptr<Character>
using Character_u = ::std::unique_ptr<Character>
using Character_w = ::std::weak_ptr<Character>
using Character_const_p = ::std::shared_ptr<const Character>
using Character_const_u = ::std::unique_ptr<const Character>
using Character_const_w = ::std::weak_ptr<const Character>
using JointPhysicalProperties_p = ::std::shared_ptr<JointPhysicalProperties>
using JointPhysicalProperties_u = ::std::unique_ptr<JointPhysicalProperties>
using JointPhysicalProperties_w = ::std::weak_ptr<JointPhysicalProperties>
using JointPhysicalProperties_const_p = ::std::shared_ptr<const JointPhysicalProperties>
using JointPhysicalProperties_const_u = ::std::unique_ptr<const JointPhysicalProperties>
using JointPhysicalProperties_const_w = ::std::weak_ptr<const JointPhysicalProperties>
using Locator_p = ::std::shared_ptr<Locator>
using Locator_u = ::std::unique_ptr<Locator>
using Locator_w = ::std::weak_ptr<Locator>
using Locator_const_p = ::std::shared_ptr<const Locator>
using Locator_const_u = ::std::unique_ptr<const Locator>
using Locator_const_w = ::std::weak_ptr<const Locator>
using PoseShape_p = ::std::shared_ptr<PoseShape>
using PoseShape_u = ::std::unique_ptr<PoseShape>
using PoseShape_w = ::std::weak_ptr<PoseShape>
using PoseShape_const_p = ::std::shared_ptr<const PoseShape>
using PoseShape_const_u = ::std::unique_ptr<const PoseShape>
using PoseShape_const_w = ::std::weak_ptr<const PoseShape>
using SkinWeights_p = ::std::shared_ptr<SkinWeights>
using SkinWeights_u = ::std::unique_ptr<SkinWeights>
using SkinWeights_w = ::std::weak_ptr<SkinWeights>
using SkinWeights_const_p = ::std::shared_ptr<const SkinWeights>
using SkinWeights_const_u = ::std::unique_ptr<const SkinWeights>
using SkinWeights_const_w = ::std::weak_ptr<const SkinWeights>
using SkinnedLocator_p = ::std::shared_ptr<SkinnedLocator>
using SkinnedLocator_u = ::std::unique_ptr<SkinnedLocator>
using SkinnedLocator_w = ::std::weak_ptr<SkinnedLocator>
using SkinnedLocator_const_p = ::std::shared_ptr<const SkinnedLocator>
using SkinnedLocator_const_u = ::std::unique_ptr<const SkinnedLocator>
using SkinnedLocator_const_w = ::std::weak_ptr<const SkinnedLocator>
using CharacterState = CharacterStateT<float>
using CharacterStated = CharacterStateT<double>
using CharacterState_p = ::std::shared_ptr<CharacterState>
using CharacterState_u = ::std::unique_ptr<CharacterState>
using CharacterState_w = ::std::weak_ptr<CharacterState>
using CharacterState_const_p = ::std::shared_ptr<const CharacterState>
using CharacterState_const_u = ::std::unique_ptr<const CharacterState>
using CharacterState_const_w = ::std::weak_ptr<const CharacterState>
using CharacterStated_p = ::std::shared_ptr<CharacterStated>
using CharacterStated_u = ::std::unique_ptr<CharacterStated>
using CharacterStated_w = ::std::weak_ptr<CharacterStated>
using CharacterStated_const_p = ::std::shared_ptr<const CharacterStated>
using CharacterStated_const_u = ::std::unique_ptr<const CharacterStated>
using CharacterStated_const_w = ::std::weak_ptr<const CharacterStated>
using CollisionPrimitive = CollisionPrimitiveT<float>
using CollisionPrimitived = CollisionPrimitiveT<double>
using CollisionPrimitive_p = ::std::shared_ptr<CollisionPrimitive>
using CollisionPrimitive_u = ::std::unique_ptr<CollisionPrimitive>
using CollisionPrimitive_w = ::std::weak_ptr<CollisionPrimitive>
using CollisionPrimitive_const_p = ::std::shared_ptr<const CollisionPrimitive>
using CollisionPrimitive_const_u = ::std::unique_ptr<const CollisionPrimitive>
using CollisionPrimitive_const_w = ::std::weak_ptr<const CollisionPrimitive>
using CollisionPrimitived_p = ::std::shared_ptr<CollisionPrimitived>
using CollisionPrimitived_u = ::std::unique_ptr<CollisionPrimitived>
using CollisionPrimitived_w = ::std::weak_ptr<CollisionPrimitived>
using CollisionPrimitived_const_p = ::std::shared_ptr<const CollisionPrimitived>
using CollisionPrimitived_const_u = ::std::unique_ptr<const CollisionPrimitived>
using CollisionPrimitived_const_w = ::std::weak_ptr<const CollisionPrimitived>
using CollisionGeometryState = CollisionGeometryStateT<float>
using CollisionGeometryStated = CollisionGeometryStateT<double>
using CollisionGeometryState_p = ::std::shared_ptr<CollisionGeometryState>
using CollisionGeometryState_u = ::std::unique_ptr<CollisionGeometryState>
using CollisionGeometryState_w = ::std::weak_ptr<CollisionGeometryState>
using CollisionGeometryState_const_p = ::std::shared_ptr<const CollisionGeometryState>
using CollisionGeometryState_const_u = ::std::unique_ptr<const CollisionGeometryState>
using CollisionGeometryState_const_w = ::std::weak_ptr<const CollisionGeometryState>
using CollisionGeometryStated_p = ::std::shared_ptr<CollisionGeometryStated>
using CollisionGeometryStated_u = ::std::unique_ptr<CollisionGeometryStated>
using CollisionGeometryStated_w = ::std::weak_ptr<CollisionGeometryStated>
using CollisionGeometryStated_const_p = ::std::shared_ptr<const CollisionGeometryStated>
using CollisionGeometryStated_const_u = ::std::unique_ptr<const CollisionGeometryStated>
using CollisionGeometryStated_const_w = ::std::weak_ptr<const CollisionGeometryStated>
using CollisionOverlapResult = CollisionOverlapResultT<float>
using CollisionOverlapResultd = CollisionOverlapResultT<double>
using CollisionOverlapResult_p = ::std::shared_ptr<CollisionOverlapResult>
using CollisionOverlapResult_u = ::std::unique_ptr<CollisionOverlapResult>
using CollisionOverlapResult_w = ::std::weak_ptr<CollisionOverlapResult>
using CollisionOverlapResult_const_p = ::std::shared_ptr<const CollisionOverlapResult>
using CollisionOverlapResult_const_u = ::std::unique_ptr<const CollisionOverlapResult>
using CollisionOverlapResult_const_w = ::std::weak_ptr<const CollisionOverlapResult>
using CollisionOverlapResultd_p = ::std::shared_ptr<CollisionOverlapResultd>
using CollisionOverlapResultd_u = ::std::unique_ptr<CollisionOverlapResultd>
using CollisionOverlapResultd_w = ::std::weak_ptr<CollisionOverlapResultd>
using CollisionOverlapResultd_const_p = ::std::shared_ptr<const CollisionOverlapResultd>
using CollisionOverlapResultd_const_u = ::std::unique_ptr<const CollisionOverlapResultd>
using CollisionOverlapResultd_const_w = ::std::weak_ptr<const CollisionOverlapResultd>
using CollisionEllipsoid = CollisionEllipsoidT<float>
using CollisionEllipsoidd = CollisionEllipsoidT<double>
using CollisionEllipsoid_p = ::std::shared_ptr<CollisionEllipsoid>
using CollisionEllipsoid_u = ::std::unique_ptr<CollisionEllipsoid>
using CollisionEllipsoid_w = ::std::weak_ptr<CollisionEllipsoid>
using CollisionEllipsoid_const_p = ::std::shared_ptr<const CollisionEllipsoid>
using CollisionEllipsoid_const_u = ::std::unique_ptr<const CollisionEllipsoid>
using CollisionEllipsoid_const_w = ::std::weak_ptr<const CollisionEllipsoid>
using CollisionEllipsoidd_p = ::std::shared_ptr<CollisionEllipsoidd>
using CollisionEllipsoidd_u = ::std::unique_ptr<CollisionEllipsoidd>
using CollisionEllipsoidd_w = ::std::weak_ptr<CollisionEllipsoidd>
using CollisionEllipsoidd_const_p = ::std::shared_ptr<const CollisionEllipsoidd>
using CollisionEllipsoidd_const_u = ::std::unique_ptr<const CollisionEllipsoidd>
using CollisionEllipsoidd_const_w = ::std::weak_ptr<const CollisionEllipsoidd>
using CollisionBox = CollisionBoxT<float>
using CollisionBoxd = CollisionBoxT<double>
using CollisionBox_p = ::std::shared_ptr<CollisionBox>
using CollisionBox_u = ::std::unique_ptr<CollisionBox>
using CollisionBox_w = ::std::weak_ptr<CollisionBox>
using CollisionBox_const_p = ::std::shared_ptr<const CollisionBox>
using CollisionBox_const_u = ::std::unique_ptr<const CollisionBox>
using CollisionBox_const_w = ::std::weak_ptr<const CollisionBox>
using CollisionBoxd_p = ::std::shared_ptr<CollisionBoxd>
using CollisionBoxd_u = ::std::unique_ptr<CollisionBoxd>
using CollisionBoxd_w = ::std::weak_ptr<CollisionBoxd>
using CollisionBoxd_const_p = ::std::shared_ptr<const CollisionBoxd>
using CollisionBoxd_const_u = ::std::unique_ptr<const CollisionBoxd>
using CollisionBoxd_const_w = ::std::weak_ptr<const CollisionBoxd>
using Joint = JointT<float>
using Jointd = JointT<double>
using Joint_p = ::std::shared_ptr<Joint>
using Joint_u = ::std::unique_ptr<Joint>
using Joint_w = ::std::weak_ptr<Joint>
using Joint_const_p = ::std::shared_ptr<const Joint>
using Joint_const_u = ::std::unique_ptr<const Joint>
using Joint_const_w = ::std::weak_ptr<const Joint>
using Jointd_p = ::std::shared_ptr<Jointd>
using Jointd_u = ::std::unique_ptr<Jointd>
using Jointd_w = ::std::weak_ptr<Jointd>
using Jointd_const_p = ::std::shared_ptr<const Jointd>
using Jointd_const_u = ::std::unique_ptr<const Jointd>
using Jointd_const_w = ::std::weak_ptr<const Jointd>
using JointState = JointStateT<float>
using JointStated = JointStateT<double>
using JointState_p = ::std::shared_ptr<JointState>
using JointState_u = ::std::unique_ptr<JointState>
using JointState_w = ::std::weak_ptr<JointState>
using JointState_const_p = ::std::shared_ptr<const JointState>
using JointState_const_u = ::std::unique_ptr<const JointState>
using JointState_const_w = ::std::weak_ptr<const JointState>
using JointStated_p = ::std::shared_ptr<JointStated>
using JointStated_u = ::std::unique_ptr<JointStated>
using JointStated_w = ::std::weak_ptr<JointStated>
using JointStated_const_p = ::std::shared_ptr<const JointStated>
using JointStated_const_u = ::std::unique_ptr<const JointStated>
using JointStated_const_w = ::std::weak_ptr<const JointStated>
using ParameterTransform = ParameterTransformT<float>
using ParameterTransformd = ParameterTransformT<double>
using ParameterTransform_p = ::std::shared_ptr<ParameterTransform>
using ParameterTransform_u = ::std::unique_ptr<ParameterTransform>
using ParameterTransform_w = ::std::weak_ptr<ParameterTransform>
using ParameterTransform_const_p = ::std::shared_ptr<const ParameterTransform>
using ParameterTransform_const_u = ::std::unique_ptr<const ParameterTransform>
using ParameterTransform_const_w = ::std::weak_ptr<const ParameterTransform>
using ParameterTransformd_p = ::std::shared_ptr<ParameterTransformd>
using ParameterTransformd_u = ::std::unique_ptr<ParameterTransformd>
using ParameterTransformd_w = ::std::weak_ptr<ParameterTransformd>
using ParameterTransformd_const_p = ::std::shared_ptr<const ParameterTransformd>
using ParameterTransformd_const_u = ::std::unique_ptr<const ParameterTransformd>
using ParameterTransformd_const_w = ::std::weak_ptr<const ParameterTransformd>
using Skeleton = SkeletonT<float>
using Skeletond = SkeletonT<double>
using Skeleton_p = ::std::shared_ptr<Skeleton>
using Skeleton_u = ::std::unique_ptr<Skeleton>
using Skeleton_w = ::std::weak_ptr<Skeleton>
using Skeleton_const_p = ::std::shared_ptr<const Skeleton>
using Skeleton_const_u = ::std::unique_ptr<const Skeleton>
using Skeleton_const_w = ::std::weak_ptr<const Skeleton>
using Skeletond_p = ::std::shared_ptr<Skeletond>
using Skeletond_u = ::std::unique_ptr<Skeletond>
using Skeletond_w = ::std::weak_ptr<Skeletond>
using Skeletond_const_p = ::std::shared_ptr<const Skeletond>
using Skeletond_const_u = ::std::unique_ptr<const Skeletond>
using Skeletond_const_w = ::std::weak_ptr<const Skeletond>
using SkeletonState = SkeletonStateT<float>
using SkeletonStated = SkeletonStateT<double>
using SkeletonState_p = ::std::shared_ptr<SkeletonState>
using SkeletonState_u = ::std::unique_ptr<SkeletonState>
using SkeletonState_w = ::std::weak_ptr<SkeletonState>
using SkeletonState_const_p = ::std::shared_ptr<const SkeletonState>
using SkeletonState_const_u = ::std::unique_ptr<const SkeletonState>
using SkeletonState_const_w = ::std::weak_ptr<const SkeletonState>
using SkeletonStated_p = ::std::shared_ptr<SkeletonStated>
using SkeletonStated_u = ::std::unique_ptr<SkeletonStated>
using SkeletonStated_w = ::std::weak_ptr<SkeletonStated>
using SkeletonStated_const_p = ::std::shared_ptr<const SkeletonStated>
using SkeletonStated_const_u = ::std::unique_ptr<const SkeletonStated>
using SkeletonStated_const_w = ::std::weak_ptr<const SkeletonStated>
using MeshState = MeshStateT<float>
using MeshStated = MeshStateT<double>
using MeshState_p = ::std::shared_ptr<MeshState>
using MeshState_u = ::std::unique_ptr<MeshState>
using MeshState_w = ::std::weak_ptr<MeshState>
using MeshState_const_p = ::std::shared_ptr<const MeshState>
using MeshState_const_u = ::std::unique_ptr<const MeshState>
using MeshState_const_w = ::std::weak_ptr<const MeshState>
using MeshStated_p = ::std::shared_ptr<MeshStated>
using MeshStated_u = ::std::unique_ptr<MeshStated>
using MeshStated_w = ::std::weak_ptr<MeshStated>
using MeshStated_const_p = ::std::shared_ptr<const MeshStated>
using MeshStated_const_u = ::std::unique_ptr<const MeshStated>
using MeshStated_const_w = ::std::weak_ptr<const MeshStated>
using TaperedCapsule = TaperedCapsuleT<float>
using TaperedCapsuled = TaperedCapsuleT<double>
using TaperedCapsule_p = ::std::shared_ptr<TaperedCapsule>
using TaperedCapsule_u = ::std::unique_ptr<TaperedCapsule>
using TaperedCapsule_w = ::std::weak_ptr<TaperedCapsule>
using TaperedCapsule_const_p = ::std::shared_ptr<const TaperedCapsule>
using TaperedCapsule_const_u = ::std::unique_ptr<const TaperedCapsule>
using TaperedCapsule_const_w = ::std::weak_ptr<const TaperedCapsule>
using TaperedCapsuled_p = ::std::shared_ptr<TaperedCapsuled>
using TaperedCapsuled_u = ::std::unique_ptr<TaperedCapsuled>
using TaperedCapsuled_w = ::std::weak_ptr<TaperedCapsuled>
using TaperedCapsuled_const_p = ::std::shared_ptr<const TaperedCapsuled>
using TaperedCapsuled_const_u = ::std::unique_ptr<const TaperedCapsuled>
using TaperedCapsuled_const_w = ::std::weak_ptr<const TaperedCapsuled>
using SDFCollider = SDFColliderT<float>
using SDFColliderd = SDFColliderT<double>
using SDFCollider_p = ::std::shared_ptr<SDFCollider>
using SDFCollider_u = ::std::unique_ptr<SDFCollider>
using SDFCollider_w = ::std::weak_ptr<SDFCollider>
using SDFCollider_const_p = ::std::shared_ptr<const SDFCollider>
using SDFCollider_const_u = ::std::unique_ptr<const SDFCollider>
using SDFCollider_const_w = ::std::weak_ptr<const SDFCollider>
using SDFColliderd_p = ::std::shared_ptr<SDFColliderd>
using SDFColliderd_u = ::std::unique_ptr<SDFColliderd>
using SDFColliderd_w = ::std::weak_ptr<SDFColliderd>
using SDFColliderd_const_p = ::std::shared_ptr<const SDFColliderd>
using SDFColliderd_const_u = ::std::unique_ptr<const SDFColliderd>
using SDFColliderd_const_w = ::std::weak_ptr<const SDFColliderd>
using InverseParameterTransform = InverseParameterTransformT<float>
using InverseParameterTransformd = InverseParameterTransformT<double>
template<typename T>
using JointListT = std::vector<JointT<T>>
 A list of joints (e.g., of a skeleton).
using JointList = JointListT<float>
using JointListd = JointListT<double>
using PhysicalProperties = std::vector<JointPhysicalProperties>
 Optional physical mass properties for a character.
template<typename T>
using JointStateListT = std::vector<JointStateT<T>>
 Structure describing the state of all joints in a skeleton.
using JointStateList = JointStateListT<float>
using LocatorList = std::vector<Locator>
 A collection of locators attached to a skeleton.
using ParameterLimits = std::vector<ParameterLimit>
using ParameterSets = std::unordered_map<std::string, ParameterSet>
using PoseConstraints = std::unordered_map<std::string, PoseConstraint>
template<typename S>
using SDFCollisionGeometryT = std::vector<SDFColliderT<S>>
 Collection of SDF colliders representing a character's collision geometry.
using SDFCollisionGeometry = SDFCollisionGeometryT<float>
using SDFCollisionGeometryd = SDFCollisionGeometryT<double>
using IndexMatrix
 Joint indices that influence each vertex.
using WeightMatrix
 Skinning weights for each joint influence.
using SkinnedLocatorList = std::vector<SkinnedLocator>
 A collection of locators attached to a skeleton.
template<typename T>
using JointVectorT = Eigen::Matrix<T, kParametersPerJoint, 1>
using JointVector = JointVectorT<float>
using ModelParameters = ModelParametersT<float>
using ModelParametersd = ModelParametersT<double>
using BlendWeights = BlendWeightsT<float>
using BlendWeightsd = BlendWeightsT<double>
using JointParameters = JointParametersT<float>
using JointParametersd = JointParametersT<double>
using JointStateListd = JointStateListT<double>
using CharacterParameters = CharacterParametersT<float>
using CharacterParametersd = CharacterParametersT<double>
using 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 IdentityParameters = std::tuple<std::vector<std::string>, JointParameters>
 A tuple of skeleton joint names and identity parameters.
using CollisionDebugEntry = CollisionDebugEntryT<float>
using CollisionDebugEntryd = CollisionDebugEntryT<double>
using ConstraintDataList = std::vector<ConstraintData>
 A list of ConstraintData.
template<typename T>
using optional_ref = std::optional<std::reference_wrapper<T>>
 An optional of a reference.
using ConstraintData_p = ::std::shared_ptr<ConstraintData>
using ConstraintData_u = ::std::unique_ptr<ConstraintData>
using ConstraintData_w = ::std::weak_ptr<ConstraintData>
using ConstraintData_const_p = ::std::shared_ptr<const ConstraintData>
using ConstraintData_const_u = ::std::unique_ptr<const ConstraintData>
using ConstraintData_const_w = ::std::weak_ptr<const ConstraintData>
using GaussNewtonSolverQROptions_p = ::std::shared_ptr<GaussNewtonSolverQROptions>
using GaussNewtonSolverQROptions_u = ::std::unique_ptr<GaussNewtonSolverQROptions>
using GaussNewtonSolverQROptions_w = ::std::weak_ptr<GaussNewtonSolverQROptions>
using GaussNewtonSolverQROptions_const_p = ::std::shared_ptr<const GaussNewtonSolverQROptions>
using GaussNewtonSolverQROptions_const_u = ::std::unique_ptr<const GaussNewtonSolverQROptions>
using GaussNewtonSolverQROptions_const_w = ::std::weak_ptr<const GaussNewtonSolverQROptions>
using SimdNormalConstraints_p = ::std::shared_ptr<SimdNormalConstraints>
using SimdNormalConstraints_u = ::std::unique_ptr<SimdNormalConstraints>
using SimdNormalConstraints_w = ::std::weak_ptr<SimdNormalConstraints>
using SimdNormalConstraints_const_p = ::std::shared_ptr<const SimdNormalConstraints>
using SimdNormalConstraints_const_u = ::std::unique_ptr<const SimdNormalConstraints>
using SimdNormalConstraints_const_w = ::std::weak_ptr<const SimdNormalConstraints>
using SimdPlaneConstraints_p = ::std::shared_ptr<SimdPlaneConstraints>
using SimdPlaneConstraints_u = ::std::unique_ptr<SimdPlaneConstraints>
using SimdPlaneConstraints_w = ::std::weak_ptr<SimdPlaneConstraints>
using SimdPlaneConstraints_const_p = ::std::shared_ptr<const SimdPlaneConstraints>
using SimdPlaneConstraints_const_u = ::std::unique_ptr<const SimdPlaneConstraints>
using SimdPlaneConstraints_const_w = ::std::weak_ptr<const SimdPlaneConstraints>
using SimdPositionConstraints_p = ::std::shared_ptr<SimdPositionConstraints>
using SimdPositionConstraints_u = ::std::unique_ptr<SimdPositionConstraints>
using SimdPositionConstraints_w = ::std::weak_ptr<SimdPositionConstraints>
using SimdPositionConstraints_const_p = ::std::shared_ptr<const SimdPositionConstraints>
using SimdPositionConstraints_const_u = ::std::unique_ptr<const SimdPositionConstraints>
using SimdPositionConstraints_const_w = ::std::weak_ptr<const SimdPositionConstraints>
using VertexConstraintData_p = ::std::shared_ptr<VertexConstraintData>
using VertexConstraintData_u = ::std::unique_ptr<VertexConstraintData>
using VertexConstraintData_w = ::std::weak_ptr<VertexConstraintData>
using VertexConstraintData_const_p = ::std::shared_ptr<const VertexConstraintData>
using VertexConstraintData_const_u = ::std::unique_ptr<const VertexConstraintData>
using VertexConstraintData_const_w = ::std::weak_ptr<const VertexConstraintData>
using AimData = AimDataT<float>
using AimDatad = AimDataT<double>
using AimData_p = ::std::shared_ptr<AimData>
using AimData_u = ::std::unique_ptr<AimData>
using AimData_w = ::std::weak_ptr<AimData>
using AimData_const_p = ::std::shared_ptr<const AimData>
using AimData_const_u = ::std::unique_ptr<const AimData>
using AimData_const_w = ::std::weak_ptr<const AimData>
using AimDatad_p = ::std::shared_ptr<AimDatad>
using AimDatad_u = ::std::unique_ptr<AimDatad>
using AimDatad_w = ::std::weak_ptr<AimDatad>
using AimDatad_const_p = ::std::shared_ptr<const AimDatad>
using AimDatad_const_u = ::std::unique_ptr<const AimDatad>
using AimDatad_const_w = ::std::weak_ptr<const AimDatad>
using CameraVertexProjectionData = CameraVertexProjectionDataT<float>
using CameraVertexProjectionDatad = CameraVertexProjectionDataT<double>
using CameraVertexProjectionData_p = ::std::shared_ptr<CameraVertexProjectionData>
using CameraVertexProjectionData_u = ::std::unique_ptr<CameraVertexProjectionData>
using CameraVertexProjectionData_w = ::std::weak_ptr<CameraVertexProjectionData>
using CameraVertexProjectionData_const_p = ::std::shared_ptr<const CameraVertexProjectionData>
using CameraVertexProjectionData_const_u = ::std::unique_ptr<const CameraVertexProjectionData>
using CameraVertexProjectionData_const_w = ::std::weak_ptr<const CameraVertexProjectionData>
using CameraVertexProjectionDatad_p = ::std::shared_ptr<CameraVertexProjectionDatad>
using CameraVertexProjectionDatad_u = ::std::unique_ptr<CameraVertexProjectionDatad>
using CameraVertexProjectionDatad_w = ::std::weak_ptr<CameraVertexProjectionDatad>
using CameraVertexProjectionDatad_const_p = ::std::shared_ptr<const CameraVertexProjectionDatad>
using CameraVertexProjectionDatad_const_u = ::std::unique_ptr<const CameraVertexProjectionDatad>
using CameraVertexProjectionDatad_const_w = ::std::weak_ptr<const CameraVertexProjectionDatad>
using FixedAxisData = FixedAxisDataT<float>
using FixedAxisDatad = FixedAxisDataT<double>
using FixedAxisData_p = ::std::shared_ptr<FixedAxisData>
using FixedAxisData_u = ::std::unique_ptr<FixedAxisData>
using FixedAxisData_w = ::std::weak_ptr<FixedAxisData>
using FixedAxisData_const_p = ::std::shared_ptr<const FixedAxisData>
using FixedAxisData_const_u = ::std::unique_ptr<const FixedAxisData>
using FixedAxisData_const_w = ::std::weak_ptr<const FixedAxisData>
using FixedAxisDatad_p = ::std::shared_ptr<FixedAxisDatad>
using FixedAxisDatad_u = ::std::unique_ptr<FixedAxisDatad>
using FixedAxisDatad_w = ::std::weak_ptr<FixedAxisDatad>
using FixedAxisDatad_const_p = ::std::shared_ptr<const FixedAxisDatad>
using FixedAxisDatad_const_u = ::std::unique_ptr<const FixedAxisDatad>
using FixedAxisDatad_const_w = ::std::weak_ptr<const FixedAxisDatad>
using JointToJointOrientationData = JointToJointOrientationDataT<float>
using JointToJointOrientationDatad = JointToJointOrientationDataT<double>
using JointToJointOrientationData_p = ::std::shared_ptr<JointToJointOrientationData>
using JointToJointOrientationData_u = ::std::unique_ptr<JointToJointOrientationData>
using JointToJointOrientationData_w = ::std::weak_ptr<JointToJointOrientationData>
using JointToJointOrientationData_const_p = ::std::shared_ptr<const JointToJointOrientationData>
using JointToJointOrientationData_const_u = ::std::unique_ptr<const JointToJointOrientationData>
using JointToJointOrientationData_const_w = ::std::weak_ptr<const JointToJointOrientationData>
using JointToJointOrientationDatad_p = ::std::shared_ptr<JointToJointOrientationDatad>
using JointToJointOrientationDatad_u = ::std::unique_ptr<JointToJointOrientationDatad>
using JointToJointOrientationDatad_w = ::std::weak_ptr<JointToJointOrientationDatad>
using JointToJointOrientationDatad_const_p = ::std::shared_ptr<const JointToJointOrientationDatad>
using JointToJointOrientationDatad_const_u = ::std::unique_ptr<const JointToJointOrientationDatad>
using JointToJointOrientationDatad_const_w = ::std::weak_ptr<const JointToJointOrientationDatad>
using NormalData = NormalDataT<float>
using NormalDatad = NormalDataT<double>
using NormalData_p = ::std::shared_ptr<NormalData>
using NormalData_u = ::std::unique_ptr<NormalData>
using NormalData_w = ::std::weak_ptr<NormalData>
using NormalData_const_p = ::std::shared_ptr<const NormalData>
using NormalData_const_u = ::std::unique_ptr<const NormalData>
using NormalData_const_w = ::std::weak_ptr<const NormalData>
using NormalDatad_p = ::std::shared_ptr<NormalDatad>
using NormalDatad_u = ::std::unique_ptr<NormalDatad>
using NormalDatad_w = ::std::weak_ptr<NormalDatad>
using NormalDatad_const_p = ::std::shared_ptr<const NormalDatad>
using NormalDatad_const_u = ::std::unique_ptr<const NormalDatad>
using NormalDatad_const_w = ::std::weak_ptr<const NormalDatad>
using OrientationData = OrientationDataT<float>
using OrientationDatad = OrientationDataT<double>
using OrientationData_p = ::std::shared_ptr<OrientationData>
using OrientationData_u = ::std::unique_ptr<OrientationData>
using OrientationData_w = ::std::weak_ptr<OrientationData>
using OrientationData_const_p = ::std::shared_ptr<const OrientationData>
using OrientationData_const_u = ::std::unique_ptr<const OrientationData>
using OrientationData_const_w = ::std::weak_ptr<const OrientationData>
using OrientationDatad_p = ::std::shared_ptr<OrientationDatad>
using OrientationDatad_u = ::std::unique_ptr<OrientationDatad>
using OrientationDatad_w = ::std::weak_ptr<OrientationDatad>
using OrientationDatad_const_p = ::std::shared_ptr<const OrientationDatad>
using OrientationDatad_const_u = ::std::unique_ptr<const OrientationDatad>
using OrientationDatad_const_w = ::std::weak_ptr<const OrientationDatad>
using PlaneCollisionContactPoint = PlaneCollisionContactPointT<float>
using PlaneCollisionContactPointd = PlaneCollisionContactPointT<double>
using PlaneCollisionContactPoint_p = ::std::shared_ptr<PlaneCollisionContactPoint>
using PlaneCollisionContactPoint_u = ::std::unique_ptr<PlaneCollisionContactPoint>
using PlaneCollisionContactPoint_w = ::std::weak_ptr<PlaneCollisionContactPoint>
using PlaneCollisionContactPoint_const_p = ::std::shared_ptr<const PlaneCollisionContactPoint>
using PlaneCollisionContactPoint_const_u = ::std::unique_ptr<const PlaneCollisionContactPoint>
using PlaneCollisionContactPoint_const_w = ::std::weak_ptr<const PlaneCollisionContactPoint>
using PlaneCollisionContactPointd_p = ::std::shared_ptr<PlaneCollisionContactPointd>
using PlaneCollisionContactPointd_u = ::std::unique_ptr<PlaneCollisionContactPointd>
using PlaneCollisionContactPointd_w = ::std::weak_ptr<PlaneCollisionContactPointd>
using PlaneCollisionContactPointd_const_p = ::std::shared_ptr<const PlaneCollisionContactPointd>
using PlaneCollisionContactPointd_const_u = ::std::unique_ptr<const PlaneCollisionContactPointd>
using PlaneCollisionContactPointd_const_w = ::std::weak_ptr<const PlaneCollisionContactPointd>
using PlaneCollisionDebugEntry = PlaneCollisionDebugEntryT<float>
using PlaneCollisionDebugEntryd = PlaneCollisionDebugEntryT<double>
using PlaneCollisionDebugEntry_p = ::std::shared_ptr<PlaneCollisionDebugEntry>
using PlaneCollisionDebugEntry_u = ::std::unique_ptr<PlaneCollisionDebugEntry>
using PlaneCollisionDebugEntry_w = ::std::weak_ptr<PlaneCollisionDebugEntry>
using PlaneCollisionDebugEntry_const_p = ::std::shared_ptr<const PlaneCollisionDebugEntry>
using PlaneCollisionDebugEntry_const_u = ::std::unique_ptr<const PlaneCollisionDebugEntry>
using PlaneCollisionDebugEntry_const_w = ::std::weak_ptr<const PlaneCollisionDebugEntry>
using PlaneCollisionDebugEntryd_p = ::std::shared_ptr<PlaneCollisionDebugEntryd>
using PlaneCollisionDebugEntryd_u = ::std::unique_ptr<PlaneCollisionDebugEntryd>
using PlaneCollisionDebugEntryd_w = ::std::weak_ptr<PlaneCollisionDebugEntryd>
using PlaneCollisionDebugEntryd_const_p = ::std::shared_ptr<const PlaneCollisionDebugEntryd>
using PlaneCollisionDebugEntryd_const_u = ::std::unique_ptr<const PlaneCollisionDebugEntryd>
using PlaneCollisionDebugEntryd_const_w = ::std::weak_ptr<const PlaneCollisionDebugEntryd>
using PointTriangleVertexConstraint = PointTriangleVertexConstraintT<float>
using PointTriangleVertexConstraintd = PointTriangleVertexConstraintT<double>
using PointTriangleVertexConstraint_p = ::std::shared_ptr<PointTriangleVertexConstraint>
using PointTriangleVertexConstraint_u = ::std::unique_ptr<PointTriangleVertexConstraint>
using PointTriangleVertexConstraint_w = ::std::weak_ptr<PointTriangleVertexConstraint>
using PointTriangleVertexConstraint_const_p
using PointTriangleVertexConstraint_const_u
using PointTriangleVertexConstraint_const_w = ::std::weak_ptr<const PointTriangleVertexConstraint>
using PointTriangleVertexConstraintd_p = ::std::shared_ptr<PointTriangleVertexConstraintd>
using PointTriangleVertexConstraintd_u = ::std::unique_ptr<PointTriangleVertexConstraintd>
using PointTriangleVertexConstraintd_w = ::std::weak_ptr<PointTriangleVertexConstraintd>
using PointTriangleVertexConstraintd_const_p
using PointTriangleVertexConstraintd_const_u
using PointTriangleVertexConstraintd_const_w
using PlaneData = PlaneDataT<float>
using PlaneDatad = PlaneDataT<double>
using PlaneData_p = ::std::shared_ptr<PlaneData>
using PlaneData_u = ::std::unique_ptr<PlaneData>
using PlaneData_w = ::std::weak_ptr<PlaneData>
using PlaneData_const_p = ::std::shared_ptr<const PlaneData>
using PlaneData_const_u = ::std::unique_ptr<const PlaneData>
using PlaneData_const_w = ::std::weak_ptr<const PlaneData>
using PlaneDatad_p = ::std::shared_ptr<PlaneDatad>
using PlaneDatad_u = ::std::unique_ptr<PlaneDatad>
using PlaneDatad_w = ::std::weak_ptr<PlaneDatad>
using PlaneDatad_const_p = ::std::shared_ptr<const PlaneDatad>
using PlaneDatad_const_u = ::std::unique_ptr<const PlaneDatad>
using PlaneDatad_const_w = ::std::weak_ptr<const PlaneDatad>
using PositionData = PositionDataT<float>
using PositionDatad = PositionDataT<double>
using PositionData_p = ::std::shared_ptr<PositionData>
using PositionData_u = ::std::unique_ptr<PositionData>
using PositionData_w = ::std::weak_ptr<PositionData>
using PositionData_const_p = ::std::shared_ptr<const PositionData>
using PositionData_const_u = ::std::unique_ptr<const PositionData>
using PositionData_const_w = ::std::weak_ptr<const PositionData>
using PositionDatad_p = ::std::shared_ptr<PositionDatad>
using PositionDatad_u = ::std::unique_ptr<PositionDatad>
using PositionDatad_w = ::std::weak_ptr<PositionDatad>
using PositionDatad_const_p = ::std::shared_ptr<const PositionDatad>
using PositionDatad_const_u = ::std::unique_ptr<const PositionDatad>
using PositionDatad_const_w = ::std::weak_ptr<const PositionDatad>
using ProjectionConstraint = ProjectionConstraintT<float>
using ProjectionConstraintd = ProjectionConstraintT<double>
using ProjectionConstraint_p = ::std::shared_ptr<ProjectionConstraint>
using ProjectionConstraint_u = ::std::unique_ptr<ProjectionConstraint>
using ProjectionConstraint_w = ::std::weak_ptr<ProjectionConstraint>
using ProjectionConstraint_const_p = ::std::shared_ptr<const ProjectionConstraint>
using ProjectionConstraint_const_u = ::std::unique_ptr<const ProjectionConstraint>
using ProjectionConstraint_const_w = ::std::weak_ptr<const ProjectionConstraint>
using ProjectionConstraintd_p = ::std::shared_ptr<ProjectionConstraintd>
using ProjectionConstraintd_u = ::std::unique_ptr<ProjectionConstraintd>
using ProjectionConstraintd_w = ::std::weak_ptr<ProjectionConstraintd>
using ProjectionConstraintd_const_p = ::std::shared_ptr<const ProjectionConstraintd>
using ProjectionConstraintd_const_u = ::std::unique_ptr<const ProjectionConstraintd>
using ProjectionConstraintd_const_w = ::std::weak_ptr<const ProjectionConstraintd>
using SkinnedLocatorConstraint = SkinnedLocatorConstraintT<float>
using SkinnedLocatorConstraintd = SkinnedLocatorConstraintT<double>
using SkinnedLocatorConstraint_p = ::std::shared_ptr<SkinnedLocatorConstraint>
using SkinnedLocatorConstraint_u = ::std::unique_ptr<SkinnedLocatorConstraint>
using SkinnedLocatorConstraint_w = ::std::weak_ptr<SkinnedLocatorConstraint>
using SkinnedLocatorConstraint_const_p = ::std::shared_ptr<const SkinnedLocatorConstraint>
using SkinnedLocatorConstraint_const_u = ::std::unique_ptr<const SkinnedLocatorConstraint>
using SkinnedLocatorConstraint_const_w = ::std::weak_ptr<const SkinnedLocatorConstraint>
using SkinnedLocatorConstraintd_p = ::std::shared_ptr<SkinnedLocatorConstraintd>
using SkinnedLocatorConstraintd_u = ::std::unique_ptr<SkinnedLocatorConstraintd>
using SkinnedLocatorConstraintd_w = ::std::weak_ptr<SkinnedLocatorConstraintd>
using SkinnedLocatorConstraintd_const_p = ::std::shared_ptr<const SkinnedLocatorConstraintd>
using SkinnedLocatorConstraintd_const_u = ::std::unique_ptr<const SkinnedLocatorConstraintd>
using SkinnedLocatorConstraintd_const_w = ::std::weak_ptr<const SkinnedLocatorConstraintd>
using SkinnedLocatorTriangleConstraint = SkinnedLocatorTriangleConstraintT<float>
using SkinnedLocatorTriangleConstraintd = SkinnedLocatorTriangleConstraintT<double>
using SkinnedLocatorTriangleConstraint_p = ::std::shared_ptr<SkinnedLocatorTriangleConstraint>
using SkinnedLocatorTriangleConstraint_u = ::std::unique_ptr<SkinnedLocatorTriangleConstraint>
using SkinnedLocatorTriangleConstraint_w = ::std::weak_ptr<SkinnedLocatorTriangleConstraint>
using SkinnedLocatorTriangleConstraint_const_p
using SkinnedLocatorTriangleConstraint_const_u
using SkinnedLocatorTriangleConstraint_const_w
using SkinnedLocatorTriangleConstraintd_p = ::std::shared_ptr<SkinnedLocatorTriangleConstraintd>
using SkinnedLocatorTriangleConstraintd_u = ::std::unique_ptr<SkinnedLocatorTriangleConstraintd>
using SkinnedLocatorTriangleConstraintd_w = ::std::weak_ptr<SkinnedLocatorTriangleConstraintd>
using SkinnedLocatorTriangleConstraintd_const_p
using SkinnedLocatorTriangleConstraintd_const_u
using SkinnedLocatorTriangleConstraintd_const_w
using SupportContact = SupportContactT<float>
using SupportContactd = SupportContactT<double>
using SupportContact_p = ::std::shared_ptr<SupportContact>
using SupportContact_u = ::std::unique_ptr<SupportContact>
using SupportContact_w = ::std::weak_ptr<SupportContact>
using SupportContact_const_p = ::std::shared_ptr<const SupportContact>
using SupportContact_const_u = ::std::unique_ptr<const SupportContact>
using SupportContact_const_w = ::std::weak_ptr<const SupportContact>
using SupportContactd_p = ::std::shared_ptr<SupportContactd>
using SupportContactd_u = ::std::unique_ptr<SupportContactd>
using SupportContactd_w = ::std::weak_ptr<SupportContactd>
using SupportContactd_const_p = ::std::shared_ptr<const SupportContactd>
using SupportContactd_const_u = ::std::unique_ptr<const SupportContactd>
using SupportContactd_const_w = ::std::weak_ptr<const SupportContactd>
using SupportContactList = SupportContactListT<float>
using SupportContactListd = SupportContactListT<double>
using SupportContactList_p = ::std::shared_ptr<SupportContactList>
using SupportContactList_u = ::std::unique_ptr<SupportContactList>
using SupportContactList_w = ::std::weak_ptr<SupportContactList>
using SupportContactList_const_p = ::std::shared_ptr<const SupportContactList>
using SupportContactList_const_u = ::std::unique_ptr<const SupportContactList>
using SupportContactList_const_w = ::std::weak_ptr<const SupportContactList>
using SupportContactListd_p = ::std::shared_ptr<SupportContactListd>
using SupportContactListd_u = ::std::unique_ptr<SupportContactListd>
using SupportContactListd_w = ::std::weak_ptr<SupportContactListd>
using SupportContactListd_const_p = ::std::shared_ptr<const SupportContactListd>
using SupportContactListd_const_u = ::std::unique_ptr<const SupportContactListd>
using SupportContactListd_const_w = ::std::weak_ptr<const SupportContactListd>
using VertexSDFConstraint = VertexSDFConstraintT<float>
using VertexSDFConstraintd = VertexSDFConstraintT<double>
using VertexSDFConstraint_p = ::std::shared_ptr<VertexSDFConstraint>
using VertexSDFConstraint_u = ::std::unique_ptr<VertexSDFConstraint>
using VertexSDFConstraint_w = ::std::weak_ptr<VertexSDFConstraint>
using VertexSDFConstraint_const_p = ::std::shared_ptr<const VertexSDFConstraint>
using VertexSDFConstraint_const_u = ::std::unique_ptr<const VertexSDFConstraint>
using VertexSDFConstraint_const_w = ::std::weak_ptr<const VertexSDFConstraint>
using VertexSDFConstraintd_p = ::std::shared_ptr<VertexSDFConstraintd>
using VertexSDFConstraintd_u = ::std::unique_ptr<VertexSDFConstraintd>
using VertexSDFConstraintd_w = ::std::weak_ptr<VertexSDFConstraintd>
using VertexSDFConstraintd_const_p = ::std::shared_ptr<const VertexSDFConstraintd>
using VertexSDFConstraintd_const_u = ::std::unique_ptr<const VertexSDFConstraintd>
using VertexSDFConstraintd_const_w = ::std::weak_ptr<const VertexSDFConstraintd>
using SimdNormalErrorFunction_p = ::std::shared_ptr<SimdNormalErrorFunction>
using SimdNormalErrorFunction_u = ::std::unique_ptr<SimdNormalErrorFunction>
using SimdNormalErrorFunction_w = ::std::weak_ptr<SimdNormalErrorFunction>
using SimdNormalErrorFunction_const_p = ::std::shared_ptr<const SimdNormalErrorFunction>
using SimdNormalErrorFunction_const_u = ::std::unique_ptr<const SimdNormalErrorFunction>
using SimdNormalErrorFunction_const_w = ::std::weak_ptr<const SimdNormalErrorFunction>
using SimdPlaneErrorFunction_p = ::std::shared_ptr<SimdPlaneErrorFunction>
using SimdPlaneErrorFunction_u = ::std::unique_ptr<SimdPlaneErrorFunction>
using SimdPlaneErrorFunction_w = ::std::weak_ptr<SimdPlaneErrorFunction>
using SimdPlaneErrorFunction_const_p = ::std::shared_ptr<const SimdPlaneErrorFunction>
using SimdPlaneErrorFunction_const_u = ::std::unique_ptr<const SimdPlaneErrorFunction>
using SimdPlaneErrorFunction_const_w = ::std::weak_ptr<const SimdPlaneErrorFunction>
using SimdPositionErrorFunction_p = ::std::shared_ptr<SimdPositionErrorFunction>
using SimdPositionErrorFunction_u = ::std::unique_ptr<SimdPositionErrorFunction>
using SimdPositionErrorFunction_w = ::std::weak_ptr<SimdPositionErrorFunction>
using SimdPositionErrorFunction_const_p = ::std::shared_ptr<const SimdPositionErrorFunction>
using SimdPositionErrorFunction_const_u = ::std::unique_ptr<const SimdPositionErrorFunction>
using SimdPositionErrorFunction_const_w = ::std::weak_ptr<const SimdPositionErrorFunction>
using AimDirErrorFunction = AimDirErrorFunctionT<float>
using AimDirErrorFunctiond = AimDirErrorFunctionT<double>
using AimDirErrorFunction_p = ::std::shared_ptr<AimDirErrorFunction>
using AimDirErrorFunction_u = ::std::unique_ptr<AimDirErrorFunction>
using AimDirErrorFunction_w = ::std::weak_ptr<AimDirErrorFunction>
using AimDirErrorFunction_const_p = ::std::shared_ptr<const AimDirErrorFunction>
using AimDirErrorFunction_const_u = ::std::unique_ptr<const AimDirErrorFunction>
using AimDirErrorFunction_const_w = ::std::weak_ptr<const AimDirErrorFunction>
using AimDirErrorFunctiond_p = ::std::shared_ptr<AimDirErrorFunctiond>
using AimDirErrorFunctiond_u = ::std::unique_ptr<AimDirErrorFunctiond>
using AimDirErrorFunctiond_w = ::std::weak_ptr<AimDirErrorFunctiond>
using AimDirErrorFunctiond_const_p = ::std::shared_ptr<const AimDirErrorFunctiond>
using AimDirErrorFunctiond_const_u = ::std::unique_ptr<const AimDirErrorFunctiond>
using AimDirErrorFunctiond_const_w = ::std::weak_ptr<const AimDirErrorFunctiond>
using AimDistErrorFunction = AimDistErrorFunctionT<float>
using AimDistErrorFunctiond = AimDistErrorFunctionT<double>
using AimDistErrorFunction_p = ::std::shared_ptr<AimDistErrorFunction>
using AimDistErrorFunction_u = ::std::unique_ptr<AimDistErrorFunction>
using AimDistErrorFunction_w = ::std::weak_ptr<AimDistErrorFunction>
using AimDistErrorFunction_const_p = ::std::shared_ptr<const AimDistErrorFunction>
using AimDistErrorFunction_const_u = ::std::unique_ptr<const AimDistErrorFunction>
using AimDistErrorFunction_const_w = ::std::weak_ptr<const AimDistErrorFunction>
using AimDistErrorFunctiond_p = ::std::shared_ptr<AimDistErrorFunctiond>
using AimDistErrorFunctiond_u = ::std::unique_ptr<AimDistErrorFunctiond>
using AimDistErrorFunctiond_w = ::std::weak_ptr<AimDistErrorFunctiond>
using AimDistErrorFunctiond_const_p = ::std::shared_ptr<const AimDistErrorFunctiond>
using AimDistErrorFunctiond_const_u = ::std::unique_ptr<const AimDistErrorFunctiond>
using AimDistErrorFunctiond_const_w = ::std::weak_ptr<const AimDistErrorFunctiond>
using CameraProjectionErrorFunction = CameraProjectionErrorFunctionT<float>
using CameraProjectionErrorFunctiond = CameraProjectionErrorFunctionT<double>
using CameraProjectionErrorFunction_p = ::std::shared_ptr<CameraProjectionErrorFunction>
using CameraProjectionErrorFunction_u = ::std::unique_ptr<CameraProjectionErrorFunction>
using CameraProjectionErrorFunction_w = ::std::weak_ptr<CameraProjectionErrorFunction>
using CameraProjectionErrorFunction_const_p
using CameraProjectionErrorFunction_const_u
using CameraProjectionErrorFunction_const_w = ::std::weak_ptr<const CameraProjectionErrorFunction>
using CameraProjectionErrorFunctiond_p = ::std::shared_ptr<CameraProjectionErrorFunctiond>
using CameraProjectionErrorFunctiond_u = ::std::unique_ptr<CameraProjectionErrorFunctiond>
using CameraProjectionErrorFunctiond_w = ::std::weak_ptr<CameraProjectionErrorFunctiond>
using CameraProjectionErrorFunctiond_const_p
using CameraProjectionErrorFunctiond_const_u
using CameraProjectionErrorFunctiond_const_w
using CameraVertexProjectionErrorFunction = CameraVertexProjectionErrorFunctionT<float>
using CameraVertexProjectionErrorFunctiond = CameraVertexProjectionErrorFunctionT<double>
using CameraVertexProjectionErrorFunction_p
using CameraVertexProjectionErrorFunction_u
using CameraVertexProjectionErrorFunction_w = ::std::weak_ptr<CameraVertexProjectionErrorFunction>
using CameraVertexProjectionErrorFunction_const_p
using CameraVertexProjectionErrorFunction_const_u
using CameraVertexProjectionErrorFunction_const_w
using CameraVertexProjectionErrorFunctiond_p
using CameraVertexProjectionErrorFunctiond_u
using CameraVertexProjectionErrorFunctiond_w
using CameraVertexProjectionErrorFunctiond_const_p
using CameraVertexProjectionErrorFunctiond_const_u
using CameraVertexProjectionErrorFunctiond_const_w
using CenterOfMassErrorFunction = CenterOfMassErrorFunctionT<float>
using CenterOfMassErrorFunctiond = CenterOfMassErrorFunctionT<double>
using CenterOfMassErrorFunction_p = ::std::shared_ptr<CenterOfMassErrorFunction>
using CenterOfMassErrorFunction_u = ::std::unique_ptr<CenterOfMassErrorFunction>
using CenterOfMassErrorFunction_w = ::std::weak_ptr<CenterOfMassErrorFunction>
using CenterOfMassErrorFunction_const_p = ::std::shared_ptr<const CenterOfMassErrorFunction>
using CenterOfMassErrorFunction_const_u = ::std::unique_ptr<const CenterOfMassErrorFunction>
using CenterOfMassErrorFunction_const_w = ::std::weak_ptr<const CenterOfMassErrorFunction>
using CenterOfMassErrorFunctiond_p = ::std::shared_ptr<CenterOfMassErrorFunctiond>
using CenterOfMassErrorFunctiond_u = ::std::unique_ptr<CenterOfMassErrorFunctiond>
using CenterOfMassErrorFunctiond_w = ::std::weak_ptr<CenterOfMassErrorFunctiond>
using CenterOfMassErrorFunctiond_const_p = ::std::shared_ptr<const CenterOfMassErrorFunctiond>
using CenterOfMassErrorFunctiond_const_u = ::std::unique_ptr<const CenterOfMassErrorFunctiond>
using CenterOfMassErrorFunctiond_const_w = ::std::weak_ptr<const CenterOfMassErrorFunctiond>
using CollisionErrorFunction = CollisionErrorFunctionT<float>
using CollisionErrorFunctiond = CollisionErrorFunctionT<double>
using CollisionErrorFunction_p = ::std::shared_ptr<CollisionErrorFunction>
using CollisionErrorFunction_u = ::std::unique_ptr<CollisionErrorFunction>
using CollisionErrorFunction_w = ::std::weak_ptr<CollisionErrorFunction>
using CollisionErrorFunction_const_p = ::std::shared_ptr<const CollisionErrorFunction>
using CollisionErrorFunction_const_u = ::std::unique_ptr<const CollisionErrorFunction>
using CollisionErrorFunction_const_w = ::std::weak_ptr<const CollisionErrorFunction>
using CollisionErrorFunctiond_p = ::std::shared_ptr<CollisionErrorFunctiond>
using CollisionErrorFunctiond_u = ::std::unique_ptr<CollisionErrorFunctiond>
using CollisionErrorFunctiond_w = ::std::weak_ptr<CollisionErrorFunctiond>
using CollisionErrorFunctiond_const_p = ::std::shared_ptr<const CollisionErrorFunctiond>
using CollisionErrorFunctiond_const_u = ::std::unique_ptr<const CollisionErrorFunctiond>
using CollisionErrorFunctiond_const_w = ::std::weak_ptr<const CollisionErrorFunctiond>
using CollisionErrorFunctionStateless = CollisionErrorFunctionStatelessT<float>
using CollisionErrorFunctionStatelessd = CollisionErrorFunctionStatelessT<double>
using CollisionErrorFunctionStateless_p = ::std::shared_ptr<CollisionErrorFunctionStateless>
using CollisionErrorFunctionStateless_u = ::std::unique_ptr<CollisionErrorFunctionStateless>
using CollisionErrorFunctionStateless_w = ::std::weak_ptr<CollisionErrorFunctionStateless>
using CollisionErrorFunctionStateless_const_p
using CollisionErrorFunctionStateless_const_u
using CollisionErrorFunctionStateless_const_w
using CollisionErrorFunctionStatelessd_p = ::std::shared_ptr<CollisionErrorFunctionStatelessd>
using CollisionErrorFunctionStatelessd_u = ::std::unique_ptr<CollisionErrorFunctionStatelessd>
using CollisionErrorFunctionStatelessd_w = ::std::weak_ptr<CollisionErrorFunctionStatelessd>
using CollisionErrorFunctionStatelessd_const_p
using CollisionErrorFunctionStatelessd_const_u
using CollisionErrorFunctionStatelessd_const_w
using DistanceErrorFunction = DistanceErrorFunctionT<float>
using DistanceErrorFunctiond = DistanceErrorFunctionT<double>
using DistanceErrorFunction_p = ::std::shared_ptr<DistanceErrorFunction>
using DistanceErrorFunction_u = ::std::unique_ptr<DistanceErrorFunction>
using DistanceErrorFunction_w = ::std::weak_ptr<DistanceErrorFunction>
using DistanceErrorFunction_const_p = ::std::shared_ptr<const DistanceErrorFunction>
using DistanceErrorFunction_const_u = ::std::unique_ptr<const DistanceErrorFunction>
using DistanceErrorFunction_const_w = ::std::weak_ptr<const DistanceErrorFunction>
using DistanceErrorFunctiond_p = ::std::shared_ptr<DistanceErrorFunctiond>
using DistanceErrorFunctiond_u = ::std::unique_ptr<DistanceErrorFunctiond>
using DistanceErrorFunctiond_w = ::std::weak_ptr<DistanceErrorFunctiond>
using DistanceErrorFunctiond_const_p = ::std::shared_ptr<const DistanceErrorFunctiond>
using DistanceErrorFunctiond_const_u = ::std::unique_ptr<const DistanceErrorFunctiond>
using DistanceErrorFunctiond_const_w = ::std::weak_ptr<const DistanceErrorFunctiond>
using FixedAxisAngleErrorFunction = FixedAxisAngleErrorFunctionT<float>
using FixedAxisAngleErrorFunctiond = FixedAxisAngleErrorFunctionT<double>
using FixedAxisAngleErrorFunction_p = ::std::shared_ptr<FixedAxisAngleErrorFunction>
using FixedAxisAngleErrorFunction_u = ::std::unique_ptr<FixedAxisAngleErrorFunction>
using FixedAxisAngleErrorFunction_w = ::std::weak_ptr<FixedAxisAngleErrorFunction>
using FixedAxisAngleErrorFunction_const_p = ::std::shared_ptr<const FixedAxisAngleErrorFunction>
using FixedAxisAngleErrorFunction_const_u = ::std::unique_ptr<const FixedAxisAngleErrorFunction>
using FixedAxisAngleErrorFunction_const_w = ::std::weak_ptr<const FixedAxisAngleErrorFunction>
using FixedAxisAngleErrorFunctiond_p = ::std::shared_ptr<FixedAxisAngleErrorFunctiond>
using FixedAxisAngleErrorFunctiond_u = ::std::unique_ptr<FixedAxisAngleErrorFunctiond>
using FixedAxisAngleErrorFunctiond_w = ::std::weak_ptr<FixedAxisAngleErrorFunctiond>
using FixedAxisAngleErrorFunctiond_const_p = ::std::shared_ptr<const FixedAxisAngleErrorFunctiond>
using FixedAxisAngleErrorFunctiond_const_u = ::std::unique_ptr<const FixedAxisAngleErrorFunctiond>
using FixedAxisAngleErrorFunctiond_const_w = ::std::weak_ptr<const FixedAxisAngleErrorFunctiond>
using FixedAxisCosErrorFunction = FixedAxisCosErrorFunctionT<float>
using FixedAxisCosErrorFunctiond = FixedAxisCosErrorFunctionT<double>
using FixedAxisCosErrorFunction_p = ::std::shared_ptr<FixedAxisCosErrorFunction>
using FixedAxisCosErrorFunction_u = ::std::unique_ptr<FixedAxisCosErrorFunction>
using FixedAxisCosErrorFunction_w = ::std::weak_ptr<FixedAxisCosErrorFunction>
using FixedAxisCosErrorFunction_const_p = ::std::shared_ptr<const FixedAxisCosErrorFunction>
using FixedAxisCosErrorFunction_const_u = ::std::unique_ptr<const FixedAxisCosErrorFunction>
using FixedAxisCosErrorFunction_const_w = ::std::weak_ptr<const FixedAxisCosErrorFunction>
using FixedAxisCosErrorFunctiond_p = ::std::shared_ptr<FixedAxisCosErrorFunctiond>
using FixedAxisCosErrorFunctiond_u = ::std::unique_ptr<FixedAxisCosErrorFunctiond>
using FixedAxisCosErrorFunctiond_w = ::std::weak_ptr<FixedAxisCosErrorFunctiond>
using FixedAxisCosErrorFunctiond_const_p = ::std::shared_ptr<const FixedAxisCosErrorFunctiond>
using FixedAxisCosErrorFunctiond_const_u = ::std::unique_ptr<const FixedAxisCosErrorFunctiond>
using FixedAxisCosErrorFunctiond_const_w = ::std::weak_ptr<const FixedAxisCosErrorFunctiond>
using FixedAxisDiffErrorFunction = FixedAxisDiffErrorFunctionT<float>
using FixedAxisDiffErrorFunctiond = FixedAxisDiffErrorFunctionT<double>
using FixedAxisDiffErrorFunction_p = ::std::shared_ptr<FixedAxisDiffErrorFunction>
using FixedAxisDiffErrorFunction_u = ::std::unique_ptr<FixedAxisDiffErrorFunction>
using FixedAxisDiffErrorFunction_w = ::std::weak_ptr<FixedAxisDiffErrorFunction>
using FixedAxisDiffErrorFunction_const_p = ::std::shared_ptr<const FixedAxisDiffErrorFunction>
using FixedAxisDiffErrorFunction_const_u = ::std::unique_ptr<const FixedAxisDiffErrorFunction>
using FixedAxisDiffErrorFunction_const_w = ::std::weak_ptr<const FixedAxisDiffErrorFunction>
using FixedAxisDiffErrorFunctiond_p = ::std::shared_ptr<FixedAxisDiffErrorFunctiond>
using FixedAxisDiffErrorFunctiond_u = ::std::unique_ptr<FixedAxisDiffErrorFunctiond>
using FixedAxisDiffErrorFunctiond_w = ::std::weak_ptr<FixedAxisDiffErrorFunctiond>
using FixedAxisDiffErrorFunctiond_const_p = ::std::shared_ptr<const FixedAxisDiffErrorFunctiond>
using FixedAxisDiffErrorFunctiond_const_u = ::std::unique_ptr<const FixedAxisDiffErrorFunctiond>
using FixedAxisDiffErrorFunctiond_const_w = ::std::weak_ptr<const FixedAxisDiffErrorFunctiond>
using FloorErrorFunction = FloorErrorFunctionT<float>
using FloorErrorFunctiond = FloorErrorFunctionT<double>
using FloorErrorFunction_p = ::std::shared_ptr<FloorErrorFunction>
using FloorErrorFunction_u = ::std::unique_ptr<FloorErrorFunction>
using FloorErrorFunction_w = ::std::weak_ptr<FloorErrorFunction>
using FloorErrorFunction_const_p = ::std::shared_ptr<const FloorErrorFunction>
using FloorErrorFunction_const_u = ::std::unique_ptr<const FloorErrorFunction>
using FloorErrorFunction_const_w = ::std::weak_ptr<const FloorErrorFunction>
using FloorErrorFunctiond_p = ::std::shared_ptr<FloorErrorFunctiond>
using FloorErrorFunctiond_u = ::std::unique_ptr<FloorErrorFunctiond>
using FloorErrorFunctiond_w = ::std::weak_ptr<FloorErrorFunctiond>
using FloorErrorFunctiond_const_p = ::std::shared_ptr<const FloorErrorFunctiond>
using FloorErrorFunctiond_const_u = ::std::unique_ptr<const FloorErrorFunctiond>
using FloorErrorFunctiond_const_w = ::std::weak_ptr<const FloorErrorFunctiond>
using GaussNewtonSolverQR = GaussNewtonSolverQRT<float>
using GaussNewtonSolverQRd = GaussNewtonSolverQRT<double>
using GaussNewtonSolverQR_p = ::std::shared_ptr<GaussNewtonSolverQR>
using GaussNewtonSolverQR_u = ::std::unique_ptr<GaussNewtonSolverQR>
using GaussNewtonSolverQR_w = ::std::weak_ptr<GaussNewtonSolverQR>
using GaussNewtonSolverQR_const_p = ::std::shared_ptr<const GaussNewtonSolverQR>
using GaussNewtonSolverQR_const_u = ::std::unique_ptr<const GaussNewtonSolverQR>
using GaussNewtonSolverQR_const_w = ::std::weak_ptr<const GaussNewtonSolverQR>
using GaussNewtonSolverQRd_p = ::std::shared_ptr<GaussNewtonSolverQRd>
using GaussNewtonSolverQRd_u = ::std::unique_ptr<GaussNewtonSolverQRd>
using GaussNewtonSolverQRd_w = ::std::weak_ptr<GaussNewtonSolverQRd>
using GaussNewtonSolverQRd_const_p = ::std::shared_ptr<const GaussNewtonSolverQRd>
using GaussNewtonSolverQRd_const_u = ::std::unique_ptr<const GaussNewtonSolverQRd>
using GaussNewtonSolverQRd_const_w = ::std::weak_ptr<const GaussNewtonSolverQRd>
using HeightErrorFunction = HeightErrorFunctionT<float>
using HeightErrorFunctiond = HeightErrorFunctionT<double>
using HeightErrorFunction_p = ::std::shared_ptr<HeightErrorFunction>
using HeightErrorFunction_u = ::std::unique_ptr<HeightErrorFunction>
using HeightErrorFunction_w = ::std::weak_ptr<HeightErrorFunction>
using HeightErrorFunction_const_p = ::std::shared_ptr<const HeightErrorFunction>
using HeightErrorFunction_const_u = ::std::unique_ptr<const HeightErrorFunction>
using HeightErrorFunction_const_w = ::std::weak_ptr<const HeightErrorFunction>
using HeightErrorFunctiond_p = ::std::shared_ptr<HeightErrorFunctiond>
using HeightErrorFunctiond_u = ::std::unique_ptr<HeightErrorFunctiond>
using HeightErrorFunctiond_w = ::std::weak_ptr<HeightErrorFunctiond>
using HeightErrorFunctiond_const_p = ::std::shared_ptr<const HeightErrorFunctiond>
using HeightErrorFunctiond_const_u = ::std::unique_ptr<const HeightErrorFunctiond>
using HeightErrorFunctiond_const_w = ::std::weak_ptr<const HeightErrorFunctiond>
using JointToJointDistanceErrorFunction = JointToJointDistanceErrorFunctionT<float>
using JointToJointDistanceErrorFunctiond = JointToJointDistanceErrorFunctionT<double>
using JointToJointDistanceErrorFunction_p = ::std::shared_ptr<JointToJointDistanceErrorFunction>
using JointToJointDistanceErrorFunction_u = ::std::unique_ptr<JointToJointDistanceErrorFunction>
using JointToJointDistanceErrorFunction_w = ::std::weak_ptr<JointToJointDistanceErrorFunction>
using JointToJointDistanceErrorFunction_const_p
using JointToJointDistanceErrorFunction_const_u
using JointToJointDistanceErrorFunction_const_w
using JointToJointDistanceErrorFunctiond_p = ::std::shared_ptr<JointToJointDistanceErrorFunctiond>
using JointToJointDistanceErrorFunctiond_u = ::std::unique_ptr<JointToJointDistanceErrorFunctiond>
using JointToJointDistanceErrorFunctiond_w = ::std::weak_ptr<JointToJointDistanceErrorFunctiond>
using JointToJointDistanceErrorFunctiond_const_p
using JointToJointDistanceErrorFunctiond_const_u
using JointToJointDistanceErrorFunctiond_const_w
using JointToJointPositionErrorFunction = JointToJointPositionErrorFunctionT<float>
using JointToJointPositionErrorFunctiond = JointToJointPositionErrorFunctionT<double>
using JointToJointPositionErrorFunction_p = ::std::shared_ptr<JointToJointPositionErrorFunction>
using JointToJointPositionErrorFunction_u = ::std::unique_ptr<JointToJointPositionErrorFunction>
using JointToJointPositionErrorFunction_w = ::std::weak_ptr<JointToJointPositionErrorFunction>
using JointToJointPositionErrorFunction_const_p
using JointToJointPositionErrorFunction_const_u
using JointToJointPositionErrorFunction_const_w
using JointToJointPositionErrorFunctiond_p = ::std::shared_ptr<JointToJointPositionErrorFunctiond>
using JointToJointPositionErrorFunctiond_u = ::std::unique_ptr<JointToJointPositionErrorFunctiond>
using JointToJointPositionErrorFunctiond_w = ::std::weak_ptr<JointToJointPositionErrorFunctiond>
using JointToJointPositionErrorFunctiond_const_p
using JointToJointPositionErrorFunctiond_const_u
using JointToJointPositionErrorFunctiond_const_w
using JointToJointOrientationErrorFunction = JointToJointOrientationErrorFunctionT<float>
using JointToJointOrientationErrorFunctiond = JointToJointOrientationErrorFunctionT<double>
using JointToJointOrientationErrorFunction_p
using JointToJointOrientationErrorFunction_u
using JointToJointOrientationErrorFunction_w
using JointToJointOrientationErrorFunction_const_p
using JointToJointOrientationErrorFunction_const_u
using JointToJointOrientationErrorFunction_const_w
using JointToJointOrientationErrorFunctiond_p
using JointToJointOrientationErrorFunctiond_u
using JointToJointOrientationErrorFunctiond_w
using JointToJointOrientationErrorFunctiond_const_p
using JointToJointOrientationErrorFunctiond_const_u
using JointToJointOrientationErrorFunctiond_const_w
using LimitErrorFunction = LimitErrorFunctionT<float>
using LimitErrorFunctiond = LimitErrorFunctionT<double>
using LimitErrorFunction_p = ::std::shared_ptr<LimitErrorFunction>
using LimitErrorFunction_u = ::std::unique_ptr<LimitErrorFunction>
using LimitErrorFunction_w = ::std::weak_ptr<LimitErrorFunction>
using LimitErrorFunction_const_p = ::std::shared_ptr<const LimitErrorFunction>
using LimitErrorFunction_const_u = ::std::unique_ptr<const LimitErrorFunction>
using LimitErrorFunction_const_w = ::std::weak_ptr<const LimitErrorFunction>
using LimitErrorFunctiond_p = ::std::shared_ptr<LimitErrorFunctiond>
using LimitErrorFunctiond_u = ::std::unique_ptr<LimitErrorFunctiond>
using LimitErrorFunctiond_w = ::std::weak_ptr<LimitErrorFunctiond>
using LimitErrorFunctiond_const_p = ::std::shared_ptr<const LimitErrorFunctiond>
using LimitErrorFunctiond_const_u = ::std::unique_ptr<const LimitErrorFunctiond>
using LimitErrorFunctiond_const_w = ::std::weak_ptr<const LimitErrorFunctiond>
using ModelParametersErrorFunction = ModelParametersErrorFunctionT<float>
using ModelParametersErrorFunctiond = ModelParametersErrorFunctionT<double>
using ModelParametersErrorFunction_p = ::std::shared_ptr<ModelParametersErrorFunction>
using ModelParametersErrorFunction_u = ::std::unique_ptr<ModelParametersErrorFunction>
using ModelParametersErrorFunction_w = ::std::weak_ptr<ModelParametersErrorFunction>
using ModelParametersErrorFunction_const_p = ::std::shared_ptr<const ModelParametersErrorFunction>
using ModelParametersErrorFunction_const_u = ::std::unique_ptr<const ModelParametersErrorFunction>
using ModelParametersErrorFunction_const_w = ::std::weak_ptr<const ModelParametersErrorFunction>
using ModelParametersErrorFunctiond_p = ::std::shared_ptr<ModelParametersErrorFunctiond>
using ModelParametersErrorFunctiond_u = ::std::unique_ptr<ModelParametersErrorFunctiond>
using ModelParametersErrorFunctiond_w = ::std::weak_ptr<ModelParametersErrorFunctiond>
using ModelParametersErrorFunctiond_const_p
using ModelParametersErrorFunctiond_const_u
using ModelParametersErrorFunctiond_const_w = ::std::weak_ptr<const ModelParametersErrorFunctiond>
using NormalErrorFunction = NormalErrorFunctionT<float>
using NormalErrorFunctiond = NormalErrorFunctionT<double>
using NormalErrorFunction_p = ::std::shared_ptr<NormalErrorFunction>
using NormalErrorFunction_u = ::std::unique_ptr<NormalErrorFunction>
using NormalErrorFunction_w = ::std::weak_ptr<NormalErrorFunction>
using NormalErrorFunction_const_p = ::std::shared_ptr<const NormalErrorFunction>
using NormalErrorFunction_const_u = ::std::unique_ptr<const NormalErrorFunction>
using NormalErrorFunction_const_w = ::std::weak_ptr<const NormalErrorFunction>
using NormalErrorFunctiond_p = ::std::shared_ptr<NormalErrorFunctiond>
using NormalErrorFunctiond_u = ::std::unique_ptr<NormalErrorFunctiond>
using NormalErrorFunctiond_w = ::std::weak_ptr<NormalErrorFunctiond>
using NormalErrorFunctiond_const_p = ::std::shared_ptr<const NormalErrorFunctiond>
using NormalErrorFunctiond_const_u = ::std::unique_ptr<const NormalErrorFunctiond>
using NormalErrorFunctiond_const_w = ::std::weak_ptr<const NormalErrorFunctiond>
using OrientationErrorFunction = OrientationErrorFunctionT<float>
using OrientationErrorFunctiond = OrientationErrorFunctionT<double>
using OrientationErrorFunction_p = ::std::shared_ptr<OrientationErrorFunction>
using OrientationErrorFunction_u = ::std::unique_ptr<OrientationErrorFunction>
using OrientationErrorFunction_w = ::std::weak_ptr<OrientationErrorFunction>
using OrientationErrorFunction_const_p = ::std::shared_ptr<const OrientationErrorFunction>
using OrientationErrorFunction_const_u = ::std::unique_ptr<const OrientationErrorFunction>
using OrientationErrorFunction_const_w = ::std::weak_ptr<const OrientationErrorFunction>
using OrientationErrorFunctiond_p = ::std::shared_ptr<OrientationErrorFunctiond>
using OrientationErrorFunctiond_u = ::std::unique_ptr<OrientationErrorFunctiond>
using OrientationErrorFunctiond_w = ::std::weak_ptr<OrientationErrorFunctiond>
using OrientationErrorFunctiond_const_p = ::std::shared_ptr<const OrientationErrorFunctiond>
using OrientationErrorFunctiond_const_u = ::std::unique_ptr<const OrientationErrorFunctiond>
using OrientationErrorFunctiond_const_w = ::std::weak_ptr<const OrientationErrorFunctiond>
using OrientationRotDiffErrorFunction = OrientationRotDiffErrorFunctionT<float>
using OrientationRotDiffErrorFunctiond = OrientationRotDiffErrorFunctionT<double>
using OrientationRotDiffErrorFunction_p = ::std::shared_ptr<OrientationRotDiffErrorFunction>
using OrientationRotDiffErrorFunction_u = ::std::unique_ptr<OrientationRotDiffErrorFunction>
using OrientationRotDiffErrorFunction_w = ::std::weak_ptr<OrientationRotDiffErrorFunction>
using OrientationRotDiffErrorFunction_const_p
using OrientationRotDiffErrorFunction_const_u
using OrientationRotDiffErrorFunction_const_w
using OrientationRotDiffErrorFunctiond_p = ::std::shared_ptr<OrientationRotDiffErrorFunctiond>
using OrientationRotDiffErrorFunctiond_u = ::std::unique_ptr<OrientationRotDiffErrorFunctiond>
using OrientationRotDiffErrorFunctiond_w = ::std::weak_ptr<OrientationRotDiffErrorFunctiond>
using OrientationRotDiffErrorFunctiond_const_p
using OrientationRotDiffErrorFunctiond_const_u
using OrientationRotDiffErrorFunctiond_const_w
using PlaneCollisionErrorFunction = PlaneCollisionErrorFunctionT<float>
using PlaneCollisionErrorFunctiond = PlaneCollisionErrorFunctionT<double>
using PlaneCollisionErrorFunction_p = ::std::shared_ptr<PlaneCollisionErrorFunction>
using PlaneCollisionErrorFunction_u = ::std::unique_ptr<PlaneCollisionErrorFunction>
using PlaneCollisionErrorFunction_w = ::std::weak_ptr<PlaneCollisionErrorFunction>
using PlaneCollisionErrorFunction_const_p = ::std::shared_ptr<const PlaneCollisionErrorFunction>
using PlaneCollisionErrorFunction_const_u = ::std::unique_ptr<const PlaneCollisionErrorFunction>
using PlaneCollisionErrorFunction_const_w = ::std::weak_ptr<const PlaneCollisionErrorFunction>
using PlaneCollisionErrorFunctiond_p = ::std::shared_ptr<PlaneCollisionErrorFunctiond>
using PlaneCollisionErrorFunctiond_u = ::std::unique_ptr<PlaneCollisionErrorFunctiond>
using PlaneCollisionErrorFunctiond_w = ::std::weak_ptr<PlaneCollisionErrorFunctiond>
using PlaneCollisionErrorFunctiond_const_p = ::std::shared_ptr<const PlaneCollisionErrorFunctiond>
using PlaneCollisionErrorFunctiond_const_u = ::std::unique_ptr<const PlaneCollisionErrorFunctiond>
using PlaneCollisionErrorFunctiond_const_w = ::std::weak_ptr<const PlaneCollisionErrorFunctiond>
using PlaneCollisionQuery = PlaneCollisionQueryT<float>
using PlaneCollisionQueryd = PlaneCollisionQueryT<double>
using PlaneCollisionQuery_p = ::std::shared_ptr<PlaneCollisionQuery>
using PlaneCollisionQuery_u = ::std::unique_ptr<PlaneCollisionQuery>
using PlaneCollisionQuery_w = ::std::weak_ptr<PlaneCollisionQuery>
using PlaneCollisionQuery_const_p = ::std::shared_ptr<const PlaneCollisionQuery>
using PlaneCollisionQuery_const_u = ::std::unique_ptr<const PlaneCollisionQuery>
using PlaneCollisionQuery_const_w = ::std::weak_ptr<const PlaneCollisionQuery>
using PlaneCollisionQueryd_p = ::std::shared_ptr<PlaneCollisionQueryd>
using PlaneCollisionQueryd_u = ::std::unique_ptr<PlaneCollisionQueryd>
using PlaneCollisionQueryd_w = ::std::weak_ptr<PlaneCollisionQueryd>
using PlaneCollisionQueryd_const_p = ::std::shared_ptr<const PlaneCollisionQueryd>
using PlaneCollisionQueryd_const_u = ::std::unique_ptr<const PlaneCollisionQueryd>
using PlaneCollisionQueryd_const_w = ::std::weak_ptr<const PlaneCollisionQueryd>
using PlaneErrorFunction = PlaneErrorFunctionT<float>
using PlaneErrorFunctiond = PlaneErrorFunctionT<double>
using PlaneErrorFunction_p = ::std::shared_ptr<PlaneErrorFunction>
using PlaneErrorFunction_u = ::std::unique_ptr<PlaneErrorFunction>
using PlaneErrorFunction_w = ::std::weak_ptr<PlaneErrorFunction>
using PlaneErrorFunction_const_p = ::std::shared_ptr<const PlaneErrorFunction>
using PlaneErrorFunction_const_u = ::std::unique_ptr<const PlaneErrorFunction>
using PlaneErrorFunction_const_w = ::std::weak_ptr<const PlaneErrorFunction>
using PlaneErrorFunctiond_p = ::std::shared_ptr<PlaneErrorFunctiond>
using PlaneErrorFunctiond_u = ::std::unique_ptr<PlaneErrorFunctiond>
using PlaneErrorFunctiond_w = ::std::weak_ptr<PlaneErrorFunctiond>
using PlaneErrorFunctiond_const_p = ::std::shared_ptr<const PlaneErrorFunctiond>
using PlaneErrorFunctiond_const_u = ::std::unique_ptr<const PlaneErrorFunctiond>
using PlaneErrorFunctiond_const_w = ::std::weak_ptr<const PlaneErrorFunctiond>
using PointTriangleVertexErrorFunction = PointTriangleVertexErrorFunctionT<float>
using PointTriangleVertexErrorFunctiond = PointTriangleVertexErrorFunctionT<double>
using PointTriangleVertexErrorFunction_p = ::std::shared_ptr<PointTriangleVertexErrorFunction>
using PointTriangleVertexErrorFunction_u = ::std::unique_ptr<PointTriangleVertexErrorFunction>
using PointTriangleVertexErrorFunction_w = ::std::weak_ptr<PointTriangleVertexErrorFunction>
using PointTriangleVertexErrorFunction_const_p
using PointTriangleVertexErrorFunction_const_u
using PointTriangleVertexErrorFunction_const_w
using PointTriangleVertexErrorFunctiond_p = ::std::shared_ptr<PointTriangleVertexErrorFunctiond>
using PointTriangleVertexErrorFunctiond_u = ::std::unique_ptr<PointTriangleVertexErrorFunctiond>
using PointTriangleVertexErrorFunctiond_w = ::std::weak_ptr<PointTriangleVertexErrorFunctiond>
using PointTriangleVertexErrorFunctiond_const_p
using PointTriangleVertexErrorFunctiond_const_u
using PointTriangleVertexErrorFunctiond_const_w
using PosePriorErrorFunction = PosePriorErrorFunctionT<float>
using PosePriorErrorFunctiond = PosePriorErrorFunctionT<double>
using PosePriorErrorFunction_p = ::std::shared_ptr<PosePriorErrorFunction>
using PosePriorErrorFunction_u = ::std::unique_ptr<PosePriorErrorFunction>
using PosePriorErrorFunction_w = ::std::weak_ptr<PosePriorErrorFunction>
using PosePriorErrorFunction_const_p = ::std::shared_ptr<const PosePriorErrorFunction>
using PosePriorErrorFunction_const_u = ::std::unique_ptr<const PosePriorErrorFunction>
using PosePriorErrorFunction_const_w = ::std::weak_ptr<const PosePriorErrorFunction>
using PosePriorErrorFunctiond_p = ::std::shared_ptr<PosePriorErrorFunctiond>
using PosePriorErrorFunctiond_u = ::std::unique_ptr<PosePriorErrorFunctiond>
using PosePriorErrorFunctiond_w = ::std::weak_ptr<PosePriorErrorFunctiond>
using PosePriorErrorFunctiond_const_p = ::std::shared_ptr<const PosePriorErrorFunctiond>
using PosePriorErrorFunctiond_const_u = ::std::unique_ptr<const PosePriorErrorFunctiond>
using PosePriorErrorFunctiond_const_w = ::std::weak_ptr<const PosePriorErrorFunctiond>
using PoseTransformSolver = PoseTransformSolverT<float>
using PoseTransformSolverd = PoseTransformSolverT<double>
using PoseTransformSolver_p = ::std::shared_ptr<PoseTransformSolver>
using PoseTransformSolver_u = ::std::unique_ptr<PoseTransformSolver>
using PoseTransformSolver_w = ::std::weak_ptr<PoseTransformSolver>
using PoseTransformSolver_const_p = ::std::shared_ptr<const PoseTransformSolver>
using PoseTransformSolver_const_u = ::std::unique_ptr<const PoseTransformSolver>
using PoseTransformSolver_const_w = ::std::weak_ptr<const PoseTransformSolver>
using PoseTransformSolverd_p = ::std::shared_ptr<PoseTransformSolverd>
using PoseTransformSolverd_u = ::std::unique_ptr<PoseTransformSolverd>
using PoseTransformSolverd_w = ::std::weak_ptr<PoseTransformSolverd>
using PoseTransformSolverd_const_p = ::std::shared_ptr<const PoseTransformSolverd>
using PoseTransformSolverd_const_u = ::std::unique_ptr<const PoseTransformSolverd>
using PoseTransformSolverd_const_w = ::std::weak_ptr<const PoseTransformSolverd>
using PositionErrorFunction = PositionErrorFunctionT<float>
using PositionErrorFunctiond = PositionErrorFunctionT<double>
using PositionErrorFunction_p = ::std::shared_ptr<PositionErrorFunction>
using PositionErrorFunction_u = ::std::unique_ptr<PositionErrorFunction>
using PositionErrorFunction_w = ::std::weak_ptr<PositionErrorFunction>
using PositionErrorFunction_const_p = ::std::shared_ptr<const PositionErrorFunction>
using PositionErrorFunction_const_u = ::std::unique_ptr<const PositionErrorFunction>
using PositionErrorFunction_const_w = ::std::weak_ptr<const PositionErrorFunction>
using PositionErrorFunctiond_p = ::std::shared_ptr<PositionErrorFunctiond>
using PositionErrorFunctiond_u = ::std::unique_ptr<PositionErrorFunctiond>
using PositionErrorFunctiond_w = ::std::weak_ptr<PositionErrorFunctiond>
using PositionErrorFunctiond_const_p = ::std::shared_ptr<const PositionErrorFunctiond>
using PositionErrorFunctiond_const_u = ::std::unique_ptr<const PositionErrorFunctiond>
using PositionErrorFunctiond_const_w = ::std::weak_ptr<const PositionErrorFunctiond>
using ProjectionErrorFunction = ProjectionErrorFunctionT<float>
using ProjectionErrorFunctiond = ProjectionErrorFunctionT<double>
using ProjectionErrorFunction_p = ::std::shared_ptr<ProjectionErrorFunction>
using ProjectionErrorFunction_u = ::std::unique_ptr<ProjectionErrorFunction>
using ProjectionErrorFunction_w = ::std::weak_ptr<ProjectionErrorFunction>
using ProjectionErrorFunction_const_p = ::std::shared_ptr<const ProjectionErrorFunction>
using ProjectionErrorFunction_const_u = ::std::unique_ptr<const ProjectionErrorFunction>
using ProjectionErrorFunction_const_w = ::std::weak_ptr<const ProjectionErrorFunction>
using ProjectionErrorFunctiond_p = ::std::shared_ptr<ProjectionErrorFunctiond>
using ProjectionErrorFunctiond_u = ::std::unique_ptr<ProjectionErrorFunctiond>
using ProjectionErrorFunctiond_w = ::std::weak_ptr<ProjectionErrorFunctiond>
using ProjectionErrorFunctiond_const_p = ::std::shared_ptr<const ProjectionErrorFunctiond>
using ProjectionErrorFunctiond_const_u = ::std::unique_ptr<const ProjectionErrorFunctiond>
using ProjectionErrorFunctiond_const_w = ::std::weak_ptr<const ProjectionErrorFunctiond>
using SkeletonDerivative = SkeletonDerivativeT<float>
using SkeletonDerivatived = SkeletonDerivativeT<double>
using SkeletonDerivative_p = ::std::shared_ptr<SkeletonDerivative>
using SkeletonDerivative_u = ::std::unique_ptr<SkeletonDerivative>
using SkeletonDerivative_w = ::std::weak_ptr<SkeletonDerivative>
using SkeletonDerivative_const_p = ::std::shared_ptr<const SkeletonDerivative>
using SkeletonDerivative_const_u = ::std::unique_ptr<const SkeletonDerivative>
using SkeletonDerivative_const_w = ::std::weak_ptr<const SkeletonDerivative>
using SkeletonDerivatived_p = ::std::shared_ptr<SkeletonDerivatived>
using SkeletonDerivatived_u = ::std::unique_ptr<SkeletonDerivatived>
using SkeletonDerivatived_w = ::std::weak_ptr<SkeletonDerivatived>
using SkeletonDerivatived_const_p = ::std::shared_ptr<const SkeletonDerivatived>
using SkeletonDerivatived_const_u = ::std::unique_ptr<const SkeletonDerivatived>
using SkeletonDerivatived_const_w = ::std::weak_ptr<const SkeletonDerivatived>
using SkeletonErrorFunction = SkeletonErrorFunctionT<float>
using SkeletonErrorFunctiond = SkeletonErrorFunctionT<double>
using SkeletonErrorFunction_p = ::std::shared_ptr<SkeletonErrorFunction>
using SkeletonErrorFunction_u = ::std::unique_ptr<SkeletonErrorFunction>
using SkeletonErrorFunction_w = ::std::weak_ptr<SkeletonErrorFunction>
using SkeletonErrorFunction_const_p = ::std::shared_ptr<const SkeletonErrorFunction>
using SkeletonErrorFunction_const_u = ::std::unique_ptr<const SkeletonErrorFunction>
using SkeletonErrorFunction_const_w = ::std::weak_ptr<const SkeletonErrorFunction>
using SkeletonErrorFunctiond_p = ::std::shared_ptr<SkeletonErrorFunctiond>
using SkeletonErrorFunctiond_u = ::std::unique_ptr<SkeletonErrorFunctiond>
using SkeletonErrorFunctiond_w = ::std::weak_ptr<SkeletonErrorFunctiond>
using SkeletonErrorFunctiond_const_p = ::std::shared_ptr<const SkeletonErrorFunctiond>
using SkeletonErrorFunctiond_const_u = ::std::unique_ptr<const SkeletonErrorFunctiond>
using SkeletonErrorFunctiond_const_w = ::std::weak_ptr<const SkeletonErrorFunctiond>
using SkeletonSolverFunction = SkeletonSolverFunctionT<float>
using SkeletonSolverFunctiond = SkeletonSolverFunctionT<double>
using SkeletonSolverFunction_p = ::std::shared_ptr<SkeletonSolverFunction>
using SkeletonSolverFunction_u = ::std::unique_ptr<SkeletonSolverFunction>
using SkeletonSolverFunction_w = ::std::weak_ptr<SkeletonSolverFunction>
using SkeletonSolverFunction_const_p = ::std::shared_ptr<const SkeletonSolverFunction>
using SkeletonSolverFunction_const_u = ::std::unique_ptr<const SkeletonSolverFunction>
using SkeletonSolverFunction_const_w = ::std::weak_ptr<const SkeletonSolverFunction>
using SkeletonSolverFunctiond_p = ::std::shared_ptr<SkeletonSolverFunctiond>
using SkeletonSolverFunctiond_u = ::std::unique_ptr<SkeletonSolverFunctiond>
using SkeletonSolverFunctiond_w = ::std::weak_ptr<SkeletonSolverFunctiond>
using SkeletonSolverFunctiond_const_p = ::std::shared_ptr<const SkeletonSolverFunctiond>
using SkeletonSolverFunctiond_const_u = ::std::unique_ptr<const SkeletonSolverFunctiond>
using SkeletonSolverFunctiond_const_w = ::std::weak_ptr<const SkeletonSolverFunctiond>
using SkinnedLocatorErrorFunction = SkinnedLocatorErrorFunctionT<float>
using SkinnedLocatorErrorFunctiond = SkinnedLocatorErrorFunctionT<double>
using SkinnedLocatorErrorFunction_p = ::std::shared_ptr<SkinnedLocatorErrorFunction>
using SkinnedLocatorErrorFunction_u = ::std::unique_ptr<SkinnedLocatorErrorFunction>
using SkinnedLocatorErrorFunction_w = ::std::weak_ptr<SkinnedLocatorErrorFunction>
using SkinnedLocatorErrorFunction_const_p = ::std::shared_ptr<const SkinnedLocatorErrorFunction>
using SkinnedLocatorErrorFunction_const_u = ::std::unique_ptr<const SkinnedLocatorErrorFunction>
using SkinnedLocatorErrorFunction_const_w = ::std::weak_ptr<const SkinnedLocatorErrorFunction>
using SkinnedLocatorErrorFunctiond_p = ::std::shared_ptr<SkinnedLocatorErrorFunctiond>
using SkinnedLocatorErrorFunctiond_u = ::std::unique_ptr<SkinnedLocatorErrorFunctiond>
using SkinnedLocatorErrorFunctiond_w = ::std::weak_ptr<SkinnedLocatorErrorFunctiond>
using SkinnedLocatorErrorFunctiond_const_p = ::std::shared_ptr<const SkinnedLocatorErrorFunctiond>
using SkinnedLocatorErrorFunctiond_const_u = ::std::unique_ptr<const SkinnedLocatorErrorFunctiond>
using SkinnedLocatorErrorFunctiond_const_w = ::std::weak_ptr<const SkinnedLocatorErrorFunctiond>
using SkinnedLocatorTriangleErrorFunction = SkinnedLocatorTriangleErrorFunctionT<float>
using SkinnedLocatorTriangleErrorFunctiond = SkinnedLocatorTriangleErrorFunctionT<double>
using SkinnedLocatorTriangleErrorFunction_p
using SkinnedLocatorTriangleErrorFunction_u
using SkinnedLocatorTriangleErrorFunction_w = ::std::weak_ptr<SkinnedLocatorTriangleErrorFunction>
using SkinnedLocatorTriangleErrorFunction_const_p
using SkinnedLocatorTriangleErrorFunction_const_u
using SkinnedLocatorTriangleErrorFunction_const_w
using SkinnedLocatorTriangleErrorFunctiond_p
using SkinnedLocatorTriangleErrorFunctiond_u
using SkinnedLocatorTriangleErrorFunctiond_w
using SkinnedLocatorTriangleErrorFunctiond_const_p
using SkinnedLocatorTriangleErrorFunctiond_const_u
using SkinnedLocatorTriangleErrorFunctiond_const_w
using StateErrorFunction = StateErrorFunctionT<float>
using StateErrorFunctiond = StateErrorFunctionT<double>
using StateErrorFunction_p = ::std::shared_ptr<StateErrorFunction>
using StateErrorFunction_u = ::std::unique_ptr<StateErrorFunction>
using StateErrorFunction_w = ::std::weak_ptr<StateErrorFunction>
using StateErrorFunction_const_p = ::std::shared_ptr<const StateErrorFunction>
using StateErrorFunction_const_u = ::std::unique_ptr<const StateErrorFunction>
using StateErrorFunction_const_w = ::std::weak_ptr<const StateErrorFunction>
using StateErrorFunctiond_p = ::std::shared_ptr<StateErrorFunctiond>
using StateErrorFunctiond_u = ::std::unique_ptr<StateErrorFunctiond>
using StateErrorFunctiond_w = ::std::weak_ptr<StateErrorFunctiond>
using StateErrorFunctiond_const_p = ::std::shared_ptr<const StateErrorFunctiond>
using StateErrorFunctiond_const_u = ::std::unique_ptr<const StateErrorFunctiond>
using StateErrorFunctiond_const_w = ::std::weak_ptr<const StateErrorFunctiond>
using TrustRegionQR = TrustRegionQRT<float>
using TrustRegionQRd = TrustRegionQRT<double>
using TrustRegionQR_p = ::std::shared_ptr<TrustRegionQR>
using TrustRegionQR_u = ::std::unique_ptr<TrustRegionQR>
using TrustRegionQR_w = ::std::weak_ptr<TrustRegionQR>
using TrustRegionQR_const_p = ::std::shared_ptr<const TrustRegionQR>
using TrustRegionQR_const_u = ::std::unique_ptr<const TrustRegionQR>
using TrustRegionQR_const_w = ::std::weak_ptr<const TrustRegionQR>
using TrustRegionQRd_p = ::std::shared_ptr<TrustRegionQRd>
using TrustRegionQRd_u = ::std::unique_ptr<TrustRegionQRd>
using TrustRegionQRd_w = ::std::weak_ptr<TrustRegionQRd>
using TrustRegionQRd_const_p = ::std::shared_ptr<const TrustRegionQRd>
using TrustRegionQRd_const_u = ::std::unique_ptr<const TrustRegionQRd>
using TrustRegionQRd_const_w = ::std::weak_ptr<const TrustRegionQRd>
using VertexNormalErrorFunction = VertexNormalErrorFunctionT<float>
using VertexNormalErrorFunctiond = VertexNormalErrorFunctionT<double>
using VertexNormalErrorFunction_p = ::std::shared_ptr<VertexNormalErrorFunction>
using VertexNormalErrorFunction_u = ::std::unique_ptr<VertexNormalErrorFunction>
using VertexNormalErrorFunction_w = ::std::weak_ptr<VertexNormalErrorFunction>
using VertexNormalErrorFunction_const_p = ::std::shared_ptr<const VertexNormalErrorFunction>
using VertexNormalErrorFunction_const_u = ::std::unique_ptr<const VertexNormalErrorFunction>
using VertexNormalErrorFunction_const_w = ::std::weak_ptr<const VertexNormalErrorFunction>
using VertexNormalErrorFunctiond_p = ::std::shared_ptr<VertexNormalErrorFunctiond>
using VertexNormalErrorFunctiond_u = ::std::unique_ptr<VertexNormalErrorFunctiond>
using VertexNormalErrorFunctiond_w = ::std::weak_ptr<VertexNormalErrorFunctiond>
using VertexNormalErrorFunctiond_const_p = ::std::shared_ptr<const VertexNormalErrorFunctiond>
using VertexNormalErrorFunctiond_const_u = ::std::unique_ptr<const VertexNormalErrorFunctiond>
using VertexNormalErrorFunctiond_const_w = ::std::weak_ptr<const VertexNormalErrorFunctiond>
using VertexPlaneErrorFunction = VertexPlaneErrorFunctionT<float>
using VertexPlaneErrorFunctiond = VertexPlaneErrorFunctionT<double>
using VertexPlaneErrorFunction_p = ::std::shared_ptr<VertexPlaneErrorFunction>
using VertexPlaneErrorFunction_u = ::std::unique_ptr<VertexPlaneErrorFunction>
using VertexPlaneErrorFunction_w = ::std::weak_ptr<VertexPlaneErrorFunction>
using VertexPlaneErrorFunction_const_p = ::std::shared_ptr<const VertexPlaneErrorFunction>
using VertexPlaneErrorFunction_const_u = ::std::unique_ptr<const VertexPlaneErrorFunction>
using VertexPlaneErrorFunction_const_w = ::std::weak_ptr<const VertexPlaneErrorFunction>
using VertexPlaneErrorFunctiond_p = ::std::shared_ptr<VertexPlaneErrorFunctiond>
using VertexPlaneErrorFunctiond_u = ::std::unique_ptr<VertexPlaneErrorFunctiond>
using VertexPlaneErrorFunctiond_w = ::std::weak_ptr<VertexPlaneErrorFunctiond>
using VertexPlaneErrorFunctiond_const_p = ::std::shared_ptr<const VertexPlaneErrorFunctiond>
using VertexPlaneErrorFunctiond_const_u = ::std::unique_ptr<const VertexPlaneErrorFunctiond>
using VertexPlaneErrorFunctiond_const_w = ::std::weak_ptr<const VertexPlaneErrorFunctiond>
using VertexPositionErrorFunction = VertexPositionErrorFunctionT<float>
using VertexPositionErrorFunctiond = VertexPositionErrorFunctionT<double>
using VertexPositionErrorFunction_p = ::std::shared_ptr<VertexPositionErrorFunction>
using VertexPositionErrorFunction_u = ::std::unique_ptr<VertexPositionErrorFunction>
using VertexPositionErrorFunction_w = ::std::weak_ptr<VertexPositionErrorFunction>
using VertexPositionErrorFunction_const_p = ::std::shared_ptr<const VertexPositionErrorFunction>
using VertexPositionErrorFunction_const_u = ::std::unique_ptr<const VertexPositionErrorFunction>
using VertexPositionErrorFunction_const_w = ::std::weak_ptr<const VertexPositionErrorFunction>
using VertexPositionErrorFunctiond_p = ::std::shared_ptr<VertexPositionErrorFunctiond>
using VertexPositionErrorFunctiond_u = ::std::unique_ptr<VertexPositionErrorFunctiond>
using VertexPositionErrorFunctiond_w = ::std::weak_ptr<VertexPositionErrorFunctiond>
using VertexPositionErrorFunctiond_const_p = ::std::shared_ptr<const VertexPositionErrorFunctiond>
using VertexPositionErrorFunctiond_const_u = ::std::unique_ptr<const VertexPositionErrorFunctiond>
using VertexPositionErrorFunctiond_const_w = ::std::weak_ptr<const VertexPositionErrorFunctiond>
using VertexProjectionErrorFunction = VertexProjectionErrorFunctionT<float>
using VertexProjectionErrorFunctiond = VertexProjectionErrorFunctionT<double>
using VertexProjectionErrorFunction_p = ::std::shared_ptr<VertexProjectionErrorFunction>
using VertexProjectionErrorFunction_u = ::std::unique_ptr<VertexProjectionErrorFunction>
using VertexProjectionErrorFunction_w = ::std::weak_ptr<VertexProjectionErrorFunction>
using VertexProjectionErrorFunction_const_p
using VertexProjectionErrorFunction_const_u
using VertexProjectionErrorFunction_const_w = ::std::weak_ptr<const VertexProjectionErrorFunction>
using VertexProjectionErrorFunctiond_p = ::std::shared_ptr<VertexProjectionErrorFunctiond>
using VertexProjectionErrorFunctiond_u = ::std::unique_ptr<VertexProjectionErrorFunctiond>
using VertexProjectionErrorFunctiond_w = ::std::weak_ptr<VertexProjectionErrorFunctiond>
using VertexProjectionErrorFunctiond_const_p
using VertexProjectionErrorFunctiond_const_u
using VertexProjectionErrorFunctiond_const_w
using VertexSDFErrorFunction = VertexSDFErrorFunctionT<float>
using VertexSDFErrorFunctiond = VertexSDFErrorFunctionT<double>
using VertexSDFErrorFunction_p = ::std::shared_ptr<VertexSDFErrorFunction>
using VertexSDFErrorFunction_u = ::std::unique_ptr<VertexSDFErrorFunction>
using VertexSDFErrorFunction_w = ::std::weak_ptr<VertexSDFErrorFunction>
using VertexSDFErrorFunction_const_p = ::std::shared_ptr<const VertexSDFErrorFunction>
using VertexSDFErrorFunction_const_u = ::std::unique_ptr<const VertexSDFErrorFunction>
using VertexSDFErrorFunction_const_w = ::std::weak_ptr<const VertexSDFErrorFunction>
using VertexSDFErrorFunctiond_p = ::std::shared_ptr<VertexSDFErrorFunctiond>
using VertexSDFErrorFunctiond_u = ::std::unique_ptr<VertexSDFErrorFunctiond>
using VertexSDFErrorFunctiond_w = ::std::weak_ptr<VertexSDFErrorFunctiond>
using VertexSDFErrorFunctiond_const_p = ::std::shared_ptr<const VertexSDFErrorFunctiond>
using VertexSDFErrorFunctiond_const_u = ::std::unique_ptr<const VertexSDFErrorFunctiond>
using VertexSDFErrorFunctiond_const_w = ::std::weak_ptr<const VertexSDFErrorFunctiond>
using VertexVertexDistanceErrorFunction = VertexVertexDistanceErrorFunctionT<float>
using VertexVertexDistanceErrorFunctiond = VertexVertexDistanceErrorFunctionT<double>
using VertexVertexDistanceErrorFunction_p = ::std::shared_ptr<VertexVertexDistanceErrorFunction>
using VertexVertexDistanceErrorFunction_u = ::std::unique_ptr<VertexVertexDistanceErrorFunction>
using VertexVertexDistanceErrorFunction_w = ::std::weak_ptr<VertexVertexDistanceErrorFunction>
using VertexVertexDistanceErrorFunction_const_p
using VertexVertexDistanceErrorFunction_const_u
using VertexVertexDistanceErrorFunction_const_w
using VertexVertexDistanceErrorFunctiond_p = ::std::shared_ptr<VertexVertexDistanceErrorFunctiond>
using VertexVertexDistanceErrorFunctiond_u = ::std::unique_ptr<VertexVertexDistanceErrorFunctiond>
using VertexVertexDistanceErrorFunctiond_w = ::std::weak_ptr<VertexVertexDistanceErrorFunctiond>
using VertexVertexDistanceErrorFunctiond_const_p
using VertexVertexDistanceErrorFunctiond_const_u
using VertexVertexDistanceErrorFunctiond_const_w
using SDFCollisionErrorFunction = SDFCollisionErrorFunctionT<float>
using SDFCollisionErrorFunctiond = SDFCollisionErrorFunctionT<double>
using MultiposeSolverOptions_p = ::std::shared_ptr<MultiposeSolverOptions>
using MultiposeSolverOptions_u = ::std::unique_ptr<MultiposeSolverOptions>
using MultiposeSolverOptions_w = ::std::weak_ptr<MultiposeSolverOptions>
using MultiposeSolverOptions_const_p = ::std::shared_ptr<const MultiposeSolverOptions>
using MultiposeSolverOptions_const_u = ::std::unique_ptr<const MultiposeSolverOptions>
using MultiposeSolverOptions_const_w = ::std::weak_ptr<const MultiposeSolverOptions>
using SequenceCholeskySolverOptions_p = ::std::shared_ptr<SequenceCholeskySolverOptions>
using SequenceCholeskySolverOptions_u = ::std::unique_ptr<SequenceCholeskySolverOptions>
using SequenceCholeskySolverOptions_w = ::std::weak_ptr<SequenceCholeskySolverOptions>
using SequenceCholeskySolverOptions_const_p
using SequenceCholeskySolverOptions_const_u
using SequenceCholeskySolverOptions_const_w = ::std::weak_ptr<const SequenceCholeskySolverOptions>
using SequenceSolverOptionsBase_p = ::std::shared_ptr<SequenceSolverOptionsBase>
using SequenceSolverOptionsBase_u = ::std::unique_ptr<SequenceSolverOptionsBase>
using SequenceSolverOptionsBase_w = ::std::weak_ptr<SequenceSolverOptionsBase>
using SequenceSolverOptionsBase_const_p = ::std::shared_ptr<const SequenceSolverOptionsBase>
using SequenceSolverOptionsBase_const_u = ::std::unique_ptr<const SequenceSolverOptionsBase>
using SequenceSolverOptionsBase_const_w = ::std::weak_ptr<const SequenceSolverOptionsBase>
using SequenceSolverOptions_p = ::std::shared_ptr<SequenceSolverOptions>
using SequenceSolverOptions_u = ::std::unique_ptr<SequenceSolverOptions>
using SequenceSolverOptions_w = ::std::weak_ptr<SequenceSolverOptions>
using SequenceSolverOptions_const_p = ::std::shared_ptr<const SequenceSolverOptions>
using SequenceSolverOptions_const_u = ::std::unique_ptr<const SequenceSolverOptions>
using SequenceSolverOptions_const_w = ::std::weak_ptr<const SequenceSolverOptions>
using JointToJointSequenceConstraint = JointToJointSequenceConstraintT<float>
using JointToJointSequenceConstraintd = JointToJointSequenceConstraintT<double>
using JointToJointSequenceConstraint_p = ::std::shared_ptr<JointToJointSequenceConstraint>
using JointToJointSequenceConstraint_u = ::std::unique_ptr<JointToJointSequenceConstraint>
using JointToJointSequenceConstraint_w = ::std::weak_ptr<JointToJointSequenceConstraint>
using JointToJointSequenceConstraint_const_p
using JointToJointSequenceConstraint_const_u
using JointToJointSequenceConstraint_const_w
using JointToJointSequenceConstraintd_p = ::std::shared_ptr<JointToJointSequenceConstraintd>
using JointToJointSequenceConstraintd_u = ::std::unique_ptr<JointToJointSequenceConstraintd>
using JointToJointSequenceConstraintd_w = ::std::weak_ptr<JointToJointSequenceConstraintd>
using JointToJointSequenceConstraintd_const_p
using JointToJointSequenceConstraintd_const_u
using JointToJointSequenceConstraintd_const_w
using AccelerationSequenceErrorFunction = AccelerationSequenceErrorFunctionT<float>
using AccelerationSequenceErrorFunctiond = AccelerationSequenceErrorFunctionT<double>
using AccelerationSequenceErrorFunction_p = ::std::shared_ptr<AccelerationSequenceErrorFunction>
using AccelerationSequenceErrorFunction_u = ::std::unique_ptr<AccelerationSequenceErrorFunction>
using AccelerationSequenceErrorFunction_w = ::std::weak_ptr<AccelerationSequenceErrorFunction>
using AccelerationSequenceErrorFunction_const_p
using AccelerationSequenceErrorFunction_const_u
using AccelerationSequenceErrorFunction_const_w
using AccelerationSequenceErrorFunctiond_p = ::std::shared_ptr<AccelerationSequenceErrorFunctiond>
using AccelerationSequenceErrorFunctiond_u = ::std::unique_ptr<AccelerationSequenceErrorFunctiond>
using AccelerationSequenceErrorFunctiond_w = ::std::weak_ptr<AccelerationSequenceErrorFunctiond>
using AccelerationSequenceErrorFunctiond_const_p
using AccelerationSequenceErrorFunctiond_const_u
using AccelerationSequenceErrorFunctiond_const_w
using FiniteDifferenceSequenceErrorFunction = FiniteDifferenceSequenceErrorFunctionT<float>
using FiniteDifferenceSequenceErrorFunctiond = FiniteDifferenceSequenceErrorFunctionT<double>
using FiniteDifferenceSequenceErrorFunction_p
using FiniteDifferenceSequenceErrorFunction_u
using FiniteDifferenceSequenceErrorFunction_w
using FiniteDifferenceSequenceErrorFunction_const_p
using FiniteDifferenceSequenceErrorFunction_const_u
using FiniteDifferenceSequenceErrorFunction_const_w
using FiniteDifferenceSequenceErrorFunctiond_p
using FiniteDifferenceSequenceErrorFunctiond_u
using FiniteDifferenceSequenceErrorFunctiond_w
using FiniteDifferenceSequenceErrorFunctiond_const_p
using FiniteDifferenceSequenceErrorFunctiond_const_u
using FiniteDifferenceSequenceErrorFunctiond_const_w
using JerkSequenceErrorFunction = JerkSequenceErrorFunctionT<float>
using JerkSequenceErrorFunctiond = JerkSequenceErrorFunctionT<double>
using JerkSequenceErrorFunction_p = ::std::shared_ptr<JerkSequenceErrorFunction>
using JerkSequenceErrorFunction_u = ::std::unique_ptr<JerkSequenceErrorFunction>
using JerkSequenceErrorFunction_w = ::std::weak_ptr<JerkSequenceErrorFunction>
using JerkSequenceErrorFunction_const_p = ::std::shared_ptr<const JerkSequenceErrorFunction>
using JerkSequenceErrorFunction_const_u = ::std::unique_ptr<const JerkSequenceErrorFunction>
using JerkSequenceErrorFunction_const_w = ::std::weak_ptr<const JerkSequenceErrorFunction>
using JerkSequenceErrorFunctiond_p = ::std::shared_ptr<JerkSequenceErrorFunctiond>
using JerkSequenceErrorFunctiond_u = ::std::unique_ptr<JerkSequenceErrorFunctiond>
using JerkSequenceErrorFunctiond_w = ::std::weak_ptr<JerkSequenceErrorFunctiond>
using JerkSequenceErrorFunctiond_const_p = ::std::shared_ptr<const JerkSequenceErrorFunctiond>
using JerkSequenceErrorFunctiond_const_u = ::std::unique_ptr<const JerkSequenceErrorFunctiond>
using JerkSequenceErrorFunctiond_const_w = ::std::weak_ptr<const JerkSequenceErrorFunctiond>
using JointToJointSequenceErrorFunction = JointToJointSequenceErrorFunctionT<float>
using JointToJointSequenceErrorFunctiond = JointToJointSequenceErrorFunctionT<double>
using JointToJointSequenceErrorFunction_p = ::std::shared_ptr<JointToJointSequenceErrorFunction>
using JointToJointSequenceErrorFunction_u = ::std::unique_ptr<JointToJointSequenceErrorFunction>
using JointToJointSequenceErrorFunction_w = ::std::weak_ptr<JointToJointSequenceErrorFunction>
using JointToJointSequenceErrorFunction_const_p
using JointToJointSequenceErrorFunction_const_u
using JointToJointSequenceErrorFunction_const_w
using JointToJointSequenceErrorFunctiond_p = ::std::shared_ptr<JointToJointSequenceErrorFunctiond>
using JointToJointSequenceErrorFunctiond_u = ::std::unique_ptr<JointToJointSequenceErrorFunctiond>
using JointToJointSequenceErrorFunctiond_w = ::std::weak_ptr<JointToJointSequenceErrorFunctiond>
using JointToJointSequenceErrorFunctiond_const_p
using JointToJointSequenceErrorFunctiond_const_u
using JointToJointSequenceErrorFunctiond_const_w
using SequenceErrorFunction = SequenceErrorFunctionT<float>
using SequenceErrorFunctiond = SequenceErrorFunctionT<double>
using SequenceErrorFunction_p = ::std::shared_ptr<SequenceErrorFunction>
using SequenceErrorFunction_u = ::std::unique_ptr<SequenceErrorFunction>
using SequenceErrorFunction_w = ::std::weak_ptr<SequenceErrorFunction>
using SequenceErrorFunction_const_p = ::std::shared_ptr<const SequenceErrorFunction>
using SequenceErrorFunction_const_u = ::std::unique_ptr<const SequenceErrorFunction>
using SequenceErrorFunction_const_w = ::std::weak_ptr<const SequenceErrorFunction>
using SequenceErrorFunctiond_p = ::std::shared_ptr<SequenceErrorFunctiond>
using SequenceErrorFunctiond_u = ::std::unique_ptr<SequenceErrorFunctiond>
using SequenceErrorFunctiond_w = ::std::weak_ptr<SequenceErrorFunctiond>
using SequenceErrorFunctiond_const_p = ::std::shared_ptr<const SequenceErrorFunctiond>
using SequenceErrorFunctiond_const_u = ::std::unique_ptr<const SequenceErrorFunctiond>
using SequenceErrorFunctiond_const_w = ::std::weak_ptr<const SequenceErrorFunctiond>
using ModelParametersSequenceErrorFunction = ModelParametersSequenceErrorFunctionT<float>
using ModelParametersSequenceErrorFunctiond = ModelParametersSequenceErrorFunctionT<double>
using ModelParametersSequenceErrorFunction_p
using ModelParametersSequenceErrorFunction_u
using ModelParametersSequenceErrorFunction_w
using ModelParametersSequenceErrorFunction_const_p
using ModelParametersSequenceErrorFunction_const_u
using ModelParametersSequenceErrorFunction_const_w
using ModelParametersSequenceErrorFunctiond_p
using ModelParametersSequenceErrorFunctiond_u
using ModelParametersSequenceErrorFunctiond_w
using ModelParametersSequenceErrorFunctiond_const_p
using ModelParametersSequenceErrorFunctiond_const_u
using ModelParametersSequenceErrorFunctiond_const_w
using MultiposeSolver = MultiposeSolverT<float>
using MultiposeSolverd = MultiposeSolverT<double>
using MultiposeSolver_p = ::std::shared_ptr<MultiposeSolver>
using MultiposeSolver_u = ::std::unique_ptr<MultiposeSolver>
using MultiposeSolver_w = ::std::weak_ptr<MultiposeSolver>
using MultiposeSolver_const_p = ::std::shared_ptr<const MultiposeSolver>
using MultiposeSolver_const_u = ::std::unique_ptr<const MultiposeSolver>
using MultiposeSolver_const_w = ::std::weak_ptr<const MultiposeSolver>
using MultiposeSolverd_p = ::std::shared_ptr<MultiposeSolverd>
using MultiposeSolverd_u = ::std::unique_ptr<MultiposeSolverd>
using MultiposeSolverd_w = ::std::weak_ptr<MultiposeSolverd>
using MultiposeSolverd_const_p = ::std::shared_ptr<const MultiposeSolverd>
using MultiposeSolverd_const_u = ::std::unique_ptr<const MultiposeSolverd>
using MultiposeSolverd_const_w = ::std::weak_ptr<const MultiposeSolverd>
using MultiposeSolverFunction = MultiposeSolverFunctionT<float>
using MultiposeSolverFunctiond = MultiposeSolverFunctionT<double>
using MultiposeSolverFunction_p = ::std::shared_ptr<MultiposeSolverFunction>
using MultiposeSolverFunction_u = ::std::unique_ptr<MultiposeSolverFunction>
using MultiposeSolverFunction_w = ::std::weak_ptr<MultiposeSolverFunction>
using MultiposeSolverFunction_const_p = ::std::shared_ptr<const MultiposeSolverFunction>
using MultiposeSolverFunction_const_u = ::std::unique_ptr<const MultiposeSolverFunction>
using MultiposeSolverFunction_const_w = ::std::weak_ptr<const MultiposeSolverFunction>
using MultiposeSolverFunctiond_p = ::std::shared_ptr<MultiposeSolverFunctiond>
using MultiposeSolverFunctiond_u = ::std::unique_ptr<MultiposeSolverFunctiond>
using MultiposeSolverFunctiond_w = ::std::weak_ptr<MultiposeSolverFunctiond>
using MultiposeSolverFunctiond_const_p = ::std::shared_ptr<const MultiposeSolverFunctiond>
using MultiposeSolverFunctiond_const_u = ::std::unique_ptr<const MultiposeSolverFunctiond>
using MultiposeSolverFunctiond_const_w = ::std::weak_ptr<const MultiposeSolverFunctiond>
using SequenceCholeskySolver = SequenceCholeskySolverT<float>
using SequenceCholeskySolverd = SequenceCholeskySolverT<double>
using SequenceCholeskySolver_p = ::std::shared_ptr<SequenceCholeskySolver>
using SequenceCholeskySolver_u = ::std::unique_ptr<SequenceCholeskySolver>
using SequenceCholeskySolver_w = ::std::weak_ptr<SequenceCholeskySolver>
using SequenceCholeskySolver_const_p = ::std::shared_ptr<const SequenceCholeskySolver>
using SequenceCholeskySolver_const_u = ::std::unique_ptr<const SequenceCholeskySolver>
using SequenceCholeskySolver_const_w = ::std::weak_ptr<const SequenceCholeskySolver>
using SequenceCholeskySolverd_p = ::std::shared_ptr<SequenceCholeskySolverd>
using SequenceCholeskySolverd_u = ::std::unique_ptr<SequenceCholeskySolverd>
using SequenceCholeskySolverd_w = ::std::weak_ptr<SequenceCholeskySolverd>
using SequenceCholeskySolverd_const_p = ::std::shared_ptr<const SequenceCholeskySolverd>
using SequenceCholeskySolverd_const_u = ::std::unique_ptr<const SequenceCholeskySolverd>
using SequenceCholeskySolverd_const_w = ::std::weak_ptr<const SequenceCholeskySolverd>
using SequenceSolverBase = SequenceSolverBaseT<float>
using SequenceSolverBased = SequenceSolverBaseT<double>
using SequenceSolverBase_p = ::std::shared_ptr<SequenceSolverBase>
using SequenceSolverBase_u = ::std::unique_ptr<SequenceSolverBase>
using SequenceSolverBase_w = ::std::weak_ptr<SequenceSolverBase>
using SequenceSolverBase_const_p = ::std::shared_ptr<const SequenceSolverBase>
using SequenceSolverBase_const_u = ::std::unique_ptr<const SequenceSolverBase>
using SequenceSolverBase_const_w = ::std::weak_ptr<const SequenceSolverBase>
using SequenceSolverBased_p = ::std::shared_ptr<SequenceSolverBased>
using SequenceSolverBased_u = ::std::unique_ptr<SequenceSolverBased>
using SequenceSolverBased_w = ::std::weak_ptr<SequenceSolverBased>
using SequenceSolverBased_const_p = ::std::shared_ptr<const SequenceSolverBased>
using SequenceSolverBased_const_u = ::std::unique_ptr<const SequenceSolverBased>
using SequenceSolverBased_const_w = ::std::weak_ptr<const SequenceSolverBased>
using SequenceSolver = SequenceSolverT<float>
using SequenceSolverd = SequenceSolverT<double>
using SequenceSolver_p = ::std::shared_ptr<SequenceSolver>
using SequenceSolver_u = ::std::unique_ptr<SequenceSolver>
using SequenceSolver_w = ::std::weak_ptr<SequenceSolver>
using SequenceSolver_const_p = ::std::shared_ptr<const SequenceSolver>
using SequenceSolver_const_u = ::std::unique_ptr<const SequenceSolver>
using SequenceSolver_const_w = ::std::weak_ptr<const SequenceSolver>
using SequenceSolverd_p = ::std::shared_ptr<SequenceSolverd>
using SequenceSolverd_u = ::std::unique_ptr<SequenceSolverd>
using SequenceSolverd_w = ::std::weak_ptr<SequenceSolverd>
using SequenceSolverd_const_p = ::std::shared_ptr<const SequenceSolverd>
using SequenceSolverd_const_u = ::std::unique_ptr<const SequenceSolverd>
using SequenceSolverd_const_w = ::std::weak_ptr<const SequenceSolverd>
using SequenceSolverFunction = SequenceSolverFunctionT<float>
using SequenceSolverFunctiond = SequenceSolverFunctionT<double>
using SequenceSolverFunction_p = ::std::shared_ptr<SequenceSolverFunction>
using SequenceSolverFunction_u = ::std::unique_ptr<SequenceSolverFunction>
using SequenceSolverFunction_w = ::std::weak_ptr<SequenceSolverFunction>
using SequenceSolverFunction_const_p = ::std::shared_ptr<const SequenceSolverFunction>
using SequenceSolverFunction_const_u = ::std::unique_ptr<const SequenceSolverFunction>
using SequenceSolverFunction_const_w = ::std::weak_ptr<const SequenceSolverFunction>
using SequenceSolverFunctiond_p = ::std::shared_ptr<SequenceSolverFunctiond>
using SequenceSolverFunctiond_u = ::std::unique_ptr<SequenceSolverFunctiond>
using SequenceSolverFunctiond_w = ::std::weak_ptr<SequenceSolverFunctiond>
using SequenceSolverFunctiond_const_p = ::std::shared_ptr<const SequenceSolverFunctiond>
using SequenceSolverFunctiond_const_u = ::std::unique_ptr<const SequenceSolverFunctiond>
using SequenceSolverFunctiond_const_w = ::std::weak_ptr<const SequenceSolverFunctiond>
using StateSequenceErrorFunction = StateSequenceErrorFunctionT<float>
using StateSequenceErrorFunctiond = StateSequenceErrorFunctionT<double>
using StateSequenceErrorFunction_p = ::std::shared_ptr<StateSequenceErrorFunction>
using StateSequenceErrorFunction_u = ::std::unique_ptr<StateSequenceErrorFunction>
using StateSequenceErrorFunction_w = ::std::weak_ptr<StateSequenceErrorFunction>
using StateSequenceErrorFunction_const_p = ::std::shared_ptr<const StateSequenceErrorFunction>
using StateSequenceErrorFunction_const_u = ::std::unique_ptr<const StateSequenceErrorFunction>
using StateSequenceErrorFunction_const_w = ::std::weak_ptr<const StateSequenceErrorFunction>
using StateSequenceErrorFunctiond_p = ::std::shared_ptr<StateSequenceErrorFunctiond>
using StateSequenceErrorFunctiond_u = ::std::unique_ptr<StateSequenceErrorFunctiond>
using StateSequenceErrorFunctiond_w = ::std::weak_ptr<StateSequenceErrorFunctiond>
using StateSequenceErrorFunctiond_const_p = ::std::shared_ptr<const StateSequenceErrorFunctiond>
using StateSequenceErrorFunctiond_const_u = ::std::unique_ptr<const StateSequenceErrorFunctiond>
using StateSequenceErrorFunctiond_const_w = ::std::weak_ptr<const StateSequenceErrorFunctiond>
using VelocityMagnitudeSequenceErrorFunction = VelocityMagnitudeSequenceErrorFunctionT<float>
using VelocityMagnitudeSequenceErrorFunctiond = VelocityMagnitudeSequenceErrorFunctionT<double>
using VelocityMagnitudeSequenceErrorFunction_p
using VelocityMagnitudeSequenceErrorFunction_u
using VelocityMagnitudeSequenceErrorFunction_w
using VelocityMagnitudeSequenceErrorFunction_const_p
using VelocityMagnitudeSequenceErrorFunction_const_u
using VelocityMagnitudeSequenceErrorFunction_const_w
using VelocityMagnitudeSequenceErrorFunctiond_p
using VelocityMagnitudeSequenceErrorFunctiond_u
using VelocityMagnitudeSequenceErrorFunctiond_w
using VelocityMagnitudeSequenceErrorFunctiond_const_p
using VelocityMagnitudeSequenceErrorFunctiond_const_u
using VelocityMagnitudeSequenceErrorFunctiond_const_w
using VertexSequenceErrorFunction = VertexSequenceErrorFunctionT<float>
using VertexSequenceErrorFunctiond = VertexSequenceErrorFunctionT<double>
using VertexSequenceErrorFunction_p = ::std::shared_ptr<VertexSequenceErrorFunction>
using VertexSequenceErrorFunction_u = ::std::unique_ptr<VertexSequenceErrorFunction>
using VertexSequenceErrorFunction_w = ::std::weak_ptr<VertexSequenceErrorFunction>
using VertexSequenceErrorFunction_const_p = ::std::shared_ptr<const VertexSequenceErrorFunction>
using VertexSequenceErrorFunction_const_u = ::std::unique_ptr<const VertexSequenceErrorFunction>
using VertexSequenceErrorFunction_const_w = ::std::weak_ptr<const VertexSequenceErrorFunction>
using VertexSequenceErrorFunctiond_p = ::std::shared_ptr<VertexSequenceErrorFunctiond>
using VertexSequenceErrorFunctiond_u = ::std::unique_ptr<VertexSequenceErrorFunctiond>
using VertexSequenceErrorFunctiond_w = ::std::weak_ptr<VertexSequenceErrorFunctiond>
using VertexSequenceErrorFunctiond_const_p = ::std::shared_ptr<const VertexSequenceErrorFunctiond>
using VertexSequenceErrorFunctiond_const_u = ::std::unique_ptr<const VertexSequenceErrorFunctiond>
using VertexSequenceErrorFunctiond_const_w = ::std::weak_ptr<const VertexSequenceErrorFunctiond>
using SDFCollisionSequenceErrorFunction = SDFCollisionSequenceErrorFunctionT<float>
using SDFCollisionSequenceErrorFunctiond = SDFCollisionSequenceErrorFunctionT<double>
using ErrorFunctionDerivatives = ErrorFunctionDerivativesT<float>
using ErrorFunctionDerivativesd = ErrorFunctionDerivativesT<double>
using ErrorFunctionDerivatives_p = ::std::shared_ptr<ErrorFunctionDerivatives>
using ErrorFunctionDerivatives_u = ::std::unique_ptr<ErrorFunctionDerivatives>
using ErrorFunctionDerivatives_w = ::std::weak_ptr<ErrorFunctionDerivatives>
using ErrorFunctionDerivatives_const_p = ::std::shared_ptr<const ErrorFunctionDerivatives>
using ErrorFunctionDerivatives_const_u = ::std::unique_ptr<const ErrorFunctionDerivatives>
using ErrorFunctionDerivatives_const_w = ::std::weak_ptr<const ErrorFunctionDerivatives>
using ErrorFunctionDerivativesd_p = ::std::shared_ptr<ErrorFunctionDerivativesd>
using ErrorFunctionDerivativesd_u = ::std::unique_ptr<ErrorFunctionDerivativesd>
using ErrorFunctionDerivativesd_w = ::std::weak_ptr<ErrorFunctionDerivativesd>
using ErrorFunctionDerivativesd_const_p = ::std::shared_ptr<const ErrorFunctionDerivativesd>
using ErrorFunctionDerivativesd_const_u = ::std::unique_ptr<const ErrorFunctionDerivativesd>
using ErrorFunctionDerivativesd_const_w = ::std::weak_ptr<const ErrorFunctionDerivativesd>
using OrientationConstraint = OrientationConstraintT<float>
using OrientationConstraintd = OrientationConstraintT<double>
using OrientationConstraint_p = ::std::shared_ptr<OrientationConstraint>
using OrientationConstraint_u = ::std::unique_ptr<OrientationConstraint>
using OrientationConstraint_w = ::std::weak_ptr<OrientationConstraint>
using OrientationConstraint_const_p = ::std::shared_ptr<const OrientationConstraint>
using OrientationConstraint_const_u = ::std::unique_ptr<const OrientationConstraint>
using OrientationConstraint_const_w = ::std::weak_ptr<const OrientationConstraint>
using OrientationConstraintd_p = ::std::shared_ptr<OrientationConstraintd>
using OrientationConstraintd_u = ::std::unique_ptr<OrientationConstraintd>
using OrientationConstraintd_w = ::std::weak_ptr<OrientationConstraintd>
using OrientationConstraintd_const_p = ::std::shared_ptr<const OrientationConstraintd>
using OrientationConstraintd_const_u = ::std::unique_ptr<const OrientationConstraintd>
using OrientationConstraintd_const_w = ::std::weak_ptr<const OrientationConstraintd>
using OrientationConstraintState = OrientationConstraintStateT<float>
using OrientationConstraintStated = OrientationConstraintStateT<double>
using OrientationConstraintState_p = ::std::shared_ptr<OrientationConstraintState>
using OrientationConstraintState_u = ::std::unique_ptr<OrientationConstraintState>
using OrientationConstraintState_w = ::std::weak_ptr<OrientationConstraintState>
using OrientationConstraintState_const_p = ::std::shared_ptr<const OrientationConstraintState>
using OrientationConstraintState_const_u = ::std::unique_ptr<const OrientationConstraintState>
using OrientationConstraintState_const_w = ::std::weak_ptr<const OrientationConstraintState>
using OrientationConstraintStated_p = ::std::shared_ptr<OrientationConstraintStated>
using OrientationConstraintStated_u = ::std::unique_ptr<OrientationConstraintStated>
using OrientationConstraintStated_w = ::std::weak_ptr<OrientationConstraintStated>
using OrientationConstraintStated_const_p = ::std::shared_ptr<const OrientationConstraintStated>
using OrientationConstraintStated_const_u = ::std::unique_ptr<const OrientationConstraintStated>
using OrientationConstraintStated_const_w = ::std::weak_ptr<const OrientationConstraintStated>
using PositionConstraint = PositionConstraintT<float>
using PositionConstraintd = PositionConstraintT<double>
using PositionConstraint_p = ::std::shared_ptr<PositionConstraint>
using PositionConstraint_u = ::std::unique_ptr<PositionConstraint>
using PositionConstraint_w = ::std::weak_ptr<PositionConstraint>
using PositionConstraint_const_p = ::std::shared_ptr<const PositionConstraint>
using PositionConstraint_const_u = ::std::unique_ptr<const PositionConstraint>
using PositionConstraint_const_w = ::std::weak_ptr<const PositionConstraint>
using PositionConstraintd_p = ::std::shared_ptr<PositionConstraintd>
using PositionConstraintd_u = ::std::unique_ptr<PositionConstraintd>
using PositionConstraintd_w = ::std::weak_ptr<PositionConstraintd>
using PositionConstraintd_const_p = ::std::shared_ptr<const PositionConstraintd>
using PositionConstraintd_const_u = ::std::unique_ptr<const PositionConstraintd>
using PositionConstraintd_const_w = ::std::weak_ptr<const PositionConstraintd>
using PositionConstraintState = PositionConstraintStateT<float>
using PositionConstraintStated = PositionConstraintStateT<double>
using PositionConstraintState_p = ::std::shared_ptr<PositionConstraintState>
using PositionConstraintState_u = ::std::unique_ptr<PositionConstraintState>
using PositionConstraintState_w = ::std::weak_ptr<PositionConstraintState>
using PositionConstraintState_const_p = ::std::shared_ptr<const PositionConstraintState>
using PositionConstraintState_const_u = ::std::unique_ptr<const PositionConstraintState>
using PositionConstraintState_const_w = ::std::weak_ptr<const PositionConstraintState>
using PositionConstraintStated_p = ::std::shared_ptr<PositionConstraintStated>
using PositionConstraintStated_u = ::std::unique_ptr<PositionConstraintStated>
using PositionConstraintStated_w = ::std::weak_ptr<PositionConstraintStated>
using PositionConstraintStated_const_p = ::std::shared_ptr<const PositionConstraintStated>
using PositionConstraintStated_const_u = ::std::unique_ptr<const PositionConstraintStated>
using PositionConstraintStated_const_w = ::std::weak_ptr<const PositionConstraintStated>
using FullyDifferentiableDistanceErrorFunction = FullyDifferentiableDistanceErrorFunctionT<float>
using FullyDifferentiableDistanceErrorFunctiond = FullyDifferentiableDistanceErrorFunctionT<double>
using FullyDifferentiableDistanceErrorFunction_p
using FullyDifferentiableDistanceErrorFunction_u
using FullyDifferentiableDistanceErrorFunction_w
using FullyDifferentiableDistanceErrorFunction_const_p
using FullyDifferentiableDistanceErrorFunction_const_u
using FullyDifferentiableDistanceErrorFunction_const_w
using FullyDifferentiableDistanceErrorFunctiond_p
using FullyDifferentiableDistanceErrorFunctiond_u
using FullyDifferentiableDistanceErrorFunctiond_w
using FullyDifferentiableDistanceErrorFunctiond_const_p
using FullyDifferentiableDistanceErrorFunctiond_const_u
using FullyDifferentiableDistanceErrorFunctiond_const_w
using FullyDifferentiableMotionErrorFunction = FullyDifferentiableMotionErrorFunctionT<float>
using FullyDifferentiableMotionErrorFunctiond = FullyDifferentiableMotionErrorFunctionT<double>
using FullyDifferentiableMotionErrorFunction_p
using FullyDifferentiableMotionErrorFunction_u
using FullyDifferentiableMotionErrorFunction_w
using FullyDifferentiableMotionErrorFunction_const_p
using FullyDifferentiableMotionErrorFunction_const_u
using FullyDifferentiableMotionErrorFunction_const_w
using FullyDifferentiableMotionErrorFunctiond_p
using FullyDifferentiableMotionErrorFunctiond_u
using FullyDifferentiableMotionErrorFunctiond_w
using FullyDifferentiableMotionErrorFunctiond_const_p
using FullyDifferentiableMotionErrorFunctiond_const_u
using FullyDifferentiableMotionErrorFunctiond_const_w
using FullyDifferentiableOrientationErrorFunction
using FullyDifferentiableOrientationErrorFunctiond
using FullyDifferentiableOrientationErrorFunction_p
using FullyDifferentiableOrientationErrorFunction_u
using FullyDifferentiableOrientationErrorFunction_w
using FullyDifferentiableOrientationErrorFunction_const_p
using FullyDifferentiableOrientationErrorFunction_const_u
using FullyDifferentiableOrientationErrorFunction_const_w
using FullyDifferentiableOrientationErrorFunctiond_p
using FullyDifferentiableOrientationErrorFunctiond_u
using FullyDifferentiableOrientationErrorFunctiond_w
using FullyDifferentiableOrientationErrorFunctiond_const_p
using FullyDifferentiableOrientationErrorFunctiond_const_u
using FullyDifferentiableOrientationErrorFunctiond_const_w
using FullyDifferentiablePosePriorErrorFunction = FullyDifferentiablePosePriorErrorFunctionT<float>
using FullyDifferentiablePosePriorErrorFunctiond
using FullyDifferentiablePosePriorErrorFunction_p
using FullyDifferentiablePosePriorErrorFunction_u
using FullyDifferentiablePosePriorErrorFunction_w
using FullyDifferentiablePosePriorErrorFunction_const_p
using FullyDifferentiablePosePriorErrorFunction_const_u
using FullyDifferentiablePosePriorErrorFunction_const_w
using FullyDifferentiablePosePriorErrorFunctiond_p
using FullyDifferentiablePosePriorErrorFunctiond_u
using FullyDifferentiablePosePriorErrorFunctiond_w
using FullyDifferentiablePosePriorErrorFunctiond_const_p
using FullyDifferentiablePosePriorErrorFunctiond_const_u
using FullyDifferentiablePosePriorErrorFunctiond_const_w
using FullyDifferentiablePositionErrorFunction = FullyDifferentiablePositionErrorFunctionT<float>
using FullyDifferentiablePositionErrorFunctiond = FullyDifferentiablePositionErrorFunctionT<double>
using FullyDifferentiablePositionErrorFunction_p
using FullyDifferentiablePositionErrorFunction_u
using FullyDifferentiablePositionErrorFunction_w
using FullyDifferentiablePositionErrorFunction_const_p
using FullyDifferentiablePositionErrorFunction_const_u
using FullyDifferentiablePositionErrorFunction_const_w
using FullyDifferentiablePositionErrorFunctiond_p
using FullyDifferentiablePositionErrorFunctiond_u
using FullyDifferentiablePositionErrorFunctiond_w
using FullyDifferentiablePositionErrorFunctiond_const_p
using FullyDifferentiablePositionErrorFunctiond_const_u
using FullyDifferentiablePositionErrorFunctiond_const_w
using FullyDifferentiableProjectionErrorFunction
using FullyDifferentiableProjectionErrorFunctiond
using FullyDifferentiableProjectionErrorFunction_p
using FullyDifferentiableProjectionErrorFunction_u
using FullyDifferentiableProjectionErrorFunction_w
using FullyDifferentiableProjectionErrorFunction_const_p
using FullyDifferentiableProjectionErrorFunction_const_u
using FullyDifferentiableProjectionErrorFunction_const_w
using FullyDifferentiableProjectionErrorFunctiond_p
using FullyDifferentiableProjectionErrorFunctiond_u
using FullyDifferentiableProjectionErrorFunctiond_w
using FullyDifferentiableProjectionErrorFunctiond_const_p
using FullyDifferentiableProjectionErrorFunctiond_const_u
using FullyDifferentiableProjectionErrorFunctiond_const_w
using FullyDifferentiableSkeletonErrorFunction = FullyDifferentiableSkeletonErrorFunctionT<float>
using FullyDifferentiableSkeletonErrorFunctiond = FullyDifferentiableSkeletonErrorFunctionT<double>
using FullyDifferentiableSkeletonErrorFunction_p
using FullyDifferentiableSkeletonErrorFunction_u
using FullyDifferentiableSkeletonErrorFunction_w
using FullyDifferentiableSkeletonErrorFunction_const_p
using FullyDifferentiableSkeletonErrorFunction_const_u
using FullyDifferentiableSkeletonErrorFunction_const_w
using FullyDifferentiableSkeletonErrorFunctiond_p
using FullyDifferentiableSkeletonErrorFunctiond_u
using FullyDifferentiableSkeletonErrorFunctiond_w
using FullyDifferentiableSkeletonErrorFunctiond_const_p
using FullyDifferentiableSkeletonErrorFunctiond_const_u
using FullyDifferentiableSkeletonErrorFunctiond_const_w
using FullyDifferentiableStateErrorFunction = FullyDifferentiableStateErrorFunctionT<float>
using FullyDifferentiableStateErrorFunctiond = FullyDifferentiableStateErrorFunctionT<double>
using FullyDifferentiableStateErrorFunction_p
using FullyDifferentiableStateErrorFunction_u
using FullyDifferentiableStateErrorFunction_w
using FullyDifferentiableStateErrorFunction_const_p
using FullyDifferentiableStateErrorFunction_const_u
using FullyDifferentiableStateErrorFunction_const_w
using FullyDifferentiableStateErrorFunctiond_p
using FullyDifferentiableStateErrorFunctiond_u
using FullyDifferentiableStateErrorFunctiond_w
using FullyDifferentiableStateErrorFunctiond_const_p
using FullyDifferentiableStateErrorFunctiond_const_u
using FullyDifferentiableStateErrorFunctiond_const_w
using UnionErrorFunction = UnionErrorFunctionT<float>
using UnionErrorFunctiond = UnionErrorFunctionT<double>
using UnionErrorFunction_p = ::std::shared_ptr<UnionErrorFunction>
using UnionErrorFunction_u = ::std::unique_ptr<UnionErrorFunction>
using UnionErrorFunction_w = ::std::weak_ptr<UnionErrorFunction>
using UnionErrorFunction_const_p = ::std::shared_ptr<const UnionErrorFunction>
using UnionErrorFunction_const_u = ::std::unique_ptr<const UnionErrorFunction>
using UnionErrorFunction_const_w = ::std::weak_ptr<const UnionErrorFunction>
using UnionErrorFunctiond_p = ::std::shared_ptr<UnionErrorFunctiond>
using UnionErrorFunctiond_u = ::std::unique_ptr<UnionErrorFunctiond>
using UnionErrorFunctiond_w = ::std::weak_ptr<UnionErrorFunctiond>
using UnionErrorFunctiond_const_p = ::std::shared_ptr<const UnionErrorFunctiond>
using UnionErrorFunctiond_const_u = ::std::unique_ptr<const UnionErrorFunctiond>
using UnionErrorFunctiond_const_w = ::std::weak_ptr<const UnionErrorFunctiond>
using FbxUserPropertyValue = std::variant<bool, int, float, std::string>
 Value of a user-defined FBX property.
using FbxUserProperties = std::map<std::string, FbxUserPropertyValue>
 User-defined FBX properties, keyed by property name.
using GapFillConfig_p = ::std::shared_ptr<GapFillConfig>
using GapFillConfig_u = ::std::unique_ptr<GapFillConfig>
using GapFillConfig_w = ::std::weak_ptr<GapFillConfig>
using GapFillConfig_const_p = ::std::shared_ptr<const GapFillConfig>
using GapFillConfig_const_u = ::std::unique_ptr<const GapFillConfig>
using GapFillConfig_const_w = ::std::weak_ptr<const GapFillConfig>
using GloveConfig_p = ::std::shared_ptr<GloveConfig>
using GloveConfig_u = ::std::unique_ptr<GloveConfig>
using GloveConfig_w = ::std::weak_ptr<GloveConfig>
using GloveConfig_const_p = ::std::shared_ptr<const GloveConfig>
using GloveConfig_const_u = ::std::unique_ptr<const GloveConfig>
using GloveConfig_const_w = ::std::weak_ptr<const GloveConfig>
using GloveOffset_p = ::std::shared_ptr<GloveOffset>
using GloveOffset_u = ::std::unique_ptr<GloveOffset>
using GloveOffset_w = ::std::weak_ptr<GloveOffset>
using GloveOffset_const_p = ::std::shared_ptr<const GloveOffset>
using GloveOffset_const_u = ::std::unique_ptr<const GloveOffset>
using GloveOffset_const_w = ::std::weak_ptr<const GloveOffset>
using GloveSensorObservation_p = ::std::shared_ptr<GloveSensorObservation>
using GloveSensorObservation_u = ::std::unique_ptr<GloveSensorObservation>
using GloveSensorObservation_w = ::std::weak_ptr<GloveSensorObservation>
using GloveSensorObservation_const_p = ::std::shared_ptr<const GloveSensorObservation>
using GloveSensorObservation_const_u = ::std::unique_ptr<const GloveSensorObservation>
using GloveSensorObservation_const_w = ::std::weak_ptr<const GloveSensorObservation>
using GloveFrameData = std::vector<GloveSensorObservation>
 Per-frame collection of glove sensor observations.
Scalar packet aliases
using FloatP = Packet<float>
using DoubleP = Packet<double>
using IntP = Packet<int>
Float and double 2D/3D vector packet aliases
using Vector2fP = Vector2P<float>
using Vector3fP = Vector3P<float>
using Vector2dP = Vector2P<double>
using Vector3dP = Vector3P<double>

Enumerations

enum class  LogLevel {
  Disabled = 0 , Error , Warning , Info ,
  Debug , Trace
}
 Logging levels in ascending order of verbosity. More...
enum class  UpAxis { X = 0 , Y , Z }
 Specifies which axis points "up" in a 3D coordinate system. More...
enum class  Handedness { Left = 0 , Right }
 Specifies the handedness (chirality) of a coordinate system. More...
enum class  LengthUnit { Meter = 0 , Decimeter , Centimeter , Millimeter }
 Specifies the unit of length measurement. More...
enum class  CharacterMassScale { PreserveMass , PreserveDensity }
 Policy for choosing how physical mass changes when scaling a character. More...
enum class  CollisionPrimitiveType : uint8_t { TaperedCapsule , Ellipsoid , Box }
 Collision primitive kinds supported by character collision geometry. More...
enum  LimitType {
  MinMax , MinMaxJoint , MinMaxJointPassive , Linear ,
  LinearJoint , Ellipsoid , HalfPlane , LimitTypeCount
}
enum  JointParameterNames {
  TX = 0 , TY , TZ , RX ,
  RY , RZ , SC
}
enum class  VertexConstraintType { Position , Plane , Normal , SymmetricNormal }
 Type of vertex constraint mode. More...
enum class  RotationErrorType { RotationMatrixDifference , QuaternionLogMap }
 Defines different methods for computing rotation error between two quaternions. More...
enum class  CharacterFormat : uint8_t { Fbx , Gltf , Usd , Unknown }
 Represents the supported character formats. More...
enum class  KeepLocators { No , Yes }
enum class  LoadBlendShapes { No , Yes }
enum class  Permissive { No , Yes }
enum class  GltfFileFormat { Auto = 0 , Binary = 1 , Ascii = 2 }
 File format in which the character is saved. More...
enum class  GltfAnimationInterpolation : uint8_t { Step = 0 , Linear = 1 }
 How animation samplers written to a GLTF file interpolate between their keys. More...
enum class  FbxUpVector { XAxis = 1 , YAxis = 2 , ZAxis = 3 }
 Specifies which canonical axis represents up in the system (typically Y or Z). More...
enum class  FbxFrontVector { ParityEven = 1 , ParityOdd = 2 }
 Vector with origin at the screen pointing toward the camera. More...
enum class  FbxCoordSystem { RightHanded , LeftHanded }
 Specifies the third vector of the system. More...
enum class  UpVector { X = 0 , Y , Z , YNeg }
 This enumeration is used to define the primary up vector directions for various coordinate systems and orientations in a 3D environment. More...
enum class  Unit {
  M , DM , CM , MM ,
  Unknown
}
 An enumeration representing the units of measurement used in marker data files. More...
enum class  LocatorSpace { Local = 0 , Global = 1 }

Functions

void * aligned_malloc (size_t size, size_t)
void aligned_free (void *ptr)
constexpr std::size_t roundUpToAlignment (std::size_t value, std::size_t alignment)
 Rounds value up to the nearest multiple of alignment (in bytes).
template<typename T, std::size_t Alignment = alignof(T)>
T * alignedAlloc (std::size_t n)
 Allocates a block of memory that can hold n elements of type T with the specified alignment.
template<typename T, std::size_t Alignment = alignof(T), class Deleter = AlignedDeleter>
std::unique_ptr< T, Deleter > makeAlignedUnique (std::size_t n, Deleter deleter=Deleter())
 Creates a std::unique_ptr for aligned memory.
template<typename T, std::size_t Alignment = alignof(T), class Deleter = AlignedDeleter>
std::shared_ptr< T > makeAlignedShared (std::size_t n, Deleter deleter=Deleter())
 Creates a std::shared_ptr for aligned memory.
template<class T, class U, std::size_t Alignment>
bool operator== (const AlignedAllocator< T, Alignment > &, const AlignedAllocator< U, Alignment > &)
 Checks if storage allocated from lhs can be deallocated from rhs, and vice versa.
template<class T, class U, std::size_t Alignment>
bool operator!= (const AlignedAllocator< T, Alignment > &, const AlignedAllocator< U, Alignment > &)
 Checks if storage allocated from lhs cannot be deallocated from rhs, and vice versa.
std::map< std::string, LogLevel > logLevelMap ()
 Returns the canonical mapping from human-readable level names ("Disabled", "Error", "Warning", "Info", "Debug", "Trace") to LogLevel values.
void setLogLevel (LogLevel level)
 Sets the global log threshold; messages below level are filtered out.
void setLogLevel (const std::string &levelStr)
 Parses levelStr (case-insensitive: "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "DISABLED") and forwards to setLogLevel(LogLevel).
LogLevel getLogLevel ()
 Returns the current global log threshold.
template<typename StringType>
StringType trim (const StringType &text, const char *whiteChars=" \t")
 Returns a copy of the string with leading and trailing characters in whiteChars removed.
template std::string trim (const std::string &text, const char *whiteChars)
template std::string_view trim (const std::string_view &text, const char *whiteChars)
std::string trim (const char *text, const char *whiteChars=" \t")
 Returns a copy of the null-terminated C string with leading and trailing characters in whiteChars removed.
std::vector< std::string > tokenize (const std::string &inputString, const std::string &delimiters=" \t\r\n", bool trim=true)
 Tokenizes a string using the specified single-byte delimiter characters.
std::vector< std::string_view > tokenize (std::string_view inputString, std::string_view delimiters=" \t\r\n", bool trim=true)
 Tokenizes a string_view using the specified single-byte delimiter characters.
template<size_t Alignment>
size_t computeOffset (const Eigen::Ref< Eigen::MatrixXf > &mat)
 Computes the offset required for the matrix data to meet the alignment requirement.
template<size_t Alignment>
void checkAlignment (const Eigen::Ref< Eigen::MatrixXf > &mat, size_t offset=0)
 Checks if the data of the matrix is aligned correctly.
template<typename T = float>
constexpr T nan () noexcept
 Returns a quiet NaN value of type T.
template<typename T>
constexpr T Eps (T FloatEps=T(1e-7), T DoubleEps=T(1e-16))
 Returns a type-appropriate tolerance/epsilon value.
template<typename T = float>
constexpr T ln2 () noexcept
 Returns the natural logarithm of 2 (log_e 2).
template<typename T = float>
constexpr T pi () noexcept
 Returns the mathematical constant pi.
template<typename T = float>
constexpr T twopi () noexcept
 Returns 2 * pi.
template<typename T = float>
constexpr T toRad (T x=T(1)) noexcept
 Converts the given angle x (in degrees) to radians.
template<typename T = float>
constexpr T toDeg (T x=T(1)) noexcept
 Converts the given angle x (in radians) to degrees.
template<typename T = float>
constexpr T toM (T x=T(1)) noexcept
 Converts the given length x (in centimeters) to meters.
template<typename T = float>
constexpr T toCm (T x=T(1)) noexcept
 Converts the given length x (in meters) to centimeters.
template<typename T>
T scaleFactor (const CoordinateSystem &from, const CoordinateSystem &to)
 Returns the length scale factor when converting a length from from's unit to to's unit.
template<typename T>
Vector3< T > changeVector (const Vector3< T > &v, const CoordinateSystem &from, const CoordinateSystem &to)
 Converts a 3D position vector between coordinate systems.
template<typename T>
Quaternion< T > changeQuaternion (const Quaternion< T > &q, const CoordinateSystem &from, const CoordinateSystem &to)
 Converts a quaternion rotation between coordinate systems.
template<typename T>
Matrix3< T > changeRotationMatrix (const Matrix3< T > &m, const CoordinateSystem &from, const CoordinateSystem &to)
 Converts a 3x3 rotation matrix between coordinate systems.
template<typename T>
Vector3< T > toMomentumVector (const Vector3< T > &v, const CoordinateSystem &from)
 Converts a position vector from from into Momentum's canonical coordinate system.
template<typename T>
Vector3< T > fromMomentumVector (const Vector3< T > &v, const CoordinateSystem &to)
 Converts a position vector from Momentum's canonical coordinate system into to.
template<typename T>
Quaternion< T > toMomentumQuaternion (const Quaternion< T > &q, const CoordinateSystem &from)
 Converts a quaternion rotation from from into Momentum's canonical coordinate system.
template<typename T>
Quaternion< T > fromMomentumQuaternion (const Quaternion< T > &q, const CoordinateSystem &to)
 Converts a quaternion rotation from Momentum's canonical coordinate system into to.
template<typename T>
Matrix3< T > toMomentumRotationMatrix (const Matrix3< T > &m, const CoordinateSystem &from)
 Converts a 3x3 rotation matrix from from into Momentum's canonical coordinate system.
template<typename T>
Matrix3< T > fromMomentumRotationMatrix (const Matrix3< T > &m, const CoordinateSystem &to)
 Converts a 3x3 rotation matrix from Momentum's canonical coordinate system into to.
template float scaleFactor< float > (const CoordinateSystem &, const CoordinateSystem &)
template double scaleFactor< double > (const CoordinateSystem &, const CoordinateSystem &)
template Vector3< float > changeVector (const Vector3< float > &, const CoordinateSystem &, const CoordinateSystem &)
template Vector3< double > changeVector (const Vector3< double > &, const CoordinateSystem &, const CoordinateSystem &)
template Quaternion< float > changeQuaternion (const Quaternion< float > &, const CoordinateSystem &, const CoordinateSystem &)
template Quaternion< double > changeQuaternion (const Quaternion< double > &, const CoordinateSystem &, const CoordinateSystem &)
template Matrix3< float > changeRotationMatrix (const Matrix3< float > &, const CoordinateSystem &, const CoordinateSystem &)
template Matrix3< double > changeRotationMatrix (const Matrix3< double > &, const CoordinateSystem &, const CoordinateSystem &)
template Vector3< float > toMomentumVector (const Vector3< float > &, const CoordinateSystem &)
template Vector3< double > toMomentumVector (const Vector3< double > &, const CoordinateSystem &)
template Vector3< float > fromMomentumVector (const Vector3< float > &, const CoordinateSystem &)
template Vector3< double > fromMomentumVector (const Vector3< double > &, const CoordinateSystem &)
template Quaternion< float > toMomentumQuaternion (const Quaternion< float > &, const CoordinateSystem &)
template Quaternion< double > toMomentumQuaternion (const Quaternion< double > &, const CoordinateSystem &)
template Quaternion< float > fromMomentumQuaternion (const Quaternion< float > &, const CoordinateSystem &)
template Quaternion< double > fromMomentumQuaternion (const Quaternion< double > &, const CoordinateSystem &)
template Matrix3< float > toMomentumRotationMatrix (const Matrix3< float > &, const CoordinateSystem &)
template Matrix3< double > toMomentumRotationMatrix (const Matrix3< double > &, const CoordinateSystem &)
template Matrix3< float > fromMomentumRotationMatrix (const Matrix3< float > &, const CoordinateSystem &)
template Matrix3< double > fromMomentumRotationMatrix (const Matrix3< double > &, const CoordinateSystem &)
template<typename T>
bool intersectFace (const MeshT< T > &mesh, const std::vector< Vector3< T > > &faceNormals, int32_t face0, int32_t face1)
 Tests whether two given triangle faces of a mesh intersect with each other.
template<typename T>
std::vector< std::pair< int32_t, int32_t > > intersectMeshBruteForce (const MeshT< T > &mesh)
 Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a brute-force O(n^2) pairwise check over all faces.
template<typename T>
std::vector< std::pair< int32_t, int32_t > > intersectMesh (const MeshT< T > &mesh)
 Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a BVH (bounding volume hierarchy) acceleration structure.
template bool intersectFace< float > (const MeshT< float > &mesh, const std::vector< Vector3< float > > &faceNormals, const int32_t face0, const int32_t face1)
template bool intersectFace< double > (const MeshT< double > &mesh, const std::vector< Vector3< double > > &faceNormals, const int32_t face0, const int32_t face1)
template std::vector< std::pair< int32_t, int32_t > > intersectMeshBruteForce< float > (const MeshT< float > &mesh)
template std::vector< std::pair< int32_t, int32_t > > intersectMeshBruteForce< double > (const MeshT< double > &mesh)
template std::vector< std::pair< int32_t, int32_t > > intersectMesh< float > (const MeshT< float > &mesh)
template std::vector< std::pair< int32_t, int32_t > > intersectMesh< double > (const MeshT< double > &mesh)
template<typename T, typename T2, int N>
std::vector< Eigen::Vector< T2, N > > castVectors (const std::vector< Eigen::Vector< T, N > > &vec_in)
template<typename T, typename T2>
std::vector< Eigen::MatrixX< T2 > > castMatrices (momentum::span< const Eigen::MatrixX< T > > m_in)
void validateColumnIndices (momentum::span< const Eigen::Index > colIndices, Eigen::Index maxEntry)
 Validates that every entry in colIndices is in [0, maxEntry); throws otherwise.
template<typename T>
T uniform (const T &min, const T &max)
 Convenience wrappers that forward to Random<>::GetSingleton().
template<typename FixedSizeT>
FixedSizeT uniform (typename FixedSizeT::Scalar min, typename FixedSizeT::Scalar max)
 Uniformly distributed fixed-size vector/matrix via the global Random singleton.
template<typename DynamicVector>
DynamicVector uniform (Eigen::Index size, typename DynamicVector::Scalar min, typename DynamicVector::Scalar max)
 Uniformly distributed dynamic-size vector via the global Random singleton.
template<typename DynamicMatrix>
DynamicMatrix uniform (Eigen::Index rows, Eigen::Index cols, typename DynamicMatrix::Scalar min, typename DynamicMatrix::Scalar max)
 Uniformly distributed dynamic-size matrix via the global Random singleton.
template<typename T>
Quaternion< T > uniformQuaternion ()
 Uniformly distributed unit quaternion on SO(3) via the global Random singleton.
template<typename T>
Matrix3< T > uniformRotationMatrix ()
 Uniformly distributed rotation matrix on SO(3) via the global Random singleton.
template<typename T>
Isometry3< T > uniformIsometry3 (const Vector3< T > &min=Vector3< T >::Zero(), const Vector3< T > &max=Vector3< T >::Ones())
 Random isometry on SE(3) via the global Random singleton (uniform rotation, uniform translation in [min, max]).
template<typename T>
Affine3< T > uniformAffine3 (T scaleMin=T(0.1), T scaleMax=T(10.0), const Vector3< T > &min=Vector3< T >::Zero(), const Vector3< T > &max=Vector3< T >::Ones())
 Random affine transformation via the global Random singleton (uniform rotation, uniform scale in [scaleMin, scaleMax], uniform translation in [min, max]).
template<typename T>
T normal (const T &mean, const T &sigma)
 Normally distributed value via the global Random singleton.
template<typename FixedSizeT>
FixedSizeT normal (typename FixedSizeT::Scalar mean, typename FixedSizeT::Scalar sigma)
 Normally distributed fixed-size vector/matrix via the global Random singleton.
template<typename DynamicVector>
DynamicVector normal (Eigen::Index size, typename DynamicVector::Scalar mean, typename DynamicVector::Scalar sigma)
 Normally distributed dynamic-size vector via the global Random singleton.
template<typename DynamicMatrix>
DynamicMatrix normal (Eigen::Index rows, Eigen::Index cols, typename DynamicMatrix::Scalar mean, typename DynamicMatrix::Scalar sigma)
 Normally distributed dynamic-size matrix via the global Random singleton.
float cross2d (const Vector2f &origin, const Vector2f &a, const Vector2f &b)
 Compute the signed 2D cross product of vectors from an origin.
std::vector< Vector2f > computeConvexHull2d (std::span< const Vector2f > points)
 Compute the convex hull of 2D support points.
std::vector< Vector2f > computeSupportPolygonFromWorldPoints (std::span< const Vector3f > points)
 Compute the 2D support polygon from world-space support points on the Y-up ground plane.
std::vector< Vector2f > computeSupportPolygonFromWorldPoints (std::span< const Vector3f > points, const SupportPlane &supportPlane)
 Compute the 2D support polygon from world-space support points.
template<typename T>
TransformT< T > blendTransforms (momentum::span< const TransformT< T > > transforms, momentum::span< const T > weights)
 Weighted blend of transforms: rotations are blended via averaged quaternions, translations and scales linearly.
template<typename T>
TransformT< T > slerp (const TransformT< T > &t1, const TransformT< T > &t2, T weight)
 Spherical linear interpolation between two transforms.
template TransformT< float > blendTransforms (momentum::span< const TransformT< float > > transforms, momentum::span< const float > weights)
template TransformT< double > blendTransforms (momentum::span< const TransformT< double > > transforms, momentum::span< const double > weights)
template TransformT< float > slerp (const TransformT< float > &, const TransformT< float > &, float)
template TransformT< double > slerp (const TransformT< double > &, const TransformT< double > &, double)
template<typename OtherScalar, template< typename... > class ContainerType, typename ObjectType>
decltype(auto) cast (const ContainerType< ObjectType > &originalContainer)
 Casts the scalar type of objects in a container that support the cast<>() method.
template MatrixX< float > pseudoInverse (const MatrixX< float > &mat)
template MatrixX< double > pseudoInverse (const MatrixX< double > &mat)
template MatrixX< float > pseudoInverse (const SparseMatrix< float > &mat)
template MatrixX< double > pseudoInverse (const SparseMatrix< double > &mat)
template Quaternion< float > quaternionExpMap (const Vector3< float > &v)
template Quaternion< double > quaternionExpMap (const Vector3< double > &v)
template Vector3< float > quaternionLogMap (const Quaternion< float > &q)
template Vector3< double > quaternionLogMap (const Quaternion< double > &q)
template Eigen::Matrix< float, 3, 4 > quaternionLogMapDerivative (const Quaternion< float > &q)
template Eigen::Matrix< double, 3, 4 > quaternionLogMapDerivative (const Quaternion< double > &q)
template Vector3< float > rotationMatrixToEuler (const Matrix3< float > &m, int axis0, int axis1, int axis2, EulerConvention convention)
template Vector3< double > rotationMatrixToEuler (const Matrix3< double > &m, int axis0, int axis1, int axis2, EulerConvention convention)
template Vector3< float > rotationMatrixToEulerXYZ (const Matrix3< float > &m, EulerConvention convention)
template Vector3< double > rotationMatrixToEulerXYZ (const Matrix3< double > &m, EulerConvention convention)
template Vector3< float > rotationMatrixToEulerZYX (const Matrix3< float > &m, EulerConvention convention)
template Vector3< double > rotationMatrixToEulerZYX (const Matrix3< double > &m, EulerConvention convention)
template Quaternion< float > eulerToQuaternion (const Vector3< float > &angles, int axis0, int axis1, int axis2, EulerConvention convention)
template Quaternion< double > eulerToQuaternion (const Vector3< double > &angles, int axis0, int axis1, int axis2, EulerConvention convention)
template Matrix3< float > eulerToRotationMatrix (const Vector3< float > &angles, int axis0, int axis1, int axis2, EulerConvention convention)
template Matrix3< double > eulerToRotationMatrix (const Vector3< double > &angles, int axis0, int axis1, int axis2, EulerConvention convention)
template Matrix3< float > eulerXYZToRotationMatrix (const Vector3< float > &angles, EulerConvention convention)
template Matrix3< double > eulerXYZToRotationMatrix (const Vector3< double > &angles, EulerConvention convention)
template Matrix3< float > eulerZYXToRotationMatrix (const Vector3< float > &angles, EulerConvention convention)
template Matrix3< double > eulerZYXToRotationMatrix (const Vector3< double > &angles, EulerConvention convention)
template Vector3f quaternionToEuler (const Quaternionf &q)
template Vector3d quaternionToEuler (const Quaterniond &q)
template std::tuple< bool, float, Eigen::Vector2< float > > closestPointsOnSegments< float > (const Eigen::Vector3< float > &o1, const Eigen::Vector3< float > &d1, const Eigen::Vector3< float > &o2, const Eigen::Vector3< float > &d2, const float maxDist)
template std::tuple< bool, double, Eigen::Vector2< double > > closestPointsOnSegments< double > (const Eigen::Vector3< double > &o1, const Eigen::Vector3< double > &d1, const Eigen::Vector3< double > &o2, const Eigen::Vector3< double > &d2, const double maxDist)
template float rotationMatrixToOneAxisEuler (const Matrix3< float > &m, int axis0)
template double rotationMatrixToOneAxisEuler (const Matrix3< double > &m, int axis0)
template Vector2< float > rotationMatrixToTwoAxisEuler (const Matrix3< float > &m, int axis0, int axis1)
template Vector2< double > rotationMatrixToTwoAxisEuler (const Matrix3< double > &m, int axis0, int axis1)
bool IsNanNoOpt (float f)
 NaN check function that isn't optimized away by fastmath.
constexpr size_t padToSimdAlignment (size_t size)
 Pads a row count to be a multiple of kJacobianRowAlignment for SIMD alignment.
template<typename T>
BlendWeightsT< T > extractBlendWeights (const ParameterTransform &paramTransform, const ModelParametersT< T > &modelParams)
 Extracts blend shape weights from model parameters.
template<typename T>
BlendWeightsT< T > extractFaceExpressionBlendWeights (const ParameterTransform &paramTransform, const ModelParametersT< T > &modelParams)
 Extracts facial expression blend shape weights from model parameters.
template<typename T>
void skinWithBlendShapes (const Character &character, const SkeletonStateT< T > &state, const ModelParametersT< T > &modelParams, MeshT< T > &outputMesh)
 Applies blend shape deformations and skeletal transformations to a mesh.
template<typename T>
void skinWithBlendShapes (const Character &character, const SkeletonStateT< T > &state, const BlendWeightsT< T > &blendWeights, MeshT< T > &outputMesh)
 Applies blend shape deformations and skeletal transformations to a mesh.
template void skinWithBlendShapes (const Character &character, const SkeletonStateT< float > &state, const BlendWeightsT< float > &modelParams, MeshT< float > &outputMesh)
template void skinWithBlendShapes (const Character &character, const SkeletonStateT< double > &state, const BlendWeightsT< double > &modelParams, MeshT< double > &outputMesh)
template void skinWithBlendShapes (const Character &character, const SkeletonStateT< float > &state, const ModelParametersT< float > &modelParams, MeshT< float > &outputMesh)
template void skinWithBlendShapes (const Character &character, const SkeletonStateT< double > &state, const ModelParametersT< double > &modelParams, MeshT< double > &outputMesh)
template BlendWeightsT< float > extractBlendWeights< float > (const ParameterTransform &paramTransform, const ModelParametersT< float > &modelParams)
template BlendWeightsT< double > extractBlendWeights< double > (const ParameterTransform &paramTransform, const ModelParametersT< double > &modelParams)
template BlendWeightsT< float > extractFaceExpressionBlendWeights< float > (const ParameterTransform &paramTransform, const ModelParametersT< float > &modelParams)
template BlendWeightsT< double > extractFaceExpressionBlendWeights< double > (const ParameterTransform &paramTransform, const ModelParametersT< double > &modelParams)
size_t resolvePhysicalPropertiesJointIndex (const JointPhysicalProperties &properties, const Skeleton &skeleton)
 Resolves physical mass properties to a skeleton joint.
Character scaleCharacter (const Character &character, float scale, CharacterMassScale massScale=CharacterMassScale::PreserveMass)
 Scales the character (mesh and skeleton) by the desired amount.
Character transformCharacter (const Character &character, const Affine3f &xform)
 Transforms the character (mesh and skeleton) by the desired transformation matrix.
Character replaceSkeletonHierarchy (const Character &srcCharacter, const Character &tgtCharacter, const std::string &srcRootJoint, const std::string &tgtRootJoint)
 Replaces the subtree of tgtCharacter's skeleton rooted at tgtRootJoint with the subtree of srcCharacter's skeleton rooted at srcRootJoint.
Character removeJoints (const Character &character, momentum::span< const size_t > jointsToRemove)
 Removes the specified joints and any joints parented beneath them from the character.
RigidTransformNodeResult addRigidTransformNode (const Character &character, const std::string &name, const Eigen::Vector3f &translationOffset=Eigen::Vector3f::Zero(), const Eigen::Quaternionf &preRotation=Eigen::Quaternionf::Identity())
 Adds a new root-level joint with 6 rigid DOF parameters (tx/ty/tz/rx/ry/rz) to a character.
MatrixXf mapMotionToCharacter (const MotionParameters &inputMotion, const Character &targetCharacter)
 Maps the input ModelParameter motion to a target character by matching model parameter names.
JointParameters mapIdentityToCharacter (const IdentityParameters &inputIdentity, const Character &targetCharacter)
 Maps the input JointParameter vector to a target character by matching joint names.
Character reduceMeshByVertices (const Character &character, const std::vector< bool > &activeVertices)
 Reduces the character's mesh to only include the specified vertices and associated faces.
Character reduceMeshByFaces (const Character &character, const std::vector< bool > &activeFaces)
 Reduces the character's mesh to only include the specified faces and associated vertices.
template<typename T>
MeshT< T > reduceMeshByVertices (const MeshT< T > &mesh, const std::vector< bool > &activeVertices)
 Reduces a standalone mesh to only include the specified vertices and associated faces.
template<typename T>
MeshT< T > reduceMeshByFaces (const MeshT< T > &mesh, const std::vector< bool > &activeFaces)
 Reduces a standalone mesh to only include the specified faces and associated vertices.
template<typename T>
std::vector< bool > verticesToFaces (const MeshT< T > &mesh, const std::vector< bool > &activeVertices)
 Converts a vertex selection to a face selection.
template<typename T>
std::vector< bool > facesToVertices (const MeshT< T > &mesh, const std::vector< bool > &activeFaces)
 Converts a face selection to a vertex selection.
template<typename T>
std::vector< bool > verticesToPolys (const MeshT< T > &mesh, const std::vector< bool > &activeVertices)
 Converts a vertex selection to a polygon selection.
template<typename T>
std::vector< bool > polysToVertices (const MeshT< T > &mesh, const std::vector< bool > &activePolys)
 Converts a polygon selection to a vertex selection.
template<typename T>
MeshT< T > reduceMeshByPolys (const MeshT< T > &mesh, const std::vector< bool > &activePolys)
 Reduces a standalone mesh to only include the specified polygons and associated vertices.
Character reduceMeshByPolys (const Character &character, const std::vector< bool > &activePolys)
 Reduces the character's mesh to only include the specified polygons and associated vertices.
template MeshT< float > reduceMeshByVertices< float > (const MeshT< float > &mesh, const std::vector< bool > &activeVertices)
template MeshT< double > reduceMeshByVertices< double > (const MeshT< double > &mesh, const std::vector< bool > &activeVertices)
template MeshT< float > reduceMeshByFaces< float > (const MeshT< float > &mesh, const std::vector< bool > &activeFaces)
template MeshT< double > reduceMeshByFaces< double > (const MeshT< double > &mesh, const std::vector< bool > &activeFaces)
template std::vector< bool > verticesToFaces< float > (const MeshT< float > &mesh, const std::vector< bool > &activeVertices)
template std::vector< bool > verticesToFaces< double > (const MeshT< double > &mesh, const std::vector< bool > &activeVertices)
template std::vector< bool > facesToVertices< float > (const MeshT< float > &mesh, const std::vector< bool > &activeFaces)
template std::vector< bool > facesToVertices< double > (const MeshT< double > &mesh, const std::vector< bool > &activeFaces)
template std::vector< bool > verticesToPolys< float > (const MeshT< float > &mesh, const std::vector< bool > &activeVertices)
template std::vector< bool > verticesToPolys< double > (const MeshT< double > &mesh, const std::vector< bool > &activeVertices)
template std::vector< bool > polysToVertices< float > (const MeshT< float > &mesh, const std::vector< bool > &activePolys)
template std::vector< bool > polysToVertices< double > (const MeshT< double > &mesh, const std::vector< bool > &activePolys)
template MeshT< float > reduceMeshByPolys< float > (const MeshT< float > &mesh, const std::vector< bool > &activePolys)
template MeshT< double > reduceMeshByPolys< double > (const MeshT< double > &mesh, const std::vector< bool > &activePolys)
template<typename T>
bool overlaps (const Vector3< T > &originA, const Vector3< T > &directionA, const Vector2< T > &radiiA, T deltaA, const Vector3< T > &originB, const Vector3< T > &directionB, const Vector2< T > &radiiB, T deltaB, T &outDistance, Vector2< T > &outClosestPoints, T &outOverlap)
 Determines if two tapered capsules overlap.
template<typename T>
T closestPointOnSegmentParameter (const Vector3< T > &origin, const Vector3< T > &direction, const Vector3< T > &point)
 Return the clamped segment parameter for the closest point to a world-space point.
template<typename T>
T ellipsoidRadiusAlongDirection (const Quaternion< T > &orientation, const Vector3< T > &radii, const Vector3< T > &unitDirection)
 Return the support radius of an oriented ellipsoid along a unit world-space direction.
template<typename T>
T boxRadiusAlongDirection (const Quaternion< T > &orientation, const Vector3< T > &halfExtents, const Vector3< T > &unitDirection)
 Return the support radius of an oriented box along a unit world-space direction.
bool isCenteredPrimitive (CollisionPrimitiveType type)
 Return whether the primitive is represented by a center, orientation, and support radius.
template<typename T>
T centeredPrimitiveRadiusAlongDirection (CollisionPrimitiveType type, const Quaternion< T > &orientation, const Vector3< T > &ellipsoidRadii, const Vector3< T > &boxHalfExtents, const Vector3< T > &unitDirection)
 Return the support radius of an ellipsoid or box along a unit world-space direction.
template<typename T>
bool overlapsCapsuleCenteredPrimitive (const Vector3< T > &capsuleOrigin, const Vector3< T > &capsuleDirection, const Vector2< T > &capsuleRadii, T capsuleDelta, CollisionPrimitiveType primitiveType, const Vector3< T > &primitiveCenter, const Quaternion< T > &primitiveOrientation, const Vector3< T > &ellipsoidRadii, const Vector3< T > &boxHalfExtents, T &outDistance, T &outCapsuleParam, T &outOverlap, T &outCapsuleRadius, T &outPrimitiveRadius)
 Test overlap between a tapered capsule and an oriented centered primitive.
template<typename T>
bool overlaps (const CollisionGeometryStateT< T > &collisionState, const CollisionGeometry &collisionGeometry, size_t indexA, size_t indexB, CollisionOverlapResultT< T > &result)
 Determines whether two collision primitives overlap.
template<typename T>
void updateAabb (axel::BoundingBox< T > &aabb, const Vector3< T > &originA, const Vector3< T > &direction, const Vector2< T > &radii)
 Updates an axis-aligned bounding box to encompass a tapered capsule.
template<typename T>
void updateEllipsoidAabb (axel::BoundingBox< T > &aabb, const Vector3< T > &center, const Quaternion< T > &orientation, const Vector3< T > &radii)
 Updates an axis-aligned bounding box to encompass an oriented ellipsoid.
template<typename T>
void updateBoxAabb (axel::BoundingBox< T > &aabb, const Vector3< T > &center, const Quaternion< T > &orientation, const Vector3< T > &halfExtents)
 Updates an axis-aligned bounding box to encompass an oriented box.
template<typename T>
void updateAabb (axel::BoundingBox< T > &aabb, const CollisionGeometryStateT< T > &collisionState, size_t index)
 Updates an axis-aligned bounding box to encompass a collision primitive.
template<typename T, typename S>
bool isValidCollisionPair (const CollisionGeometryStateT< T > &collisionState, const CollisionGeometry &collisionGeometry, const SkeletonT< S > &skeleton, size_t i, size_t j, bool filterRestPoseOverlaps=true)
 Determines whether a pair of collision geometry primitives should be included as a valid collision pair.
ModelParameters applyModelParameterScales (const ParameterTransform &parameterTransform, MatrixXf &motion, const JointParameters &jointIdentity)
 Apply model parameter scale conversion to motion data.
template<typename T>
std::vector< Eigen::Matrix4< T > > computeSkinningTransforms (typename DeduceSpanType< const JointStateT< T > >::type jointState, const TransformationListT< T > &inverseBindPose)
 Computes the skinning transforms from joint states and inverse bind poses.
template<typename T>
std::vector< Vector3< T > > applySSD (const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms)
 Applies forward SSD (linear blend skinning) to points using precomputed skinning transforms.
template<typename T>
std::vector< Vector3< T > > applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const JointStateT< T > >::type jointState)
 Applies forward SSD to points using joint states, returning new points.
template<typename T>
std::vector< Vector3< T > > applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, const SkeletonStateT< T > &state)
 Applies forward SSD to points using skeleton state, returning new points.
template<typename T>
std::vector< Vector3< T > > applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, const TransformationListT< T > &worldTransforms)
 Applies forward SSD to points using precomputed world transforms, returning new points.
template<typename T>
std::vector< Vector3< T > > applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const TransformT< T > >::type worldTransforms)
 Applies forward SSD to points using a span of world transforms, returning new points.
template<typename T>
void applySSD (const SkinWeights &skin, const MeshT< T > &mesh, typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms, MeshT< T > &outputMesh)
 Applies forward SSD to a mesh using precomputed skinning transforms.
template<typename T>
void applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, typename DeduceSpanType< const JointStateT< T > >::type jointState, MeshT< T > &outputMesh)
 Applies forward SSD to a mesh using joint states, modifying output mesh.
template<typename T>
void applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, const SkeletonStateT< T > &state, MeshT< T > &outputMesh)
 Applies forward SSD to a mesh using skeleton state, modifying output mesh.
template<typename T>
void applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, const TransformationListT< T > &worldTransforms, MeshT< T > &outputMesh)
 Applies forward SSD to a mesh using precomputed world transforms.
template<typename T>
void applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, typename DeduceSpanType< const TransformT< T > >::type worldTransforms, MeshT< T > &outputMesh)
 Applies forward SSD to a mesh using a span of world transforms.
Affine3f getInverseSSDTransformation (const TransformationList &inverseBindPose, const SkinWeights &skin, const SkeletonState &state, size_t index)
 Computes the inverse SSD transformation for a specific vertex.
void applyInverseSSD (const TransformationList &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const SkeletonState &state, Mesh &mesh)
 Applies inverse SSD to points, storing results in a mesh.
std::vector< Vector3f > applyInverseSSD (const TransformationList &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const SkeletonState &state)
 Applies inverse SSD to points, returning new points in bind pose space.
template std::vector< Eigen::Matrix4f > computeSkinningTransforms< float > (momentum::span< const JointStateT< float > > jointState, const TransformationListT< float > &inverseBindPose)
template std::vector< Eigen::Matrix4d > computeSkinningTransforms< double > (momentum::span< const JointStateT< double > > jointState, const TransformationListT< double > &inverseBindPose)
template std::vector< Vector3f > applySSD< float > (const SkinWeights &skin, momentum::span< const Vector3f > points, momentum::span< const Eigen::Matrix4f > skinningTransforms)
template std::vector< Vector3d > applySSD< double > (const SkinWeights &skin, momentum::span< const Vector3d > points, momentum::span< const Eigen::Matrix4d > skinningTransforms)
template std::vector< Vector3f > applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, momentum::span< const JointStateT< float > > jointState)
template std::vector< Vector3d > applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3d > points, momentum::span< const JointStateT< double > > jointState)
template std::vector< Vector3f > applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const SkeletonStateT< float > &state)
template std::vector< Vector3d > applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3d > points, const SkeletonStateT< double > &state)
template std::vector< Vector3f > applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const TransformationListT< float > &worldTransforms)
template std::vector< Vector3d > applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3d > points, const TransformationListT< double > &worldTransforms)
template std::vector< Vector3f > applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, momentum::span< const TransformT< float > > worldTransforms)
template std::vector< Vector3d > applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3d > points, momentum::span< const TransformT< double > > worldTransforms)
template void applySSD< float > (const SkinWeights &skin, const MeshT< float > &mesh, momentum::span< const Eigen::Matrix4f > skinningTransforms, MeshT< float > &outputMesh)
template void applySSD< double > (const SkinWeights &skin, const MeshT< double > &mesh, momentum::span< const Eigen::Matrix4d > skinningTransforms, MeshT< double > &outputMesh)
template void applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, const MeshT< float > &mesh, momentum::span< const JointStateT< float > > jointState, MeshT< float > &outputMesh)
template void applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, const MeshT< double > &mesh, momentum::span< const JointStateT< double > > jointState, MeshT< double > &outputMesh)
template void applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, const MeshT< float > &mesh, const SkeletonStateT< float > &state, MeshT< float > &outputMesh)
template void applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, const MeshT< double > &mesh, const SkeletonStateT< double > &state, MeshT< double > &outputMesh)
template void applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, const MeshT< float > &mesh, const TransformationListT< float > &worldTransforms, MeshT< float > &outputMesh)
template void applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, const MeshT< double > &mesh, const TransformationListT< double > &worldTransforms, MeshT< double > &outputMesh)
template void applySSD< float > (const TransformationListT< float > &inverseBindPose, const SkinWeights &skin, const MeshT< float > &mesh, momentum::span< const TransformT< float > > worldTransforms, MeshT< float > &outputMesh)
template void applySSD< double > (const TransformationListT< double > &inverseBindPose, const SkinWeights &skin, const MeshT< double > &mesh, momentum::span< const TransformT< double > > worldTransforms, MeshT< double > &outputMesh)
template<typename T>
Vector3< T > getSkinnedLocatorPosition (const SkinnedLocator &locator, const Vector3< T > &restPosition, const TransformationList &inverseBindPose, const SkeletonStateT< T > &state)
 Computes the world position of a skinned locator using linear blend skinning.
template Vector3< float > getSkinnedLocatorPosition< float > (const SkinnedLocator &locator, const Vector3< float > &restPosition, const TransformationList &inverseBindPose, const SkeletonStateT< float > &state)
template Vector3< double > getSkinnedLocatorPosition< double > (const SkinnedLocator &locator, const Vector3< double > &restPosition, const TransformationList &inverseBindPose, const SkeletonStateT< double > &state)
template<typename T>
Vector3< T > getSkinnedLocatorPosition (const SkinnedLocator &locator, const TransformationList &inverseBindPose, const SkeletonStateT< T > &state)
 Computes the world position of a skinned locator using linear blend skinning.
template Vector3< float > getSkinnedLocatorPosition< float > (const SkinnedLocator &locator, const TransformationList &inverseBindPose, const SkeletonStateT< float > &state)
template Vector3< double > getSkinnedLocatorPosition< double > (const SkinnedLocator &locator, const TransformationList &inverseBindPose, const SkeletonStateT< double > &state)
std::string_view toString (const LimitType type)
JointParameters applyPassiveJointParameterLimits (const ParameterLimits &limits, const JointParameters &jointParams)
 Only processes MinMaxJointPassive limits, clamping parameters to their ranges.
ParameterLimits getPoseConstraintParameterLimits (const std::string &name, const ParameterTransform &pt, float weight=1.0f)
 Creates MinMax limits from a pose constraint.
bool isInRange (const LimitLinear &limit, float value)
 If rangeMin and rangeMax are both 0, the limit applies to all values.
bool isInRange (const LimitLinearJoint &limit, float value)
 If rangeMin and rangeMax are both 0, the limit applies to all values.
template<typename T>
ParameterTransformT< T > mapParameterTransformJoints (const ParameterTransformT< T > &parameterTransform, size_t numTargetJoints, const std::vector< size_t > &jointMapping)
 Construct a new parameter transform where the joints have been mapped to a new skeleton.
template<typename T>
std::tuple< ParameterTransformT< T >, ParameterLimits > subsetParameterTransform (const ParameterTransformT< T > &paramTransform, const ParameterLimits &paramLimitsOld, const ParameterSet &paramSet)
 Return a parameter mapping that only includes the listed parameters.
std::tuple< ParameterTransform, ParameterLimits > addBlendShapeParameters (ParameterTransform paramTransform, ParameterLimits paramLimits, Eigen::Index nBlendShapes)
std::tuple< ParameterTransform, ParameterLimits > addFaceExpressionParameters (ParameterTransform paramTransform, ParameterLimits paramLimits, Eigen::Index nFaceExpressionBlendShapes)
std::tuple< ParameterTransform, ParameterLimits > addSkinnedLocatorParameters (ParameterTransform paramTransform, ParameterLimits paramLimits, const std::vector< bool > &activeLocators, const std::vector< std::string > &locatorNames={})
 Add a set of parameters that control the rest-space positions of the skinned locators.
template std::tuple< ParameterTransformT< float >, ParameterLimits > subsetParameterTransform (const ParameterTransformT< float > &paramTransform, const ParameterLimits &parameterLimits, const ParameterSet &paramSet)
template std::tuple< ParameterTransformT< double >, ParameterLimits > subsetParameterTransform (const ParameterTransformT< double > &paramTransform, const ParameterLimits &parameterLimits, const ParameterSet &paramSet)
template ParameterTransformT< float > mapParameterTransformJoints (const ParameterTransformT< float > &paramTransform, size_t numTargetJoints, const std::vector< size_t > &jointMapping)
template ParameterTransformT< double > mapParameterTransformJoints (const ParameterTransformT< double > &paramTransform, size_t numTargetJoints, const std::vector< size_t > &jointMapping)
template<typename T>
TransformT< T > transformAtoB (size_t jointA, size_t jointB, const Skeleton &referenceSkeleton, const SkeletonStateT< T > &skelState)
 Computes the relative transform between two joints in a skeleton.
template TransformT< float > transformAtoB (size_t jointA, size_t jointB, const Skeleton &referenceSkeleton, const SkeletonStateT< float > &skelState)
template TransformT< double > transformAtoB (size_t jointA, size_t jointB, const Skeleton &referenceSkeleton, const SkeletonStateT< double > &skelState)
template JointParametersT< float > skeletonStateToJointParameters (const SkeletonStateT< float > &state, const Skeleton &skeleton)
template JointParametersT< double > skeletonStateToJointParameters (const SkeletonStateT< double > &state, const Skeleton &skeleton)
template JointParametersT< float > skeletonStateToJointParameters (const TransformListT< float > &state, const Skeleton &skeleton)
template JointParametersT< double > skeletonStateToJointParameters (const TransformListT< double > &state, const Skeleton &skeleton)
template JointParametersT< float > skeletonStateToJointParametersRespectingActiveParameters (const SkeletonStateT< float > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams)
template JointParametersT< double > skeletonStateToJointParametersRespectingActiveParameters (const SkeletonStateT< double > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams)
template JointParametersT< float > skeletonStateToJointParametersRespectingActiveParameters (const TransformListT< float > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams)
template JointParametersT< double > skeletonStateToJointParametersRespectingActiveParameters (const TransformListT< double > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams)
ModelParameters extrapolateModelParameters (const ModelParameters &previous, const ModelParameters &current, float factor=kDefaultExtrapolateFactor, float maxDelta=kDefaultExtrapolateMaxDelta)
 Extrapolates model parameters by first clamping the difference between current and previous parameters to the range [-maxDelta, maxDelta], and then scaling this clamped difference by factor.
ModelParameters extrapolateModelParameters (const ModelParameters &previous, const ModelParameters &current, const ParameterSet &activeParams, float factor=kDefaultExtrapolateFactor, float maxDelta=kDefaultExtrapolateMaxDelta)
 Extrapolates model parameters considering active parameters.
std::vector< std::vector< int32_t > > classifyTrianglesByTexture (const Mesh &mesh, const TextureView &texture, const RegionColorsView &regionColors, float threshold=0.0f, int32_t numSamples=3)
 Classify mesh triangles into regions based on texture colors.
Mesh splitMeshByTextureRegion (const Mesh &mesh, const TextureView &texture, const RegionColorsView &regionColors, int32_t numBinarySearchSteps=8)
 Split mesh triangles along texture region boundaries.
std::tuple< ParameterTransform, ParameterLimits > addCameraIntrinsicsParameters (ParameterTransform paramTransform, ParameterLimits paramLimits, const IntrinsicsModel &intrinsicsModel, bool tieFocalLength=false)
 Add camera intrinsics parameters to the parameter transform.
Eigen::VectorXf extractCameraIntrinsics (const ParameterTransform &paramTransform, const ModelParameters &modelParams, const IntrinsicsModel &intrinsicsModel)
 Extract camera intrinsic parameter values from model parameters.
void setCameraIntrinsics (const ParameterTransform &paramTransform, const IntrinsicsModel &intrinsicsModel, ModelParameters &modelParams)
 Write camera intrinsic parameter values from an IntrinsicsModel into model parameters.
ParameterSet getCameraIntrinsicsParameterSet (const ParameterTransform &paramTransform, const std::string &cameraName)
 Get ParameterSet for a specific camera's intrinsics parameters.
ParameterSet getAllCameraIntrinsicsParameterSet (const ParameterTransform &paramTransform)
 Get ParameterSet for ALL camera intrinsics parameters.
std::string_view toString (VertexConstraintType type)
 Returns a string representation of the constraint type.
template<typename T>
void gradient_jointParams_to_modelParams (const T &grad_jointParams, const Eigen::Index iJointParam, const ParameterTransform &parameterTransform, Eigen::Ref< Eigen::VectorX< T > > gradient)
template<typename T>
void jacobian_jointParams_to_modelParams (const Eigen::Ref< const Eigen::VectorX< T > > &jacobian_jointParams, const Eigen::Index iJointParam, const ParameterTransform &parameterTransform, Eigen::Ref< Eigen::MatrixX< T > > jacobian)
template<typename T>
void jacobian_jointParams_to_modelParams (const T &jacobian_jointParams, const Eigen::Index iJointParam, const ParameterTransform &parameterTransform, Eigen::Ref< Eigen::MatrixX< T > > jacobian)
template<typename T, typename Derived>
void jacobian_jointParams_to_modelParams (const T &jacobian_jointParams, const Eigen::Index iJointParam, const ParameterTransform &parameterTransform, Eigen::MatrixBase< Derived > &jacobian)
 Overload accepting MatrixBase for Eigen expression types (e.g. row blocks).
template<typename T>
void jacobian_jointParams_to_modelParams (const T &jacobian_jointParams, const Eigen::Index iJointParam, const Eigen::Index iRow, const ParameterTransform &parameterTransform, Eigen::Ref< Eigen::MatrixX< T > > jacobian)
template<typename T, typename SinkFn>
void accumulateChainDerivatives (const SkeletonStateT< T > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams, const Vector3< T > &position, const Vector3< T > &direction, T weight, size_t startJoint, size_t stopJoint, T scaleCorrection, const SinkFn &sink)
 Accumulate the derivatives of direction .
template<typename T>
std::vector< PlaneDataT< T > > createFloorConstraints (const std::string &prefix, const LocatorList &locators, const Vector3< T > &floorNormal, const T &floorOffset, float weight)
 Create non-penetration half-plane constraints from locators with the input prefix.
template std::vector< PlaneDataT< float > > createFloorConstraints< float > (const std::string &prefix, const LocatorList &locators, const Vector3f &floorNormal, const float &floorOffset, const float weight)
template std::vector< PlaneDataT< double > > createFloorConstraints< double > (const std::string &prefix, const LocatorList &locators, const Vector3d &floorNormal, const double &floorOffset, const float weight)
template<typename T>
Eigen::Vector3< T > computeTargetBaryPosition (const MeshT< T > &mesh, const PointTriangleVertexConstraintT< T > &c)
template<typename T>
Eigen::Vector3< T > computeTargetTriangleNormal (const MeshT< T > &mesh, const PointTriangleVertexConstraintT< T > &c)
template<typename T>
Eigen::Vector3< T > computeTargetPosition (const MeshT< T > &mesh, const PointTriangleVertexConstraintT< T > &c)
template<typename T>
void gradient_jointParams_to_modelParams (const T grad_jointParams, const Eigen::Index iJointParam, const ParameterTransform &parameterTransform, Eigen::Ref< Eigen::VectorX< T > > gradient)
template<typename T>
void jacobian_jointParams_to_modelParams (const T jacobian_jointParams, const Eigen::Index iJointParam, const ParameterTransform &parameterTransform, Eigen::Ref< Eigen::MatrixX< T > > jacobian)
template<typename T>
Eigen::Vector3< T > calculateDWorldPos (const momentum::Character &character, const SkeletonStateT< T > &state, const int vertexIndex, const Eigen::Vector3< T > &d_restPos)
template<typename T>
std::array< Eigen::Matrix3< T >, 3 > compute_d_targetNormal_d_vertexPos (const PointTriangleVertexConstraintT< T > &cons, const MeshT< T > &mesh)
template<typename T>
std::array< Eigen::Matrix3< T >, 3 > compute_d_targetPos_d_vertexPos (const PointTriangleVertexConstraintT< T > &cons, const MeshT< T > &mesh)
template<typename T>
Eigen::VectorX< T > mapParameters (const ModelParametersT< T > &in, const std::vector< size_t > &mp)
template<typename T>
Eigen::Vector3< T > computeTargetBaryPosition (const MeshT< T > &mesh, const SkinnedLocatorTriangleConstraintT< T > &c)
template<typename T>
Eigen::Vector3< T > computeTargetTriangleNormal (const MeshT< T > &mesh, const SkinnedLocatorTriangleConstraintT< T > &c)
template<typename T>
Eigen::Vector3< T > computeTargetPosition (const MeshT< T > &mesh, const SkinnedLocatorTriangleConstraintT< T > &c)
template<typename T>
std::array< Eigen::Matrix3< T >, 3 > compute_d_targetNormal_d_vertexPos (const SkinnedLocatorTriangleConstraintT< T > &cons, const MeshT< T > &mesh)
template<typename T>
std::array< Eigen::Matrix3< T >, 3 > compute_d_targetPos_d_vertexPos (const SkinnedLocatorTriangleConstraintT< T > &cons, const MeshT< T > &mesh)
bool isFloorLocatorName (std::string_view name)
 Return true when name uses Momentum's floor-locator prefix.
template<typename T>
std::vector< SupportContactT< T > > computePlaneCollisionSupportContacts (PlaneCollisionQueryT< T > &collisionQuery, std::span< const JointStateT< T > > states, T contactMargin)
 Return support contacts for an explicit plane-collision query object.
template<typename T>
SupportContactListT< T > computeFloorLocatorSupportContacts (std::span< const JointStateT< T > > states, std::span< const Locator > locators, T contactHeight, const SupportPlaneT< T > &supportPlane)
 Return floor-locator support contacts and all valid floor-locator positions.
template<typename T>
std::vector< Vector3< T > > computeSupportContactPositions (const Character &character, std::span< const JointStateT< T > > states, T contactHeight, PlaneCollisionQueryT< T > *collisionQuery, const SupportPlaneT< T > &supportPlane)
 Return only the world-space positions from floor locators and optional plane-collision contacts.
template<typename T>
SupportContactListT< T > computeSupportContacts (const Character &character, std::span< const JointStateT< T > > states, T contactHeight, PlaneCollisionQueryT< T > *collisionQuery, const SupportPlaneT< T > &supportPlane)
 Return support contacts from floor locators and optional plane-collision contacts.
template std::vector< SupportContactT< float > > computePlaneCollisionSupportContacts< float > (PlaneCollisionQueryT< float > &collisionQuery, std::span< const JointStateT< float > > states, float contactMargin)
template std::vector< SupportContactT< double > > computePlaneCollisionSupportContacts< double > (PlaneCollisionQueryT< double > &collisionQuery, std::span< const JointStateT< double > > states, double contactMargin)
template SupportContactListT< float > computeFloorLocatorSupportContacts< float > (std::span< const JointStateT< float > > states, std::span< const Locator > locators, float contactHeight, const SupportPlaneT< float > &supportPlane)
template SupportContactListT< double > computeFloorLocatorSupportContacts< double > (std::span< const JointStateT< double > > states, std::span< const Locator > locators, double contactHeight, const SupportPlaneT< double > &supportPlane)
template std::vector< Vector3< float > > computeSupportContactPositions< float > (const Character &character, std::span< const JointStateT< float > > states, float contactHeight, PlaneCollisionQueryT< float > *collisionQuery, const SupportPlaneT< float > &supportPlane)
template std::vector< Vector3< double > > computeSupportContactPositions< double > (const Character &character, std::span< const JointStateT< double > > states, double contactHeight, PlaneCollisionQueryT< double > *collisionQuery, const SupportPlaneT< double > &supportPlane)
template SupportContactListT< float > computeSupportContacts< float > (const Character &character, std::span< const JointStateT< float > > states, float contactHeight, PlaneCollisionQueryT< float > *collisionQuery, const SupportPlaneT< float > &supportPlane)
template SupportContactListT< double > computeSupportContacts< double > (const Character &character, std::span< const JointStateT< double > > states, double contactHeight, PlaneCollisionQueryT< double > *collisionQuery, const SupportPlaneT< double > &supportPlane)
template<typename T>
std::vector< ModelParametersT< T > > transformPose (const Character &character, const std::vector< ModelParametersT< T > > &modelParameters, const TransformT< T > &transforms)
template<typename T>
std::vector< ModelParametersT< T > > transformPose (const Character &character, const std::vector< ModelParametersT< T > > &modelParameters, const std::vector< TransformT< T > > &transforms, bool ensureContinuousOutput=true)
 Function which computes a new set of model parameters such that the character pose is a rigidly transformed version of the original pose.
template std::vector< ModelParametersT< float > > transformPose (const Character &characterFull, const std::vector< ModelParametersT< float > > &modelParametersFull, const std::vector< TransformT< float > > &transforms, bool ensureContinuousOutput)
template std::vector< ModelParametersT< double > > transformPose (const Character &characterFull, const std::vector< ModelParametersT< double > > &modelParametersFull, const std::vector< TransformT< double > > &transforms, bool ensureContinuousOutput)
template std::vector< ModelParametersT< float > > transformPose (const Character &character, const std::vector< ModelParametersT< float > > &modelParameters, const TransformT< float > &transform)
template std::vector< ModelParametersT< double > > transformPose (const Character &character, const std::vector< ModelParametersT< double > > &modelParameters, const TransformT< double > &transform)
template<typename T, typename T2>
Eigen::Vector3< T > getRotationDerivative (const JointStateT< T2 > &js, const size_t index, const Eigen::Vector3< T > &ref)
template<typename T, typename T2>
Eigen::Vector3< T > getScaleDerivative (const JointStateT< T2 > &js, const Eigen::Vector3< T > &ref)
template<typename T, int N>
Eigen::Matrix< ceres::Jet< T, N >, N, 1 > buildJetVec (const Eigen::Matrix< T, N, 1 > &v)
template<typename T, int Rows, int Cols>
Eigen::Matrix< ceres::Jet< T, Cols *Rows >, Rows, Cols > buildJetMat (const Eigen::Matrix< T, Rows, Cols > &m)
template<typename T, typename T2>
T times_parameterTransform_times_v (const T &value, const size_t jointParamIdx, const ParameterTransform &parameterTransform, Eigen::Ref< const Eigen::VectorX< T2 > > v)
template<typename T>
std::vector< Eigen::Index > computeSubsetParameterIndices (const ParameterTransformT< T > &parameterTransform, const ParameterSet &activeParams)
template<typename T>
Eigen::VectorX< T > extractSubsetVec (Eigen::Ref< const Eigen::VectorX< T > > fullVec, const std::vector< Eigen::Index > &subsetIndexToFullParamIndex)
template<typename T>
Eigen::MatrixX< T > extractSubsetMat (Eigen::Ref< const Eigen::MatrixX< T > > fullMat, const std::vector< Eigen::Index > &subsetIndexToFullParamIndex)
template<typename T>
Eigen::VectorX< T > subsetVecToFullVec (Eigen::Ref< const Eigen::VectorX< T > > subsetVec, const std::vector< Eigen::Index > &subsetIndexToFullParamIndex, Eigen::Index fullVecSize)
float sqr (float val)
template<typename T>
Eigen::VectorX< T > hessianInverseTimes (Eigen::Ref< const Eigen::MatrixX< T > > jacobian, Eigen::Ref< const Eigen::VectorX< T > > v)
template<typename T>
std::vector< ErrorFunctionDerivativesT< T > > d_modelParams_d_inputs (const Skeleton &skeleton, const ParameterTransformT< T > &parameterTransform, const ParameterSet &activeParams, const ModelParametersT< T > &modelParameters, SkeletonSolverFunctionT< T > &solverFunction, Eigen::Ref< const Eigen::VectorX< T > > dLoss_dModelParams, T *gradientRmse)
template std::vector< ErrorFunctionDerivativesT< float > > d_modelParams_d_inputs< float > (const Skeleton &skeleton, const ParameterTransformT< float > &parameterTransform, const ParameterSet &activeParams, const ModelParametersT< float > &modelParameters, SkeletonSolverFunctionT< float > &solverFunction, Eigen::Ref< const Eigen::VectorX< float > > dLoss_dModelParams, float *gradientRmse)
template std::vector< ErrorFunctionDerivativesT< double > > d_modelParams_d_inputs< double > (const Skeleton &skeleton, const ParameterTransformT< double > &parameterTransform, const ParameterSet &activeParams, const ModelParametersT< double > &modelParameters, SkeletonSolverFunctionT< double > &solverFunction, Eigen::Ref< const Eigen::VectorX< double > > dLoss_dModelParams, double *gradientRmse)
 MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS (DistanceErrorFunction)
 MOMENTUM_FWD_DECLARE_TEMPLATE_STRUCT (DistanceConstraintData)
 MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS (FullyDifferentiableProjectionErrorFunction)
Character loadBvhCharacter (const filesystem::path &filepath)
 Loads a character from a BVH (BioVision Hierarchy) file.
Character loadBvhCharacter (std::span< const std::byte > bytes)
 Loads a character from a BVH file buffer.
std::tuple< Character, MotionParameters, float > loadBvhCharacterWithMotion (const filesystem::path &filepath)
 Loads a character with motion data from a BVH (BioVision Hierarchy) file.
std::tuple< Character, MotionParameters, float > loadBvhCharacterWithMotion (std::span< const std::byte > bytes)
 Loads a character with motion data from a BVH file buffer.
void saveBvhCharacter (const filesystem::path &filepath, const Character &character)
 Saves a character to a BVH file with a single rest-pose frame.
void saveBvhCharacterWithMotion (const filesystem::path &filepath, const Character &character, const MotionParameters &motionParams, float fps)
 Saves a character with motion data to a BVH file.
std::vector< std::byte > saveBvhCharacterWithMotion (const Character &character, const MotionParameters &motionParams, float fps)
 Saves a character with motion data to a byte buffer in BVH format.
Character loadFullCharacter (const std::string &characterPath, const std::string &parametersPath=std::string(), const std::string &locatorsPath=std::string(), LoadBlendShapes loadBlendShapes=LoadBlendShapes::No)
 High level function to load a character of any type, with a local path.
Character loadFullCharacterFromBuffer (CharacterFormat format, std::span< const std::byte > characterBuffer, std::span< const std::byte > paramBuffer=std::span< const std::byte >(), std::span< const std::byte > locBuffer=std::span< const std::byte >(), LoadBlendShapes loadBlendShapes=LoadBlendShapes::No)
 Buffer version of loadFullCharacter function, supports .glb and .fbx file formats.
void saveCharacter (const filesystem::path &filename, const Character &character, float fps=120.f, const MatrixXf &motion=MatrixXf(), std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 High level function to save a character with motion and markers to any supported format.
void saveCharacter (const filesystem::path &filename, const Character &character, float fps, std::span< const SkeletonState > skeletonStates, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 High level function to save a character with motion in skeleton states and markers to any supported format.
template<typename T>
std::span< T > cast_span (std::span< std::byte > bs)
 Casts a span of bytes to a span of a different type.
template<typename T>
std::span< const T > cast_span (std::span< const std::byte > bs)
 Casts a span of const bytes to a span of a different type.
void parameterSetsToJson (const Character &character, nlohmann::json &j)
ParameterSets parameterSetsFromJson (const Character &character, const nlohmann::json &j)
void poseConstraintsToJson (const Character &character, nlohmann::json &j)
PoseConstraints poseConstraintsFromJson (const Character &character, const nlohmann::json &j)
void parameterTransformToJson (const Character &character, nlohmann::json &j)
ParameterTransform parameterTransformFromJson (const Character &character, const nlohmann::json &j)
void jointPhysicalPropertiesToJson (const JointPhysicalProperties &jointProperties, nlohmann::json &j)
 Serializes one joint's physical mass properties.
JointPhysicalProperties jointPhysicalPropertiesFromJson (const nlohmann::json &j, const std::string &jointName, size_t jointIndex)
 Parses one joint's physical mass properties from JSON.
std::string jointPhysicalPropertiesToJsonString (const JointPhysicalProperties &jointProperties)
 Serializes one joint's physical mass properties to its canonical on-disk JSON string.
std::optional< JointPhysicalProperties > jointPhysicalPropertiesFromJsonString (const std::string &json, const std::string &jointName, size_t jointIndex)
 Parses one joint's physical mass properties from its canonical on-disk JSON string.
void parameterLimitsToJson (const Character &character, nlohmann::json &j)
ParameterLimits parameterLimitsFromJson (const Character &character, const nlohmann::json &j)
template<typename Derived>
void toJson (const Eigen::MatrixBase< Derived > &mat, nlohmann::json &j)
template<typename T>
T fromJson (const nlohmann::json &j)
std::istream & GetLineCrossPlatform (std::istream &is, std::string &line)
 Reads a line from the input stream, handling line endings for different platforms.
Character loadFbxCharacter (const filesystem::path &inputPath, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
Character loadFbxCharacter (std::span< const std::byte > inputSpan, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
std::tuple< Character, std::vector< MatrixXf >, float > loadFbxCharacterWithMotion (const filesystem::path &inputPath, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
std::tuple< Character, std::vector< MatrixXf >, float > loadFbxCharacterWithMotion (std::span< const std::byte > inputSpan, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
MarkerSequence loadFbxMarkerSequence (const filesystem::path &filename, bool stripNamespaces=true)
 Loads a MarkerSequence from an FBX file.
MarkerSequence loadFbxMarkerSequence (std::span< const std::byte > inputSpan, bool stripNamespaces=true)
 Loads a MarkerSequence from an in-memory FBX byte buffer.
void saveFbx (const filesystem::path &filename, const Character &character, const MatrixXf &poses=MatrixXf(), const VectorXf &identity=VectorXf(), double framerate=120.0, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with animation to an FBX file.
void saveFbxWithJointParams (const filesystem::path &filename, const Character &character, const MatrixXf &jointParams=MatrixXf(), double framerate=120.0, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with animation using joint parameters directly.
void saveFbxWithSkeletonStates (const filesystem::path &filename, const Character &character, std::span< const SkeletonState > skeletonStates, double framerate=120.0, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with animation using skeleton states directly.
void saveFbxModel (const filesystem::path &filename, const Character &character, const FileSaveOptions &options=FileSaveOptions())
 Save a character model (skeleton and mesh) without animation.
MatrixXf loadFbxBlendShapeWeights (const filesystem::path &filename)
 Load per-frame blend shape animation weights from an FBX file.
Character loadOpenFbxCharacter (const std::span< const std::byte > inputData, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
Character loadOpenFbxCharacter (const filesystem::path &path, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
std::tuple< Character, std::vector< MatrixXf >, float > loadOpenFbxCharacterWithMotion (std::span< const std::byte > inputData, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
std::tuple< Character, std::vector< MatrixXf >, float > loadOpenFbxCharacterWithMotion (const filesystem::path &inputPath, KeepLocators keepLocators, Permissive permissive, LoadBlendShapes loadBlendShapes, bool stripNamespaces)
MarkerSequence loadOpenFbxMarkerSequence (std::span< const std::byte > inputData, bool stripNamespaces=true)
 Load a MarkerSequence from an in-memory FBX byte buffer.
MarkerSequence loadOpenFbxMarkerSequence (const filesystem::path &filename, bool stripNamespaces)
std::vector< Eigen::Vector3i > triangulate (std::span< const uint32_t > indices, std::span< const uint32_t > offsets)
std::tuple< MotionParameters, IdentityParameters > getMotionFromModel (fx::gltf::Document &model)
 Get motion parameters from a glTF model.
float calculateFpsFromAnimationData (const fx::gltf::Document &model)
 Calculate FPS from glTF animation data.
std::tuple< MotionParameters, IdentityParameters, float > loadMotionFromModel (fx::gltf::Document &model)
 Load motion data from a glTF model.
std::tuple< Character, MatrixXf, JointParameters, float > loadCharacterWithMotionCommon (const std::variant< filesystem::path, std::span< const std::byte > > &input, bool mapParameters=false)
 Load character with motion from input (common implementation).
std::tuple< MatrixXf, JointParameters, float > loadMotionOnCharacterCommon (const std::variant< filesystem::path, std::span< const std::byte > > &input, const Character &character)
 Load motion onto a character (common implementation).
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > loadCharacterWithSkeletonStatesCommon (const std::variant< filesystem::path, std::span< const std::byte > > &input)
 Load character with skeleton states from input (common implementation).
Character loadGltfCharacterInternal (const fx::gltf::Document &model, std::vector< size_t > &nodeToObjectMap)
 Internal function to load a character from a glTF model with node-to-object mapping.
Character loadGltfCharacter (const fx::gltf::Document &model)
 Load a glTF character from a document.
Character loadGltfCharacter (const filesystem::path &gltfFilename)
 Load a glTF character from a file path.
Character loadGltfCharacter (std::span< const std::byte > byteSpan)
 Load a glTF character from a byte buffer.
std::tuple< MotionParameters, IdentityParameters, float > loadMotion (const filesystem::path &gltfFilename)
 Load motion data from a glTF file.
std::vector< int64_t > loadMotionTimestamps (const filesystem::path &gltfFilename)
 Load per-frame timestamps from a glTF file.
std::tuple< Character, MatrixXf, JointParameters, float > loadCharacterWithMotion (const filesystem::path &gltfFilename)
 Load a glTF character with motion from a file path.
std::tuple< Character, MatrixXf, JointParameters, float > loadCharacterWithMotion (std::span< const std::byte > byteSpan)
 Load a glTF character from a buffer.
std::tuple< Character, MatrixXf, ModelParameters, float > loadCharacterWithMotionModelParameterScales (const filesystem::path &gltfFilename)
 Load a glTF character with motion and apply scale parameters to the motion.
std::tuple< Character, MatrixXf, ModelParameters, float > loadCharacterWithMotionModelParameterScales (std::span< const std::byte > byteSpan)
 Load a glTF character with motion and apply scale parameters to the motion.
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > loadCharacterWithSkeletonStates (std::span< const std::byte > byteSpan)
 Load a glTF character with motion in the form of skeleton states.
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > loadCharacterWithSkeletonStates (const filesystem::path &gltfFilename)
 Load a glTF character with motion in the form of skeleton states.
std::tuple< MatrixXf, JointParameters, float > loadMotionOnCharacter (const filesystem::path &gltfFilename, const Character &character)
 Load motion from a glTF file and map it to a character.
std::tuple< MatrixXf, JointParameters, float > loadMotionOnCharacter (std::span< const std::byte > byteSpan, const Character &character)
 Load motion from a buffer and map it to a character.
fx::gltf::Document makeCharacterDocument (const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, bool embedResource=true, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={})
 Create a glTF document from a character.
MarkerSequence loadMarkerSequence (const filesystem::path &filename)
 Load a marker sequence from a glTF file.
MarkerSequence loadMarkerSequence (std::span< const std::byte > byteSpan)
 Load a marker sequence from an in-memory glTF byte buffer.
void saveGltfCharacter (const filesystem::path &filename, const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={})
 Save a character with motion to a glTF file.
void saveGltfCharacter (const filesystem::path &filename, const Character &character, float fps, std::span< const SkeletonState > skeletonStates, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with skeleton states to a glTF file.
std::vector< std::byte > saveCharacterToBytes (const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={})
 Save a character with motion to a byte buffer.
size_t addMesh (const fx::gltf::Document &model, const fx::gltf::Primitive &primitive, Mesh_u &mesh)
 Add mesh data from a glTF primitive.
size_t addBlendShapes (const fx::gltf::Document &model, const fx::gltf::Primitive &primitive, BlendShape_u &blendShape)
 Add blend shapes from a glTF primitive.
std::vector< Vector4f > loadWeightsFromAccessor (const fx::gltf::Document &model, int32_t accessorIdx)
 Load skin weights from a glTF accessor.
void addSkinWeights (const fx::gltf::Document &model, const fx::gltf::Skin &skin, const fx::gltf::Primitive &primitive, const std::vector< size_t > &nodeToObjectMap, size_t kNumVertices, SkinWeights_u &skinWeights)
 Add skin weights from a glTF primitive.
std::tuple< Mesh_u, SkinWeights_u, BlendShape_u > loadSkinnedMesh (const fx::gltf::Document &model, const std::vector< size_t > &meshNodes, const std::vector< size_t > &nodeToObjectMap)
 Load skinned mesh, skin weights, and blend shapes from the model.
SkinWeights_u bindMeshToJoint (const Mesh_u &mesh, size_t jointId)
 Bind a mesh to a single joint.
TaperedCapsule createCollisionCapsule (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a collision capsule from a glTF node.
CollisionEllipsoid createCollisionEllipsoid (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a collision ellipsoid from a glTF node.
CollisionBox createCollisionBox (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a collision box from a glTF node.
Locator createLocator (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a locator from a glTF node.
Joint createJoint (const fx::gltf::Node &node)
 Create a joint from a glTF node.
bool isHierarchyNode (const fx::gltf::Node &node)
 Check if a node is allowed in the skeleton hierarchy.
std::vector< std::vector< uint32_t > > gatherSkeletonRoots (const fx::gltf::Document &model)
 Gather skeleton roots from the glTF model.
std::tuple< std::string, JointList, CollisionGeometry_u, LocatorList, PhysicalProperties, std::vector< size_t > > loadHierarchy (const fx::gltf::Document &model)
 Load the hierarchy from the model.
JointList createSkeletonWithOnlyRoot ()
 Create a skeleton with only a root joint.
int32_t getComponentSize (const fx::gltf::Accessor::ComponentType &componentType)
int32_t getTypeSize (const fx::gltf::Accessor::Type &ty)
template<typename T>
std::vector< T > copyAccessorBuffer (const fx::gltf::Document &model, int32_t id)
template<typename T>
std::vector< T > copyAlignedAccessorBuffer (const fx::gltf::Document &model, int32_t id)
template<typename T>
void setAccessorType (fx::gltf::Accessor &)
template<typename T>
int32_t createAccessorBuffer (fx::gltf::Document &model, std::span< T > data, const bool align=false, const bool normalized=false)
template<>
void setAccessorType< const int32_t > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const float > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector2f > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector3f > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector4f > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector3b > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector3i > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector4s > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Vector4b > (fx::gltf::Accessor &accessor)
template<>
void setAccessorType< const Matrix4f > (fx::gltf::Accessor &accessor)
fx::gltf::Animation::Sampler::Type toGltfSamplerType (GltfAnimationInterpolation interpolation)
 Converts the save option to the GLTF sampler interpolation type.
template<typename T>
int32_t createSampler (fx::gltf::Document &model, fx::gltf::Animation &anim, std::span< T > data, const std::span< float > &timestamps, GltfAnimationInterpolation interpolation)
template<typename T>
int32_t createSampler (fx::gltf::Document &model, fx::gltf::Animation &anim, std::span< T > data, const int32_t timestampAccessor, GltfAnimationInterpolation interpolation)
Vector3f toMomentumVec3f (const std::array< float, 3 > &vec) noexcept
Vector3f fromMomentumVec3f (const Vector3f &vec) noexcept
void toMomentumVec3f (std::vector< Vector3f > &vec)
void fromMomentumVec3f (std::vector< Vector3f > &vec)
void fromMomentumVec3f (VectorXf &vec)
Quaternionf toMomentumQuaternionf (const std::array< float, 4 > &gltfQuat) noexcept
std::array< float, 4 > fromMomentumQuaternionf (const Quaternionf &quat) noexcept
Character loadCharacterFromLegacyJson (const std::string &jsonPath)
 Loads a Character from a legacy JSON format that was previously used by older Python libraries (and some other tools).
Character loadCharacterFromLegacyJsonBuffer (std::span< const std::byte > jsonBuffer)
 Loads a Character from a legacy JSON buffer.
Character loadCharacterFromLegacyJsonString (const std::string &jsonString)
 Loads a Character from a legacy JSON string.
void saveCharacterToLegacyJson (const Character &character, const std::string &jsonPath)
 Saves a Character to legacy JSON format.
std::string characterToLegacyJsonString (const Character &character)
 Converts a Character to legacy JSON string.
nlohmann::json characterToLegacyJson (const Character &character)
 Converts a Character to legacy JSON object.
std::vector< MarkerSequence > loadC3d (const std::string &filename, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads all the subjects from a C3D file into a vector of MarkerSequences.
template<typename T>
Vector3< T > toMomentumVector3 (const Vector3< T > &vec, UpVector up=UpVector::Z, Unit unit=Unit::MM)
 This function converts a 3D vector in the mocap marker coordinate system to the Momentum coordinate system.
template<typename T>
Vector3< T > toMomentumVector3 (const Vector3< T > &vec, UpVector up, const std::string &unitStr)
 This function converts a 3D vector in the mocap marker coordinate system to the Momentum coordinate system, using a string to specify the unit.
template Vector3< float > toMomentumVector3 (const Vector3< float > &vec, UpVector up, Unit unit)
template Vector3< double > toMomentumVector3 (const Vector3< double > &vec, UpVector up, Unit unit)
template Vector3< float > toMomentumVector3 (const Vector3< float > &vec, UpVector up, const std::string &unitStr)
template Vector3< double > toMomentumVector3 (const Vector3< double > &vec, UpVector up, const std::string &unitStr)
std::vector< MarkerSequence > loadMarkers (const std::string &filename, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads all actor sequences from a marker file (c3d, trc, glb) and converts the positions to the target coordinate system.
std::optional< MarkerSequence > loadMarkersForMainSubject (const std::string &filename, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads the main subject's marker data from a marker file (c3d, trc, glb) and converts the positions to the target coordinate system.
std::vector< MarkerSequence > loadMarkers (std::span< const std::byte > bytes, const std::string &format, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads all actor sequences from an in-memory marker file buffer (c3d, trc, glb, fbx).
std::optional< MarkerSequence > loadMarkersForMainSubject (std::span< const std::byte > bytes, const std::string &format, UpVector up=UpVector::Y, std::span< const std::string > validMarkerNames={})
 Loads the main subject's marker data from an in-memory marker file buffer.
int findMainSubjectIndex (std::span< const MarkerSequence > markerSequences)
 Finds the "main subject" from a vector of MarkerSequences.
MarkerSequence loadTrc (std::istream &stream, UpVector up=UpVector::Y)
 Loads marker data from a TRC input stream into a MarkerSequence.
MarkerSequence loadTrc (const std::string &filename, UpVector up=UpVector::Y)
 Loads marker data from a TRC file into a MarkerSequence.
MarkerSequence loadTrc (std::span< const std::byte > bytes, UpVector up=UpVector::Y)
 Loads marker data from an in-memory TRC byte buffer into a MarkerSequence.
void saveMmo (const std::string &filename, std::span< const VectorXf > poses, const VectorXf &scale, const Character &character)
 Save motion data using character parameter mapping.
void saveMmo (const std::string &filename, const MatrixXf &poses, const VectorXf &scale, const Character &character, const MatrixXf &additionalParameters=MatrixXf(), std::span< const std::string > additionalParameterNames=std::vector< std::string >())
 Save motion data with optional additional parameters.
void saveMmo (const std::string &filename, const MatrixXf &poses, const VectorXf &scale, std::span< const std::string > parameterNames, std::span< const std::string > jointNames)
 Save motion data with explicit parameter and joint names.
std::tuple< MatrixXf, VectorXf > mapMotionToCharacter (const MatrixXf &poses, const VectorXf &offsets, std::span< const std::string > parameterNames, std::span< const std::string > jointNames, const Character &character)
 Map motion data from one parameter space to character parameter space.
std::tuple< MatrixXf, VectorXf > loadMmo (const std::string &filename, const Character &character)
 Load motion data and map to character parameter space.
std::tuple< MatrixXf, std::vector< std::string > > getAuxiliaryDataFromMotion (const MatrixXf &poses, std::span< const std::string > parameterNames)
 Extract auxiliary data from motion parameters.
std::tuple< MatrixXf, VectorXf, std::vector< std::string >, std::vector< std::string > > loadMmo (const std::string &filename)
 Load motion data from file.
Mesh loadObj (const filesystem::path &filepath)
 Loads a mesh from a Wavefront OBJ file.
Mesh loadObj (std::span< const std::byte > bytes)
 Loads a mesh from an in-memory OBJ file.
BlendShapeBase loadBlendShapeBase (const filesystem::path &filename, int expectedShapes=-1, int expectedVertices=-1)
 Loads blend shape vectors from a file without base shape.
BlendShapeBase loadBlendShapeBase (std::istream &data, int expectedShapes=-1, int expectedVertices=-1)
 Loads blend shape vectors from a stream without base shape.
BlendShape loadBlendShape (const filesystem::path &filename, int expectedShapes=-1, int expectedVertices=-1)
 Loads a blend shape from a file, including base shape and shape vectors.
BlendShape loadBlendShape (std::istream &data, int expectedShapes=-1, int expectedVertices=-1)
 Loads a blend shape from a stream, including base shape and shape vectors.
void saveBlendShapeBase (const filesystem::path &filename, const BlendShapeBase &blendShapeBase)
 Saves a blend shape base (shape vectors) to a file.
void saveBlendShape (const filesystem::path &filename, const BlendShape &blendShape)
 Saves a blend shape to a file.
void saveBlendShapeBase (std::ostream &os, const BlendShapeBase &blendShapeBase)
 Saves a blend shape base (shape vectors) to a stream.
void saveBlendShape (std::ostream &os, const BlendShape &blendShape)
 Saves a blend shape to a stream.
PoseShape loadPoseShape (const std::string &filename, const Character &character)
 Loads pose shape data from a binary file.
LocatorList loadLocators (const filesystem::path &filename, const Skeleton &skeleton, const ParameterTransform &parameterTransform)
LocatorList loadLocatorsFromBuffer (std::span< const std::byte > rawData, const Skeleton &skeleton, const ParameterTransform &parameterTransform)
void saveLocators (const filesystem::path &filename, const LocatorList &locators, const Skeleton &skeleton, const LocatorSpace space)
std::shared_ptr< const Mppca > loadMppca (const std::span< const unsigned char > posePriorDataRaw)
std::shared_ptr< const Mppca > loadMppca (const std::string &name)
std::shared_ptr< const Mppca > loadMppca (std::istream &inputStream)
void saveMppca (const Mppca &mppca, const std::string &name)
ParameterLimits parseParameterLimits (const io_detail::SectionContent &content, const Skeleton &skeleton, const ParameterTransform &parameterTransform)
ParameterLimits parseParameterLimits (const std::string &data, const Skeleton &skeleton, const ParameterTransform &parameterTransform, size_t lineOffset)
std::string writeParameterLimits (const ParameterLimits &parameterLimits, const Skeleton &skeleton, const ParameterTransform &parameterTransform)
std::unordered_map< std::string, std::string > loadMomentumModel (const filesystem::path &filename)
std::unordered_map< std::string, std::string > loadMomentumModelFromBuffer (std::span< const std::byte > buffer)
ParameterTransform parseParameterTransform (const SectionContent &content, const Skeleton &skeleton)
ParameterTransform parseParameterTransform (const std::string &data, const Skeleton &skeleton, size_t lineOffset)
ParameterSets parseParameterSets (const SectionContent &content, const ParameterTransform &pt)
ParameterSets parseParameterSets (const std::string &data, const ParameterTransform &pt, size_t lineOffset)
PoseConstraints parsePoseConstraints (const SectionContent &content, const ParameterTransform &pt)
PoseConstraints parsePoseConstraints (const std::string &data, const ParameterTransform &pt, size_t lineOffset)
std::tuple< ParameterTransform, ParameterLimits > loadModelDefinition (const filesystem::path &filename, const Skeleton &skeleton)
std::tuple< ParameterTransform, ParameterLimits > loadModelDefinition (std::span< const std::byte > rawData, const Skeleton &skeleton)
std::string writeParameterTransform (const ParameterTransform &parameterTransform, const Skeleton &skeleton)
std::string writeParameterSets (const ParameterSets &parameterSets)
std::string writePoseConstraints (const PoseConstraints &poseConstraints)
std::string writeModelDefinition (const Skeleton &skeleton, const ParameterTransform &parameterTransform, const ParameterLimits &parameterLimits)
 Write complete model definition file.
ParameterTransform parseParameterTransform (const io_detail::SectionContent &content, const Skeleton &skeleton)
ParameterSets parseParameterSets (const io_detail::SectionContent &content, const ParameterTransform &pt)
PoseConstraints parsePoseConstraints (const io_detail::SectionContent &content, const ParameterTransform &pt)
void loadParameters (std::unordered_map< std::string, std::string > &param, Character &character)
Character loadUrdfCharacter (const filesystem::path &filepath)
 Loads a character from a URDF file.
Character loadUrdfCharacter (std::span< const std::byte > bytes)
 Loads a character from a URDF file using the provided byte data.
Character loadUrdfCharacter (std::span< const std::byte > bytes, const filesystem::path &meshBasePath)
 Loads a character from a URDF file using the provided byte data, with a base path for resolving mesh file references.
Mesh generateBoxMesh (float dimX, float dimY, float dimZ)
 Generates a box mesh with the given dimensions centered at the origin.
Mesh generateCylinderMesh (float radius, float length, int segments=32)
 Generates a cylinder mesh centered at the origin with the Z axis as its axis.
Mesh generateSphereMesh (float radius, int latSegments=16, int lonSegments=32)
 Generates a UV sphere mesh centered at the origin.
std::optional< Mesh > loadStlMesh (const filesystem::path &filepath)
 Loads a mesh from an STL file (binary or ASCII).
std::optional< Mesh > loadObjMesh (const filesystem::path &filepath)
 Loads a mesh from a Wavefront OBJ file (vertices and triangular/polygon faces).
std::optional< filesystem::path > resolveMeshPath (const std::string &filename, const filesystem::path &urdfDir)
 Resolves a mesh filename from a URDF visual element to a filesystem path.
void saveSkeletonStatesToUsd (const UsdStageRefPtr &stage, UsdSkelSkeleton &skelPrim, const Skeleton &skeleton, std::span< const SkeletonState > skeletonStates, float fps)
 Save skeleton states as a UsdSkelAnimation on the stage.
std::tuple< std::vector< SkeletonState >, std::vector< float > > loadSkeletonStatesFromUsd (const UsdStageRefPtr &stage, const Skeleton &skeleton)
 Load skeleton states from a USD stage.
void saveMotionToUsd (const UsdPrim &prim, float fps, const MotionParameters &motion, const IdentityParameters &offsets)
 Save model-parameter motion as custom attributes on a USD prim.
std::tuple< MotionParameters, IdentityParameters, float > loadMotionFromUsd (const UsdPrim &prim)
 Load model-parameter motion from custom attributes on a USD prim.
void saveMarkerSequenceToUsd (const UsdStageRefPtr &stage, const SdfPath &skelRootPath, float fps, std::span< const std::vector< Marker > > markerSequence)
 Save marker sequence as animated Xform prims under a Markers scope.
MarkerSequence loadMarkerSequenceFromUsd (const UsdStageRefPtr &stage)
 Load marker sequence from animated Xform prims.
Character loadUsdCharacter (const filesystem::path &inputPath)
 Load a USD character from a local file path.
Character loadUsdCharacter (std::span< const std::byte > inputSpan)
 Load a USD character from a buffer.
void saveUsd (const filesystem::path &filename, const Character &character, const FileSaveOptions &options=FileSaveOptions())
 Save a character to a USD file.
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > loadUsdCharacterWithSkeletonStates (const filesystem::path &inputPath)
 Load a USD character with skeleton states from a local file path.
std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > loadUsdCharacterWithSkeletonStates (std::span< const std::byte > inputSpan)
 Load a USD character with skeleton states from a buffer.
void saveUsdCharacter (const filesystem::path &filename, const Character &character, float fps, std::span< const SkeletonState > skeletonStates, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with skeleton state animation to a USD file.
void saveUsdCharacterWithMotion (const filesystem::path &filename, const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions())
 Save a character with model-parameter motion to a USD file.
std::tuple< Character, MotionParameters, IdentityParameters, float > loadUsdCharacterWithMotion (const filesystem::path &inputPath)
 Load a USD character with model-parameter motion from a local file path.
std::tuple< Character, MotionParameters, IdentityParameters, float > loadUsdCharacterWithMotion (std::span< const std::byte > inputSpan)
 Load a USD character with model-parameter motion from a buffer.
std::tuple< Character, MatrixXf, ModelParameters, float > loadUsdCharacterWithMotionModelParameterScales (const filesystem::path &inputPath)
 Load a USD character with motion and apply scale parameters to the motion.
std::tuple< Character, MatrixXf, ModelParameters, float > loadUsdCharacterWithMotionModelParameterScales (std::span< const std::byte > inputSpan)
 Load a USD character with motion and apply scale parameters to the motion.
MarkerSequence loadUsdMarkerSequence (const filesystem::path &inputPath)
 Load a marker sequence from a USD file.
Mesh loadMeshFromUsd (const UsdStageRefPtr &stage)
 Load a mesh from a USD stage.
SkinWeights loadSkinWeightsFromUsd (const UsdStageRefPtr &stage, size_t numVertices)
 Load skin weights from a USD stage.
void saveMeshToUsd (const Mesh &mesh, UsdGeomMesh &meshPrim)
 Save a mesh to a USD stage.
void saveSkinWeightsToUsd (const SkinWeights &skinWeights, UsdGeomMesh &meshPrim, const UsdSkelSkeleton &skelPrim)
 Save skin weights to a USD stage.
void saveBlendShapesToUsd (const BlendShape &blendShape, UsdGeomMesh &meshPrim)
 Save blend shapes to a USD stage.
std::shared_ptr< BlendShape > loadBlendShapesFromUsd (const UsdStageRefPtr &stage, size_t numVertices)
 Load blend shapes from a USD stage.
std::vector< std::string > buildHierarchicalPaths (const Skeleton &skeleton)
 Build hierarchical joint paths from flat names and parent indices.
Skeleton loadSkeletonFromUsd (const UsdStageRefPtr &stage)
 Load a skeleton from a USD stage.
void saveSkeletonToUsd (const Skeleton &skeleton, UsdSkelSkeleton &skelPrim)
 Save a skeleton to a USD stage.
void saveCollisionGeometryToUsd (const CollisionGeometry &collision, const Skeleton &skeleton, const UsdStageRefPtr &stage, const SdfPath &skelRootPath)
 Save collision geometry as child prims under the skeleton.
CollisionGeometry loadCollisionGeometryFromUsd (const UsdStageRefPtr &stage, const Skeleton &skeleton)
 Load collision geometry from child prims.
void saveLocatorsToUsd (const LocatorList &locators, const Skeleton &skeleton, const UsdStageRefPtr &stage, const SdfPath &skelRootPath)
 Save locators as child prims under the skeleton.
LocatorList loadLocatorsFromUsd (const UsdStageRefPtr &stage, const Skeleton &skeleton)
 Load locators from child prims.
std::string sanitizePrimName (const std::string &name)
 Sanitize a string for use as a USD SDF prim name.
void logMesh (const rerun::RecordingStream &rec, const std::string &streamName, const Mesh &mesh, std::optional< rerun::Color > color)
void logJoints (const rerun::RecordingStream &rec, const std::string &streamName, const Skeleton &skeleton, const JointStateList &jointStates)
void logMarkers (const rerun::RecordingStream &rec, const std::string &streamName, std::span< const Marker > markers)
void logLocators (const rerun::RecordingStream &rec, const std::string &streamName, const LocatorList &locators, const LocatorState &locatorState)
void logMarkerLocatorCorrespondence (const rerun::RecordingStream &rec, const std::string &streamName, const std::map< std::string, size_t > &locatorLookup, const LocatorState &locatorState, std::span< const Marker > markers, const float kPositionErrorThreshold)
void logModelParams (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names, const Eigen::VectorXf &params)
void logJointParams (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names, const Eigen::VectorXf &params)
void logModelParamNames (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names)
void logJointParamNames (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names)
void logModelParamsColumns (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names, const Eigen::MatrixXf &allParams, std::span< const int64_t > frameIndices, std::span< const double > times)
 Log model parameters for all frames at once using send_columns.
void logJointParamsColumns (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names, const Eigen::MatrixXf &allJointParams, std::span< const int64_t > frameIndices, std::span< const double > times)
 Log joint parameters for all frames at once using send_columns.
void logBvh (const rerun::RecordingStream &rec, const std::string &streamName, const CollisionGeometry &collisionGeometry, const SkeletonState &skeletonState)
void logCollisionGeometry (const rerun::RecordingStream &rec, const std::string &streamName, const CollisionGeometry &collisionGeometry, const SkeletonState &skeletonState)
void logCharacter (const rerun::RecordingStream &rec, const std::string &charStreamName, const Character &character, const CharacterState &characterState, const rerun::Color &color)
bool redirectLogsToRerun (const rerun::RecordingStream &rec)
 Redirects logs from the XR_LOG framework to the Rerun logger.
template<typename T>
auto makeScalar (T value)
auto makeSeriesLine ()
auto makeSeriesLineWithName (const std::string &name)
void setTimeSeconds (const rerun::RecordingStream &rec, const std::string &timelineName, double seconds)
template<typename... Args>
auto makeTransform3D (Args &&... args)
void logAxes3D (const rerun::RecordingStream &rec, const std::string &path, float axisLength)
rerun::TimeColumn makeSequenceTimeColumn (std::string timelineName, rerun::Collection< int64_t > values, rerun::SortingStatus sortingStatus=rerun::SortingStatus::Unknown)
rerun::TimeColumn makeDurationSecondsTimeColumn (std::string timelineName, rerun::Collection< double > values, rerun::SortingStatus sortingStatus=rerun::SortingStatus::Unknown)
rerun::Collection< rerun::ComponentColumn > makeScalarColumns (std::vector< double > values)
template<typename T>
bool hasComponentData (const T &archetype)
 Check whether an archetype has any component data to log.
template<typename T>
void safeLog (const rerun::RecordingStream &rec, std::string_view entityPath, const T &archetype)
 Safe wrapper for RecordingStream::log that skips empty archetypes.
template<typename T>
void safeLogStatic (const rerun::RecordingStream &rec, std::string_view entityPath, const T &archetype)
 Safe wrapper for RecordingStream::log_static that skips empty archetypes.
void addIOOptions (CLI::App &app, std::shared_ptr< IOOptions > ioOptions)
void addModelOptions (CLI::App &app, std::shared_ptr< ModelOptions > modelOptions)
void addCalibrationOptions (CLI::App &app, std::shared_ptr< CalibrationConfig > config)
void addTrackingOptions (CLI::App &app, std::shared_ptr< TrackingConfig > config)
void addRefineOptions (CLI::App &app, std::shared_ptr< RefineConfig > config)
std::tuple< momentum::Character, momentum::ModelParameters > loadCalibratedModel (const std::string &modelFile)
std::tuple< momentum::Character, momentum::ModelParameters > loadCharacterWithIdentity (const ModelOptions &modelFiles)
void saveMotion (const std::string &outFile, const momentum::Character &character, const momentum::ModelParameters &identity, Eigen::MatrixXf &finalMotion, std::span< const std::vector< momentum::Marker > > markerData, double fps, bool saveMarkerMesh=true, std::span< const int64_t > timestamps={})
 Save the given character and motion to a GLB or FBX file.
Character 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 addGloveCalibrationParameters (Character character, const GloveConfig &cfg, const std::string &prefix="glove_")
 Add 6-DOF model parameters for existing glove bones.
Character 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 > extractGloveOffsetsFromCharacter (const Character &gloveChar, const CharacterParameters &params, const GloveConfig &cfg)
 Extract calibrated glove offsets from solved parameters.
void 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 > > > 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 > > > 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 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 > 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 updateGloveConstraintsForFrame (GloveErrorFunctions &funcs, size_t iFrame)
 Swap per-frame glove constraint data on already-registered error functions.
void preprocessMarkerGaps (std::vector< std::vector< Marker > > &markerData, const GapFillConfig &config={})
 Pre-process marker data to fill temporary gaps and blend off permanent dropouts.
std::vector< size_t > sampleFrames (momentum::Character &character, const MatrixXf &initialMotion, std::span< const std::vector< momentum::Marker > > markerData, const ParameterSet &parameters, const size_t frameStride, const size_t numSamples)
 Sample representative frames from motion data to maximize parameter variance.
Eigen::MatrixXf trackSequence (const std::span< const std::vector< Marker > > markerData, const Character &character, const ParameterSet &globalParams, const MatrixXf &initialMotion, const TrackingConfig &config, float regularizer, const size_t frameStride, bool enforceFloorInFirstFrame, const std::string &firstFramePoseConstraintSet, float targetHeightCm, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig, std::span< const CameraKeypointData > cameraKeypointData)
 Track motion across multiple frames simultaneously with temporal constraints.
void addBlendShapeRegularizer (SequenceSolverFunctionT< float > &solverFunc, size_t solverFrame, size_t solvedFrames, const Character &character)
 Add a blend shape regularizer that penalizes deviations from zero for all blend shape parameters.
void addKeypointProjectionConstraints (SequenceSolverFunctionT< float > &solverFunc, size_t solverFrame, size_t iFrame, const Character &character, float projectionWeight, std::span< const CameraKeypointData > cameraKeypointData)
 Add 2D keypoint projection constraints from outside-in cameras for one solver frame.
void addSequenceFrameConstraints (SequenceSolverFunctionT< float > &solverFunc, size_t solverFrame, size_t iFrame, size_t solvedFrames, const Character &character, const TrackingConfig &config, const std::vector< std::vector< PositionData > > &constrData, const std::vector< std::vector< SkinnedLocatorConstraint > > &skinnedConstData, const std::vector< SkinnedLocatorTriangleConstraintT< float > > &skinnedLocatorMeshContraints, const std::vector< PlaneDataT< float > > &floorConstraints, bool enforceFloorInFirstFrame, const std::string &firstFramePoseConstraintSet, float targetHeightCm, const std::optional< GloveConfig > &gloveConfig, const std::vector< std::vector< JointToJointPositionDataT< float > > > &leftGlovePosData, const std::vector< std::vector< JointToJointOrientationDataT< float > > > &leftGloveOriData, const std::vector< std::vector< JointToJointPositionDataT< float > > > &rightGlovePosData, const std::vector< std::vector< JointToJointOrientationDataT< float > > > &rightGloveOriData, std::span< const CameraKeypointData > cameraKeypointData={}, std::span< const std::vector< PlaneDataT< float > > > perFrameFloorContacts={})
 Add per-frame marker, floor, and glove constraints for one frame of the sequence solver.
Eigen::MatrixXf trackSequence (const std::span< const std::vector< Marker > > markerData, const Character &character, const ParameterSet &globalParams, const MatrixXf &initialMotion, const TrackingConfig &config, const std::vector< size_t > &frames, float regularizer, bool enforceFloorInFirstFrame, const std::string &firstFramePoseConstraintSet, float targetHeightCm, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig, std::span< const CameraKeypointData > cameraKeypointData, std::span< const std::vector< PlaneDataT< float > > > perFrameFloorContacts)
 Track motion across multiple frames simultaneously for specific frame indices.
void updateGloveConstraintsForBothHands (std::optional< GloveErrorFunctions > &left, std::optional< GloveErrorFunctions > &right, size_t iFrame)
 Update glove constraints for both hands for a given frame.
bool isGlobalTransformZero (const Eigen::VectorXf &dof, const ParameterSet &rigidParams)
 Check if the global transform is zero by checking if any rigid parameters are non-zero.
Eigen::MatrixXf trackPosesPerframe (const std::span< const std::vector< Marker > > markerData, const Character &character, const ModelParameters &globalParams, const TrackingConfig &config, const size_t frameStride, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig)
 Track poses independently per frame with fixed character identity.
bool solveRigidInitialization (GaussNewtonSolverQR &solver, GaussNewtonSolverQROptions &solverOptions, Eigen::VectorXf &dof, const ParameterTransform &pt, const ParameterSet &poseParams, const std::shared_ptr< ModelParametersErrorFunction > &smoothConstrFunc, const TrackingConfig &config, bool isContinuous, size_t iFrame)
 Solve for rigid parameters only as initialization for a frame.
Eigen::MatrixXf trackPosesForFrames (const std::span< const std::vector< Marker > > markerData, const Character &character, const MatrixXf &initialMotion, const TrackingConfig &config, const std::vector< size_t > &frameIndices, bool isContinuous, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig, const std::string &progressLabel)
 Track poses independently for specific frame indices with fixed character identity.
Character addSkinnedLocatorParametersToTransform (Character character)
void logKeypointReprojectionDiagnostic (const Character &character, const ParameterTransform &transform, const Eigen::MatrixXf &motion, std::span< const CameraKeypointData > cameraKeypointData, const CalibrationConfig &config, const std::string &label)
std::pair< ParameterSet, ParameterSet > buildCalibBodySets (const CalibrationConfig &config, const ParameterTransform &transform, const ParameterTransform &transformExtended)
void calibrateModel (const std::span< const std::vector< Marker > > markerData, const CalibrationConfig &config, Character &character, ModelParameters &identity, const std::array< float, 3 > &regularizerWeights, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig, std::span< const CameraKeypointData > cameraKeypointData, std::vector< size_t > *selectedFrameIndices, Eigen::MatrixXf *selectedFrameMotion)
void calibrateLocators (const std::span< const std::vector< Marker > > markerData, const CalibrationConfig &config, const ModelParameters &identity, Character &character)
 Calibrate only locator positions with fixed character identity parameters.
MatrixXf refineMotion (std::span< const std::vector< momentum::Marker > > markerData, const MatrixXf &motion, const RefineConfig &config, momentum::Character &character)
 Refine existing motion by smoothing and optionally recalibrating identity/locators.
std::pair< float, float > getLocatorError (std::span< const std::vector< momentum::Marker > > markerData, const MatrixXf &motion, momentum::Character &character)
 Compute average and maximum marker tracking errors across all frames.
Eigen::MatrixXf trackSequence (std::span< const std::vector< momentum::Marker > > markerData, const momentum::Character &character, const momentum::ParameterSet &globalParams, const Eigen::MatrixXf &initialMotion, const TrackingConfig &config, float regularizer=0.0, size_t frameStride=1, bool enforceFloorInFirstFrame=false, const std::string &firstFramePoseConstraintSet="", float targetHeightCm=0.0f, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt, std::span< const CameraKeypointData > cameraKeypointData={})
 Use multiple frames to solve for global parameters such as body proportions and/or marker offsets together with the motion.
Eigen::MatrixXf trackSequence (std::span< const std::vector< momentum::Marker > > markerData, const momentum::Character &character, const momentum::ParameterSet &globalParams, const Eigen::MatrixXf &initialMotion, const TrackingConfig &config, const std::vector< size_t > &frames, float regularizer=0.0, bool enforceFloorInFirstFrame=false, const std::string &firstFramePoseConstraintSet="", float targetHeightCm=0.0f, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt, std::span< const CameraKeypointData > cameraKeypointData={}, std::span< const std::vector< PlaneDataT< float > > > perFrameFloorContacts={})
 Use multiple frames to solve for global parameters such as body proportions and/or marker offsets together with the motion.
Eigen::MatrixXf trackPosesPerframe (std::span< const std::vector< momentum::Marker > > markerData, const momentum::Character &character, const momentum::ModelParameters &globalParams, const TrackingConfig &config, size_t frameStride=1, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt)
 Track poses per-frame given a calibrated character.
Eigen::MatrixXf trackPosesForFrames (std::span< const std::vector< momentum::Marker > > markerData, const momentum::Character &character, const Eigen::MatrixXf &initialMotion, const TrackingConfig &config, const std::vector< size_t > &frameIndices, bool isContinuous=false, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt, const std::string &progressLabel="Tracking per-frame")
 Track poses for given frames.
void calibrateModel (std::span< const std::vector< momentum::Marker > > markerData, const CalibrationConfig &config, momentum::Character &character, momentum::ModelParameters &identity, const std::array< float, 3 > &regularizerWeights={0.0f, 0.0f, 0.0f}, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt, std::span< const CameraKeypointData > cameraKeypointData={}, std::vector< size_t > *selectedFrameIndices=nullptr, Eigen::MatrixXf *selectedFrameMotion=nullptr)
 Calibrate body proportions and locator offsets of a character from input marker data.
void calibrateLocators (std::span< const std::vector< momentum::Marker > > markerData, const CalibrationConfig &config, const momentum::ModelParameters &identity, momentum::Character &character)
 Calibrate locator offsets of a character from input identity and marker data.
Eigen::MatrixXf refineMotion (std::span< const std::vector< momentum::Marker > > markerData, const Eigen::MatrixXf &motion, const RefineConfig &config, momentum::Character &character)
std::pair< float, float > getLocatorError (std::span< const std::vector< momentum::Marker > > markerData, const Eigen::MatrixXf &motion, momentum::Character &character)
 Get the error of the locator motion vs the markers.
void calibrateMarkers (momentum::Character &character, momentum::ModelParameters &identity, std::span< const std::vector< momentum::Marker > > markerData, const CalibrationConfig &calibrationConfig, size_t firstFrame=0, size_t maxFrames=0, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt, std::span< const CameraKeypointData > cameraKeypointData={}, std::vector< size_t > *selectedFrameIndices=nullptr, Eigen::MatrixXf *selectedFrameMotion=nullptr)
 Calibrates a character model using marker data without running full tracking.
Eigen::MatrixXf processMarkers (momentum::Character &character, momentum::ModelParameters &identity, const std::vector< std::vector< momentum::Marker > > &markerData, const TrackingConfig &trackingConfig, const CalibrationConfig &calibrationConfig, bool calibrate=true, size_t firstFrame=0, size_t maxFrames=0, std::span< const GloveFrameData > leftGloveData={}, std::span< const GloveFrameData > rightGloveData={}, const std::optional< GloveConfig > &gloveConfig=std::nullopt, std::span< const CameraKeypointData > cameraKeypointData={})
 Processes marker data for a character model.
void processMarkerFile (const std::string &inputMarkerFile, const std::string &outputFile, const TrackingConfig &trackingConfig, const CalibrationConfig &calibrationConfig, const ModelOptions &modelOptions, bool calibrate, size_t firstFrame=0, size_t maxFrames=0)
 Runs marker tracking on an input marker file (e.g.
std::vector< std::vector< PositionData > > createConstraintData (const std::span< const std::vector< Marker > > markerData, const LocatorList &locators)
std::vector< std::vector< SkinnedLocatorConstraint > > createSkinnedConstraintData (const std::span< const std::vector< Marker > > markerData, const SkinnedLocatorList &locators)
std::pair< Eigen::Vector< uint32_t, kMaxSkinJoints >, Eigen::Vector< float, kMaxSkinJoints > > averageTriangleSkinWeights (const Character &character, int triangleIndex, const Eigen::Vector3f &barycentric)
bool isRelatedJoint (const momentum::Skeleton &skeleton, uint32_t jointA, uint32_t jointB)
 Check if two joints are related (same joint, parent-child, or child-parent relationship).
ClosestPointOnMeshResult closestPointOnMeshMatchingParent (const momentum::Mesh &mesh, const momentum::SkinWeights &skin, const momentum::Skeleton &skeleton, const Eigen::Vector3f &p_world, uint32_t parentIdx, float cutoffWeight=0.02)
momentum::Character 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 skinnedLocatorsToLocators (const momentum::Character &sourceCharacter)
 Convert skinned locators to regular locators by selecting the bone with the highest skin weight.
std::vector< std::vector< size_t > > buildTriangleAdjacency (const momentum::Mesh &mesh)
 Build triangle adjacency: for each triangle, find triangles that share an edge.
std::vector< CandidateTriangle > 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.
std::vector< momentum::SkinnedLocatorTriangleConstraintT< float > > createSkinnedLocatorMeshConstraints (const momentum::Character &character, float cutoffWeight, float maxSearchDistanceCm, float maxNormalAngleDeg)
Character createLocatorCharacter (const Character &sourceCharacter, const std::string &prefix)
LocatorList extractLocatorsFromCharacter (const Character &locatorCharacter, const CharacterParameters &calibParams)
SkinnedLocatorList extractSkinnedLocatorsFromCharacter (const Character &locatorCharacter, const CharacterParameters &calibParams)
ModelParameters extractParameters (const ModelParameters &params, const ParameterSet &parameterSet)
std::tuple< Eigen::VectorXf, LocatorList, SkinnedLocatorList > extractIdAndLocatorsFromParams (const ModelParameters &param, const Character &sourceCharacter, const Character &targetCharacter)
Mesh extractBlendShapeFromParams (const momentum::ModelParameters &param, const momentum::Character &sourceCharacter)
void fillIdentity (const ParameterSet &idSet, const ModelParameters &identity, Eigen::MatrixXf &motionNoId)
void removeIdentity (const ParameterSet &idSet, const ModelParameters &identity, Eigen::MatrixXf &motionWithId)
ModelParameters jointIdentityToModelIdentity (const Character &c, const ParameterSet &idSet, const JointParameters &jointIdentity)
std::vector< std::vector< Marker > > extractMarkersFromMotion (const Character &character, const Eigen::MatrixXf &motion)
std::vector< std::pair< std::string, float > > computeSkinnedLocatorMeshDistances (const momentum::Character &character)
 Compute the distance from each skinned locator to the closest point on the mesh surface.
std::vector< std::vector< PlaneDataT< float > > > computeFloorContactConstraints (const Character &character, const MatrixXf &motion, const std::vector< PlaneDataT< float > > &floorConstraints, const std::vector< size_t > &frameIndices, float percentile)
std::vector< std::vector< momentum::PositionData > > createConstraintData (std::span< const std::vector< momentum::Marker > > markerData, const momentum::LocatorList &locators)
std::vector< std::vector< momentum::SkinnedLocatorConstraint > > createSkinnedConstraintData (std::span< const std::vector< momentum::Marker > > markerData, const momentum::SkinnedLocatorList &locators)
std::vector< std::vector< momentum::PlaneDataT< float > > > 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.
Eigen / DrJit interop operators

Mixed-type arithmetic between scalar Eigen types (Vector3f, Matrix3f, Quaternionf, Transform) and DrJit packet types (Vector3fP).

The core pattern for SIMD error function evaluation: a single joint transform (scalar Eigen) is applied to N constraint positions (DrJit packet) simultaneously. For example, computing N position residuals:

Vector3f jointPos = state.translation(); // scalar
Vector3fP targets = {drjit::load<FloatP>(targetX),
drjit::load<FloatP>(targetY),
drjit::load<FloatP>(targetZ)}; // N packed targets
Vector3fP residuals = targets - jointPos; // N residuals at once
Vector3P< float > Vector3fP
Definition simd.h:93
Vector3< float > Vector3f
Definition types.h:251
template<typename Derived, typename S>
FloatP dot (const Eigen::MatrixBase< Derived > &v1, const Vector3P< S > &v2)
 Computes dot product of Eigen::Vector3f and 3-vector of packets.
template<typename Derived, typename S>
FloatP dot (const Vector3P< S > &v1, const Eigen::MatrixBase< Derived > &v2)
 Computes dot product of Vector3P and Eigen::Vector3f.
template<typename S, typename Derived>
Vector3P< S > operator+ (const Eigen::MatrixBase< Derived > &v1, const Vector3P< S > &v2)
 Adds Eigen::Vector3f and Vector3P element-wise.
template<typename S, typename Derived>
Vector3P< S > operator+ (const Vector3P< S > &v1, const Eigen::MatrixBase< Derived > &v2)
 Adds Vector3P and Eigen::Vector3f element-wise.
template<typename S, typename Derived>
Vector3P< S > operator- (const Eigen::MatrixBase< Derived > &v1, const Vector3P< S > &v2)
 Subtracts Vector3P from Eigen::Vector3f element-wise.
template<typename S, typename Derived>
Vector3P< S > operator- (const Vector3P< S > &v1, const Eigen::MatrixBase< Derived > &v2)
 Subtracts Eigen::Vector3f from Vector3P element-wise.
template<typename S>
Vector3P< S > operator* (const Eigen::Quaternion< S > &q, const Vector3P< S > &vec)
 Applies quaternion rotation to each 3x1 vector in packet.
template<typename S, typename Derived>
Vector3P< S > operator* (const Eigen::MatrixBase< Derived > &xf, const Vector3P< S > &vec)
 Applies 3x3 matrix transformation to each 3x1 vector in packet.
template<typename S>
Vector3P< S > operator* (const Eigen::Transform< S, 3, Eigen::Affine > &xf, const Vector3P< S > &vec)
 Applies affine transformation to each 3x1 vector in packet.
template<typename S>
Vector3P< S > operator* (const TransformT< S > &xf, const Vector3P< S > &vec)
 Applies momentum::Transform to each 3x1 vector in packet.
template<typename S, typename Derived>
Vector3P< S > cross (const Eigen::MatrixBase< Derived > &v1, const Vector3P< S > &v2)
 Computes cross product of Eigen::Vector3f and Vector3P.
template<typename S, typename Derived>
Vector3P< S > cross (const Vector3P< S > &v1, const Eigen::MatrixBase< Derived > &v2)
 Computes cross product of Vector3P and Eigen::Vector3f.
Matrix Utilities
template<typename T>
MatrixX< T > pseudoInverse (const MatrixX< T > &mat)
 Calculates the pseudo-inverse of a matrix.
template<typename T>
MatrixX< T > pseudoInverse (const SparseMatrix< T > &mat)
 Calculates the pseudo-inverse of a sparse matrix.
Math Utilities
ParameterSet allParams ()
 Creates a ParameterSet with all parameters set to active.
template<class T>
T sqr (const T &x)
 Computes the square of a value.
template<typename T = float>
bool isApprox (T l, T r, T eps=Eps< T >(1e-4, 1e-6)) noexcept
 Determines if two values are approximately equal within a given tolerance.
Inverse FK: Skeleton State โ†’ Joint Parameters

Four variants exist for converting skeleton state back to joint parameters:

template<typename T>
JointParametersT< T > skeletonStateToJointParameters (const SkeletonStateT< T > &state, const Skeleton &skeleton)
 The "RespectingActiveParameters" variants use rotationMatrixToOneAxisEuler or rotationMatrixToTwoAxisEuler for joints with restricted DOF, avoiding Euler angle ambiguity that the standard 3-axis extraction suffers from.
template<typename T>
JointParametersT< T > skeletonStateToJointParameters (const TransformListT< T > &state, const Skeleton &skeleton)
template<typename T>
JointParametersT< T > skeletonStateToJointParametersRespectingActiveParameters (const SkeletonStateT< T > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams)
 Converts skeleton state back to joint parameters, respecting active joint parameter constraints.
template<typename T>
JointParametersT< T > skeletonStateToJointParametersRespectingActiveParameters (const TransformListT< T > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams)
 Converts transform list back to joint parameters, respecting active joint parameter constraints.

Variables

constexpr size_t kSimdPacketSize = drjit::DefaultSize
 Number of floats in the platform's default SIMD register, chosen at compile time by DrJit based on available instruction sets (4 on SSE/NEON, 8 on AVX).
constexpr size_t kSimdAlignment = kSimdPacketSize * sizeof(float)
 Byte alignment required for the platform's default SIMD loads/stores.
constexpr CoordinateSystem kMomentumCoordinateSystem
 Momentum's canonical coordinate system: Y-up, right-handed, centimeters.
constexpr int Dynamic = Eigen::Dynamic
 Re-export of Eigen::Dynamic for use as a compile-time dimension token in momentum's type aliases (e.g., MatrixX, VectorX).
constexpr size_t kMaxModelParams = 2048
 Maximum number of model parameters supported per frame across any character.
constexpr size_t kJacobianRowAlignment = 8
 Alignment for SIMD operations on Jacobian rows (8 floats = 32 bytes for AVX).
template<typename T>
const std::array< Vector3< T >, 3 > RotationAxis
constexpr float kDefaultExtrapolateFactor = 0.8f
constexpr float kDefaultExtrapolateMaxDelta = 0.4f
constexpr uint32_t kMaxSkinJoints = 8
 Maximum number of joints that can influence a single vertex.
constexpr size_t kParametersPerJoint = 7
constexpr std::array< const char *, kParametersPerJoint > kJointParameterNames {"tx", "ty", "tz", "rx", "ry", "rz", "sc"}
constexpr size_t kInvalidIndex = std::numeric_limits<size_t>::max()
 Sentinel value indicating an invalid or unset size_t index.
constexpr const char * kIntrinsicsParamPrefix = "intrinsics_"
constexpr const char * kTiedFocalLengthSuffix = "f"
constexpr size_t kAllFrames = SIZE_MAX
template<typename T>
constexpr T kVelocityMagnitudeEpsilon = T(1e-6)
 Epsilon for smooth velocity magnitude approximation: ||v||_smooth = sqrt(||v||^2 + eps^2).
constexpr const char * kMomentumMarkersRootProperty = "Momentum_Markers_Root"
constexpr const char * kMomentumMarkerProperty = "Momentum_Marker"
constexpr uint32_t kInvalidTexCoord = static_cast<uint32_t>(-1)
constexpr CoordinateSystem kGltfCoordinateSystem
 The glTF coordinate system: Y-up, right-handed, meters.

Geometry Utilities

enum class  EulerConvention { Intrinsic , Extrinsic }
 The Euler angles convention. More...
template<typename T>
Quaternion< T > quaternionExpMap (const Vector3< T > &v)
 Computes the exponential map from a rotation vector (axis-angle in R^3) to a quaternion.
template<typename T>
Vector3< T > quaternionLogMap (const Quaternion< T > &q)
 Computes the logarithmic map from a quaternion to a rotation vector (axis-angle in R^3).
template<typename T>
Eigen::Matrix< T, 3, 4 > quaternionLogMapDerivative (const Quaternion< T > &q)
 Computes the derivative of the logarithmic map with respect to quaternion components.
template<typename T>
Vector3< T > rotationMatrixToEuler (const Matrix3< T > &m, int axis0, int axis1, int axis2, EulerConvention convention)
 Converts rotation matrix to Euler angles.
template<typename T>
Vector3< T > rotationMatrixToEulerXYZ (const Matrix3< T > &m, EulerConvention convention)
 An optimized version of rotationMatrixToEuler(m, 0, 1, 2, convention) or rotationMatrixToEuler(m, 2, 1, 0, convention).reverse().
template<typename T>
Vector3< T > rotationMatrixToEulerZYX (const Matrix3< T > &m, EulerConvention convention)
 An optimized version of rotationMatrixToEuler(m, 2, 1, 0, convention) or rotationMatrixToEuler(m, 0, 1, 2, convention).reverse().
template<typename T>
Quaternion< T > eulerToQuaternion (const Vector3< T > &angles, int axis0, int axis1, int axis2, EulerConvention convention)
 Converts Euler angles to quaternion.
template<typename T>
Matrix3< T > eulerToRotationMatrix (const Vector3< T > &angles, int axis0, int axis1, int axis2, EulerConvention convention)
 Converts Euler angles to rotation matrix.
template<typename T>
Matrix3< T > eulerXYZToRotationMatrix (const Vector3< T > &angles, EulerConvention convention)
 An optimized version of eulerToRotationMatrix(angles, 0, 1, 2, convention) or eulerToRotationMatrix(angles.reverse(), 2, 1, 0, convention).
template<typename T>
Matrix3< T > eulerZYXToRotationMatrix (const Vector3< T > &angles, EulerConvention convention)
 An optimized version of eulerToRotationMatrix(angles, 2, 1, 0, convention) or eulerToRotationMatrix(angles.reverse(), 0, 1, 2, convention).
template<typename T>
Vector3< T > quaternionToEuler (const Quaternion< T > &q)
 Converts a quaternion to Euler angles using the Extrinsic XYZ convention.
Quaternionf quaternionAverage (momentum::span< const Quaternionf > q, momentum::span< const float > w={})
 Computes the weighted average of multiple quaternions.
template<typename T>
std::tuple< bool, T, Eigen::Vector2< T > > closestPointsOnSegments (const Eigen::Vector3< T > &o1, const Eigen::Vector3< T > &d1, const Eigen::Vector3< T > &o2, const Eigen::Vector3< T > &d2, T maxDist=std::numeric_limits< T >::max())
 Returns the closest points on two line segments where the line segments are represented in origin and direction.
template<typename T>
T rotationMatrixToOneAxisEuler (const Matrix3< T > &m, int axis0)
 Fits a single-axis Euler rotation to a rotation matrix.
template<typename T>
Vector2< T > rotationMatrixToTwoAxisEuler (const Matrix3< T > &m, int axis0, int axis1)
 Fits a two-axis Euler rotation to a rotation matrix.
template<typename T>
Eigen::Matrix< T, 3, 3 > crossProductMatrix (const Eigen::Vector3< T > &v)
 Creates a skew-symmetric matrix for computing cross products.

Typedef Documentation

◆ AccelerationSequenceErrorFunction

◆ AccelerationSequenceErrorFunction_const_p

Initial value:
::std::shared_ptr<const AccelerationSequenceErrorFunction>

Definition at line 89 of file fwd.h.

◆ AccelerationSequenceErrorFunction_const_u

Initial value:
::std::unique_ptr<const AccelerationSequenceErrorFunction>

Definition at line 91 of file fwd.h.

◆ AccelerationSequenceErrorFunction_const_w

Initial value:
::std::weak_ptr<const AccelerationSequenceErrorFunction>

Definition at line 93 of file fwd.h.

◆ AccelerationSequenceErrorFunction_p

Definition at line 86 of file fwd.h.

◆ AccelerationSequenceErrorFunction_u

Definition at line 87 of file fwd.h.

◆ AccelerationSequenceErrorFunction_w

Definition at line 88 of file fwd.h.

◆ AccelerationSequenceErrorFunctiond

◆ AccelerationSequenceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const AccelerationSequenceErrorFunctiond>

Definition at line 99 of file fwd.h.

◆ AccelerationSequenceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const AccelerationSequenceErrorFunctiond>

Definition at line 101 of file fwd.h.

◆ AccelerationSequenceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const AccelerationSequenceErrorFunctiond>

Definition at line 103 of file fwd.h.

◆ AccelerationSequenceErrorFunctiond_p

Definition at line 96 of file fwd.h.

◆ AccelerationSequenceErrorFunctiond_u

Definition at line 97 of file fwd.h.

◆ AccelerationSequenceErrorFunctiond_w

Definition at line 98 of file fwd.h.

◆ Affine3

template<typename T>
using momentum::Affine3 = Eigen::Transform<T, 3, Eigen::Affine>

3D affine transform (linear part + translation).

Allows non-uniform scale and shear; used by momentum for joint/skinning transforms that include scale.

Definition at line 404 of file types.h.

◆ Affine3d

using momentum::Affine3d = Affine3<double>

Definition at line 406 of file types.h.

◆ Affine3f

using momentum::Affine3f = Affine3<float>

Definition at line 405 of file types.h.

◆ AimData

using momentum::AimData = AimDataT<float>

Definition at line 74 of file fwd.h.

◆ AimData_const_p

using momentum::AimData_const_p = ::std::shared_ptr<const AimData>

Definition at line 80 of file fwd.h.

◆ AimData_const_u

using momentum::AimData_const_u = ::std::unique_ptr<const AimData>

Definition at line 81 of file fwd.h.

◆ AimData_const_w

using momentum::AimData_const_w = ::std::weak_ptr<const AimData>

Definition at line 82 of file fwd.h.

◆ AimData_p

using momentum::AimData_p = ::std::shared_ptr<AimData>

Definition at line 77 of file fwd.h.

◆ AimData_u

using momentum::AimData_u = ::std::unique_ptr<AimData>

Definition at line 78 of file fwd.h.

◆ AimData_w

using momentum::AimData_w = ::std::weak_ptr<AimData>

Definition at line 79 of file fwd.h.

◆ AimDatad

using momentum::AimDatad = AimDataT<double>

Definition at line 75 of file fwd.h.

◆ AimDatad_const_p

using momentum::AimDatad_const_p = ::std::shared_ptr<const AimDatad>

Definition at line 87 of file fwd.h.

◆ AimDatad_const_u

using momentum::AimDatad_const_u = ::std::unique_ptr<const AimDatad>

Definition at line 88 of file fwd.h.

◆ AimDatad_const_w

using momentum::AimDatad_const_w = ::std::weak_ptr<const AimDatad>

Definition at line 89 of file fwd.h.

◆ AimDatad_p

using momentum::AimDatad_p = ::std::shared_ptr<AimDatad>

Definition at line 84 of file fwd.h.

◆ AimDatad_u

using momentum::AimDatad_u = ::std::unique_ptr<AimDatad>

Definition at line 85 of file fwd.h.

◆ AimDatad_w

using momentum::AimDatad_w = ::std::weak_ptr<AimDatad>

Definition at line 86 of file fwd.h.

◆ AimDirErrorFunction

Definition at line 435 of file fwd.h.

◆ AimDirErrorFunction_const_p

Definition at line 441 of file fwd.h.

◆ AimDirErrorFunction_const_u

Definition at line 442 of file fwd.h.

◆ AimDirErrorFunction_const_w

Definition at line 443 of file fwd.h.

◆ AimDirErrorFunction_p

Definition at line 438 of file fwd.h.

◆ AimDirErrorFunction_u

Definition at line 439 of file fwd.h.

◆ AimDirErrorFunction_w

Definition at line 440 of file fwd.h.

◆ AimDirErrorFunctiond

Definition at line 436 of file fwd.h.

◆ AimDirErrorFunctiond_const_p

Definition at line 448 of file fwd.h.

◆ AimDirErrorFunctiond_const_u

Definition at line 449 of file fwd.h.

◆ AimDirErrorFunctiond_const_w

Definition at line 450 of file fwd.h.

◆ AimDirErrorFunctiond_p

Definition at line 445 of file fwd.h.

◆ AimDirErrorFunctiond_u

Definition at line 446 of file fwd.h.

◆ AimDirErrorFunctiond_w

Definition at line 447 of file fwd.h.

◆ AimDistErrorFunction

Definition at line 454 of file fwd.h.

◆ AimDistErrorFunction_const_p

Definition at line 460 of file fwd.h.

◆ AimDistErrorFunction_const_u

Definition at line 461 of file fwd.h.

◆ AimDistErrorFunction_const_w

Definition at line 462 of file fwd.h.

◆ AimDistErrorFunction_p

Definition at line 457 of file fwd.h.

◆ AimDistErrorFunction_u

Definition at line 458 of file fwd.h.

◆ AimDistErrorFunction_w

Definition at line 459 of file fwd.h.

◆ AimDistErrorFunctiond

Definition at line 455 of file fwd.h.

◆ AimDistErrorFunctiond_const_p

Definition at line 467 of file fwd.h.

◆ AimDistErrorFunctiond_const_u

Definition at line 468 of file fwd.h.

◆ AimDistErrorFunctiond_const_w

Definition at line 469 of file fwd.h.

◆ AimDistErrorFunctiond_p

Definition at line 464 of file fwd.h.

◆ AimDistErrorFunctiond_u

Definition at line 465 of file fwd.h.

◆ AimDistErrorFunctiond_w

Definition at line 466 of file fwd.h.

◆ AngleAxis

template<typename T>
using momentum::AngleAxis = Eigen::AngleAxis<T>

Definition at line 374 of file types.h.

◆ AngleAxisd

Definition at line 376 of file types.h.

◆ AngleAxisf

Definition at line 375 of file types.h.

◆ BlendShape_const_p

using momentum::BlendShape_const_p = ::std::shared_ptr<const BlendShape>

Definition at line 23 of file fwd.h.

◆ BlendShape_const_u

using momentum::BlendShape_const_u = ::std::unique_ptr<const BlendShape>

Definition at line 24 of file fwd.h.

◆ BlendShape_const_w

using momentum::BlendShape_const_w = ::std::weak_ptr<const BlendShape>

Definition at line 25 of file fwd.h.

◆ BlendShape_p

using momentum::BlendShape_p = ::std::shared_ptr<BlendShape>

Definition at line 20 of file fwd.h.

◆ BlendShape_u

using momentum::BlendShape_u = ::std::unique_ptr<BlendShape>

Definition at line 21 of file fwd.h.

◆ BlendShape_w

using momentum::BlendShape_w = ::std::weak_ptr<BlendShape>

Definition at line 22 of file fwd.h.

◆ BlendShapeBase_const_p

using momentum::BlendShapeBase_const_p = ::std::shared_ptr<const BlendShapeBase>

Definition at line 32 of file fwd.h.

◆ BlendShapeBase_const_u

using momentum::BlendShapeBase_const_u = ::std::unique_ptr<const BlendShapeBase>

Definition at line 33 of file fwd.h.

◆ BlendShapeBase_const_w

using momentum::BlendShapeBase_const_w = ::std::weak_ptr<const BlendShapeBase>

Definition at line 34 of file fwd.h.

◆ BlendShapeBase_p

using momentum::BlendShapeBase_p = ::std::shared_ptr<BlendShapeBase>

Definition at line 29 of file fwd.h.

◆ BlendShapeBase_u

using momentum::BlendShapeBase_u = ::std::unique_ptr<BlendShapeBase>

Definition at line 30 of file fwd.h.

◆ BlendShapeBase_w

using momentum::BlendShapeBase_w = ::std::weak_ptr<BlendShapeBase>

Definition at line 31 of file fwd.h.

◆ BlendWeights

Definition at line 115 of file types.h.

◆ BlendWeightsd

Definition at line 116 of file types.h.

◆ Box

template<typename Scalar, int Dim>
using momentum::Box = Eigen::AlignedBox<Scalar, Dim>

Definition at line 52 of file types.h.

◆ Box2

template<typename T>
using momentum::Box2 = Eigen::AlignedBox<T, 2>

Definition at line 64 of file types.h.

◆ Box2d

using momentum::Box2d = Box2<double>

Definition at line 71 of file types.h.

◆ Box2f

using momentum::Box2f = Box2<float>

Definition at line 68 of file types.h.

◆ Box2i

using momentum::Box2i = Box2<std::int32_t>

Definition at line 74 of file types.h.

◆ Box3

template<typename T>
using momentum::Box3 = Eigen::AlignedBox<T, 3>

Definition at line 66 of file types.h.

◆ Box3d

using momentum::Box3d = Box3<double>

Definition at line 72 of file types.h.

◆ Box3f

using momentum::Box3f = Box3<float>

Definition at line 69 of file types.h.

◆ Box3i

using momentum::Box3i = Box3<std::int32_t>

Definition at line 75 of file types.h.

◆ Boxd

template<int Dim>
using momentum::Boxd = Eigen::AlignedBox<double, Dim>

Definition at line 58 of file types.h.

◆ Boxf

template<int Dim>
using momentum::Boxf = Eigen::AlignedBox<float, Dim>

Definition at line 55 of file types.h.

◆ Boxi

template<int Dim>
using momentum::Boxi = Eigen::AlignedBox<std::int32_t, Dim>

Definition at line 61 of file types.h.

◆ ByteP

using momentum::ByteP = Packet<uint8_t>

Definition at line 98 of file simd.h.

◆ CameraProjectionErrorFunction

◆ CameraProjectionErrorFunction_const_p

Initial value:
::std::shared_ptr<const CameraProjectionErrorFunction>

Definition at line 479 of file fwd.h.

◆ CameraProjectionErrorFunction_const_u

Initial value:
::std::unique_ptr<const CameraProjectionErrorFunction>

Definition at line 481 of file fwd.h.

◆ CameraProjectionErrorFunction_const_w

Definition at line 483 of file fwd.h.

◆ CameraProjectionErrorFunction_p

Definition at line 476 of file fwd.h.

◆ CameraProjectionErrorFunction_u

Definition at line 477 of file fwd.h.

◆ CameraProjectionErrorFunction_w

Definition at line 478 of file fwd.h.

◆ CameraProjectionErrorFunctiond

◆ CameraProjectionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const CameraProjectionErrorFunctiond>

Definition at line 488 of file fwd.h.

◆ CameraProjectionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const CameraProjectionErrorFunctiond>

Definition at line 490 of file fwd.h.

◆ CameraProjectionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const CameraProjectionErrorFunctiond>

Definition at line 492 of file fwd.h.

◆ CameraProjectionErrorFunctiond_p

Definition at line 485 of file fwd.h.

◆ CameraProjectionErrorFunctiond_u

Definition at line 486 of file fwd.h.

◆ CameraProjectionErrorFunctiond_w

Definition at line 487 of file fwd.h.

◆ CameraVertexProjectionData

Definition at line 93 of file fwd.h.

◆ CameraVertexProjectionData_const_p

Definition at line 99 of file fwd.h.

◆ CameraVertexProjectionData_const_u

Definition at line 100 of file fwd.h.

◆ CameraVertexProjectionData_const_w

Definition at line 101 of file fwd.h.

◆ CameraVertexProjectionData_p

Definition at line 96 of file fwd.h.

◆ CameraVertexProjectionData_u

Definition at line 97 of file fwd.h.

◆ CameraVertexProjectionData_w

Definition at line 98 of file fwd.h.

◆ CameraVertexProjectionDatad

Definition at line 94 of file fwd.h.

◆ CameraVertexProjectionDatad_const_p

Definition at line 106 of file fwd.h.

◆ CameraVertexProjectionDatad_const_u

Definition at line 107 of file fwd.h.

◆ CameraVertexProjectionDatad_const_w

Definition at line 108 of file fwd.h.

◆ CameraVertexProjectionDatad_p

Definition at line 103 of file fwd.h.

◆ CameraVertexProjectionDatad_u

Definition at line 104 of file fwd.h.

◆ CameraVertexProjectionDatad_w

Definition at line 105 of file fwd.h.

◆ CameraVertexProjectionErrorFunction

◆ CameraVertexProjectionErrorFunction_const_p

Initial value:
::std::shared_ptr<const CameraVertexProjectionErrorFunction>

Definition at line 505 of file fwd.h.

◆ CameraVertexProjectionErrorFunction_const_u

Initial value:
::std::unique_ptr<const CameraVertexProjectionErrorFunction>

Definition at line 507 of file fwd.h.

◆ CameraVertexProjectionErrorFunction_const_w

Initial value:
::std::weak_ptr<const CameraVertexProjectionErrorFunction>

Definition at line 509 of file fwd.h.

◆ CameraVertexProjectionErrorFunction_p

Initial value:
::std::shared_ptr<CameraVertexProjectionErrorFunction>

Definition at line 500 of file fwd.h.

◆ CameraVertexProjectionErrorFunction_u

Initial value:
::std::unique_ptr<CameraVertexProjectionErrorFunction>

Definition at line 502 of file fwd.h.

◆ CameraVertexProjectionErrorFunction_w

◆ CameraVertexProjectionErrorFunctiond

◆ CameraVertexProjectionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const CameraVertexProjectionErrorFunctiond>

Definition at line 518 of file fwd.h.

◆ CameraVertexProjectionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const CameraVertexProjectionErrorFunctiond>

Definition at line 520 of file fwd.h.

◆ CameraVertexProjectionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const CameraVertexProjectionErrorFunctiond>

Definition at line 522 of file fwd.h.

◆ CameraVertexProjectionErrorFunctiond_p

Initial value:
::std::shared_ptr<CameraVertexProjectionErrorFunctiond>

Definition at line 512 of file fwd.h.

◆ CameraVertexProjectionErrorFunctiond_u

Initial value:
::std::unique_ptr<CameraVertexProjectionErrorFunctiond>

Definition at line 514 of file fwd.h.

◆ CameraVertexProjectionErrorFunctiond_w

Initial value:
::std::weak_ptr<CameraVertexProjectionErrorFunctiond>

Definition at line 516 of file fwd.h.

◆ CenterOfMassErrorFunction

Definition at line 527 of file fwd.h.

◆ CenterOfMassErrorFunction_const_p

Definition at line 533 of file fwd.h.

◆ CenterOfMassErrorFunction_const_u

Definition at line 534 of file fwd.h.

◆ CenterOfMassErrorFunction_const_w

Definition at line 535 of file fwd.h.

◆ CenterOfMassErrorFunction_p

Definition at line 530 of file fwd.h.

◆ CenterOfMassErrorFunction_u

Definition at line 531 of file fwd.h.

◆ CenterOfMassErrorFunction_w

Definition at line 532 of file fwd.h.

◆ CenterOfMassErrorFunctiond

Definition at line 528 of file fwd.h.

◆ CenterOfMassErrorFunctiond_const_p

Definition at line 540 of file fwd.h.

◆ CenterOfMassErrorFunctiond_const_u

Definition at line 541 of file fwd.h.

◆ CenterOfMassErrorFunctiond_const_w

Definition at line 542 of file fwd.h.

◆ CenterOfMassErrorFunctiond_p

Definition at line 537 of file fwd.h.

◆ CenterOfMassErrorFunctiond_u

Definition at line 538 of file fwd.h.

◆ CenterOfMassErrorFunctiond_w

Definition at line 539 of file fwd.h.

◆ Character_const_p

using momentum::Character_const_p = ::std::shared_ptr<const Character>

Definition at line 41 of file fwd.h.

◆ Character_const_u

using momentum::Character_const_u = ::std::unique_ptr<const Character>

Definition at line 42 of file fwd.h.

◆ Character_const_w

using momentum::Character_const_w = ::std::weak_ptr<const Character>

Definition at line 43 of file fwd.h.

◆ Character_p

using momentum::Character_p = ::std::shared_ptr<Character>

Definition at line 38 of file fwd.h.

◆ Character_u

using momentum::Character_u = ::std::unique_ptr<Character>

Definition at line 39 of file fwd.h.

◆ Character_w

using momentum::Character_w = ::std::weak_ptr<Character>

Definition at line 40 of file fwd.h.

◆ CharacterParameters

Definition at line 168 of file types.h.

◆ CharacterParametersd

Definition at line 169 of file types.h.

◆ CharacterState

Definition at line 92 of file fwd.h.

◆ CharacterState_const_p

using momentum::CharacterState_const_p = ::std::shared_ptr<const CharacterState>

Definition at line 98 of file fwd.h.

◆ CharacterState_const_u

using momentum::CharacterState_const_u = ::std::unique_ptr<const CharacterState>

Definition at line 99 of file fwd.h.

◆ CharacterState_const_w

using momentum::CharacterState_const_w = ::std::weak_ptr<const CharacterState>

Definition at line 100 of file fwd.h.

◆ CharacterState_p

using momentum::CharacterState_p = ::std::shared_ptr<CharacterState>

Definition at line 95 of file fwd.h.

◆ CharacterState_u

using momentum::CharacterState_u = ::std::unique_ptr<CharacterState>

Definition at line 96 of file fwd.h.

◆ CharacterState_w

using momentum::CharacterState_w = ::std::weak_ptr<CharacterState>

Definition at line 97 of file fwd.h.

◆ CharacterStated

Definition at line 93 of file fwd.h.

◆ CharacterStated_const_p

using momentum::CharacterStated_const_p = ::std::shared_ptr<const CharacterStated>

Definition at line 105 of file fwd.h.

◆ CharacterStated_const_u

using momentum::CharacterStated_const_u = ::std::unique_ptr<const CharacterStated>

Definition at line 106 of file fwd.h.

◆ CharacterStated_const_w

using momentum::CharacterStated_const_w = ::std::weak_ptr<const CharacterStated>

Definition at line 107 of file fwd.h.

◆ CharacterStated_p

using momentum::CharacterStated_p = ::std::shared_ptr<CharacterStated>

Definition at line 102 of file fwd.h.

◆ CharacterStated_u

using momentum::CharacterStated_u = ::std::unique_ptr<CharacterStated>

Definition at line 103 of file fwd.h.

◆ CharacterStated_w

using momentum::CharacterStated_w = ::std::weak_ptr<CharacterStated>

Definition at line 104 of file fwd.h.

◆ CollisionBox

Definition at line 187 of file fwd.h.

◆ CollisionBox_const_p

using momentum::CollisionBox_const_p = ::std::shared_ptr<const CollisionBox>

Definition at line 193 of file fwd.h.

◆ CollisionBox_const_u

using momentum::CollisionBox_const_u = ::std::unique_ptr<const CollisionBox>

Definition at line 194 of file fwd.h.

◆ CollisionBox_const_w

using momentum::CollisionBox_const_w = ::std::weak_ptr<const CollisionBox>

Definition at line 195 of file fwd.h.

◆ CollisionBox_p

using momentum::CollisionBox_p = ::std::shared_ptr<CollisionBox>

Definition at line 190 of file fwd.h.

◆ CollisionBox_u

using momentum::CollisionBox_u = ::std::unique_ptr<CollisionBox>

Definition at line 191 of file fwd.h.

◆ CollisionBox_w

using momentum::CollisionBox_w = ::std::weak_ptr<CollisionBox>

Definition at line 192 of file fwd.h.

◆ CollisionBoxd

Definition at line 188 of file fwd.h.

◆ CollisionBoxd_const_p

using momentum::CollisionBoxd_const_p = ::std::shared_ptr<const CollisionBoxd>

Definition at line 200 of file fwd.h.

◆ CollisionBoxd_const_u

using momentum::CollisionBoxd_const_u = ::std::unique_ptr<const CollisionBoxd>

Definition at line 201 of file fwd.h.

◆ CollisionBoxd_const_w

using momentum::CollisionBoxd_const_w = ::std::weak_ptr<const CollisionBoxd>

Definition at line 202 of file fwd.h.

◆ CollisionBoxd_p

using momentum::CollisionBoxd_p = ::std::shared_ptr<CollisionBoxd>

Definition at line 197 of file fwd.h.

◆ CollisionBoxd_u

using momentum::CollisionBoxd_u = ::std::unique_ptr<CollisionBoxd>

Definition at line 198 of file fwd.h.

◆ CollisionBoxd_w

using momentum::CollisionBoxd_w = ::std::weak_ptr<CollisionBoxd>

Definition at line 199 of file fwd.h.

◆ CollisionDebugEntry

◆ CollisionDebugEntryd

◆ CollisionEllipsoid

Definition at line 168 of file fwd.h.

◆ CollisionEllipsoid_const_p

using momentum::CollisionEllipsoid_const_p = ::std::shared_ptr<const CollisionEllipsoid>

Definition at line 174 of file fwd.h.

◆ CollisionEllipsoid_const_u

using momentum::CollisionEllipsoid_const_u = ::std::unique_ptr<const CollisionEllipsoid>

Definition at line 175 of file fwd.h.

◆ CollisionEllipsoid_const_w

Definition at line 176 of file fwd.h.

◆ CollisionEllipsoid_p

Definition at line 171 of file fwd.h.

◆ CollisionEllipsoid_u

Definition at line 172 of file fwd.h.

◆ CollisionEllipsoid_w

Definition at line 173 of file fwd.h.

◆ CollisionEllipsoidd

Definition at line 169 of file fwd.h.

◆ CollisionEllipsoidd_const_p

Definition at line 181 of file fwd.h.

◆ CollisionEllipsoidd_const_u

Definition at line 182 of file fwd.h.

◆ CollisionEllipsoidd_const_w

Definition at line 183 of file fwd.h.

◆ CollisionEllipsoidd_p

Definition at line 178 of file fwd.h.

◆ CollisionEllipsoidd_u

Definition at line 179 of file fwd.h.

◆ CollisionEllipsoidd_w

Definition at line 180 of file fwd.h.

◆ CollisionErrorFunction

Definition at line 546 of file fwd.h.

◆ CollisionErrorFunction_const_p

Definition at line 552 of file fwd.h.

◆ CollisionErrorFunction_const_u

Definition at line 553 of file fwd.h.

◆ CollisionErrorFunction_const_w

Definition at line 554 of file fwd.h.

◆ CollisionErrorFunction_p

Definition at line 549 of file fwd.h.

◆ CollisionErrorFunction_u

Definition at line 550 of file fwd.h.

◆ CollisionErrorFunction_w

Definition at line 551 of file fwd.h.

◆ CollisionErrorFunctiond

Definition at line 547 of file fwd.h.

◆ CollisionErrorFunctiond_const_p

Definition at line 559 of file fwd.h.

◆ CollisionErrorFunctiond_const_u

Definition at line 560 of file fwd.h.

◆ CollisionErrorFunctiond_const_w

Definition at line 561 of file fwd.h.

◆ CollisionErrorFunctiond_p

Definition at line 556 of file fwd.h.

◆ CollisionErrorFunctiond_u

Definition at line 557 of file fwd.h.

◆ CollisionErrorFunctiond_w

Definition at line 558 of file fwd.h.

◆ CollisionErrorFunctionStateless

◆ CollisionErrorFunctionStateless_const_p

Initial value:
::std::shared_ptr<const CollisionErrorFunctionStateless>

Definition at line 571 of file fwd.h.

◆ CollisionErrorFunctionStateless_const_u

Initial value:
::std::unique_ptr<const CollisionErrorFunctionStateless>

Definition at line 573 of file fwd.h.

◆ CollisionErrorFunctionStateless_const_w

Initial value:
::std::weak_ptr<const CollisionErrorFunctionStateless>

Definition at line 575 of file fwd.h.

◆ CollisionErrorFunctionStateless_p

Definition at line 568 of file fwd.h.

◆ CollisionErrorFunctionStateless_u

Definition at line 569 of file fwd.h.

◆ CollisionErrorFunctionStateless_w

Definition at line 570 of file fwd.h.

◆ CollisionErrorFunctionStatelessd

◆ CollisionErrorFunctionStatelessd_const_p

Initial value:
::std::shared_ptr<const CollisionErrorFunctionStatelessd>

Definition at line 581 of file fwd.h.

◆ CollisionErrorFunctionStatelessd_const_u

Initial value:
::std::unique_ptr<const CollisionErrorFunctionStatelessd>

Definition at line 583 of file fwd.h.

◆ CollisionErrorFunctionStatelessd_const_w

Initial value:
::std::weak_ptr<const CollisionErrorFunctionStatelessd>

Definition at line 585 of file fwd.h.

◆ CollisionErrorFunctionStatelessd_p

Definition at line 578 of file fwd.h.

◆ CollisionErrorFunctionStatelessd_u

Definition at line 579 of file fwd.h.

◆ CollisionErrorFunctionStatelessd_w

Definition at line 580 of file fwd.h.

◆ CollisionGeometry

Definition at line 354 of file collision_geometry.h.

◆ CollisionGeometryd

Definition at line 355 of file collision_geometry.h.

◆ CollisionGeometryState

Definition at line 130 of file fwd.h.

◆ CollisionGeometryState_const_p

Definition at line 136 of file fwd.h.

◆ CollisionGeometryState_const_u

Definition at line 137 of file fwd.h.

◆ CollisionGeometryState_const_w

Definition at line 138 of file fwd.h.

◆ CollisionGeometryState_p

Definition at line 133 of file fwd.h.

◆ CollisionGeometryState_u

Definition at line 134 of file fwd.h.

◆ CollisionGeometryState_w

Definition at line 135 of file fwd.h.

◆ CollisionGeometryStated

Definition at line 131 of file fwd.h.

◆ CollisionGeometryStated_const_p

Definition at line 143 of file fwd.h.

◆ CollisionGeometryStated_const_u

Definition at line 144 of file fwd.h.

◆ CollisionGeometryStated_const_w

Definition at line 145 of file fwd.h.

◆ CollisionGeometryStated_p

Definition at line 140 of file fwd.h.

◆ CollisionGeometryStated_u

Definition at line 141 of file fwd.h.

◆ CollisionGeometryStated_w

Definition at line 142 of file fwd.h.

◆ CollisionGeometryT

template<typename S>
using momentum::CollisionGeometryT = std::vector<CollisionPrimitiveT<S>>

Collection of primitives representing a character's collision geometry.

Definition at line 352 of file collision_geometry.h.

◆ CollisionOverlapResult

Definition at line 149 of file fwd.h.

◆ CollisionOverlapResult_const_p

Definition at line 155 of file fwd.h.

◆ CollisionOverlapResult_const_u

Definition at line 156 of file fwd.h.

◆ CollisionOverlapResult_const_w

Definition at line 157 of file fwd.h.

◆ CollisionOverlapResult_p

Definition at line 152 of file fwd.h.

◆ CollisionOverlapResult_u

Definition at line 153 of file fwd.h.

◆ CollisionOverlapResult_w

Definition at line 154 of file fwd.h.

◆ CollisionOverlapResultd

Definition at line 150 of file fwd.h.

◆ CollisionOverlapResultd_const_p

Definition at line 162 of file fwd.h.

◆ CollisionOverlapResultd_const_u

Definition at line 163 of file fwd.h.

◆ CollisionOverlapResultd_const_w

Definition at line 164 of file fwd.h.

◆ CollisionOverlapResultd_p

Definition at line 159 of file fwd.h.

◆ CollisionOverlapResultd_u

Definition at line 160 of file fwd.h.

◆ CollisionOverlapResultd_w

Definition at line 161 of file fwd.h.

◆ CollisionPrimitive

Definition at line 111 of file fwd.h.

◆ CollisionPrimitive_const_p

using momentum::CollisionPrimitive_const_p = ::std::shared_ptr<const CollisionPrimitive>

Definition at line 117 of file fwd.h.

◆ CollisionPrimitive_const_u

using momentum::CollisionPrimitive_const_u = ::std::unique_ptr<const CollisionPrimitive>

Definition at line 118 of file fwd.h.

◆ CollisionPrimitive_const_w

Definition at line 119 of file fwd.h.

◆ CollisionPrimitive_p

Definition at line 114 of file fwd.h.

◆ CollisionPrimitive_u

Definition at line 115 of file fwd.h.

◆ CollisionPrimitive_w

Definition at line 116 of file fwd.h.

◆ CollisionPrimitived

Definition at line 112 of file fwd.h.

◆ CollisionPrimitived_const_p

Definition at line 124 of file fwd.h.

◆ CollisionPrimitived_const_u

Definition at line 125 of file fwd.h.

◆ CollisionPrimitived_const_w

Definition at line 126 of file fwd.h.

◆ CollisionPrimitived_p

Definition at line 121 of file fwd.h.

◆ CollisionPrimitived_u

Definition at line 122 of file fwd.h.

◆ CollisionPrimitived_w

Definition at line 123 of file fwd.h.

◆ ColorArray

Per-vertex RGB color in [0, 255] bytes (size: 3 x numVertices).

Definition at line 423 of file types.h.

◆ ConstraintData_const_p

using momentum::ConstraintData_const_p = ::std::shared_ptr<const ConstraintData>

Definition at line 23 of file fwd.h.

◆ ConstraintData_const_u

using momentum::ConstraintData_const_u = ::std::unique_ptr<const ConstraintData>

Definition at line 24 of file fwd.h.

◆ ConstraintData_const_w

using momentum::ConstraintData_const_w = ::std::weak_ptr<const ConstraintData>

Definition at line 25 of file fwd.h.

◆ ConstraintData_p

using momentum::ConstraintData_p = ::std::shared_ptr<ConstraintData>

Definition at line 20 of file fwd.h.

◆ ConstraintData_u

using momentum::ConstraintData_u = ::std::unique_ptr<ConstraintData>

Definition at line 21 of file fwd.h.

◆ ConstraintData_w

using momentum::ConstraintData_w = ::std::weak_ptr<ConstraintData>

Definition at line 22 of file fwd.h.

◆ ConstraintDataList

A list of ConstraintData.

Definition at line 47 of file error_function_types.h.

◆ DistanceErrorFunction

Definition at line 590 of file fwd.h.

◆ DistanceErrorFunction_const_p

Definition at line 596 of file fwd.h.

◆ DistanceErrorFunction_const_u

Definition at line 597 of file fwd.h.

◆ DistanceErrorFunction_const_w

Definition at line 598 of file fwd.h.

◆ DistanceErrorFunction_p

Definition at line 593 of file fwd.h.

◆ DistanceErrorFunction_u

Definition at line 594 of file fwd.h.

◆ DistanceErrorFunction_w

Definition at line 595 of file fwd.h.

◆ DistanceErrorFunctiond

Definition at line 591 of file fwd.h.

◆ DistanceErrorFunctiond_const_p

Definition at line 603 of file fwd.h.

◆ DistanceErrorFunctiond_const_u

Definition at line 604 of file fwd.h.

◆ DistanceErrorFunctiond_const_w

Definition at line 605 of file fwd.h.

◆ DistanceErrorFunctiond_p

Definition at line 600 of file fwd.h.

◆ DistanceErrorFunctiond_u

Definition at line 601 of file fwd.h.

◆ DistanceErrorFunctiond_w

Definition at line 602 of file fwd.h.

◆ DoubleP

using momentum::DoubleP = Packet<double>

Definition at line 76 of file simd.h.

◆ ErrorFunctionDerivatives

Definition at line 20 of file fwd.h.

◆ ErrorFunctionDerivatives_const_p

Definition at line 26 of file fwd.h.

◆ ErrorFunctionDerivatives_const_u

Definition at line 27 of file fwd.h.

◆ ErrorFunctionDerivatives_const_w

Definition at line 28 of file fwd.h.

◆ ErrorFunctionDerivatives_p

Definition at line 23 of file fwd.h.

◆ ErrorFunctionDerivatives_u

Definition at line 24 of file fwd.h.

◆ ErrorFunctionDerivatives_w

Definition at line 25 of file fwd.h.

◆ ErrorFunctionDerivativesd

Definition at line 21 of file fwd.h.

◆ ErrorFunctionDerivativesd_const_p

Definition at line 33 of file fwd.h.

◆ ErrorFunctionDerivativesd_const_u

Definition at line 34 of file fwd.h.

◆ ErrorFunctionDerivativesd_const_w

Definition at line 35 of file fwd.h.

◆ ErrorFunctionDerivativesd_p

Definition at line 30 of file fwd.h.

◆ ErrorFunctionDerivativesd_u

Definition at line 31 of file fwd.h.

◆ ErrorFunctionDerivativesd_w

Definition at line 32 of file fwd.h.

◆ FbxUserProperties

using momentum::FbxUserProperties = std::map<std::string, FbxUserPropertyValue>

User-defined FBX properties, keyed by property name.

These are written to a node as user-defined properties, which is how DCC tools surface them as an object's "custom attributes". Note this is unrelated to the FBX SDK's FbxNodeAttribute, which is the geometry attached to a node.

Definition at line 32 of file fbx_builder.h.

◆ FbxUserPropertyValue

using momentum::FbxUserPropertyValue = std::variant<bool, int, float, std::string>

Value of a user-defined FBX property.

Definition at line 25 of file fbx_builder.h.

◆ FiniteDifferenceSequenceErrorFunction

◆ FiniteDifferenceSequenceErrorFunction_const_p

Initial value:
::std::shared_ptr<const FiniteDifferenceSequenceErrorFunction>

Definition at line 117 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunction_const_u

Initial value:
::std::unique_ptr<const FiniteDifferenceSequenceErrorFunction>

Definition at line 119 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunction_const_w

Initial value:
::std::weak_ptr<const FiniteDifferenceSequenceErrorFunction>

Definition at line 121 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunction_p

Initial value:
::std::shared_ptr<FiniteDifferenceSequenceErrorFunction>

Definition at line 111 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunction_u

Initial value:
::std::unique_ptr<FiniteDifferenceSequenceErrorFunction>

Definition at line 113 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunction_w

Initial value:
::std::weak_ptr<FiniteDifferenceSequenceErrorFunction>

Definition at line 115 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunctiond

◆ FiniteDifferenceSequenceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FiniteDifferenceSequenceErrorFunctiond>

Definition at line 130 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FiniteDifferenceSequenceErrorFunctiond>

Definition at line 132 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FiniteDifferenceSequenceErrorFunctiond>

Definition at line 134 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunctiond_p

Initial value:
::std::shared_ptr<FiniteDifferenceSequenceErrorFunctiond>

Definition at line 124 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunctiond_u

Initial value:
::std::unique_ptr<FiniteDifferenceSequenceErrorFunctiond>

Definition at line 126 of file fwd.h.

◆ FiniteDifferenceSequenceErrorFunctiond_w

Initial value:
::std::weak_ptr<FiniteDifferenceSequenceErrorFunctiond>

Definition at line 128 of file fwd.h.

◆ FixedAxisAngleErrorFunction

◆ FixedAxisAngleErrorFunction_const_p

Definition at line 615 of file fwd.h.

◆ FixedAxisAngleErrorFunction_const_u

Definition at line 616 of file fwd.h.

◆ FixedAxisAngleErrorFunction_const_w

Definition at line 617 of file fwd.h.

◆ FixedAxisAngleErrorFunction_p

Definition at line 612 of file fwd.h.

◆ FixedAxisAngleErrorFunction_u

Definition at line 613 of file fwd.h.

◆ FixedAxisAngleErrorFunction_w

Definition at line 614 of file fwd.h.

◆ FixedAxisAngleErrorFunctiond

◆ FixedAxisAngleErrorFunctiond_const_p

Definition at line 622 of file fwd.h.

◆ FixedAxisAngleErrorFunctiond_const_u

Definition at line 623 of file fwd.h.

◆ FixedAxisAngleErrorFunctiond_const_w

Definition at line 624 of file fwd.h.

◆ FixedAxisAngleErrorFunctiond_p

Definition at line 619 of file fwd.h.

◆ FixedAxisAngleErrorFunctiond_u

Definition at line 620 of file fwd.h.

◆ FixedAxisAngleErrorFunctiond_w

Definition at line 621 of file fwd.h.

◆ FixedAxisCosErrorFunction

Definition at line 628 of file fwd.h.

◆ FixedAxisCosErrorFunction_const_p

Definition at line 634 of file fwd.h.

◆ FixedAxisCosErrorFunction_const_u

Definition at line 635 of file fwd.h.

◆ FixedAxisCosErrorFunction_const_w

Definition at line 636 of file fwd.h.

◆ FixedAxisCosErrorFunction_p

Definition at line 631 of file fwd.h.

◆ FixedAxisCosErrorFunction_u

Definition at line 632 of file fwd.h.

◆ FixedAxisCosErrorFunction_w

Definition at line 633 of file fwd.h.

◆ FixedAxisCosErrorFunctiond

Definition at line 629 of file fwd.h.

◆ FixedAxisCosErrorFunctiond_const_p

Definition at line 641 of file fwd.h.

◆ FixedAxisCosErrorFunctiond_const_u

Definition at line 642 of file fwd.h.

◆ FixedAxisCosErrorFunctiond_const_w

Definition at line 643 of file fwd.h.

◆ FixedAxisCosErrorFunctiond_p

Definition at line 638 of file fwd.h.

◆ FixedAxisCosErrorFunctiond_u

Definition at line 639 of file fwd.h.

◆ FixedAxisCosErrorFunctiond_w

Definition at line 640 of file fwd.h.

◆ FixedAxisData

Definition at line 112 of file fwd.h.

◆ FixedAxisData_const_p

using momentum::FixedAxisData_const_p = ::std::shared_ptr<const FixedAxisData>

Definition at line 118 of file fwd.h.

◆ FixedAxisData_const_u

using momentum::FixedAxisData_const_u = ::std::unique_ptr<const FixedAxisData>

Definition at line 119 of file fwd.h.

◆ FixedAxisData_const_w

using momentum::FixedAxisData_const_w = ::std::weak_ptr<const FixedAxisData>

Definition at line 120 of file fwd.h.

◆ FixedAxisData_p

using momentum::FixedAxisData_p = ::std::shared_ptr<FixedAxisData>

Definition at line 115 of file fwd.h.

◆ FixedAxisData_u

using momentum::FixedAxisData_u = ::std::unique_ptr<FixedAxisData>

Definition at line 116 of file fwd.h.

◆ FixedAxisData_w

using momentum::FixedAxisData_w = ::std::weak_ptr<FixedAxisData>

Definition at line 117 of file fwd.h.

◆ FixedAxisDatad

Definition at line 113 of file fwd.h.

◆ FixedAxisDatad_const_p

using momentum::FixedAxisDatad_const_p = ::std::shared_ptr<const FixedAxisDatad>

Definition at line 125 of file fwd.h.

◆ FixedAxisDatad_const_u

using momentum::FixedAxisDatad_const_u = ::std::unique_ptr<const FixedAxisDatad>

Definition at line 126 of file fwd.h.

◆ FixedAxisDatad_const_w

using momentum::FixedAxisDatad_const_w = ::std::weak_ptr<const FixedAxisDatad>

Definition at line 127 of file fwd.h.

◆ FixedAxisDatad_p

using momentum::FixedAxisDatad_p = ::std::shared_ptr<FixedAxisDatad>

Definition at line 122 of file fwd.h.

◆ FixedAxisDatad_u

using momentum::FixedAxisDatad_u = ::std::unique_ptr<FixedAxisDatad>

Definition at line 123 of file fwd.h.

◆ FixedAxisDatad_w

using momentum::FixedAxisDatad_w = ::std::weak_ptr<FixedAxisDatad>

Definition at line 124 of file fwd.h.

◆ FixedAxisDiffErrorFunction

Definition at line 647 of file fwd.h.

◆ FixedAxisDiffErrorFunction_const_p

Definition at line 653 of file fwd.h.

◆ FixedAxisDiffErrorFunction_const_u

Definition at line 654 of file fwd.h.

◆ FixedAxisDiffErrorFunction_const_w

Definition at line 655 of file fwd.h.

◆ FixedAxisDiffErrorFunction_p

Definition at line 650 of file fwd.h.

◆ FixedAxisDiffErrorFunction_u

Definition at line 651 of file fwd.h.

◆ FixedAxisDiffErrorFunction_w

Definition at line 652 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond

Definition at line 648 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond_const_p

Definition at line 660 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond_const_u

Definition at line 661 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond_const_w

Definition at line 662 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond_p

Definition at line 657 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond_u

Definition at line 658 of file fwd.h.

◆ FixedAxisDiffErrorFunctiond_w

Definition at line 659 of file fwd.h.

◆ FloatP

using momentum::FloatP = Packet<float>

Definition at line 75 of file simd.h.

◆ FloorErrorFunction

Definition at line 666 of file fwd.h.

◆ FloorErrorFunction_const_p

using momentum::FloorErrorFunction_const_p = ::std::shared_ptr<const FloorErrorFunction>

Definition at line 672 of file fwd.h.

◆ FloorErrorFunction_const_u

using momentum::FloorErrorFunction_const_u = ::std::unique_ptr<const FloorErrorFunction>

Definition at line 673 of file fwd.h.

◆ FloorErrorFunction_const_w

Definition at line 674 of file fwd.h.

◆ FloorErrorFunction_p

Definition at line 669 of file fwd.h.

◆ FloorErrorFunction_u

Definition at line 670 of file fwd.h.

◆ FloorErrorFunction_w

Definition at line 671 of file fwd.h.

◆ FloorErrorFunctiond

Definition at line 667 of file fwd.h.

◆ FloorErrorFunctiond_const_p

Definition at line 679 of file fwd.h.

◆ FloorErrorFunctiond_const_u

Definition at line 680 of file fwd.h.

◆ FloorErrorFunctiond_const_w

Definition at line 681 of file fwd.h.

◆ FloorErrorFunctiond_p

Definition at line 676 of file fwd.h.

◆ FloorErrorFunctiond_u

Definition at line 677 of file fwd.h.

◆ FloorErrorFunctiond_w

Definition at line 678 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunction

◆ FullyDifferentiableDistanceErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableDistanceErrorFunction>

Definition at line 124 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableDistanceErrorFunction>

Definition at line 126 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableDistanceErrorFunction>

Definition at line 128 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiableDistanceErrorFunction>

Definition at line 118 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiableDistanceErrorFunction>

Definition at line 120 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiableDistanceErrorFunction>

Definition at line 122 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunctiond

◆ FullyDifferentiableDistanceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableDistanceErrorFunctiond>

Definition at line 137 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableDistanceErrorFunctiond>

Definition at line 139 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableDistanceErrorFunctiond>

Definition at line 141 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiableDistanceErrorFunctiond>

Definition at line 131 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiableDistanceErrorFunctiond>

Definition at line 133 of file fwd.h.

◆ FullyDifferentiableDistanceErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiableDistanceErrorFunctiond>

Definition at line 135 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunction

◆ FullyDifferentiableMotionErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableMotionErrorFunction>

Definition at line 155 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableMotionErrorFunction>

Definition at line 157 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableMotionErrorFunction>

Definition at line 159 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiableMotionErrorFunction>

Definition at line 149 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiableMotionErrorFunction>

Definition at line 151 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiableMotionErrorFunction>

Definition at line 153 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunctiond

◆ FullyDifferentiableMotionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableMotionErrorFunctiond>

Definition at line 168 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableMotionErrorFunctiond>

Definition at line 170 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableMotionErrorFunctiond>

Definition at line 172 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiableMotionErrorFunctiond>

Definition at line 162 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiableMotionErrorFunctiond>

Definition at line 164 of file fwd.h.

◆ FullyDifferentiableMotionErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiableMotionErrorFunctiond>

Definition at line 166 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunction

◆ FullyDifferentiableOrientationErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableOrientationErrorFunction>

Definition at line 188 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableOrientationErrorFunction>

Definition at line 190 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableOrientationErrorFunction>

Definition at line 192 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiableOrientationErrorFunction>

Definition at line 182 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiableOrientationErrorFunction>

Definition at line 184 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiableOrientationErrorFunction>

Definition at line 186 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunctiond

◆ FullyDifferentiableOrientationErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableOrientationErrorFunctiond>

Definition at line 201 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableOrientationErrorFunctiond>

Definition at line 203 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableOrientationErrorFunctiond>

Definition at line 205 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiableOrientationErrorFunctiond>

Definition at line 195 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiableOrientationErrorFunctiond>

Definition at line 197 of file fwd.h.

◆ FullyDifferentiableOrientationErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiableOrientationErrorFunctiond>

Definition at line 199 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunction

◆ FullyDifferentiablePosePriorErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiablePosePriorErrorFunction>

Definition at line 220 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiablePosePriorErrorFunction>

Definition at line 222 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiablePosePriorErrorFunction>

Definition at line 224 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiablePosePriorErrorFunction>

Definition at line 214 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiablePosePriorErrorFunction>

Definition at line 216 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiablePosePriorErrorFunction>

Definition at line 218 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunctiond

◆ FullyDifferentiablePosePriorErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiablePosePriorErrorFunctiond>

Definition at line 233 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiablePosePriorErrorFunctiond>

Definition at line 235 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiablePosePriorErrorFunctiond>

Definition at line 237 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiablePosePriorErrorFunctiond>

Definition at line 227 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiablePosePriorErrorFunctiond>

Definition at line 229 of file fwd.h.

◆ FullyDifferentiablePosePriorErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiablePosePriorErrorFunctiond>

Definition at line 231 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunction

◆ FullyDifferentiablePositionErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiablePositionErrorFunction>

Definition at line 251 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiablePositionErrorFunction>

Definition at line 253 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiablePositionErrorFunction>

Definition at line 255 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiablePositionErrorFunction>

Definition at line 245 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiablePositionErrorFunction>

Definition at line 247 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiablePositionErrorFunction>

Definition at line 249 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunctiond

◆ FullyDifferentiablePositionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiablePositionErrorFunctiond>

Definition at line 264 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiablePositionErrorFunctiond>

Definition at line 266 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiablePositionErrorFunctiond>

Definition at line 268 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiablePositionErrorFunctiond>

Definition at line 258 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiablePositionErrorFunctiond>

Definition at line 260 of file fwd.h.

◆ FullyDifferentiablePositionErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiablePositionErrorFunctiond>

Definition at line 262 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunction

◆ FullyDifferentiableProjectionErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableProjectionErrorFunction>

Definition at line 284 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableProjectionErrorFunction>

Definition at line 286 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableProjectionErrorFunction>

Definition at line 288 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiableProjectionErrorFunction>

Definition at line 278 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiableProjectionErrorFunction>

Definition at line 280 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiableProjectionErrorFunction>

Definition at line 282 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunctiond

◆ FullyDifferentiableProjectionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableProjectionErrorFunctiond>

Definition at line 297 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableProjectionErrorFunctiond>

Definition at line 299 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableProjectionErrorFunctiond>

Definition at line 301 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiableProjectionErrorFunctiond>

Definition at line 291 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiableProjectionErrorFunctiond>

Definition at line 293 of file fwd.h.

◆ FullyDifferentiableProjectionErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiableProjectionErrorFunctiond>

Definition at line 295 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunction

◆ FullyDifferentiableSkeletonErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableSkeletonErrorFunction>

Definition at line 315 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableSkeletonErrorFunction>

Definition at line 317 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableSkeletonErrorFunction>

Definition at line 319 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiableSkeletonErrorFunction>

Definition at line 309 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiableSkeletonErrorFunction>

Definition at line 311 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiableSkeletonErrorFunction>

Definition at line 313 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunctiond

◆ FullyDifferentiableSkeletonErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableSkeletonErrorFunctiond>

Definition at line 328 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableSkeletonErrorFunctiond>

Definition at line 330 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableSkeletonErrorFunctiond>

Definition at line 332 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiableSkeletonErrorFunctiond>

Definition at line 322 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiableSkeletonErrorFunctiond>

Definition at line 324 of file fwd.h.

◆ FullyDifferentiableSkeletonErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiableSkeletonErrorFunctiond>

Definition at line 326 of file fwd.h.

◆ FullyDifferentiableStateErrorFunction

◆ FullyDifferentiableStateErrorFunction_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableStateErrorFunction>

Definition at line 346 of file fwd.h.

◆ FullyDifferentiableStateErrorFunction_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableStateErrorFunction>

Definition at line 348 of file fwd.h.

◆ FullyDifferentiableStateErrorFunction_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableStateErrorFunction>

Definition at line 350 of file fwd.h.

◆ FullyDifferentiableStateErrorFunction_p

Initial value:
::std::shared_ptr<FullyDifferentiableStateErrorFunction>

Definition at line 340 of file fwd.h.

◆ FullyDifferentiableStateErrorFunction_u

Initial value:
::std::unique_ptr<FullyDifferentiableStateErrorFunction>

Definition at line 342 of file fwd.h.

◆ FullyDifferentiableStateErrorFunction_w

Initial value:
::std::weak_ptr<FullyDifferentiableStateErrorFunction>

Definition at line 344 of file fwd.h.

◆ FullyDifferentiableStateErrorFunctiond

◆ FullyDifferentiableStateErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const FullyDifferentiableStateErrorFunctiond>

Definition at line 359 of file fwd.h.

◆ FullyDifferentiableStateErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const FullyDifferentiableStateErrorFunctiond>

Definition at line 361 of file fwd.h.

◆ FullyDifferentiableStateErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const FullyDifferentiableStateErrorFunctiond>

Definition at line 363 of file fwd.h.

◆ FullyDifferentiableStateErrorFunctiond_p

Initial value:
::std::shared_ptr<FullyDifferentiableStateErrorFunctiond>

Definition at line 353 of file fwd.h.

◆ FullyDifferentiableStateErrorFunctiond_u

Initial value:
::std::unique_ptr<FullyDifferentiableStateErrorFunctiond>

Definition at line 355 of file fwd.h.

◆ FullyDifferentiableStateErrorFunctiond_w

Initial value:
::std::weak_ptr<FullyDifferentiableStateErrorFunctiond>

Definition at line 357 of file fwd.h.

◆ GapFillConfig_const_p

using momentum::GapFillConfig_const_p = ::std::shared_ptr<const GapFillConfig>

Definition at line 23 of file fwd.h.

◆ GapFillConfig_const_u

using momentum::GapFillConfig_const_u = ::std::unique_ptr<const GapFillConfig>

Definition at line 24 of file fwd.h.

◆ GapFillConfig_const_w

using momentum::GapFillConfig_const_w = ::std::weak_ptr<const GapFillConfig>

Definition at line 25 of file fwd.h.

◆ GapFillConfig_p

using momentum::GapFillConfig_p = ::std::shared_ptr<GapFillConfig>

Definition at line 20 of file fwd.h.

◆ GapFillConfig_u

using momentum::GapFillConfig_u = ::std::unique_ptr<GapFillConfig>

Definition at line 21 of file fwd.h.

◆ GapFillConfig_w

using momentum::GapFillConfig_w = ::std::weak_ptr<GapFillConfig>

Definition at line 22 of file fwd.h.

◆ GaussNewtonSolver

Definition at line 88 of file fwd.h.

◆ GaussNewtonSolver_const_p

using momentum::GaussNewtonSolver_const_p = ::std::shared_ptr<const GaussNewtonSolver>

Definition at line 94 of file fwd.h.

◆ GaussNewtonSolver_const_u

using momentum::GaussNewtonSolver_const_u = ::std::unique_ptr<const GaussNewtonSolver>

Definition at line 95 of file fwd.h.

◆ GaussNewtonSolver_const_w

Definition at line 96 of file fwd.h.

◆ GaussNewtonSolver_p

Definition at line 91 of file fwd.h.

◆ GaussNewtonSolver_u

Definition at line 92 of file fwd.h.

◆ GaussNewtonSolver_w

Definition at line 93 of file fwd.h.

◆ GaussNewtonSolverd

Definition at line 89 of file fwd.h.

◆ GaussNewtonSolverd_const_p

using momentum::GaussNewtonSolverd_const_p = ::std::shared_ptr<const GaussNewtonSolverd>

Definition at line 101 of file fwd.h.

◆ GaussNewtonSolverd_const_u

using momentum::GaussNewtonSolverd_const_u = ::std::unique_ptr<const GaussNewtonSolverd>

Definition at line 102 of file fwd.h.

◆ GaussNewtonSolverd_const_w

Definition at line 103 of file fwd.h.

◆ GaussNewtonSolverd_p

Definition at line 98 of file fwd.h.

◆ GaussNewtonSolverd_u

Definition at line 99 of file fwd.h.

◆ GaussNewtonSolverd_w

Definition at line 100 of file fwd.h.

◆ GaussNewtonSolverOptions_const_p

Definition at line 32 of file fwd.h.

◆ GaussNewtonSolverOptions_const_u

Definition at line 33 of file fwd.h.

◆ GaussNewtonSolverOptions_const_w

Definition at line 34 of file fwd.h.

◆ GaussNewtonSolverOptions_p

Definition at line 29 of file fwd.h.

◆ GaussNewtonSolverOptions_u

Definition at line 30 of file fwd.h.

◆ GaussNewtonSolverOptions_w

Definition at line 31 of file fwd.h.

◆ GaussNewtonSolverQR

Definition at line 685 of file fwd.h.

◆ GaussNewtonSolverQR_const_p

Definition at line 691 of file fwd.h.

◆ GaussNewtonSolverQR_const_u

Definition at line 692 of file fwd.h.

◆ GaussNewtonSolverQR_const_w

Definition at line 693 of file fwd.h.

◆ GaussNewtonSolverQR_p

Definition at line 688 of file fwd.h.

◆ GaussNewtonSolverQR_u

Definition at line 689 of file fwd.h.

◆ GaussNewtonSolverQR_w

Definition at line 690 of file fwd.h.

◆ GaussNewtonSolverQRd

Definition at line 686 of file fwd.h.

◆ GaussNewtonSolverQRd_const_p

Definition at line 698 of file fwd.h.

◆ GaussNewtonSolverQRd_const_u

Definition at line 699 of file fwd.h.

◆ GaussNewtonSolverQRd_const_w

Definition at line 700 of file fwd.h.

◆ GaussNewtonSolverQRd_p

Definition at line 695 of file fwd.h.

◆ GaussNewtonSolverQRd_u

Definition at line 696 of file fwd.h.

◆ GaussNewtonSolverQRd_w

Definition at line 697 of file fwd.h.

◆ GaussNewtonSolverQROptions_const_p

Definition at line 32 of file fwd.h.

◆ GaussNewtonSolverQROptions_const_u

Definition at line 33 of file fwd.h.

◆ GaussNewtonSolverQROptions_const_w

Definition at line 34 of file fwd.h.

◆ GaussNewtonSolverQROptions_p

Definition at line 29 of file fwd.h.

◆ GaussNewtonSolverQROptions_u

Definition at line 30 of file fwd.h.

◆ GaussNewtonSolverQROptions_w

Definition at line 31 of file fwd.h.

◆ GeneralizedLoss

Definition at line 115 of file fwd.h.

◆ GeneralizedLoss_const_p

using momentum::GeneralizedLoss_const_p = ::std::shared_ptr<const GeneralizedLoss>

Definition at line 121 of file fwd.h.

◆ GeneralizedLoss_const_u

using momentum::GeneralizedLoss_const_u = ::std::unique_ptr<const GeneralizedLoss>

Definition at line 122 of file fwd.h.

◆ GeneralizedLoss_const_w

using momentum::GeneralizedLoss_const_w = ::std::weak_ptr<const GeneralizedLoss>

Definition at line 123 of file fwd.h.

◆ GeneralizedLoss_p

using momentum::GeneralizedLoss_p = ::std::shared_ptr<GeneralizedLoss>

Definition at line 118 of file fwd.h.

◆ GeneralizedLoss_u

using momentum::GeneralizedLoss_u = ::std::unique_ptr<GeneralizedLoss>

Definition at line 119 of file fwd.h.

◆ GeneralizedLoss_w

using momentum::GeneralizedLoss_w = ::std::weak_ptr<GeneralizedLoss>

Definition at line 120 of file fwd.h.

◆ GeneralizedLossd

Definition at line 116 of file fwd.h.

◆ GeneralizedLossd_const_p

using momentum::GeneralizedLossd_const_p = ::std::shared_ptr<const GeneralizedLossd>

Definition at line 128 of file fwd.h.

◆ GeneralizedLossd_const_u

using momentum::GeneralizedLossd_const_u = ::std::unique_ptr<const GeneralizedLossd>

Definition at line 129 of file fwd.h.

◆ GeneralizedLossd_const_w

using momentum::GeneralizedLossd_const_w = ::std::weak_ptr<const GeneralizedLossd>

Definition at line 130 of file fwd.h.

◆ GeneralizedLossd_p

using momentum::GeneralizedLossd_p = ::std::shared_ptr<GeneralizedLossd>

Definition at line 125 of file fwd.h.

◆ GeneralizedLossd_u

using momentum::GeneralizedLossd_u = ::std::unique_ptr<GeneralizedLossd>

Definition at line 126 of file fwd.h.

◆ GeneralizedLossd_w

Definition at line 127 of file fwd.h.

◆ GloveConfig_const_p

using momentum::GloveConfig_const_p = ::std::shared_ptr<const GloveConfig>

Definition at line 32 of file fwd.h.

◆ GloveConfig_const_u

using momentum::GloveConfig_const_u = ::std::unique_ptr<const GloveConfig>

Definition at line 33 of file fwd.h.

◆ GloveConfig_const_w

using momentum::GloveConfig_const_w = ::std::weak_ptr<const GloveConfig>

Definition at line 34 of file fwd.h.

◆ GloveConfig_p

using momentum::GloveConfig_p = ::std::shared_ptr<GloveConfig>

Definition at line 29 of file fwd.h.

◆ GloveConfig_u

using momentum::GloveConfig_u = ::std::unique_ptr<GloveConfig>

Definition at line 30 of file fwd.h.

◆ GloveConfig_w

using momentum::GloveConfig_w = ::std::weak_ptr<GloveConfig>

Definition at line 31 of file fwd.h.

◆ GloveFrameData

Per-frame collection of glove sensor observations.

Definition at line 49 of file glove_utils.h.

◆ GloveOffset_const_p

using momentum::GloveOffset_const_p = ::std::shared_ptr<const GloveOffset>

Definition at line 41 of file fwd.h.

◆ GloveOffset_const_u

using momentum::GloveOffset_const_u = ::std::unique_ptr<const GloveOffset>

Definition at line 42 of file fwd.h.

◆ GloveOffset_const_w

using momentum::GloveOffset_const_w = ::std::weak_ptr<const GloveOffset>

Definition at line 43 of file fwd.h.

◆ GloveOffset_p

using momentum::GloveOffset_p = ::std::shared_ptr<GloveOffset>

Definition at line 38 of file fwd.h.

◆ GloveOffset_u

using momentum::GloveOffset_u = ::std::unique_ptr<GloveOffset>

Definition at line 39 of file fwd.h.

◆ GloveOffset_w

using momentum::GloveOffset_w = ::std::weak_ptr<GloveOffset>

Definition at line 40 of file fwd.h.

◆ GloveSensorObservation_const_p

Definition at line 50 of file fwd.h.

◆ GloveSensorObservation_const_u

Definition at line 51 of file fwd.h.

◆ GloveSensorObservation_const_w

Definition at line 52 of file fwd.h.

◆ GloveSensorObservation_p

Definition at line 47 of file fwd.h.

◆ GloveSensorObservation_u

Definition at line 48 of file fwd.h.

◆ GloveSensorObservation_w

Definition at line 49 of file fwd.h.

◆ GradientDescentSolver

Definition at line 126 of file fwd.h.

◆ GradientDescentSolver_const_p

Definition at line 132 of file fwd.h.

◆ GradientDescentSolver_const_u

Definition at line 133 of file fwd.h.

◆ GradientDescentSolver_const_w

Definition at line 134 of file fwd.h.

◆ GradientDescentSolver_p

Definition at line 129 of file fwd.h.

◆ GradientDescentSolver_u

Definition at line 130 of file fwd.h.

◆ GradientDescentSolver_w

Definition at line 131 of file fwd.h.

◆ GradientDescentSolverd

Definition at line 127 of file fwd.h.

◆ GradientDescentSolverd_const_p

Definition at line 139 of file fwd.h.

◆ GradientDescentSolverd_const_u

Definition at line 140 of file fwd.h.

◆ GradientDescentSolverd_const_w

Definition at line 141 of file fwd.h.

◆ GradientDescentSolverd_p

Definition at line 136 of file fwd.h.

◆ GradientDescentSolverd_u

Definition at line 137 of file fwd.h.

◆ GradientDescentSolverd_w

Definition at line 138 of file fwd.h.

◆ HeightErrorFunction

Definition at line 704 of file fwd.h.

◆ HeightErrorFunction_const_p

Definition at line 710 of file fwd.h.

◆ HeightErrorFunction_const_u

Definition at line 711 of file fwd.h.

◆ HeightErrorFunction_const_w

Definition at line 712 of file fwd.h.

◆ HeightErrorFunction_p

Definition at line 707 of file fwd.h.

◆ HeightErrorFunction_u

Definition at line 708 of file fwd.h.

◆ HeightErrorFunction_w

Definition at line 709 of file fwd.h.

◆ HeightErrorFunctiond

Definition at line 705 of file fwd.h.

◆ HeightErrorFunctiond_const_p

Definition at line 717 of file fwd.h.

◆ HeightErrorFunctiond_const_u

Definition at line 718 of file fwd.h.

◆ HeightErrorFunctiond_const_w

Definition at line 719 of file fwd.h.

◆ HeightErrorFunctiond_p

Definition at line 714 of file fwd.h.

◆ HeightErrorFunctiond_u

Definition at line 715 of file fwd.h.

◆ HeightErrorFunctiond_w

Definition at line 716 of file fwd.h.

◆ IdentityParameters

typedef std::tuple< std::vector< std::string >, JointParameters > momentum::IdentityParameters = std::tuple<std::vector<std::string>, JointParameters>

A tuple of skeleton joint names and identity parameters.

The identity parameters represent bone offsets and bone scales that are added to the joint states (the local transform for each joint relative to its parent) during the FK step. The identity parameter vector has size numSkeletonJoints * kParametersPerJoint.

Definition at line 179 of file types.h.

◆ IndexMatrix

Initial value:
Eigen::Matrix<uint32_t, Eigen::Dynamic, kMaxSkinJoints, Eigen::AutoAlign | Eigen::RowMajor>

Joint indices that influence each vertex.

Row = vertex, column = influence slot (fixed at kMaxSkinJoints). Row-major to keep per-vertex influences contiguous.

Definition at line 23 of file skin_weights.h.

◆ IntP

using momentum::IntP = Packet<int>

Definition at line 77 of file simd.h.

◆ InverseParameterTransform

◆ InverseParameterTransformd

◆ Isometry3

template<typename T>
using momentum::Isometry3 = Eigen::Transform<T, 3, Eigen::Isometry>

3D rigid transform (rotation + translation, no scale or shear).

Preferred for joint/world transforms that should preserve distances.

Definition at line 397 of file types.h.

◆ Isometry3d

Definition at line 399 of file types.h.

◆ Isometry3f

Definition at line 398 of file types.h.

◆ JerkSequenceErrorFunction

Definition at line 139 of file fwd.h.

◆ JerkSequenceErrorFunction_const_p

Definition at line 145 of file fwd.h.

◆ JerkSequenceErrorFunction_const_u

Definition at line 146 of file fwd.h.

◆ JerkSequenceErrorFunction_const_w

Definition at line 147 of file fwd.h.

◆ JerkSequenceErrorFunction_p

Definition at line 142 of file fwd.h.

◆ JerkSequenceErrorFunction_u

Definition at line 143 of file fwd.h.

◆ JerkSequenceErrorFunction_w

Definition at line 144 of file fwd.h.

◆ JerkSequenceErrorFunctiond

Definition at line 140 of file fwd.h.

◆ JerkSequenceErrorFunctiond_const_p

Definition at line 152 of file fwd.h.

◆ JerkSequenceErrorFunctiond_const_u

Definition at line 153 of file fwd.h.

◆ JerkSequenceErrorFunctiond_const_w

Definition at line 154 of file fwd.h.

◆ JerkSequenceErrorFunctiond_p

Definition at line 149 of file fwd.h.

◆ JerkSequenceErrorFunctiond_u

Definition at line 150 of file fwd.h.

◆ JerkSequenceErrorFunctiond_w

Definition at line 151 of file fwd.h.

◆ Joint

using momentum::Joint = JointT<float>

Definition at line 206 of file fwd.h.

◆ Joint_const_p

using momentum::Joint_const_p = ::std::shared_ptr<const Joint>

Definition at line 212 of file fwd.h.

◆ Joint_const_u

using momentum::Joint_const_u = ::std::unique_ptr<const Joint>

Definition at line 213 of file fwd.h.

◆ Joint_const_w

using momentum::Joint_const_w = ::std::weak_ptr<const Joint>

Definition at line 214 of file fwd.h.

◆ Joint_p

using momentum::Joint_p = ::std::shared_ptr<Joint>

Definition at line 209 of file fwd.h.

◆ Joint_u

using momentum::Joint_u = ::std::unique_ptr<Joint>

Definition at line 210 of file fwd.h.

◆ Joint_w

using momentum::Joint_w = ::std::weak_ptr<Joint>

Definition at line 211 of file fwd.h.

◆ Jointd

using momentum::Jointd = JointT<double>

Definition at line 207 of file fwd.h.

◆ Jointd_const_p

using momentum::Jointd_const_p = ::std::shared_ptr<const Jointd>

Definition at line 219 of file fwd.h.

◆ Jointd_const_u

using momentum::Jointd_const_u = ::std::unique_ptr<const Jointd>

Definition at line 220 of file fwd.h.

◆ Jointd_const_w

using momentum::Jointd_const_w = ::std::weak_ptr<const Jointd>

Definition at line 221 of file fwd.h.

◆ Jointd_p

using momentum::Jointd_p = ::std::shared_ptr<Jointd>

Definition at line 216 of file fwd.h.

◆ Jointd_u

using momentum::Jointd_u = ::std::unique_ptr<Jointd>

Definition at line 217 of file fwd.h.

◆ Jointd_w

using momentum::Jointd_w = ::std::weak_ptr<Jointd>

Definition at line 218 of file fwd.h.

◆ JointList

Definition at line 81 of file joint.h.

◆ JointListd

Definition at line 82 of file joint.h.

◆ JointListT

template<typename T>
using momentum::JointListT = std::vector<JointT<T>>

A list of joints (e.g., of a skeleton).

Definition at line 80 of file joint.h.

◆ JointParameters

Definition at line 135 of file types.h.

◆ JointParametersd

Definition at line 136 of file types.h.

◆ JointPhysicalProperties_const_p

Definition at line 50 of file fwd.h.

◆ JointPhysicalProperties_const_u

Definition at line 51 of file fwd.h.

◆ JointPhysicalProperties_const_w

Definition at line 52 of file fwd.h.

◆ JointPhysicalProperties_p

Definition at line 47 of file fwd.h.

◆ JointPhysicalProperties_u

Definition at line 48 of file fwd.h.

◆ JointPhysicalProperties_w

Definition at line 49 of file fwd.h.

◆ JointState

typedef JointStateT< float > momentum::JointState = JointStateT<float>

Definition at line 225 of file fwd.h.

◆ JointState_const_p

using momentum::JointState_const_p = ::std::shared_ptr<const JointState>

Definition at line 231 of file fwd.h.

◆ JointState_const_u

using momentum::JointState_const_u = ::std::unique_ptr<const JointState>

Definition at line 232 of file fwd.h.

◆ JointState_const_w

using momentum::JointState_const_w = ::std::weak_ptr<const JointState>

Definition at line 233 of file fwd.h.

◆ JointState_p

using momentum::JointState_p = ::std::shared_ptr<JointState>

Definition at line 228 of file fwd.h.

◆ JointState_u

using momentum::JointState_u = ::std::unique_ptr<JointState>

Definition at line 229 of file fwd.h.

◆ JointState_w

using momentum::JointState_w = ::std::weak_ptr<JointState>

Definition at line 230 of file fwd.h.

◆ JointStated

Definition at line 226 of file fwd.h.

◆ JointStated_const_p

using momentum::JointStated_const_p = ::std::shared_ptr<const JointStated>

Definition at line 238 of file fwd.h.

◆ JointStated_const_u

using momentum::JointStated_const_u = ::std::unique_ptr<const JointStated>

Definition at line 239 of file fwd.h.

◆ JointStated_const_w

using momentum::JointStated_const_w = ::std::weak_ptr<const JointStated>

Definition at line 240 of file fwd.h.

◆ JointStated_p

using momentum::JointStated_p = ::std::shared_ptr<JointStated>

Definition at line 235 of file fwd.h.

◆ JointStated_u

using momentum::JointStated_u = ::std::unique_ptr<JointStated>

Definition at line 236 of file fwd.h.

◆ JointStated_w

using momentum::JointStated_w = ::std::weak_ptr<JointStated>

Definition at line 237 of file fwd.h.

◆ JointStateList

Definition at line 276 of file joint_state.h.

◆ JointStateListd

Definition at line 149 of file types.h.

◆ JointStateListT

template<typename T>
using momentum::JointStateListT = std::vector<JointStateT<T>>

Structure describing the state of all joints in a skeleton.

Definition at line 273 of file joint_state.h.

◆ JointToJointDistanceErrorFunction

◆ JointToJointDistanceErrorFunction_const_p

Initial value:
::std::shared_ptr<const JointToJointDistanceErrorFunction>

Definition at line 729 of file fwd.h.

◆ JointToJointDistanceErrorFunction_const_u

Initial value:
::std::unique_ptr<const JointToJointDistanceErrorFunction>

Definition at line 731 of file fwd.h.

◆ JointToJointDistanceErrorFunction_const_w

Initial value:
::std::weak_ptr<const JointToJointDistanceErrorFunction>

Definition at line 733 of file fwd.h.

◆ JointToJointDistanceErrorFunction_p

Definition at line 726 of file fwd.h.

◆ JointToJointDistanceErrorFunction_u

Definition at line 727 of file fwd.h.

◆ JointToJointDistanceErrorFunction_w

Definition at line 728 of file fwd.h.

◆ JointToJointDistanceErrorFunctiond

◆ JointToJointDistanceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const JointToJointDistanceErrorFunctiond>

Definition at line 739 of file fwd.h.

◆ JointToJointDistanceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const JointToJointDistanceErrorFunctiond>

Definition at line 741 of file fwd.h.

◆ JointToJointDistanceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const JointToJointDistanceErrorFunctiond>

Definition at line 743 of file fwd.h.

◆ JointToJointDistanceErrorFunctiond_p

Definition at line 736 of file fwd.h.

◆ JointToJointDistanceErrorFunctiond_u

Definition at line 737 of file fwd.h.

◆ JointToJointDistanceErrorFunctiond_w

◆ JointToJointOrientationData

◆ JointToJointOrientationData_const_p

Definition at line 137 of file fwd.h.

◆ JointToJointOrientationData_const_u

Definition at line 138 of file fwd.h.

◆ JointToJointOrientationData_const_w

Definition at line 139 of file fwd.h.

◆ JointToJointOrientationData_p

Definition at line 134 of file fwd.h.

◆ JointToJointOrientationData_u

Definition at line 135 of file fwd.h.

◆ JointToJointOrientationData_w

Definition at line 136 of file fwd.h.

◆ JointToJointOrientationDatad

◆ JointToJointOrientationDatad_const_p

Definition at line 144 of file fwd.h.

◆ JointToJointOrientationDatad_const_u

Definition at line 145 of file fwd.h.

◆ JointToJointOrientationDatad_const_w

Definition at line 146 of file fwd.h.

◆ JointToJointOrientationDatad_p

Definition at line 141 of file fwd.h.

◆ JointToJointOrientationDatad_u

Definition at line 142 of file fwd.h.

◆ JointToJointOrientationDatad_w

Definition at line 143 of file fwd.h.

◆ JointToJointOrientationErrorFunction

◆ JointToJointOrientationErrorFunction_const_p

Initial value:
::std::shared_ptr<const JointToJointOrientationErrorFunction>

Definition at line 782 of file fwd.h.

◆ JointToJointOrientationErrorFunction_const_u

Initial value:
::std::unique_ptr<const JointToJointOrientationErrorFunction>

Definition at line 784 of file fwd.h.

◆ JointToJointOrientationErrorFunction_const_w

Initial value:
::std::weak_ptr<const JointToJointOrientationErrorFunction>

Definition at line 786 of file fwd.h.

◆ JointToJointOrientationErrorFunction_p

Initial value:
::std::shared_ptr<JointToJointOrientationErrorFunction>

Definition at line 776 of file fwd.h.

◆ JointToJointOrientationErrorFunction_u

Initial value:
::std::unique_ptr<JointToJointOrientationErrorFunction>

Definition at line 778 of file fwd.h.

◆ JointToJointOrientationErrorFunction_w

Initial value:
::std::weak_ptr<JointToJointOrientationErrorFunction>

Definition at line 780 of file fwd.h.

◆ JointToJointOrientationErrorFunctiond

◆ JointToJointOrientationErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const JointToJointOrientationErrorFunctiond>

Definition at line 795 of file fwd.h.

◆ JointToJointOrientationErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const JointToJointOrientationErrorFunctiond>

Definition at line 797 of file fwd.h.

◆ JointToJointOrientationErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const JointToJointOrientationErrorFunctiond>

Definition at line 799 of file fwd.h.

◆ JointToJointOrientationErrorFunctiond_p

Initial value:
::std::shared_ptr<JointToJointOrientationErrorFunctiond>

Definition at line 789 of file fwd.h.

◆ JointToJointOrientationErrorFunctiond_u

Initial value:
::std::unique_ptr<JointToJointOrientationErrorFunctiond>

Definition at line 791 of file fwd.h.

◆ JointToJointOrientationErrorFunctiond_w

Initial value:
::std::weak_ptr<JointToJointOrientationErrorFunctiond>

Definition at line 793 of file fwd.h.

◆ JointToJointPositionErrorFunction

◆ JointToJointPositionErrorFunction_const_p

Initial value:
::std::shared_ptr<const JointToJointPositionErrorFunction>

Definition at line 754 of file fwd.h.

◆ JointToJointPositionErrorFunction_const_u

Initial value:
::std::unique_ptr<const JointToJointPositionErrorFunction>

Definition at line 756 of file fwd.h.

◆ JointToJointPositionErrorFunction_const_w

Initial value:
::std::weak_ptr<const JointToJointPositionErrorFunction>

Definition at line 758 of file fwd.h.

◆ JointToJointPositionErrorFunction_p

Definition at line 751 of file fwd.h.

◆ JointToJointPositionErrorFunction_u

Definition at line 752 of file fwd.h.

◆ JointToJointPositionErrorFunction_w

Definition at line 753 of file fwd.h.

◆ JointToJointPositionErrorFunctiond

◆ JointToJointPositionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const JointToJointPositionErrorFunctiond>

Definition at line 764 of file fwd.h.

◆ JointToJointPositionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const JointToJointPositionErrorFunctiond>

Definition at line 766 of file fwd.h.

◆ JointToJointPositionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const JointToJointPositionErrorFunctiond>

Definition at line 768 of file fwd.h.

◆ JointToJointPositionErrorFunctiond_p

Definition at line 761 of file fwd.h.

◆ JointToJointPositionErrorFunctiond_u

Definition at line 762 of file fwd.h.

◆ JointToJointPositionErrorFunctiond_w

◆ JointToJointSequenceConstraint

◆ JointToJointSequenceConstraint_const_p

Initial value:
::std::shared_ptr<const JointToJointSequenceConstraint>

Definition at line 64 of file fwd.h.

◆ JointToJointSequenceConstraint_const_u

Initial value:
::std::unique_ptr<const JointToJointSequenceConstraint>

Definition at line 66 of file fwd.h.

◆ JointToJointSequenceConstraint_const_w

Initial value:
::std::weak_ptr<const JointToJointSequenceConstraint>

Definition at line 68 of file fwd.h.

◆ JointToJointSequenceConstraint_p

Definition at line 61 of file fwd.h.

◆ JointToJointSequenceConstraint_u

Definition at line 62 of file fwd.h.

◆ JointToJointSequenceConstraint_w

Definition at line 63 of file fwd.h.

◆ JointToJointSequenceConstraintd

◆ JointToJointSequenceConstraintd_const_p

Initial value:
::std::shared_ptr<const JointToJointSequenceConstraintd>

Definition at line 74 of file fwd.h.

◆ JointToJointSequenceConstraintd_const_u

Initial value:
::std::unique_ptr<const JointToJointSequenceConstraintd>

Definition at line 76 of file fwd.h.

◆ JointToJointSequenceConstraintd_const_w

Initial value:
::std::weak_ptr<const JointToJointSequenceConstraintd>

Definition at line 78 of file fwd.h.

◆ JointToJointSequenceConstraintd_p

Definition at line 71 of file fwd.h.

◆ JointToJointSequenceConstraintd_u

Definition at line 72 of file fwd.h.

◆ JointToJointSequenceConstraintd_w

Definition at line 73 of file fwd.h.

◆ JointToJointSequenceErrorFunction

◆ JointToJointSequenceErrorFunction_const_p

Initial value:
::std::shared_ptr<const JointToJointSequenceErrorFunction>

Definition at line 164 of file fwd.h.

◆ JointToJointSequenceErrorFunction_const_u

Initial value:
::std::unique_ptr<const JointToJointSequenceErrorFunction>

Definition at line 166 of file fwd.h.

◆ JointToJointSequenceErrorFunction_const_w

Initial value:
::std::weak_ptr<const JointToJointSequenceErrorFunction>

Definition at line 168 of file fwd.h.

◆ JointToJointSequenceErrorFunction_p

Definition at line 161 of file fwd.h.

◆ JointToJointSequenceErrorFunction_u

Definition at line 162 of file fwd.h.

◆ JointToJointSequenceErrorFunction_w

Definition at line 163 of file fwd.h.

◆ JointToJointSequenceErrorFunctiond

◆ JointToJointSequenceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const JointToJointSequenceErrorFunctiond>

Definition at line 174 of file fwd.h.

◆ JointToJointSequenceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const JointToJointSequenceErrorFunctiond>

Definition at line 176 of file fwd.h.

◆ JointToJointSequenceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const JointToJointSequenceErrorFunctiond>

Definition at line 178 of file fwd.h.

◆ JointToJointSequenceErrorFunctiond_p

Definition at line 171 of file fwd.h.

◆ JointToJointSequenceErrorFunctiond_u

Definition at line 172 of file fwd.h.

◆ JointToJointSequenceErrorFunctiond_w

◆ JointVector

Definition at line 28 of file types.h.

◆ JointVectorT

template<typename T>
using momentum::JointVectorT = Eigen::Matrix<T, kParametersPerJoint, 1>

Definition at line 27 of file types.h.

◆ LimitErrorFunction

Definition at line 804 of file fwd.h.

◆ LimitErrorFunction_const_p

using momentum::LimitErrorFunction_const_p = ::std::shared_ptr<const LimitErrorFunction>

Definition at line 810 of file fwd.h.

◆ LimitErrorFunction_const_u

using momentum::LimitErrorFunction_const_u = ::std::unique_ptr<const LimitErrorFunction>

Definition at line 811 of file fwd.h.

◆ LimitErrorFunction_const_w

Definition at line 812 of file fwd.h.

◆ LimitErrorFunction_p

Definition at line 807 of file fwd.h.

◆ LimitErrorFunction_u

Definition at line 808 of file fwd.h.

◆ LimitErrorFunction_w

Definition at line 809 of file fwd.h.

◆ LimitErrorFunctiond

Definition at line 805 of file fwd.h.

◆ LimitErrorFunctiond_const_p

Definition at line 817 of file fwd.h.

◆ LimitErrorFunctiond_const_u

Definition at line 818 of file fwd.h.

◆ LimitErrorFunctiond_const_w

Definition at line 819 of file fwd.h.

◆ LimitErrorFunctiond_p

Definition at line 814 of file fwd.h.

◆ LimitErrorFunctiond_u

Definition at line 815 of file fwd.h.

◆ LimitErrorFunctiond_w

Definition at line 816 of file fwd.h.

◆ Line

template<typename Scalar, int Dim>
using momentum::Line = Eigen::ParametrizedLine<Scalar, Dim>

Definition at line 46 of file types.h.

◆ Locator_const_p

using momentum::Locator_const_p = ::std::shared_ptr<const Locator>

Definition at line 59 of file fwd.h.

◆ Locator_const_u

using momentum::Locator_const_u = ::std::unique_ptr<const Locator>

Definition at line 60 of file fwd.h.

◆ Locator_const_w

using momentum::Locator_const_w = ::std::weak_ptr<const Locator>

Definition at line 61 of file fwd.h.

◆ Locator_p

using momentum::Locator_p = ::std::shared_ptr<Locator>

Definition at line 56 of file fwd.h.

◆ Locator_u

using momentum::Locator_u = ::std::unique_ptr<Locator>

Definition at line 57 of file fwd.h.

◆ Locator_w

using momentum::Locator_w = ::std::weak_ptr<Locator>

Definition at line 58 of file fwd.h.

◆ LocatorList

using momentum::LocatorList = std::vector<Locator>

A collection of locators attached to a skeleton.

Definition at line 79 of file locator.h.

◆ LowRankCovarianceMatrix

Definition at line 96 of file fwd.h.

◆ LowRankCovarianceMatrix_const_p

Definition at line 102 of file fwd.h.

◆ LowRankCovarianceMatrix_const_u

Definition at line 103 of file fwd.h.

◆ LowRankCovarianceMatrix_const_w

Definition at line 104 of file fwd.h.

◆ LowRankCovarianceMatrix_p

Definition at line 99 of file fwd.h.

◆ LowRankCovarianceMatrix_u

Definition at line 100 of file fwd.h.

◆ LowRankCovarianceMatrix_w

Definition at line 101 of file fwd.h.

◆ LowRankCovarianceMatrixd

Definition at line 97 of file fwd.h.

◆ LowRankCovarianceMatrixd_const_p

Definition at line 109 of file fwd.h.

◆ LowRankCovarianceMatrixd_const_u

Definition at line 110 of file fwd.h.

◆ LowRankCovarianceMatrixd_const_w

Definition at line 111 of file fwd.h.

◆ LowRankCovarianceMatrixd_p

Definition at line 106 of file fwd.h.

◆ LowRankCovarianceMatrixd_u

Definition at line 107 of file fwd.h.

◆ LowRankCovarianceMatrixd_w

Definition at line 108 of file fwd.h.

◆ Map

template<class T>
using momentum::Map = Eigen::Map<T>

Definition at line 40 of file types.h.

◆ Matrix0

template<typename T>
using momentum::Matrix0 = Eigen::Matrix<T, 0, 0>

Definition at line 90 of file types.h.

◆ Matrix0b

using momentum::Matrix0b = Matrix0<std::uint8_t>

Definition at line 120 of file types.h.

◆ Matrix0d

using momentum::Matrix0d = Matrix0<double>

Definition at line 112 of file types.h.

◆ Matrix0f

using momentum::Matrix0f = Matrix0<float>

Definition at line 104 of file types.h.

◆ Matrix0i

using momentum::Matrix0i = Matrix0<std::int32_t>

Definition at line 144 of file types.h.

◆ Matrix0s

using momentum::Matrix0s = Matrix0<std::uint16_t>

Definition at line 128 of file types.h.

◆ Matrix0u

using momentum::Matrix0u = Matrix0<std::uint32_t>

Definition at line 136 of file types.h.

◆ Matrix1

template<typename T>
using momentum::Matrix1 = Eigen::Matrix<T, 1, 1>

Definition at line 92 of file types.h.

◆ Matrix1b

using momentum::Matrix1b = Matrix1<std::uint8_t>

Definition at line 121 of file types.h.

◆ Matrix1d

using momentum::Matrix1d = Matrix1<double>

Definition at line 113 of file types.h.

◆ Matrix1f

using momentum::Matrix1f = Matrix1<float>

Definition at line 105 of file types.h.

◆ Matrix1i

using momentum::Matrix1i = Matrix1<std::int32_t>

Definition at line 145 of file types.h.

◆ Matrix1s

using momentum::Matrix1s = Matrix1<std::uint16_t>

Definition at line 129 of file types.h.

◆ Matrix1u

using momentum::Matrix1u = Matrix1<std::uint32_t>

Definition at line 137 of file types.h.

◆ Matrix2

template<typename T>
using momentum::Matrix2 = Eigen::Matrix<T, 2, 2>

Definition at line 94 of file types.h.

◆ Matrix2b

using momentum::Matrix2b = Matrix2<std::uint8_t>

Definition at line 122 of file types.h.

◆ Matrix2d

using momentum::Matrix2d = Matrix2<double>

Definition at line 114 of file types.h.

◆ Matrix2f

using momentum::Matrix2f = Matrix2<float>

Definition at line 106 of file types.h.

◆ Matrix2i

using momentum::Matrix2i = Matrix2<std::int32_t>

Definition at line 146 of file types.h.

◆ Matrix2s

using momentum::Matrix2s = Matrix2<std::uint16_t>

Definition at line 130 of file types.h.

◆ Matrix2u

using momentum::Matrix2u = Matrix2<std::uint32_t>

Definition at line 138 of file types.h.

◆ Matrix3

template<typename T>
using momentum::Matrix3 = Eigen::Matrix<T, 3, 3>

Definition at line 96 of file types.h.

◆ Matrix3b

using momentum::Matrix3b = Matrix3<std::uint8_t>

Definition at line 123 of file types.h.

◆ Matrix3d

using momentum::Matrix3d = Matrix3<double>

Definition at line 115 of file types.h.

◆ Matrix3dP

using momentum::Matrix3dP = Matrix3P<double>

Definition at line 124 of file simd.h.

◆ Matrix3f

using momentum::Matrix3f = Matrix3<float>

Definition at line 107 of file types.h.

◆ Matrix3fP

using momentum::Matrix3fP = Matrix3P<float>

Definition at line 123 of file simd.h.

◆ Matrix3i

using momentum::Matrix3i = Matrix3<std::int32_t>

Definition at line 147 of file types.h.

◆ Matrix3P

template<typename T>
using momentum::Matrix3P = MatrixP<T, 3>

Definition at line 118 of file simd.h.

◆ Matrix3s

using momentum::Matrix3s = Matrix3<std::uint16_t>

Definition at line 131 of file types.h.

◆ Matrix3u

using momentum::Matrix3u = Matrix3<std::uint32_t>

Definition at line 139 of file types.h.

◆ Matrix3X

template<typename T>
using momentum::Matrix3X = Eigen::Matrix<T, 3, Dynamic>

3-row, dynamic-column matrix.

Each column represents a 3D point/vector; column-major storage makes per-point access contiguous in memory. Used by VertexArray, NormalArray, ColorArray, TriangleArray.

Definition at line 156 of file types.h.

◆ Matrix3Xb

using momentum::Matrix3Xb = Matrix3X<std::uint8_t>

Definition at line 159 of file types.h.

◆ Matrix3Xd

using momentum::Matrix3Xd = Matrix3X<double>

Definition at line 158 of file types.h.

◆ Matrix3Xf

using momentum::Matrix3Xf = Matrix3X<float>

Definition at line 157 of file types.h.

◆ Matrix3Xi

using momentum::Matrix3Xi = Matrix3X<std::int32_t>

Definition at line 162 of file types.h.

◆ Matrix3Xs

using momentum::Matrix3Xs = Matrix3X<std::uint16_t>

Definition at line 160 of file types.h.

◆ Matrix3Xu

using momentum::Matrix3Xu = Matrix3X<std::uint32_t>

Definition at line 161 of file types.h.

◆ Matrix4

template<typename T>
using momentum::Matrix4 = Eigen::Matrix<T, 4, 4>

Definition at line 98 of file types.h.

◆ Matrix4b

using momentum::Matrix4b = Matrix4<std::uint8_t>

Definition at line 124 of file types.h.

◆ Matrix4d

using momentum::Matrix4d = Matrix4<double>

Definition at line 116 of file types.h.

◆ Matrix4dP

using momentum::Matrix4dP = Matrix4P<double>

Definition at line 126 of file simd.h.

◆ Matrix4f

using momentum::Matrix4f = Matrix4<float>

Definition at line 108 of file types.h.

◆ Matrix4fP

using momentum::Matrix4fP = Matrix4P<float>

Definition at line 125 of file simd.h.

◆ Matrix4i

using momentum::Matrix4i = Matrix4<std::int32_t>

Definition at line 148 of file types.h.

◆ Matrix4P

template<typename T>
using momentum::Matrix4P = MatrixP<T, 4>

Definition at line 121 of file simd.h.

◆ Matrix4s

using momentum::Matrix4s = Matrix4<std::uint16_t>

Definition at line 132 of file types.h.

◆ Matrix4u

using momentum::Matrix4u = Matrix4<std::uint32_t>

Definition at line 140 of file types.h.

◆ Matrix5

template<typename T>
using momentum::Matrix5 = Eigen::Matrix<T, 5, 5>

Definition at line 100 of file types.h.

◆ Matrix5b

using momentum::Matrix5b = Matrix5<std::uint8_t>

Definition at line 125 of file types.h.

◆ Matrix5d

using momentum::Matrix5d = Matrix5<double>

Definition at line 117 of file types.h.

◆ Matrix5f

using momentum::Matrix5f = Matrix5<float>

Definition at line 109 of file types.h.

◆ Matrix5i

using momentum::Matrix5i = Matrix5<std::int32_t>

Definition at line 149 of file types.h.

◆ Matrix5s

using momentum::Matrix5s = Matrix5<std::uint16_t>

Definition at line 133 of file types.h.

◆ Matrix5u

using momentum::Matrix5u = Matrix5<std::uint32_t>

Definition at line 141 of file types.h.

◆ Matrix6

template<typename T>
using momentum::Matrix6 = Eigen::Matrix<T, 6, 6>

Definition at line 102 of file types.h.

◆ Matrix6b

using momentum::Matrix6b = Matrix6<std::uint8_t>

Definition at line 126 of file types.h.

◆ Matrix6d

using momentum::Matrix6d = Matrix6<double>

Definition at line 118 of file types.h.

◆ Matrix6f

using momentum::Matrix6f = Matrix6<float>

Definition at line 110 of file types.h.

◆ Matrix6i

using momentum::Matrix6i = Matrix6<std::int32_t>

Definition at line 150 of file types.h.

◆ Matrix6s

using momentum::Matrix6s = Matrix6<std::uint16_t>

Definition at line 134 of file types.h.

◆ Matrix6u

using momentum::Matrix6u = Matrix6<std::uint32_t>

Definition at line 142 of file types.h.

◆ MatrixP

template<typename T, int Dim>
using momentum::MatrixP = drjit::Matrix<Packet<T>, Dim>

Matrix types for SIMD packets.

Definition at line 115 of file simd.h.

◆ MatrixX

template<typename T>
using momentum::MatrixX = Eigen::Matrix<T, Dynamic, Dynamic>

Dynamic-size, column-major dense matrix.

Default Eigen storage order; suitable for general solver use where dimensions are not known at compile time.

Definition at line 80 of file types.h.

◆ MatrixX3

template<typename T>
using momentum::MatrixX3 = Eigen::Matrix<T, Dynamic, 3>

Definition at line 165 of file types.h.

◆ MatrixX3b

using momentum::MatrixX3b = MatrixX3<std::uint8_t>

Definition at line 168 of file types.h.

◆ MatrixX3d

using momentum::MatrixX3d = MatrixX3<double>

Definition at line 167 of file types.h.

◆ MatrixX3f

using momentum::MatrixX3f = MatrixX3<float>

Definition at line 166 of file types.h.

◆ MatrixX3i

using momentum::MatrixX3i = MatrixX3<std::int32_t>

Definition at line 171 of file types.h.

◆ MatrixX3s

using momentum::MatrixX3s = MatrixX3<std::uint16_t>

Definition at line 169 of file types.h.

◆ MatrixX3u

using momentum::MatrixX3u = MatrixX3<std::uint32_t>

Definition at line 170 of file types.h.

◆ MatrixXb

using momentum::MatrixXb = MatrixX<std::uint8_t>

Definition at line 84 of file types.h.

◆ MatrixXd

using momentum::MatrixXd = MatrixX<double>

Definition at line 83 of file types.h.

◆ MatrixXf

using momentum::MatrixXf = MatrixX<float>

Definition at line 82 of file types.h.

◆ MatrixXi

using momentum::MatrixXi = MatrixX<std::int32_t>

Definition at line 87 of file types.h.

◆ MatrixXs

using momentum::MatrixXs = MatrixX<std::uint16_t>

Definition at line 85 of file types.h.

◆ MatrixXu

using momentum::MatrixXu = MatrixX<std::uint32_t>

Definition at line 86 of file types.h.

◆ Mesh

using momentum::Mesh = MeshT<float>

Definition at line 20 of file fwd.h.

◆ Mesh_const_p

using momentum::Mesh_const_p = ::std::shared_ptr<const Mesh>

Definition at line 26 of file fwd.h.

◆ Mesh_const_u

using momentum::Mesh_const_u = ::std::unique_ptr<const Mesh>

Definition at line 27 of file fwd.h.

◆ Mesh_const_w

using momentum::Mesh_const_w = ::std::weak_ptr<const Mesh>

Definition at line 28 of file fwd.h.

◆ Mesh_p

using momentum::Mesh_p = ::std::shared_ptr<Mesh>

Definition at line 23 of file fwd.h.

◆ Mesh_u

using momentum::Mesh_u = ::std::unique_ptr<Mesh>

Definition at line 24 of file fwd.h.

◆ Mesh_w

using momentum::Mesh_w = ::std::weak_ptr<Mesh>

Definition at line 25 of file fwd.h.

◆ Meshd

using momentum::Meshd = MeshT<double>

Definition at line 21 of file fwd.h.

◆ Meshd_const_p

using momentum::Meshd_const_p = ::std::shared_ptr<const Meshd>

Definition at line 33 of file fwd.h.

◆ Meshd_const_u

using momentum::Meshd_const_u = ::std::unique_ptr<const Meshd>

Definition at line 34 of file fwd.h.

◆ Meshd_const_w

using momentum::Meshd_const_w = ::std::weak_ptr<const Meshd>

Definition at line 35 of file fwd.h.

◆ Meshd_p

using momentum::Meshd_p = ::std::shared_ptr<Meshd>

Definition at line 30 of file fwd.h.

◆ Meshd_u

using momentum::Meshd_u = ::std::unique_ptr<Meshd>

Definition at line 31 of file fwd.h.

◆ Meshd_w

using momentum::Meshd_w = ::std::weak_ptr<Meshd>

Definition at line 32 of file fwd.h.

◆ MeshState

Definition at line 301 of file fwd.h.

◆ MeshState_const_p

using momentum::MeshState_const_p = ::std::shared_ptr<const MeshState>

Definition at line 307 of file fwd.h.

◆ MeshState_const_u

using momentum::MeshState_const_u = ::std::unique_ptr<const MeshState>

Definition at line 308 of file fwd.h.

◆ MeshState_const_w

using momentum::MeshState_const_w = ::std::weak_ptr<const MeshState>

Definition at line 309 of file fwd.h.

◆ MeshState_p

using momentum::MeshState_p = ::std::shared_ptr<MeshState>

Definition at line 304 of file fwd.h.

◆ MeshState_u

using momentum::MeshState_u = ::std::unique_ptr<MeshState>

Definition at line 305 of file fwd.h.

◆ MeshState_w

using momentum::MeshState_w = ::std::weak_ptr<MeshState>

Definition at line 306 of file fwd.h.

◆ MeshStated

Definition at line 302 of file fwd.h.

◆ MeshStated_const_p

using momentum::MeshStated_const_p = ::std::shared_ptr<const MeshStated>

Definition at line 314 of file fwd.h.

◆ MeshStated_const_u

using momentum::MeshStated_const_u = ::std::unique_ptr<const MeshStated>

Definition at line 315 of file fwd.h.

◆ MeshStated_const_w

using momentum::MeshStated_const_w = ::std::weak_ptr<const MeshStated>

Definition at line 316 of file fwd.h.

◆ MeshStated_p

using momentum::MeshStated_p = ::std::shared_ptr<MeshStated>

Definition at line 311 of file fwd.h.

◆ MeshStated_u

using momentum::MeshStated_u = ::std::unique_ptr<MeshStated>

Definition at line 312 of file fwd.h.

◆ MeshStated_w

using momentum::MeshStated_w = ::std::weak_ptr<MeshStated>

Definition at line 313 of file fwd.h.

◆ ModelParameters

Definition at line 105 of file types.h.

◆ ModelParametersd

Definition at line 106 of file types.h.

◆ ModelParametersErrorFunction

◆ ModelParametersErrorFunction_const_p

Definition at line 829 of file fwd.h.

◆ ModelParametersErrorFunction_const_u

Definition at line 830 of file fwd.h.

◆ ModelParametersErrorFunction_const_w

Definition at line 831 of file fwd.h.

◆ ModelParametersErrorFunction_p

Definition at line 826 of file fwd.h.

◆ ModelParametersErrorFunction_u

Definition at line 827 of file fwd.h.

◆ ModelParametersErrorFunction_w

Definition at line 828 of file fwd.h.

◆ ModelParametersErrorFunctiond

◆ ModelParametersErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const ModelParametersErrorFunctiond>

Definition at line 836 of file fwd.h.

◆ ModelParametersErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const ModelParametersErrorFunctiond>

Definition at line 838 of file fwd.h.

◆ ModelParametersErrorFunctiond_const_w

Definition at line 840 of file fwd.h.

◆ ModelParametersErrorFunctiond_p

Definition at line 833 of file fwd.h.

◆ ModelParametersErrorFunctiond_u

Definition at line 834 of file fwd.h.

◆ ModelParametersErrorFunctiond_w

Definition at line 835 of file fwd.h.

◆ ModelParametersSequenceErrorFunction

◆ ModelParametersSequenceErrorFunction_const_p

Initial value:
::std::shared_ptr<const ModelParametersSequenceErrorFunction>

Definition at line 211 of file fwd.h.

◆ ModelParametersSequenceErrorFunction_const_u

Initial value:
::std::unique_ptr<const ModelParametersSequenceErrorFunction>

Definition at line 213 of file fwd.h.

◆ ModelParametersSequenceErrorFunction_const_w

Initial value:
::std::weak_ptr<const ModelParametersSequenceErrorFunction>

Definition at line 215 of file fwd.h.

◆ ModelParametersSequenceErrorFunction_p

Initial value:
::std::shared_ptr<ModelParametersSequenceErrorFunction>

Definition at line 205 of file fwd.h.

◆ ModelParametersSequenceErrorFunction_u

Initial value:
::std::unique_ptr<ModelParametersSequenceErrorFunction>

Definition at line 207 of file fwd.h.

◆ ModelParametersSequenceErrorFunction_w

Initial value:
::std::weak_ptr<ModelParametersSequenceErrorFunction>

Definition at line 209 of file fwd.h.

◆ ModelParametersSequenceErrorFunctiond

◆ ModelParametersSequenceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const ModelParametersSequenceErrorFunctiond>

Definition at line 224 of file fwd.h.

◆ ModelParametersSequenceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const ModelParametersSequenceErrorFunctiond>

Definition at line 226 of file fwd.h.

◆ ModelParametersSequenceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const ModelParametersSequenceErrorFunctiond>

Definition at line 228 of file fwd.h.

◆ ModelParametersSequenceErrorFunctiond_p

Initial value:
::std::shared_ptr<ModelParametersSequenceErrorFunctiond>

Definition at line 218 of file fwd.h.

◆ ModelParametersSequenceErrorFunctiond_u

Initial value:
::std::unique_ptr<ModelParametersSequenceErrorFunctiond>

Definition at line 220 of file fwd.h.

◆ ModelParametersSequenceErrorFunctiond_w

Initial value:
::std::weak_ptr<ModelParametersSequenceErrorFunctiond>

Definition at line 222 of file fwd.h.

◆ MotionParameters

typedef std::tuple< std::vector< std::string >, MatrixXf > 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.

Poses are stored column-major: the matrix has shape (numModelParams, numFrames).

Definition at line 173 of file types.h.

◆ Mppca

using momentum::Mppca = MppcaT<float>

Definition at line 39 of file fwd.h.

◆ Mppca_const_p

using momentum::Mppca_const_p = ::std::shared_ptr<const Mppca>

Definition at line 45 of file fwd.h.

◆ Mppca_const_u

using momentum::Mppca_const_u = ::std::unique_ptr<const Mppca>

Definition at line 46 of file fwd.h.

◆ Mppca_const_w

using momentum::Mppca_const_w = ::std::weak_ptr<const Mppca>

Definition at line 47 of file fwd.h.

◆ Mppca_p

using momentum::Mppca_p = ::std::shared_ptr<Mppca>

Definition at line 42 of file fwd.h.

◆ Mppca_u

using momentum::Mppca_u = ::std::unique_ptr<Mppca>

Definition at line 43 of file fwd.h.

◆ Mppca_w

using momentum::Mppca_w = ::std::weak_ptr<Mppca>

Definition at line 44 of file fwd.h.

◆ Mppcad

using momentum::Mppcad = MppcaT<double>

Definition at line 40 of file fwd.h.

◆ Mppcad_const_p

using momentum::Mppcad_const_p = ::std::shared_ptr<const Mppcad>

Definition at line 52 of file fwd.h.

◆ Mppcad_const_u

using momentum::Mppcad_const_u = ::std::unique_ptr<const Mppcad>

Definition at line 53 of file fwd.h.

◆ Mppcad_const_w

using momentum::Mppcad_const_w = ::std::weak_ptr<const Mppcad>

Definition at line 54 of file fwd.h.

◆ Mppcad_p

using momentum::Mppcad_p = ::std::shared_ptr<Mppcad>

Definition at line 49 of file fwd.h.

◆ Mppcad_u

using momentum::Mppcad_u = ::std::unique_ptr<Mppcad>

Definition at line 50 of file fwd.h.

◆ Mppcad_w

using momentum::Mppcad_w = ::std::weak_ptr<Mppcad>

Definition at line 51 of file fwd.h.

◆ MultiposeSolver

Definition at line 233 of file fwd.h.

◆ MultiposeSolver_const_p

using momentum::MultiposeSolver_const_p = ::std::shared_ptr<const MultiposeSolver>

Definition at line 239 of file fwd.h.

◆ MultiposeSolver_const_u

using momentum::MultiposeSolver_const_u = ::std::unique_ptr<const MultiposeSolver>

Definition at line 240 of file fwd.h.

◆ MultiposeSolver_const_w

using momentum::MultiposeSolver_const_w = ::std::weak_ptr<const MultiposeSolver>

Definition at line 241 of file fwd.h.

◆ MultiposeSolver_p

using momentum::MultiposeSolver_p = ::std::shared_ptr<MultiposeSolver>

Definition at line 236 of file fwd.h.

◆ MultiposeSolver_u

using momentum::MultiposeSolver_u = ::std::unique_ptr<MultiposeSolver>

Definition at line 237 of file fwd.h.

◆ MultiposeSolver_w

using momentum::MultiposeSolver_w = ::std::weak_ptr<MultiposeSolver>

Definition at line 238 of file fwd.h.

◆ MultiposeSolverd

Definition at line 234 of file fwd.h.

◆ MultiposeSolverd_const_p

using momentum::MultiposeSolverd_const_p = ::std::shared_ptr<const MultiposeSolverd>

Definition at line 246 of file fwd.h.

◆ MultiposeSolverd_const_u

using momentum::MultiposeSolverd_const_u = ::std::unique_ptr<const MultiposeSolverd>

Definition at line 247 of file fwd.h.

◆ MultiposeSolverd_const_w

using momentum::MultiposeSolverd_const_w = ::std::weak_ptr<const MultiposeSolverd>

Definition at line 248 of file fwd.h.

◆ MultiposeSolverd_p

using momentum::MultiposeSolverd_p = ::std::shared_ptr<MultiposeSolverd>

Definition at line 243 of file fwd.h.

◆ MultiposeSolverd_u

using momentum::MultiposeSolverd_u = ::std::unique_ptr<MultiposeSolverd>

Definition at line 244 of file fwd.h.

◆ MultiposeSolverd_w

Definition at line 245 of file fwd.h.

◆ MultiposeSolverFunction

Definition at line 252 of file fwd.h.

◆ MultiposeSolverFunction_const_p

Definition at line 258 of file fwd.h.

◆ MultiposeSolverFunction_const_u

Definition at line 259 of file fwd.h.

◆ MultiposeSolverFunction_const_w

Definition at line 260 of file fwd.h.

◆ MultiposeSolverFunction_p

Definition at line 255 of file fwd.h.

◆ MultiposeSolverFunction_u

Definition at line 256 of file fwd.h.

◆ MultiposeSolverFunction_w

Definition at line 257 of file fwd.h.

◆ MultiposeSolverFunctiond

Definition at line 253 of file fwd.h.

◆ MultiposeSolverFunctiond_const_p

Definition at line 265 of file fwd.h.

◆ MultiposeSolverFunctiond_const_u

Definition at line 266 of file fwd.h.

◆ MultiposeSolverFunctiond_const_w

Definition at line 267 of file fwd.h.

◆ MultiposeSolverFunctiond_p

Definition at line 262 of file fwd.h.

◆ MultiposeSolverFunctiond_u

Definition at line 263 of file fwd.h.

◆ MultiposeSolverFunctiond_w

Definition at line 264 of file fwd.h.

◆ MultiposeSolverOptions_const_p

Definition at line 23 of file fwd.h.

◆ MultiposeSolverOptions_const_u

Definition at line 24 of file fwd.h.

◆ MultiposeSolverOptions_const_w

Definition at line 25 of file fwd.h.

◆ MultiposeSolverOptions_p

Definition at line 20 of file fwd.h.

◆ MultiposeSolverOptions_u

Definition at line 21 of file fwd.h.

◆ MultiposeSolverOptions_w

Definition at line 22 of file fwd.h.

◆ NormalArray

Per-vertex normals matching the layout of VertexArray (size: 3 x numVertices).

Definition at line 418 of file types.h.

◆ NormalData

Definition at line 150 of file fwd.h.

◆ NormalData_const_p

using momentum::NormalData_const_p = ::std::shared_ptr<const NormalData>

Definition at line 156 of file fwd.h.

◆ NormalData_const_u

using momentum::NormalData_const_u = ::std::unique_ptr<const NormalData>

Definition at line 157 of file fwd.h.

◆ NormalData_const_w

using momentum::NormalData_const_w = ::std::weak_ptr<const NormalData>

Definition at line 158 of file fwd.h.

◆ NormalData_p

using momentum::NormalData_p = ::std::shared_ptr<NormalData>

Definition at line 153 of file fwd.h.

◆ NormalData_u

using momentum::NormalData_u = ::std::unique_ptr<NormalData>

Definition at line 154 of file fwd.h.

◆ NormalData_w

using momentum::NormalData_w = ::std::weak_ptr<NormalData>

Definition at line 155 of file fwd.h.

◆ NormalDatad

Definition at line 151 of file fwd.h.

◆ NormalDatad_const_p

using momentum::NormalDatad_const_p = ::std::shared_ptr<const NormalDatad>

Definition at line 163 of file fwd.h.

◆ NormalDatad_const_u

using momentum::NormalDatad_const_u = ::std::unique_ptr<const NormalDatad>

Definition at line 164 of file fwd.h.

◆ NormalDatad_const_w

using momentum::NormalDatad_const_w = ::std::weak_ptr<const NormalDatad>

Definition at line 165 of file fwd.h.

◆ NormalDatad_p

using momentum::NormalDatad_p = ::std::shared_ptr<NormalDatad>

Definition at line 160 of file fwd.h.

◆ NormalDatad_u

using momentum::NormalDatad_u = ::std::unique_ptr<NormalDatad>

Definition at line 161 of file fwd.h.

◆ NormalDatad_w

using momentum::NormalDatad_w = ::std::weak_ptr<NormalDatad>

Definition at line 162 of file fwd.h.

◆ NormalErrorFunction

Definition at line 844 of file fwd.h.

◆ NormalErrorFunction_const_p

Definition at line 850 of file fwd.h.

◆ NormalErrorFunction_const_u

Definition at line 851 of file fwd.h.

◆ NormalErrorFunction_const_w

Definition at line 852 of file fwd.h.

◆ NormalErrorFunction_p

Definition at line 847 of file fwd.h.

◆ NormalErrorFunction_u

Definition at line 848 of file fwd.h.

◆ NormalErrorFunction_w

Definition at line 849 of file fwd.h.

◆ NormalErrorFunctiond

Definition at line 845 of file fwd.h.

◆ NormalErrorFunctiond_const_p

Definition at line 857 of file fwd.h.

◆ NormalErrorFunctiond_const_u

Definition at line 858 of file fwd.h.

◆ NormalErrorFunctiond_const_w

Definition at line 859 of file fwd.h.

◆ NormalErrorFunctiond_p

Definition at line 854 of file fwd.h.

◆ NormalErrorFunctiond_u

Definition at line 855 of file fwd.h.

◆ NormalErrorFunctiond_w

Definition at line 856 of file fwd.h.

◆ optional_ref

template<typename T>
using momentum::optional_ref = std::optional<std::reference_wrapper<T>>

An optional of a reference.

Because optional<T&> is invalid, we need to use reference_wrapper to make the reference of T as an optional.

Definition at line 52 of file error_function_types.h.

◆ OrientationConstraint

Definition at line 39 of file fwd.h.

◆ OrientationConstraint_const_p

Definition at line 45 of file fwd.h.

◆ OrientationConstraint_const_u

Definition at line 46 of file fwd.h.

◆ OrientationConstraint_const_w

Definition at line 47 of file fwd.h.

◆ OrientationConstraint_p

Definition at line 42 of file fwd.h.

◆ OrientationConstraint_u

Definition at line 43 of file fwd.h.

◆ OrientationConstraint_w

Definition at line 44 of file fwd.h.

◆ OrientationConstraintd

Definition at line 40 of file fwd.h.

◆ OrientationConstraintd_const_p

Definition at line 52 of file fwd.h.

◆ OrientationConstraintd_const_u

Definition at line 53 of file fwd.h.

◆ OrientationConstraintd_const_w

Definition at line 54 of file fwd.h.

◆ OrientationConstraintd_p

Definition at line 49 of file fwd.h.

◆ OrientationConstraintd_u

Definition at line 50 of file fwd.h.

◆ OrientationConstraintd_w

Definition at line 51 of file fwd.h.

◆ OrientationConstraintState

Definition at line 58 of file fwd.h.

◆ OrientationConstraintState_const_p

Definition at line 64 of file fwd.h.

◆ OrientationConstraintState_const_u

Definition at line 65 of file fwd.h.

◆ OrientationConstraintState_const_w

Definition at line 66 of file fwd.h.

◆ OrientationConstraintState_p

Definition at line 61 of file fwd.h.

◆ OrientationConstraintState_u

Definition at line 62 of file fwd.h.

◆ OrientationConstraintState_w

Definition at line 63 of file fwd.h.

◆ OrientationConstraintStated

Definition at line 59 of file fwd.h.

◆ OrientationConstraintStated_const_p

Definition at line 71 of file fwd.h.

◆ OrientationConstraintStated_const_u

Definition at line 72 of file fwd.h.

◆ OrientationConstraintStated_const_w

Definition at line 73 of file fwd.h.

◆ OrientationConstraintStated_p

Definition at line 68 of file fwd.h.

◆ OrientationConstraintStated_u

Definition at line 69 of file fwd.h.

◆ OrientationConstraintStated_w

Definition at line 70 of file fwd.h.

◆ OrientationData

Definition at line 169 of file fwd.h.

◆ OrientationData_const_p

using momentum::OrientationData_const_p = ::std::shared_ptr<const OrientationData>

Definition at line 175 of file fwd.h.

◆ OrientationData_const_u

using momentum::OrientationData_const_u = ::std::unique_ptr<const OrientationData>

Definition at line 176 of file fwd.h.

◆ OrientationData_const_w

using momentum::OrientationData_const_w = ::std::weak_ptr<const OrientationData>

Definition at line 177 of file fwd.h.

◆ OrientationData_p

using momentum::OrientationData_p = ::std::shared_ptr<OrientationData>

Definition at line 172 of file fwd.h.

◆ OrientationData_u

using momentum::OrientationData_u = ::std::unique_ptr<OrientationData>

Definition at line 173 of file fwd.h.

◆ OrientationData_w

using momentum::OrientationData_w = ::std::weak_ptr<OrientationData>

Definition at line 174 of file fwd.h.

◆ OrientationDatad

Definition at line 170 of file fwd.h.

◆ OrientationDatad_const_p

using momentum::OrientationDatad_const_p = ::std::shared_ptr<const OrientationDatad>

Definition at line 182 of file fwd.h.

◆ OrientationDatad_const_u

using momentum::OrientationDatad_const_u = ::std::unique_ptr<const OrientationDatad>

Definition at line 183 of file fwd.h.

◆ OrientationDatad_const_w

using momentum::OrientationDatad_const_w = ::std::weak_ptr<const OrientationDatad>

Definition at line 184 of file fwd.h.

◆ OrientationDatad_p

using momentum::OrientationDatad_p = ::std::shared_ptr<OrientationDatad>

Definition at line 179 of file fwd.h.

◆ OrientationDatad_u

using momentum::OrientationDatad_u = ::std::unique_ptr<OrientationDatad>

Definition at line 180 of file fwd.h.

◆ OrientationDatad_w

Definition at line 181 of file fwd.h.

◆ OrientationErrorFunction

Definition at line 863 of file fwd.h.

◆ OrientationErrorFunction_const_p

Definition at line 869 of file fwd.h.

◆ OrientationErrorFunction_const_u

Definition at line 870 of file fwd.h.

◆ OrientationErrorFunction_const_w

Definition at line 871 of file fwd.h.

◆ OrientationErrorFunction_p

Definition at line 866 of file fwd.h.

◆ OrientationErrorFunction_u

Definition at line 867 of file fwd.h.

◆ OrientationErrorFunction_w

Definition at line 868 of file fwd.h.

◆ OrientationErrorFunctiond

Definition at line 864 of file fwd.h.

◆ OrientationErrorFunctiond_const_p

Definition at line 876 of file fwd.h.

◆ OrientationErrorFunctiond_const_u

Definition at line 877 of file fwd.h.

◆ OrientationErrorFunctiond_const_w

Definition at line 878 of file fwd.h.

◆ OrientationErrorFunctiond_p

Definition at line 873 of file fwd.h.

◆ OrientationErrorFunctiond_u

Definition at line 874 of file fwd.h.

◆ OrientationErrorFunctiond_w

Definition at line 875 of file fwd.h.

◆ OrientationRotDiffErrorFunction

◆ OrientationRotDiffErrorFunction_const_p

Initial value:
::std::shared_ptr<const OrientationRotDiffErrorFunction>

Definition at line 888 of file fwd.h.

◆ OrientationRotDiffErrorFunction_const_u

Initial value:
::std::unique_ptr<const OrientationRotDiffErrorFunction>

Definition at line 890 of file fwd.h.

◆ OrientationRotDiffErrorFunction_const_w

Initial value:
::std::weak_ptr<const OrientationRotDiffErrorFunction>

Definition at line 892 of file fwd.h.

◆ OrientationRotDiffErrorFunction_p

Definition at line 885 of file fwd.h.

◆ OrientationRotDiffErrorFunction_u

Definition at line 886 of file fwd.h.

◆ OrientationRotDiffErrorFunction_w

Definition at line 887 of file fwd.h.

◆ OrientationRotDiffErrorFunctiond

◆ OrientationRotDiffErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const OrientationRotDiffErrorFunctiond>

Definition at line 898 of file fwd.h.

◆ OrientationRotDiffErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const OrientationRotDiffErrorFunctiond>

Definition at line 900 of file fwd.h.

◆ OrientationRotDiffErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const OrientationRotDiffErrorFunctiond>

Definition at line 902 of file fwd.h.

◆ OrientationRotDiffErrorFunctiond_p

Definition at line 895 of file fwd.h.

◆ OrientationRotDiffErrorFunctiond_u

Definition at line 896 of file fwd.h.

◆ OrientationRotDiffErrorFunctiond_w

Definition at line 897 of file fwd.h.

◆ Packet

template<typename T>
using momentum::Packet = drjit::Packet<T, kSimdPacketSize>

A fixed-size SIMD packet of kSimdPacketSize elements of type T.

Definition at line 71 of file simd.h.

◆ ParameterLimits

Definition at line 138 of file parameter_limits.h.

◆ ParameterSet

Bitset for model parameter enablement.

Size is fixed at compile time (large enough for any character's parameter count). Used by the solver to select which parameters to optimize.

Definition at line 430 of file types.h.

◆ ParameterSets

using momentum::ParameterSets = std::unordered_map<std::string, ParameterSet>

Definition at line 31 of file parameter_transform.h.

◆ ParameterTransform

Definition at line 244 of file fwd.h.

◆ ParameterTransform_const_p

using momentum::ParameterTransform_const_p = ::std::shared_ptr<const ParameterTransform>

Definition at line 250 of file fwd.h.

◆ ParameterTransform_const_u

using momentum::ParameterTransform_const_u = ::std::unique_ptr<const ParameterTransform>

Definition at line 251 of file fwd.h.

◆ ParameterTransform_const_w

Definition at line 252 of file fwd.h.

◆ ParameterTransform_p

Definition at line 247 of file fwd.h.

◆ ParameterTransform_u

Definition at line 248 of file fwd.h.

◆ ParameterTransform_w

Definition at line 249 of file fwd.h.

◆ ParameterTransformd

Definition at line 245 of file fwd.h.

◆ ParameterTransformd_const_p

Definition at line 257 of file fwd.h.

◆ ParameterTransformd_const_u

Definition at line 258 of file fwd.h.

◆ ParameterTransformd_const_w

Definition at line 259 of file fwd.h.

◆ ParameterTransformd_p

Definition at line 254 of file fwd.h.

◆ ParameterTransformd_u

Definition at line 255 of file fwd.h.

◆ ParameterTransformd_w

Definition at line 256 of file fwd.h.

◆ PhysicalProperties

Optional physical mass properties for a character.

Definition at line 114 of file joint.h.

◆ Plane

template<typename Scalar, int Dim>
using momentum::Plane = Eigen::Hyperplane<Scalar, Dim>

Definition at line 49 of file types.h.

◆ PlaneCollisionContactPoint

◆ PlaneCollisionContactPoint_const_p

Definition at line 194 of file fwd.h.

◆ PlaneCollisionContactPoint_const_u

Definition at line 195 of file fwd.h.

◆ PlaneCollisionContactPoint_const_w

Definition at line 196 of file fwd.h.

◆ PlaneCollisionContactPoint_p

Definition at line 191 of file fwd.h.

◆ PlaneCollisionContactPoint_u

Definition at line 192 of file fwd.h.

◆ PlaneCollisionContactPoint_w

Definition at line 193 of file fwd.h.

◆ PlaneCollisionContactPointd

◆ PlaneCollisionContactPointd_const_p

Definition at line 201 of file fwd.h.

◆ PlaneCollisionContactPointd_const_u

Definition at line 202 of file fwd.h.

◆ PlaneCollisionContactPointd_const_w

Definition at line 203 of file fwd.h.

◆ PlaneCollisionContactPointd_p

Definition at line 198 of file fwd.h.

◆ PlaneCollisionContactPointd_u

Definition at line 199 of file fwd.h.

◆ PlaneCollisionContactPointd_w

Definition at line 200 of file fwd.h.

◆ PlaneCollisionDebugEntry

◆ PlaneCollisionDebugEntry_const_p

Definition at line 213 of file fwd.h.

◆ PlaneCollisionDebugEntry_const_u

Definition at line 214 of file fwd.h.

◆ PlaneCollisionDebugEntry_const_w

Definition at line 215 of file fwd.h.

◆ PlaneCollisionDebugEntry_p

Definition at line 210 of file fwd.h.

◆ PlaneCollisionDebugEntry_u

Definition at line 211 of file fwd.h.

◆ PlaneCollisionDebugEntry_w

Definition at line 212 of file fwd.h.

◆ PlaneCollisionDebugEntryd

Definition at line 208 of file fwd.h.

◆ PlaneCollisionDebugEntryd_const_p

Definition at line 220 of file fwd.h.

◆ PlaneCollisionDebugEntryd_const_u

Definition at line 221 of file fwd.h.

◆ PlaneCollisionDebugEntryd_const_w

Definition at line 222 of file fwd.h.

◆ PlaneCollisionDebugEntryd_p

Definition at line 217 of file fwd.h.

◆ PlaneCollisionDebugEntryd_u

Definition at line 218 of file fwd.h.

◆ PlaneCollisionDebugEntryd_w

Definition at line 219 of file fwd.h.

◆ PlaneCollisionErrorFunction

◆ PlaneCollisionErrorFunction_const_p

Definition at line 913 of file fwd.h.

◆ PlaneCollisionErrorFunction_const_u

Definition at line 914 of file fwd.h.

◆ PlaneCollisionErrorFunction_const_w

Definition at line 915 of file fwd.h.

◆ PlaneCollisionErrorFunction_p

Definition at line 910 of file fwd.h.

◆ PlaneCollisionErrorFunction_u

Definition at line 911 of file fwd.h.

◆ PlaneCollisionErrorFunction_w

Definition at line 912 of file fwd.h.

◆ PlaneCollisionErrorFunctiond

◆ PlaneCollisionErrorFunctiond_const_p

Definition at line 920 of file fwd.h.

◆ PlaneCollisionErrorFunctiond_const_u

Definition at line 921 of file fwd.h.

◆ PlaneCollisionErrorFunctiond_const_w

Definition at line 922 of file fwd.h.

◆ PlaneCollisionErrorFunctiond_p

Definition at line 917 of file fwd.h.

◆ PlaneCollisionErrorFunctiond_u

Definition at line 918 of file fwd.h.

◆ PlaneCollisionErrorFunctiond_w

Definition at line 919 of file fwd.h.

◆ PlaneCollisionQuery

Definition at line 926 of file fwd.h.

◆ PlaneCollisionQuery_const_p

Definition at line 932 of file fwd.h.

◆ PlaneCollisionQuery_const_u

Definition at line 933 of file fwd.h.

◆ PlaneCollisionQuery_const_w

Definition at line 934 of file fwd.h.

◆ PlaneCollisionQuery_p

Definition at line 929 of file fwd.h.

◆ PlaneCollisionQuery_u

Definition at line 930 of file fwd.h.

◆ PlaneCollisionQuery_w

Definition at line 931 of file fwd.h.

◆ PlaneCollisionQueryd

Definition at line 927 of file fwd.h.

◆ PlaneCollisionQueryd_const_p

Definition at line 939 of file fwd.h.

◆ PlaneCollisionQueryd_const_u

Definition at line 940 of file fwd.h.

◆ PlaneCollisionQueryd_const_w

Definition at line 941 of file fwd.h.

◆ PlaneCollisionQueryd_p

Definition at line 936 of file fwd.h.

◆ PlaneCollisionQueryd_u

Definition at line 937 of file fwd.h.

◆ PlaneCollisionQueryd_w

Definition at line 938 of file fwd.h.

◆ PlaneData

Definition at line 250 of file fwd.h.

◆ PlaneData_const_p

using momentum::PlaneData_const_p = ::std::shared_ptr<const PlaneData>

Definition at line 256 of file fwd.h.

◆ PlaneData_const_u

using momentum::PlaneData_const_u = ::std::unique_ptr<const PlaneData>

Definition at line 257 of file fwd.h.

◆ PlaneData_const_w

using momentum::PlaneData_const_w = ::std::weak_ptr<const PlaneData>

Definition at line 258 of file fwd.h.

◆ PlaneData_p

using momentum::PlaneData_p = ::std::shared_ptr<PlaneData>

Definition at line 253 of file fwd.h.

◆ PlaneData_u

using momentum::PlaneData_u = ::std::unique_ptr<PlaneData>

Definition at line 254 of file fwd.h.

◆ PlaneData_w

using momentum::PlaneData_w = ::std::weak_ptr<PlaneData>

Definition at line 255 of file fwd.h.

◆ PlaneDatad

Definition at line 251 of file fwd.h.

◆ PlaneDatad_const_p

using momentum::PlaneDatad_const_p = ::std::shared_ptr<const PlaneDatad>

Definition at line 263 of file fwd.h.

◆ PlaneDatad_const_u

using momentum::PlaneDatad_const_u = ::std::unique_ptr<const PlaneDatad>

Definition at line 264 of file fwd.h.

◆ PlaneDatad_const_w

using momentum::PlaneDatad_const_w = ::std::weak_ptr<const PlaneDatad>

Definition at line 265 of file fwd.h.

◆ PlaneDatad_p

using momentum::PlaneDatad_p = ::std::shared_ptr<PlaneDatad>

Definition at line 260 of file fwd.h.

◆ PlaneDatad_u

using momentum::PlaneDatad_u = ::std::unique_ptr<PlaneDatad>

Definition at line 261 of file fwd.h.

◆ PlaneDatad_w

using momentum::PlaneDatad_w = ::std::weak_ptr<PlaneDatad>

Definition at line 262 of file fwd.h.

◆ PlaneErrorFunction

Definition at line 945 of file fwd.h.

◆ PlaneErrorFunction_const_p

using momentum::PlaneErrorFunction_const_p = ::std::shared_ptr<const PlaneErrorFunction>

Definition at line 951 of file fwd.h.

◆ PlaneErrorFunction_const_u

using momentum::PlaneErrorFunction_const_u = ::std::unique_ptr<const PlaneErrorFunction>

Definition at line 952 of file fwd.h.

◆ PlaneErrorFunction_const_w

Definition at line 953 of file fwd.h.

◆ PlaneErrorFunction_p

Definition at line 948 of file fwd.h.

◆ PlaneErrorFunction_u

Definition at line 949 of file fwd.h.

◆ PlaneErrorFunction_w

Definition at line 950 of file fwd.h.

◆ PlaneErrorFunctiond

Definition at line 946 of file fwd.h.

◆ PlaneErrorFunctiond_const_p

Definition at line 958 of file fwd.h.

◆ PlaneErrorFunctiond_const_u

Definition at line 959 of file fwd.h.

◆ PlaneErrorFunctiond_const_w

Definition at line 960 of file fwd.h.

◆ PlaneErrorFunctiond_p

Definition at line 955 of file fwd.h.

◆ PlaneErrorFunctiond_u

Definition at line 956 of file fwd.h.

◆ PlaneErrorFunctiond_w

Definition at line 957 of file fwd.h.

◆ PointTriangleVertexConstraint

◆ PointTriangleVertexConstraint_const_p

Initial value:
::std::shared_ptr<const PointTriangleVertexConstraint>

Definition at line 232 of file fwd.h.

◆ PointTriangleVertexConstraint_const_u

Initial value:
::std::unique_ptr<const PointTriangleVertexConstraint>

Definition at line 234 of file fwd.h.

◆ PointTriangleVertexConstraint_const_w

Definition at line 236 of file fwd.h.

◆ PointTriangleVertexConstraint_p

Definition at line 229 of file fwd.h.

◆ PointTriangleVertexConstraint_u

Definition at line 230 of file fwd.h.

◆ PointTriangleVertexConstraint_w

Definition at line 231 of file fwd.h.

◆ PointTriangleVertexConstraintd

◆ PointTriangleVertexConstraintd_const_p

Initial value:
::std::shared_ptr<const PointTriangleVertexConstraintd>

Definition at line 241 of file fwd.h.

◆ PointTriangleVertexConstraintd_const_u

Initial value:
::std::unique_ptr<const PointTriangleVertexConstraintd>

Definition at line 243 of file fwd.h.

◆ PointTriangleVertexConstraintd_const_w

Initial value:
::std::weak_ptr<const PointTriangleVertexConstraintd>

Definition at line 245 of file fwd.h.

◆ PointTriangleVertexConstraintd_p

Definition at line 238 of file fwd.h.

◆ PointTriangleVertexConstraintd_u

Definition at line 239 of file fwd.h.

◆ PointTriangleVertexConstraintd_w

Definition at line 240 of file fwd.h.

◆ PointTriangleVertexErrorFunction

◆ PointTriangleVertexErrorFunction_const_p

Initial value:
::std::shared_ptr<const PointTriangleVertexErrorFunction>

Definition at line 970 of file fwd.h.

◆ PointTriangleVertexErrorFunction_const_u

Initial value:
::std::unique_ptr<const PointTriangleVertexErrorFunction>

Definition at line 972 of file fwd.h.

◆ PointTriangleVertexErrorFunction_const_w

Initial value:
::std::weak_ptr<const PointTriangleVertexErrorFunction>

Definition at line 974 of file fwd.h.

◆ PointTriangleVertexErrorFunction_p

Definition at line 967 of file fwd.h.

◆ PointTriangleVertexErrorFunction_u

Definition at line 968 of file fwd.h.

◆ PointTriangleVertexErrorFunction_w

Definition at line 969 of file fwd.h.

◆ PointTriangleVertexErrorFunctiond

◆ PointTriangleVertexErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const PointTriangleVertexErrorFunctiond>

Definition at line 980 of file fwd.h.

◆ PointTriangleVertexErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const PointTriangleVertexErrorFunctiond>

Definition at line 982 of file fwd.h.

◆ PointTriangleVertexErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const PointTriangleVertexErrorFunctiond>

Definition at line 984 of file fwd.h.

◆ PointTriangleVertexErrorFunctiond_p

Definition at line 977 of file fwd.h.

◆ PointTriangleVertexErrorFunctiond_u

Definition at line 978 of file fwd.h.

◆ PointTriangleVertexErrorFunctiond_w

Definition at line 979 of file fwd.h.

◆ PoseConstraints

using momentum::PoseConstraints = std::unordered_map<std::string, PoseConstraint>

Definition at line 32 of file parameter_transform.h.

◆ PosePriorErrorFunction

Definition at line 989 of file fwd.h.

◆ PosePriorErrorFunction_const_p

Definition at line 995 of file fwd.h.

◆ PosePriorErrorFunction_const_u

Definition at line 996 of file fwd.h.

◆ PosePriorErrorFunction_const_w

Definition at line 997 of file fwd.h.

◆ PosePriorErrorFunction_p

Definition at line 992 of file fwd.h.

◆ PosePriorErrorFunction_u

Definition at line 993 of file fwd.h.

◆ PosePriorErrorFunction_w

Definition at line 994 of file fwd.h.

◆ PosePriorErrorFunctiond

Definition at line 990 of file fwd.h.

◆ PosePriorErrorFunctiond_const_p

Definition at line 1002 of file fwd.h.

◆ PosePriorErrorFunctiond_const_u

Definition at line 1003 of file fwd.h.

◆ PosePriorErrorFunctiond_const_w

Definition at line 1004 of file fwd.h.

◆ PosePriorErrorFunctiond_p

Definition at line 999 of file fwd.h.

◆ PosePriorErrorFunctiond_u

Definition at line 1000 of file fwd.h.

◆ PosePriorErrorFunctiond_w

Definition at line 1001 of file fwd.h.

◆ PoseShape_const_p

using momentum::PoseShape_const_p = ::std::shared_ptr<const PoseShape>

Definition at line 68 of file fwd.h.

◆ PoseShape_const_u

using momentum::PoseShape_const_u = ::std::unique_ptr<const PoseShape>

Definition at line 69 of file fwd.h.

◆ PoseShape_const_w

using momentum::PoseShape_const_w = ::std::weak_ptr<const PoseShape>

Definition at line 70 of file fwd.h.

◆ PoseShape_p

using momentum::PoseShape_p = ::std::shared_ptr<PoseShape>

Definition at line 65 of file fwd.h.

◆ PoseShape_u

using momentum::PoseShape_u = ::std::unique_ptr<PoseShape>

Definition at line 66 of file fwd.h.

◆ PoseShape_w

using momentum::PoseShape_w = ::std::weak_ptr<PoseShape>

Definition at line 67 of file fwd.h.

◆ PoseTransformSolver

Definition at line 1008 of file fwd.h.

◆ PoseTransformSolver_const_p

Definition at line 1014 of file fwd.h.

◆ PoseTransformSolver_const_u

Definition at line 1015 of file fwd.h.

◆ PoseTransformSolver_const_w

Definition at line 1016 of file fwd.h.

◆ PoseTransformSolver_p

Definition at line 1011 of file fwd.h.

◆ PoseTransformSolver_u

Definition at line 1012 of file fwd.h.

◆ PoseTransformSolver_w

Definition at line 1013 of file fwd.h.

◆ PoseTransformSolverd

Definition at line 1009 of file fwd.h.

◆ PoseTransformSolverd_const_p

Definition at line 1021 of file fwd.h.

◆ PoseTransformSolverd_const_u

Definition at line 1022 of file fwd.h.

◆ PoseTransformSolverd_const_w

Definition at line 1023 of file fwd.h.

◆ PoseTransformSolverd_p

Definition at line 1018 of file fwd.h.

◆ PoseTransformSolverd_u

Definition at line 1019 of file fwd.h.

◆ PoseTransformSolverd_w

Definition at line 1020 of file fwd.h.

◆ PositionConstraint

Definition at line 77 of file fwd.h.

◆ PositionConstraint_const_p

using momentum::PositionConstraint_const_p = ::std::shared_ptr<const PositionConstraint>

Definition at line 83 of file fwd.h.

◆ PositionConstraint_const_u

using momentum::PositionConstraint_const_u = ::std::unique_ptr<const PositionConstraint>

Definition at line 84 of file fwd.h.

◆ PositionConstraint_const_w

Definition at line 85 of file fwd.h.

◆ PositionConstraint_p

Definition at line 80 of file fwd.h.

◆ PositionConstraint_u

Definition at line 81 of file fwd.h.

◆ PositionConstraint_w

Definition at line 82 of file fwd.h.

◆ PositionConstraintd

Definition at line 78 of file fwd.h.

◆ PositionConstraintd_const_p

Definition at line 90 of file fwd.h.

◆ PositionConstraintd_const_u

Definition at line 91 of file fwd.h.

◆ PositionConstraintd_const_w

Definition at line 92 of file fwd.h.

◆ PositionConstraintd_p

Definition at line 87 of file fwd.h.

◆ PositionConstraintd_u

Definition at line 88 of file fwd.h.

◆ PositionConstraintd_w

Definition at line 89 of file fwd.h.

◆ PositionConstraintState

Definition at line 96 of file fwd.h.

◆ PositionConstraintState_const_p

Definition at line 102 of file fwd.h.

◆ PositionConstraintState_const_u

Definition at line 103 of file fwd.h.

◆ PositionConstraintState_const_w

Definition at line 104 of file fwd.h.

◆ PositionConstraintState_p

Definition at line 99 of file fwd.h.

◆ PositionConstraintState_u

Definition at line 100 of file fwd.h.

◆ PositionConstraintState_w

Definition at line 101 of file fwd.h.

◆ PositionConstraintStated

Definition at line 97 of file fwd.h.

◆ PositionConstraintStated_const_p

Definition at line 109 of file fwd.h.

◆ PositionConstraintStated_const_u

Definition at line 110 of file fwd.h.

◆ PositionConstraintStated_const_w

Definition at line 111 of file fwd.h.

◆ PositionConstraintStated_p

Definition at line 106 of file fwd.h.

◆ PositionConstraintStated_u

Definition at line 107 of file fwd.h.

◆ PositionConstraintStated_w

Definition at line 108 of file fwd.h.

◆ PositionData

Definition at line 269 of file fwd.h.

◆ PositionData_const_p

using momentum::PositionData_const_p = ::std::shared_ptr<const PositionData>

Definition at line 275 of file fwd.h.

◆ PositionData_const_u

using momentum::PositionData_const_u = ::std::unique_ptr<const PositionData>

Definition at line 276 of file fwd.h.

◆ PositionData_const_w

using momentum::PositionData_const_w = ::std::weak_ptr<const PositionData>

Definition at line 277 of file fwd.h.

◆ PositionData_p

using momentum::PositionData_p = ::std::shared_ptr<PositionData>

Definition at line 272 of file fwd.h.

◆ PositionData_u

using momentum::PositionData_u = ::std::unique_ptr<PositionData>

Definition at line 273 of file fwd.h.

◆ PositionData_w

using momentum::PositionData_w = ::std::weak_ptr<PositionData>

Definition at line 274 of file fwd.h.

◆ PositionDatad

Definition at line 270 of file fwd.h.

◆ PositionDatad_const_p

using momentum::PositionDatad_const_p = ::std::shared_ptr<const PositionDatad>

Definition at line 282 of file fwd.h.

◆ PositionDatad_const_u

using momentum::PositionDatad_const_u = ::std::unique_ptr<const PositionDatad>

Definition at line 283 of file fwd.h.

◆ PositionDatad_const_w

using momentum::PositionDatad_const_w = ::std::weak_ptr<const PositionDatad>

Definition at line 284 of file fwd.h.

◆ PositionDatad_p

using momentum::PositionDatad_p = ::std::shared_ptr<PositionDatad>

Definition at line 279 of file fwd.h.

◆ PositionDatad_u

using momentum::PositionDatad_u = ::std::unique_ptr<PositionDatad>

Definition at line 280 of file fwd.h.

◆ PositionDatad_w

using momentum::PositionDatad_w = ::std::weak_ptr<PositionDatad>

Definition at line 281 of file fwd.h.

◆ PositionErrorFunction

Definition at line 1027 of file fwd.h.

◆ PositionErrorFunction_const_p

Definition at line 1033 of file fwd.h.

◆ PositionErrorFunction_const_u

Definition at line 1034 of file fwd.h.

◆ PositionErrorFunction_const_w

Definition at line 1035 of file fwd.h.

◆ PositionErrorFunction_p

Definition at line 1030 of file fwd.h.

◆ PositionErrorFunction_u

Definition at line 1031 of file fwd.h.

◆ PositionErrorFunction_w

Definition at line 1032 of file fwd.h.

◆ PositionErrorFunctiond

Definition at line 1028 of file fwd.h.

◆ PositionErrorFunctiond_const_p

Definition at line 1040 of file fwd.h.

◆ PositionErrorFunctiond_const_u

Definition at line 1041 of file fwd.h.

◆ PositionErrorFunctiond_const_w

Definition at line 1042 of file fwd.h.

◆ PositionErrorFunctiond_p

Definition at line 1037 of file fwd.h.

◆ PositionErrorFunctiond_u

Definition at line 1038 of file fwd.h.

◆ PositionErrorFunctiond_w

Definition at line 1039 of file fwd.h.

◆ ProgressBar_const_p

using momentum::ProgressBar_const_p = ::std::shared_ptr<const ProgressBar>

Definition at line 23 of file fwd.h.

◆ ProgressBar_const_u

using momentum::ProgressBar_const_u = ::std::unique_ptr<const ProgressBar>

Definition at line 24 of file fwd.h.

◆ ProgressBar_const_w

using momentum::ProgressBar_const_w = ::std::weak_ptr<const ProgressBar>

Definition at line 25 of file fwd.h.

◆ ProgressBar_p

using momentum::ProgressBar_p = ::std::shared_ptr<ProgressBar>

Definition at line 20 of file fwd.h.

◆ ProgressBar_u

using momentum::ProgressBar_u = ::std::unique_ptr<ProgressBar>

Definition at line 21 of file fwd.h.

◆ ProgressBar_w

using momentum::ProgressBar_w = ::std::weak_ptr<ProgressBar>

Definition at line 22 of file fwd.h.

◆ ProjectionConstraint

Definition at line 288 of file fwd.h.

◆ ProjectionConstraint_const_p

Definition at line 294 of file fwd.h.

◆ ProjectionConstraint_const_u

Definition at line 295 of file fwd.h.

◆ ProjectionConstraint_const_w

Definition at line 296 of file fwd.h.

◆ ProjectionConstraint_p

Definition at line 291 of file fwd.h.

◆ ProjectionConstraint_u

Definition at line 292 of file fwd.h.

◆ ProjectionConstraint_w

Definition at line 293 of file fwd.h.

◆ ProjectionConstraintd

Definition at line 289 of file fwd.h.

◆ ProjectionConstraintd_const_p

Definition at line 301 of file fwd.h.

◆ ProjectionConstraintd_const_u

Definition at line 302 of file fwd.h.

◆ ProjectionConstraintd_const_w

Definition at line 303 of file fwd.h.

◆ ProjectionConstraintd_p

Definition at line 298 of file fwd.h.

◆ ProjectionConstraintd_u

Definition at line 299 of file fwd.h.

◆ ProjectionConstraintd_w

Definition at line 300 of file fwd.h.

◆ ProjectionErrorFunction

Definition at line 1046 of file fwd.h.

◆ ProjectionErrorFunction_const_p

Definition at line 1052 of file fwd.h.

◆ ProjectionErrorFunction_const_u

Definition at line 1053 of file fwd.h.

◆ ProjectionErrorFunction_const_w

Definition at line 1054 of file fwd.h.

◆ ProjectionErrorFunction_p

Definition at line 1049 of file fwd.h.

◆ ProjectionErrorFunction_u

Definition at line 1050 of file fwd.h.

◆ ProjectionErrorFunction_w

Definition at line 1051 of file fwd.h.

◆ ProjectionErrorFunctiond

Definition at line 1047 of file fwd.h.

◆ ProjectionErrorFunctiond_const_p

Definition at line 1059 of file fwd.h.

◆ ProjectionErrorFunctiond_const_u

Definition at line 1060 of file fwd.h.

◆ ProjectionErrorFunctiond_const_w

Definition at line 1061 of file fwd.h.

◆ ProjectionErrorFunctiond_p

Definition at line 1056 of file fwd.h.

◆ ProjectionErrorFunctiond_u

Definition at line 1057 of file fwd.h.

◆ ProjectionErrorFunctiond_w

Definition at line 1058 of file fwd.h.

◆ Quaternion

template<typename T>
using momentum::Quaternion = Eigen::Quaternion<T>

Unit quaternion representing a 3D rotation.

Note
Eigen's storage order is [x, y, z, w] (vector part first, scalar last) when accessed via coeffs(), but the constructor Quaternion(w, x, y, z) takes the scalar first. Be careful when serializing/deserializing or interoperating with libraries that use a different convention.

Definition at line 385 of file types.h.

◆ Quaterniond

Definition at line 387 of file types.h.

◆ Quaternionf

Definition at line 386 of file types.h.

◆ Ref

template<class T>
using momentum::Ref = Eigen::Ref<T>

Definition at line 43 of file types.h.

◆ RowMatrix

template<typename T, int N, int M = N>
using momentum::RowMatrix = Eigen::Matrix<T, N, M, Eigen::RowMajor>

Row-major dense matrix alias.

Use when interoperating with row-major external buffers (e.g., numpy arrays via pymomentum) or when iterating row-by-row is the dominant access pattern.

Definition at line 176 of file types.h.

◆ RowMatrixX

template<typename T>
using momentum::RowMatrixX = RowMatrix<T, Dynamic>

Definition at line 178 of file types.h.

◆ RowVector

template<typename T, int Dim>
using momentum::RowVector = Eigen::Matrix<T, 1, Dim>

Definition at line 299 of file types.h.

◆ RowVector0

template<typename T>
using momentum::RowVector0 = RowVector<T, 0>

Definition at line 311 of file types.h.

◆ RowVector0b

using momentum::RowVector0b = RowVector0<std::uint8_t>

Definition at line 341 of file types.h.

◆ RowVector0d

Definition at line 333 of file types.h.

◆ RowVector0f

Definition at line 325 of file types.h.

◆ RowVector0i

using momentum::RowVector0i = RowVector0<std::int32_t>

Definition at line 365 of file types.h.

◆ RowVector0s

using momentum::RowVector0s = RowVector0<std::uint16_t>

Definition at line 349 of file types.h.

◆ RowVector0u

using momentum::RowVector0u = RowVector0<std::uint32_t>

Definition at line 357 of file types.h.

◆ RowVector1

template<typename T>
using momentum::RowVector1 = RowVector<T, 1>

Definition at line 313 of file types.h.

◆ RowVector1b

using momentum::RowVector1b = RowVector1<std::uint8_t>

Definition at line 342 of file types.h.

◆ RowVector1d

Definition at line 334 of file types.h.

◆ RowVector1f

Definition at line 326 of file types.h.

◆ RowVector1i

using momentum::RowVector1i = RowVector1<std::int32_t>

Definition at line 366 of file types.h.

◆ RowVector1s

using momentum::RowVector1s = RowVector1<std::uint16_t>

Definition at line 350 of file types.h.

◆ RowVector1u

using momentum::RowVector1u = RowVector1<std::uint32_t>

Definition at line 358 of file types.h.

◆ RowVector2

template<typename T>
using momentum::RowVector2 = RowVector<T, 2>

Definition at line 315 of file types.h.

◆ RowVector2b

using momentum::RowVector2b = RowVector2<std::uint8_t>

Definition at line 343 of file types.h.

◆ RowVector2d

Definition at line 335 of file types.h.

◆ RowVector2f

Definition at line 327 of file types.h.

◆ RowVector2i

using momentum::RowVector2i = RowVector2<std::int32_t>

Definition at line 367 of file types.h.

◆ RowVector2s

using momentum::RowVector2s = RowVector2<std::uint16_t>

Definition at line 351 of file types.h.

◆ RowVector2u

using momentum::RowVector2u = RowVector2<std::uint32_t>

Definition at line 359 of file types.h.

◆ RowVector3

template<typename T>
using momentum::RowVector3 = RowVector<T, 3>

Definition at line 317 of file types.h.

◆ RowVector3b

using momentum::RowVector3b = RowVector3<std::uint8_t>

Definition at line 344 of file types.h.

◆ RowVector3d

Definition at line 336 of file types.h.

◆ RowVector3f

Definition at line 328 of file types.h.

◆ RowVector3i

using momentum::RowVector3i = RowVector3<std::int32_t>

Definition at line 368 of file types.h.

◆ RowVector3s

using momentum::RowVector3s = RowVector3<std::uint16_t>

Definition at line 352 of file types.h.

◆ RowVector3u

using momentum::RowVector3u = RowVector3<std::uint32_t>

Definition at line 360 of file types.h.

◆ RowVector4

template<typename T>
using momentum::RowVector4 = RowVector<T, 4>

Definition at line 319 of file types.h.

◆ RowVector4b

using momentum::RowVector4b = RowVector4<std::uint8_t>

Definition at line 345 of file types.h.

◆ RowVector4d

Definition at line 337 of file types.h.

◆ RowVector4f

Definition at line 329 of file types.h.

◆ RowVector4i

using momentum::RowVector4i = RowVector4<std::int32_t>

Definition at line 369 of file types.h.

◆ RowVector4s

using momentum::RowVector4s = RowVector4<std::uint16_t>

Definition at line 353 of file types.h.

◆ RowVector4u

using momentum::RowVector4u = RowVector4<std::uint32_t>

Definition at line 361 of file types.h.

◆ RowVector5

template<typename T>
using momentum::RowVector5 = RowVector<T, 5>

Definition at line 321 of file types.h.

◆ RowVector5b

using momentum::RowVector5b = RowVector5<std::uint8_t>

Definition at line 346 of file types.h.

◆ RowVector5d

Definition at line 338 of file types.h.

◆ RowVector5f

Definition at line 330 of file types.h.

◆ RowVector5i

using momentum::RowVector5i = RowVector5<std::int32_t>

Definition at line 370 of file types.h.

◆ RowVector5s

using momentum::RowVector5s = RowVector5<std::uint16_t>

Definition at line 354 of file types.h.

◆ RowVector5u

using momentum::RowVector5u = RowVector5<std::uint32_t>

Definition at line 362 of file types.h.

◆ RowVector6

template<typename T>
using momentum::RowVector6 = RowVector<T, 6>

Definition at line 323 of file types.h.

◆ RowVector6b

using momentum::RowVector6b = RowVector6<std::uint8_t>

Definition at line 347 of file types.h.

◆ RowVector6d

Definition at line 339 of file types.h.

◆ RowVector6f

Definition at line 331 of file types.h.

◆ RowVector6i

using momentum::RowVector6i = RowVector6<std::int32_t>

Definition at line 371 of file types.h.

◆ RowVector6s

using momentum::RowVector6s = RowVector6<std::uint16_t>

Definition at line 355 of file types.h.

◆ RowVector6u

using momentum::RowVector6u = RowVector6<std::uint32_t>

Definition at line 363 of file types.h.

◆ RowVectorX

template<typename T>
using momentum::RowVectorX = RowVector<T, Dynamic>

Definition at line 301 of file types.h.

◆ RowVectorXb

using momentum::RowVectorXb = RowVectorX<std::uint8_t>

Definition at line 305 of file types.h.

◆ RowVectorXd

Definition at line 304 of file types.h.

◆ RowVectorXf

Definition at line 303 of file types.h.

◆ RowVectorXi

using momentum::RowVectorXi = RowVectorX<std::int32_t>

Definition at line 308 of file types.h.

◆ RowVectorXs

using momentum::RowVectorXs = RowVectorX<std::uint16_t>

Definition at line 306 of file types.h.

◆ RowVectorXu

using momentum::RowVectorXu = RowVectorX<std::uint32_t>

Definition at line 307 of file types.h.

◆ SDFCollider

Definition at line 339 of file fwd.h.

◆ SDFCollider_const_p

using momentum::SDFCollider_const_p = ::std::shared_ptr<const SDFCollider>

Definition at line 345 of file fwd.h.

◆ SDFCollider_const_u

using momentum::SDFCollider_const_u = ::std::unique_ptr<const SDFCollider>

Definition at line 346 of file fwd.h.

◆ SDFCollider_const_w

using momentum::SDFCollider_const_w = ::std::weak_ptr<const SDFCollider>

Definition at line 347 of file fwd.h.

◆ SDFCollider_p

using momentum::SDFCollider_p = ::std::shared_ptr<SDFCollider>

Definition at line 342 of file fwd.h.

◆ SDFCollider_u

using momentum::SDFCollider_u = ::std::unique_ptr<SDFCollider>

Definition at line 343 of file fwd.h.

◆ SDFCollider_w

using momentum::SDFCollider_w = ::std::weak_ptr<SDFCollider>

Definition at line 344 of file fwd.h.

◆ SDFColliderd

Definition at line 340 of file fwd.h.

◆ SDFColliderd_const_p

using momentum::SDFColliderd_const_p = ::std::shared_ptr<const SDFColliderd>

Definition at line 352 of file fwd.h.

◆ SDFColliderd_const_u

using momentum::SDFColliderd_const_u = ::std::unique_ptr<const SDFColliderd>

Definition at line 353 of file fwd.h.

◆ SDFColliderd_const_w

using momentum::SDFColliderd_const_w = ::std::weak_ptr<const SDFColliderd>

Definition at line 354 of file fwd.h.

◆ SDFColliderd_p

using momentum::SDFColliderd_p = ::std::shared_ptr<SDFColliderd>

Definition at line 349 of file fwd.h.

◆ SDFColliderd_u

using momentum::SDFColliderd_u = ::std::unique_ptr<SDFColliderd>

Definition at line 350 of file fwd.h.

◆ SDFColliderd_w

using momentum::SDFColliderd_w = ::std::weak_ptr<SDFColliderd>

Definition at line 351 of file fwd.h.

◆ SDFCollisionErrorFunction

◆ SDFCollisionErrorFunctiond

◆ SDFCollisionGeometry

◆ SDFCollisionGeometryd

◆ SDFCollisionGeometryT

template<typename S>
using momentum::SDFCollisionGeometryT = std::vector<SDFColliderT<S>>

Collection of SDF colliders representing a character's collision geometry.

Definition at line 125 of file sdf_collision_geometry.h.

◆ SDFCollisionSequenceErrorFunction

◆ SDFCollisionSequenceErrorFunctiond

◆ SequenceCholeskySolver

Definition at line 271 of file fwd.h.

◆ SequenceCholeskySolver_const_p

Definition at line 277 of file fwd.h.

◆ SequenceCholeskySolver_const_u

Definition at line 278 of file fwd.h.

◆ SequenceCholeskySolver_const_w

Definition at line 279 of file fwd.h.

◆ SequenceCholeskySolver_p

Definition at line 274 of file fwd.h.

◆ SequenceCholeskySolver_u

Definition at line 275 of file fwd.h.

◆ SequenceCholeskySolver_w

Definition at line 276 of file fwd.h.

◆ SequenceCholeskySolverd

Definition at line 272 of file fwd.h.

◆ SequenceCholeskySolverd_const_p

Definition at line 284 of file fwd.h.

◆ SequenceCholeskySolverd_const_u

Definition at line 285 of file fwd.h.

◆ SequenceCholeskySolverd_const_w

Definition at line 286 of file fwd.h.

◆ SequenceCholeskySolverd_p

Definition at line 281 of file fwd.h.

◆ SequenceCholeskySolverd_u

Definition at line 282 of file fwd.h.

◆ SequenceCholeskySolverd_w

Definition at line 283 of file fwd.h.

◆ SequenceCholeskySolverOptions_const_p

Initial value:
::std::shared_ptr<const SequenceCholeskySolverOptions>

Definition at line 32 of file fwd.h.

◆ SequenceCholeskySolverOptions_const_u

Initial value:
::std::unique_ptr<const SequenceCholeskySolverOptions>

Definition at line 34 of file fwd.h.

◆ SequenceCholeskySolverOptions_const_w

Definition at line 36 of file fwd.h.

◆ SequenceCholeskySolverOptions_p

Definition at line 29 of file fwd.h.

◆ SequenceCholeskySolverOptions_u

Definition at line 30 of file fwd.h.

◆ SequenceCholeskySolverOptions_w

Definition at line 31 of file fwd.h.

◆ SequenceErrorFunction

Definition at line 183 of file fwd.h.

◆ SequenceErrorFunction_const_p

Definition at line 189 of file fwd.h.

◆ SequenceErrorFunction_const_u

Definition at line 190 of file fwd.h.

◆ SequenceErrorFunction_const_w

Definition at line 191 of file fwd.h.

◆ SequenceErrorFunction_p

Definition at line 186 of file fwd.h.

◆ SequenceErrorFunction_u

Definition at line 187 of file fwd.h.

◆ SequenceErrorFunction_w

Definition at line 188 of file fwd.h.

◆ SequenceErrorFunctiond

Definition at line 184 of file fwd.h.

◆ SequenceErrorFunctiond_const_p

Definition at line 196 of file fwd.h.

◆ SequenceErrorFunctiond_const_u

Definition at line 197 of file fwd.h.

◆ SequenceErrorFunctiond_const_w

Definition at line 198 of file fwd.h.

◆ SequenceErrorFunctiond_p

Definition at line 193 of file fwd.h.

◆ SequenceErrorFunctiond_u

Definition at line 194 of file fwd.h.

◆ SequenceErrorFunctiond_w

Definition at line 195 of file fwd.h.

◆ SequenceSolver

Definition at line 309 of file fwd.h.

◆ SequenceSolver_const_p

using momentum::SequenceSolver_const_p = ::std::shared_ptr<const SequenceSolver>

Definition at line 315 of file fwd.h.

◆ SequenceSolver_const_u

using momentum::SequenceSolver_const_u = ::std::unique_ptr<const SequenceSolver>

Definition at line 316 of file fwd.h.

◆ SequenceSolver_const_w

using momentum::SequenceSolver_const_w = ::std::weak_ptr<const SequenceSolver>

Definition at line 317 of file fwd.h.

◆ SequenceSolver_p

using momentum::SequenceSolver_p = ::std::shared_ptr<SequenceSolver>

Definition at line 312 of file fwd.h.

◆ SequenceSolver_u

using momentum::SequenceSolver_u = ::std::unique_ptr<SequenceSolver>

Definition at line 313 of file fwd.h.

◆ SequenceSolver_w

using momentum::SequenceSolver_w = ::std::weak_ptr<SequenceSolver>

Definition at line 314 of file fwd.h.

◆ SequenceSolverBase

Definition at line 290 of file fwd.h.

◆ SequenceSolverBase_const_p

using momentum::SequenceSolverBase_const_p = ::std::shared_ptr<const SequenceSolverBase>

Definition at line 296 of file fwd.h.

◆ SequenceSolverBase_const_u

using momentum::SequenceSolverBase_const_u = ::std::unique_ptr<const SequenceSolverBase>

Definition at line 297 of file fwd.h.

◆ SequenceSolverBase_const_w

Definition at line 298 of file fwd.h.

◆ SequenceSolverBase_p

Definition at line 293 of file fwd.h.

◆ SequenceSolverBase_u

Definition at line 294 of file fwd.h.

◆ SequenceSolverBase_w

Definition at line 295 of file fwd.h.

◆ SequenceSolverBased

Definition at line 291 of file fwd.h.

◆ SequenceSolverBased_const_p

Definition at line 303 of file fwd.h.

◆ SequenceSolverBased_const_u

Definition at line 304 of file fwd.h.

◆ SequenceSolverBased_const_w

Definition at line 305 of file fwd.h.

◆ SequenceSolverBased_p

Definition at line 300 of file fwd.h.

◆ SequenceSolverBased_u

Definition at line 301 of file fwd.h.

◆ SequenceSolverBased_w

Definition at line 302 of file fwd.h.

◆ SequenceSolverd

Definition at line 310 of file fwd.h.

◆ SequenceSolverd_const_p

using momentum::SequenceSolverd_const_p = ::std::shared_ptr<const SequenceSolverd>

Definition at line 322 of file fwd.h.

◆ SequenceSolverd_const_u

using momentum::SequenceSolverd_const_u = ::std::unique_ptr<const SequenceSolverd>

Definition at line 323 of file fwd.h.

◆ SequenceSolverd_const_w

using momentum::SequenceSolverd_const_w = ::std::weak_ptr<const SequenceSolverd>

Definition at line 324 of file fwd.h.

◆ SequenceSolverd_p

using momentum::SequenceSolverd_p = ::std::shared_ptr<SequenceSolverd>

Definition at line 319 of file fwd.h.

◆ SequenceSolverd_u

using momentum::SequenceSolverd_u = ::std::unique_ptr<SequenceSolverd>

Definition at line 320 of file fwd.h.

◆ SequenceSolverd_w

using momentum::SequenceSolverd_w = ::std::weak_ptr<SequenceSolverd>

Definition at line 321 of file fwd.h.

◆ SequenceSolverFunction

Definition at line 328 of file fwd.h.

◆ SequenceSolverFunction_const_p

Definition at line 334 of file fwd.h.

◆ SequenceSolverFunction_const_u

Definition at line 335 of file fwd.h.

◆ SequenceSolverFunction_const_w

Definition at line 336 of file fwd.h.

◆ SequenceSolverFunction_p

Definition at line 331 of file fwd.h.

◆ SequenceSolverFunction_u

Definition at line 332 of file fwd.h.

◆ SequenceSolverFunction_w

Definition at line 333 of file fwd.h.

◆ SequenceSolverFunctiond

Definition at line 329 of file fwd.h.

◆ SequenceSolverFunctiond_const_p

Definition at line 341 of file fwd.h.

◆ SequenceSolverFunctiond_const_u

Definition at line 342 of file fwd.h.

◆ SequenceSolverFunctiond_const_w

Definition at line 343 of file fwd.h.

◆ SequenceSolverFunctiond_p

Definition at line 338 of file fwd.h.

◆ SequenceSolverFunctiond_u

Definition at line 339 of file fwd.h.

◆ SequenceSolverFunctiond_w

Definition at line 340 of file fwd.h.

◆ SequenceSolverOptions_const_p

Definition at line 52 of file fwd.h.

◆ SequenceSolverOptions_const_u

Definition at line 53 of file fwd.h.

◆ SequenceSolverOptions_const_w

Definition at line 54 of file fwd.h.

◆ SequenceSolverOptions_p

Definition at line 49 of file fwd.h.

◆ SequenceSolverOptions_u

Definition at line 50 of file fwd.h.

◆ SequenceSolverOptions_w

Definition at line 51 of file fwd.h.

◆ SequenceSolverOptionsBase_const_p

Definition at line 43 of file fwd.h.

◆ SequenceSolverOptionsBase_const_u

Definition at line 44 of file fwd.h.

◆ SequenceSolverOptionsBase_const_w

Definition at line 45 of file fwd.h.

◆ SequenceSolverOptionsBase_p

Definition at line 40 of file fwd.h.

◆ SequenceSolverOptionsBase_u

Definition at line 41 of file fwd.h.

◆ SequenceSolverOptionsBase_w

Definition at line 42 of file fwd.h.

◆ SimdGeneralizedLoss

Definition at line 134 of file fwd.h.

◆ SimdGeneralizedLoss_const_p

Definition at line 140 of file fwd.h.

◆ SimdGeneralizedLoss_const_u

Definition at line 141 of file fwd.h.

◆ SimdGeneralizedLoss_const_w

Definition at line 142 of file fwd.h.

◆ SimdGeneralizedLoss_p

Definition at line 137 of file fwd.h.

◆ SimdGeneralizedLoss_u

Definition at line 138 of file fwd.h.

◆ SimdGeneralizedLoss_w

Definition at line 139 of file fwd.h.

◆ SimdGeneralizedLossd

Definition at line 135 of file fwd.h.

◆ SimdGeneralizedLossd_const_p

Definition at line 147 of file fwd.h.

◆ SimdGeneralizedLossd_const_u

Definition at line 148 of file fwd.h.

◆ SimdGeneralizedLossd_const_w

Definition at line 149 of file fwd.h.

◆ SimdGeneralizedLossd_p

Definition at line 144 of file fwd.h.

◆ SimdGeneralizedLossd_u

Definition at line 145 of file fwd.h.

◆ SimdGeneralizedLossd_w

Definition at line 146 of file fwd.h.

◆ SimdNormalConstraints_const_p

using momentum::SimdNormalConstraints_const_p = ::std::shared_ptr<const SimdNormalConstraints>

Definition at line 41 of file fwd.h.

◆ SimdNormalConstraints_const_u

using momentum::SimdNormalConstraints_const_u = ::std::unique_ptr<const SimdNormalConstraints>

Definition at line 42 of file fwd.h.

◆ SimdNormalConstraints_const_w

using momentum::SimdNormalConstraints_const_w = ::std::weak_ptr<const SimdNormalConstraints>

Definition at line 43 of file fwd.h.

◆ SimdNormalConstraints_p

using momentum::SimdNormalConstraints_p = ::std::shared_ptr<SimdNormalConstraints>

Definition at line 38 of file fwd.h.

◆ SimdNormalConstraints_u

using momentum::SimdNormalConstraints_u = ::std::unique_ptr<SimdNormalConstraints>

Definition at line 39 of file fwd.h.

◆ SimdNormalConstraints_w

using momentum::SimdNormalConstraints_w = ::std::weak_ptr<SimdNormalConstraints>

Definition at line 40 of file fwd.h.

◆ SimdNormalErrorFunction_const_p

using momentum::SimdNormalErrorFunction_const_p = ::std::shared_ptr<const SimdNormalErrorFunction>

Definition at line 411 of file fwd.h.

◆ SimdNormalErrorFunction_const_u

using momentum::SimdNormalErrorFunction_const_u = ::std::unique_ptr<const SimdNormalErrorFunction>

Definition at line 412 of file fwd.h.

◆ SimdNormalErrorFunction_const_w

using momentum::SimdNormalErrorFunction_const_w = ::std::weak_ptr<const SimdNormalErrorFunction>

Definition at line 413 of file fwd.h.

◆ SimdNormalErrorFunction_p

using momentum::SimdNormalErrorFunction_p = ::std::shared_ptr<SimdNormalErrorFunction>

Definition at line 408 of file fwd.h.

◆ SimdNormalErrorFunction_u

using momentum::SimdNormalErrorFunction_u = ::std::unique_ptr<SimdNormalErrorFunction>

Definition at line 409 of file fwd.h.

◆ SimdNormalErrorFunction_w

using momentum::SimdNormalErrorFunction_w = ::std::weak_ptr<SimdNormalErrorFunction>

Definition at line 410 of file fwd.h.

◆ SimdPlaneConstraints_const_p

using momentum::SimdPlaneConstraints_const_p = ::std::shared_ptr<const SimdPlaneConstraints>

Definition at line 50 of file fwd.h.

◆ SimdPlaneConstraints_const_u

using momentum::SimdPlaneConstraints_const_u = ::std::unique_ptr<const SimdPlaneConstraints>

Definition at line 51 of file fwd.h.

◆ SimdPlaneConstraints_const_w

using momentum::SimdPlaneConstraints_const_w = ::std::weak_ptr<const SimdPlaneConstraints>

Definition at line 52 of file fwd.h.

◆ SimdPlaneConstraints_p

using momentum::SimdPlaneConstraints_p = ::std::shared_ptr<SimdPlaneConstraints>

Definition at line 47 of file fwd.h.

◆ SimdPlaneConstraints_u

using momentum::SimdPlaneConstraints_u = ::std::unique_ptr<SimdPlaneConstraints>

Definition at line 48 of file fwd.h.

◆ SimdPlaneConstraints_w

using momentum::SimdPlaneConstraints_w = ::std::weak_ptr<SimdPlaneConstraints>

Definition at line 49 of file fwd.h.

◆ SimdPlaneErrorFunction_const_p

using momentum::SimdPlaneErrorFunction_const_p = ::std::shared_ptr<const SimdPlaneErrorFunction>

Definition at line 420 of file fwd.h.

◆ SimdPlaneErrorFunction_const_u

using momentum::SimdPlaneErrorFunction_const_u = ::std::unique_ptr<const SimdPlaneErrorFunction>

Definition at line 421 of file fwd.h.

◆ SimdPlaneErrorFunction_const_w

using momentum::SimdPlaneErrorFunction_const_w = ::std::weak_ptr<const SimdPlaneErrorFunction>

Definition at line 422 of file fwd.h.

◆ SimdPlaneErrorFunction_p

using momentum::SimdPlaneErrorFunction_p = ::std::shared_ptr<SimdPlaneErrorFunction>

Definition at line 417 of file fwd.h.

◆ SimdPlaneErrorFunction_u

using momentum::SimdPlaneErrorFunction_u = ::std::unique_ptr<SimdPlaneErrorFunction>

Definition at line 418 of file fwd.h.

◆ SimdPlaneErrorFunction_w

using momentum::SimdPlaneErrorFunction_w = ::std::weak_ptr<SimdPlaneErrorFunction>

Definition at line 419 of file fwd.h.

◆ SimdPositionConstraints_const_p

using momentum::SimdPositionConstraints_const_p = ::std::shared_ptr<const SimdPositionConstraints>

Definition at line 59 of file fwd.h.

◆ SimdPositionConstraints_const_u

using momentum::SimdPositionConstraints_const_u = ::std::unique_ptr<const SimdPositionConstraints>

Definition at line 60 of file fwd.h.

◆ SimdPositionConstraints_const_w

using momentum::SimdPositionConstraints_const_w = ::std::weak_ptr<const SimdPositionConstraints>

Definition at line 61 of file fwd.h.

◆ SimdPositionConstraints_p

using momentum::SimdPositionConstraints_p = ::std::shared_ptr<SimdPositionConstraints>

Definition at line 56 of file fwd.h.

◆ SimdPositionConstraints_u

using momentum::SimdPositionConstraints_u = ::std::unique_ptr<SimdPositionConstraints>

Definition at line 57 of file fwd.h.

◆ SimdPositionConstraints_w

using momentum::SimdPositionConstraints_w = ::std::weak_ptr<SimdPositionConstraints>

Definition at line 58 of file fwd.h.

◆ SimdPositionErrorFunction_const_p

using momentum::SimdPositionErrorFunction_const_p = ::std::shared_ptr<const SimdPositionErrorFunction>

Definition at line 429 of file fwd.h.

◆ SimdPositionErrorFunction_const_u

using momentum::SimdPositionErrorFunction_const_u = ::std::unique_ptr<const SimdPositionErrorFunction>

Definition at line 430 of file fwd.h.

◆ SimdPositionErrorFunction_const_w

using momentum::SimdPositionErrorFunction_const_w = ::std::weak_ptr<const SimdPositionErrorFunction>

Definition at line 431 of file fwd.h.

◆ SimdPositionErrorFunction_p

using momentum::SimdPositionErrorFunction_p = ::std::shared_ptr<SimdPositionErrorFunction>

Definition at line 426 of file fwd.h.

◆ SimdPositionErrorFunction_u

using momentum::SimdPositionErrorFunction_u = ::std::unique_ptr<SimdPositionErrorFunction>

Definition at line 427 of file fwd.h.

◆ SimdPositionErrorFunction_w

using momentum::SimdPositionErrorFunction_w = ::std::weak_ptr<SimdPositionErrorFunction>

Definition at line 428 of file fwd.h.

◆ Skeleton

using momentum::Skeleton = SkeletonT<float>

Definition at line 263 of file fwd.h.

◆ Skeleton_const_p

using momentum::Skeleton_const_p = ::std::shared_ptr<const Skeleton>

Definition at line 269 of file fwd.h.

◆ Skeleton_const_u

using momentum::Skeleton_const_u = ::std::unique_ptr<const Skeleton>

Definition at line 270 of file fwd.h.

◆ Skeleton_const_w

using momentum::Skeleton_const_w = ::std::weak_ptr<const Skeleton>

Definition at line 271 of file fwd.h.

◆ Skeleton_p

using momentum::Skeleton_p = ::std::shared_ptr<Skeleton>

Definition at line 266 of file fwd.h.

◆ Skeleton_u

using momentum::Skeleton_u = ::std::unique_ptr<Skeleton>

Definition at line 267 of file fwd.h.

◆ Skeleton_w

using momentum::Skeleton_w = ::std::weak_ptr<Skeleton>

Definition at line 268 of file fwd.h.

◆ Skeletond

using momentum::Skeletond = SkeletonT<double>

Definition at line 264 of file fwd.h.

◆ Skeletond_const_p

using momentum::Skeletond_const_p = ::std::shared_ptr<const Skeletond>

Definition at line 276 of file fwd.h.

◆ Skeletond_const_u

using momentum::Skeletond_const_u = ::std::unique_ptr<const Skeletond>

Definition at line 277 of file fwd.h.

◆ Skeletond_const_w

using momentum::Skeletond_const_w = ::std::weak_ptr<const Skeletond>

Definition at line 278 of file fwd.h.

◆ Skeletond_p

using momentum::Skeletond_p = ::std::shared_ptr<Skeletond>

Definition at line 273 of file fwd.h.

◆ Skeletond_u

using momentum::Skeletond_u = ::std::unique_ptr<Skeletond>

Definition at line 274 of file fwd.h.

◆ Skeletond_w

using momentum::Skeletond_w = ::std::weak_ptr<Skeletond>

Definition at line 275 of file fwd.h.

◆ SkeletonDerivative

Definition at line 1065 of file fwd.h.

◆ SkeletonDerivative_const_p

using momentum::SkeletonDerivative_const_p = ::std::shared_ptr<const SkeletonDerivative>

Definition at line 1071 of file fwd.h.

◆ SkeletonDerivative_const_u

using momentum::SkeletonDerivative_const_u = ::std::unique_ptr<const SkeletonDerivative>

Definition at line 1072 of file fwd.h.

◆ SkeletonDerivative_const_w

Definition at line 1073 of file fwd.h.

◆ SkeletonDerivative_p

Definition at line 1068 of file fwd.h.

◆ SkeletonDerivative_u

Definition at line 1069 of file fwd.h.

◆ SkeletonDerivative_w

Definition at line 1070 of file fwd.h.

◆ SkeletonDerivatived

Definition at line 1066 of file fwd.h.

◆ SkeletonDerivatived_const_p

Definition at line 1078 of file fwd.h.

◆ SkeletonDerivatived_const_u

Definition at line 1079 of file fwd.h.

◆ SkeletonDerivatived_const_w

Definition at line 1080 of file fwd.h.

◆ SkeletonDerivatived_p

Definition at line 1075 of file fwd.h.

◆ SkeletonDerivatived_u

Definition at line 1076 of file fwd.h.

◆ SkeletonDerivatived_w

Definition at line 1077 of file fwd.h.

◆ SkeletonErrorFunction

Definition at line 1084 of file fwd.h.

◆ SkeletonErrorFunction_const_p

Definition at line 1090 of file fwd.h.

◆ SkeletonErrorFunction_const_u

Definition at line 1091 of file fwd.h.

◆ SkeletonErrorFunction_const_w

Definition at line 1092 of file fwd.h.

◆ SkeletonErrorFunction_p

Definition at line 1087 of file fwd.h.

◆ SkeletonErrorFunction_u

Definition at line 1088 of file fwd.h.

◆ SkeletonErrorFunction_w

Definition at line 1089 of file fwd.h.

◆ SkeletonErrorFunctiond

Definition at line 1085 of file fwd.h.

◆ SkeletonErrorFunctiond_const_p

Definition at line 1097 of file fwd.h.

◆ SkeletonErrorFunctiond_const_u

Definition at line 1098 of file fwd.h.

◆ SkeletonErrorFunctiond_const_w

Definition at line 1099 of file fwd.h.

◆ SkeletonErrorFunctiond_p

Definition at line 1094 of file fwd.h.

◆ SkeletonErrorFunctiond_u

Definition at line 1095 of file fwd.h.

◆ SkeletonErrorFunctiond_w

Definition at line 1096 of file fwd.h.

◆ SkeletonSolverFunction

Definition at line 1103 of file fwd.h.

◆ SkeletonSolverFunction_const_p

Definition at line 1109 of file fwd.h.

◆ SkeletonSolverFunction_const_u

Definition at line 1110 of file fwd.h.

◆ SkeletonSolverFunction_const_w

Definition at line 1111 of file fwd.h.

◆ SkeletonSolverFunction_p

Definition at line 1106 of file fwd.h.

◆ SkeletonSolverFunction_u

Definition at line 1107 of file fwd.h.

◆ SkeletonSolverFunction_w

Definition at line 1108 of file fwd.h.

◆ SkeletonSolverFunctiond

Definition at line 1104 of file fwd.h.

◆ SkeletonSolverFunctiond_const_p

Definition at line 1116 of file fwd.h.

◆ SkeletonSolverFunctiond_const_u

Definition at line 1117 of file fwd.h.

◆ SkeletonSolverFunctiond_const_w

Definition at line 1118 of file fwd.h.

◆ SkeletonSolverFunctiond_p

Definition at line 1113 of file fwd.h.

◆ SkeletonSolverFunctiond_u

Definition at line 1114 of file fwd.h.

◆ SkeletonSolverFunctiond_w

Definition at line 1115 of file fwd.h.

◆ SkeletonState

Definition at line 282 of file fwd.h.

◆ SkeletonState_const_p

using momentum::SkeletonState_const_p = ::std::shared_ptr<const SkeletonState>

Definition at line 288 of file fwd.h.

◆ SkeletonState_const_u

using momentum::SkeletonState_const_u = ::std::unique_ptr<const SkeletonState>

Definition at line 289 of file fwd.h.

◆ SkeletonState_const_w

using momentum::SkeletonState_const_w = ::std::weak_ptr<const SkeletonState>

Definition at line 290 of file fwd.h.

◆ SkeletonState_p

using momentum::SkeletonState_p = ::std::shared_ptr<SkeletonState>

Definition at line 285 of file fwd.h.

◆ SkeletonState_u

using momentum::SkeletonState_u = ::std::unique_ptr<SkeletonState>

Definition at line 286 of file fwd.h.

◆ SkeletonState_w

using momentum::SkeletonState_w = ::std::weak_ptr<SkeletonState>

Definition at line 287 of file fwd.h.

◆ SkeletonStated

Definition at line 283 of file fwd.h.

◆ SkeletonStated_const_p

using momentum::SkeletonStated_const_p = ::std::shared_ptr<const SkeletonStated>

Definition at line 295 of file fwd.h.

◆ SkeletonStated_const_u

using momentum::SkeletonStated_const_u = ::std::unique_ptr<const SkeletonStated>

Definition at line 296 of file fwd.h.

◆ SkeletonStated_const_w

using momentum::SkeletonStated_const_w = ::std::weak_ptr<const SkeletonStated>

Definition at line 297 of file fwd.h.

◆ SkeletonStated_p

using momentum::SkeletonStated_p = ::std::shared_ptr<SkeletonStated>

Definition at line 292 of file fwd.h.

◆ SkeletonStated_u

using momentum::SkeletonStated_u = ::std::unique_ptr<SkeletonStated>

Definition at line 293 of file fwd.h.

◆ SkeletonStated_w

using momentum::SkeletonStated_w = ::std::weak_ptr<SkeletonStated>

Definition at line 294 of file fwd.h.

◆ SkinnedLocator_const_p

using momentum::SkinnedLocator_const_p = ::std::shared_ptr<const SkinnedLocator>

Definition at line 86 of file fwd.h.

◆ SkinnedLocator_const_u

using momentum::SkinnedLocator_const_u = ::std::unique_ptr<const SkinnedLocator>

Definition at line 87 of file fwd.h.

◆ SkinnedLocator_const_w

using momentum::SkinnedLocator_const_w = ::std::weak_ptr<const SkinnedLocator>

Definition at line 88 of file fwd.h.

◆ SkinnedLocator_p

using momentum::SkinnedLocator_p = ::std::shared_ptr<SkinnedLocator>

Definition at line 83 of file fwd.h.

◆ SkinnedLocator_u

using momentum::SkinnedLocator_u = ::std::unique_ptr<SkinnedLocator>

Definition at line 84 of file fwd.h.

◆ SkinnedLocator_w

using momentum::SkinnedLocator_w = ::std::weak_ptr<SkinnedLocator>

Definition at line 85 of file fwd.h.

◆ SkinnedLocatorConstraint

Definition at line 307 of file fwd.h.

◆ SkinnedLocatorConstraint_const_p

Definition at line 313 of file fwd.h.

◆ SkinnedLocatorConstraint_const_u

Definition at line 314 of file fwd.h.

◆ SkinnedLocatorConstraint_const_w

Definition at line 315 of file fwd.h.

◆ SkinnedLocatorConstraint_p

Definition at line 310 of file fwd.h.

◆ SkinnedLocatorConstraint_u

Definition at line 311 of file fwd.h.

◆ SkinnedLocatorConstraint_w

Definition at line 312 of file fwd.h.

◆ SkinnedLocatorConstraintd

Definition at line 308 of file fwd.h.

◆ SkinnedLocatorConstraintd_const_p

Definition at line 320 of file fwd.h.

◆ SkinnedLocatorConstraintd_const_u

Definition at line 321 of file fwd.h.

◆ SkinnedLocatorConstraintd_const_w

Definition at line 322 of file fwd.h.

◆ SkinnedLocatorConstraintd_p

Definition at line 317 of file fwd.h.

◆ SkinnedLocatorConstraintd_u

Definition at line 318 of file fwd.h.

◆ SkinnedLocatorConstraintd_w

Definition at line 319 of file fwd.h.

◆ SkinnedLocatorErrorFunction

◆ SkinnedLocatorErrorFunction_const_p

Definition at line 1128 of file fwd.h.

◆ SkinnedLocatorErrorFunction_const_u

Definition at line 1129 of file fwd.h.

◆ SkinnedLocatorErrorFunction_const_w

Definition at line 1130 of file fwd.h.

◆ SkinnedLocatorErrorFunction_p

Definition at line 1125 of file fwd.h.

◆ SkinnedLocatorErrorFunction_u

Definition at line 1126 of file fwd.h.

◆ SkinnedLocatorErrorFunction_w

Definition at line 1127 of file fwd.h.

◆ SkinnedLocatorErrorFunctiond

◆ SkinnedLocatorErrorFunctiond_const_p

Definition at line 1135 of file fwd.h.

◆ SkinnedLocatorErrorFunctiond_const_u

Definition at line 1136 of file fwd.h.

◆ SkinnedLocatorErrorFunctiond_const_w

Definition at line 1137 of file fwd.h.

◆ SkinnedLocatorErrorFunctiond_p

Definition at line 1132 of file fwd.h.

◆ SkinnedLocatorErrorFunctiond_u

Definition at line 1133 of file fwd.h.

◆ SkinnedLocatorErrorFunctiond_w

Definition at line 1134 of file fwd.h.

◆ SkinnedLocatorList

A collection of locators attached to a skeleton.

Definition at line 71 of file skinned_locator.h.

◆ SkinnedLocatorTriangleConstraint

◆ SkinnedLocatorTriangleConstraint_const_p

Initial value:
::std::shared_ptr<const SkinnedLocatorTriangleConstraint>

Definition at line 332 of file fwd.h.

◆ SkinnedLocatorTriangleConstraint_const_u

Initial value:
::std::unique_ptr<const SkinnedLocatorTriangleConstraint>

Definition at line 334 of file fwd.h.

◆ SkinnedLocatorTriangleConstraint_const_w

Initial value:
::std::weak_ptr<const SkinnedLocatorTriangleConstraint>

Definition at line 336 of file fwd.h.

◆ SkinnedLocatorTriangleConstraint_p

Definition at line 329 of file fwd.h.

◆ SkinnedLocatorTriangleConstraint_u

Definition at line 330 of file fwd.h.

◆ SkinnedLocatorTriangleConstraint_w

Definition at line 331 of file fwd.h.

◆ SkinnedLocatorTriangleConstraintd

◆ SkinnedLocatorTriangleConstraintd_const_p

Initial value:
::std::shared_ptr<const SkinnedLocatorTriangleConstraintd>

Definition at line 342 of file fwd.h.

◆ SkinnedLocatorTriangleConstraintd_const_u

Initial value:
::std::unique_ptr<const SkinnedLocatorTriangleConstraintd>

Definition at line 344 of file fwd.h.

◆ SkinnedLocatorTriangleConstraintd_const_w

Initial value:
::std::weak_ptr<const SkinnedLocatorTriangleConstraintd>

Definition at line 346 of file fwd.h.

◆ SkinnedLocatorTriangleConstraintd_p

Definition at line 339 of file fwd.h.

◆ SkinnedLocatorTriangleConstraintd_u

Definition at line 340 of file fwd.h.

◆ SkinnedLocatorTriangleConstraintd_w

Definition at line 341 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunction

◆ SkinnedLocatorTriangleErrorFunction_const_p

Initial value:
::std::shared_ptr<const SkinnedLocatorTriangleErrorFunction>

Definition at line 1149 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunction_const_u

Initial value:
::std::unique_ptr<const SkinnedLocatorTriangleErrorFunction>

Definition at line 1151 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunction_const_w

Initial value:
::std::weak_ptr<const SkinnedLocatorTriangleErrorFunction>

Definition at line 1153 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunction_p

Initial value:
::std::shared_ptr<SkinnedLocatorTriangleErrorFunction>

Definition at line 1144 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunction_u

Initial value:
::std::unique_ptr<SkinnedLocatorTriangleErrorFunction>

Definition at line 1146 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunction_w

◆ SkinnedLocatorTriangleErrorFunctiond

◆ SkinnedLocatorTriangleErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const SkinnedLocatorTriangleErrorFunctiond>

Definition at line 1162 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const SkinnedLocatorTriangleErrorFunctiond>

Definition at line 1164 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const SkinnedLocatorTriangleErrorFunctiond>

Definition at line 1166 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunctiond_p

Initial value:
::std::shared_ptr<SkinnedLocatorTriangleErrorFunctiond>

Definition at line 1156 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunctiond_u

Initial value:
::std::unique_ptr<SkinnedLocatorTriangleErrorFunctiond>

Definition at line 1158 of file fwd.h.

◆ SkinnedLocatorTriangleErrorFunctiond_w

Initial value:
::std::weak_ptr<SkinnedLocatorTriangleErrorFunctiond>

Definition at line 1160 of file fwd.h.

◆ SkinWeights_const_p

using momentum::SkinWeights_const_p = ::std::shared_ptr<const SkinWeights>

Definition at line 77 of file fwd.h.

◆ SkinWeights_const_u

using momentum::SkinWeights_const_u = ::std::unique_ptr<const SkinWeights>

Definition at line 78 of file fwd.h.

◆ SkinWeights_const_w

using momentum::SkinWeights_const_w = ::std::weak_ptr<const SkinWeights>

Definition at line 79 of file fwd.h.

◆ SkinWeights_p

using momentum::SkinWeights_p = ::std::shared_ptr<SkinWeights>

Definition at line 74 of file fwd.h.

◆ SkinWeights_u

using momentum::SkinWeights_u = ::std::unique_ptr<SkinWeights>

Definition at line 75 of file fwd.h.

◆ SkinWeights_w

using momentum::SkinWeights_w = ::std::weak_ptr<SkinWeights>

Definition at line 76 of file fwd.h.

◆ Solver

using momentum::Solver = SolverT<float>

Definition at line 50 of file fwd.h.

◆ Solver_const_p

using momentum::Solver_const_p = ::std::shared_ptr<const Solver>

Definition at line 56 of file fwd.h.

◆ Solver_const_u

using momentum::Solver_const_u = ::std::unique_ptr<const Solver>

Definition at line 57 of file fwd.h.

◆ Solver_const_w

using momentum::Solver_const_w = ::std::weak_ptr<const Solver>

Definition at line 58 of file fwd.h.

◆ Solver_p

using momentum::Solver_p = ::std::shared_ptr<Solver>

Definition at line 53 of file fwd.h.

◆ Solver_u

using momentum::Solver_u = ::std::unique_ptr<Solver>

Definition at line 54 of file fwd.h.

◆ Solver_w

using momentum::Solver_w = ::std::weak_ptr<Solver>

Definition at line 55 of file fwd.h.

◆ Solverd

using momentum::Solverd = SolverT<double>

Definition at line 51 of file fwd.h.

◆ Solverd_const_p

using momentum::Solverd_const_p = ::std::shared_ptr<const Solverd>

Definition at line 63 of file fwd.h.

◆ Solverd_const_u

using momentum::Solverd_const_u = ::std::unique_ptr<const Solverd>

Definition at line 64 of file fwd.h.

◆ Solverd_const_w

using momentum::Solverd_const_w = ::std::weak_ptr<const Solverd>

Definition at line 65 of file fwd.h.

◆ Solverd_p

using momentum::Solverd_p = ::std::shared_ptr<Solverd>

Definition at line 60 of file fwd.h.

◆ Solverd_u

using momentum::Solverd_u = ::std::unique_ptr<Solverd>

Definition at line 61 of file fwd.h.

◆ Solverd_w

using momentum::Solverd_w = ::std::weak_ptr<Solverd>

Definition at line 62 of file fwd.h.

◆ SolverFunction

Definition at line 69 of file fwd.h.

◆ SolverFunction_const_p

using momentum::SolverFunction_const_p = ::std::shared_ptr<const SolverFunction>

Definition at line 75 of file fwd.h.

◆ SolverFunction_const_u

using momentum::SolverFunction_const_u = ::std::unique_ptr<const SolverFunction>

Definition at line 76 of file fwd.h.

◆ SolverFunction_const_w

using momentum::SolverFunction_const_w = ::std::weak_ptr<const SolverFunction>

Definition at line 77 of file fwd.h.

◆ SolverFunction_p

using momentum::SolverFunction_p = ::std::shared_ptr<SolverFunction>

Definition at line 72 of file fwd.h.

◆ SolverFunction_u

using momentum::SolverFunction_u = ::std::unique_ptr<SolverFunction>

Definition at line 73 of file fwd.h.

◆ SolverFunction_w

using momentum::SolverFunction_w = ::std::weak_ptr<SolverFunction>

Definition at line 74 of file fwd.h.

◆ SolverFunctiond

Definition at line 70 of file fwd.h.

◆ SolverFunctiond_const_p

using momentum::SolverFunctiond_const_p = ::std::shared_ptr<const SolverFunctiond>

Definition at line 82 of file fwd.h.

◆ SolverFunctiond_const_u

using momentum::SolverFunctiond_const_u = ::std::unique_ptr<const SolverFunctiond>

Definition at line 83 of file fwd.h.

◆ SolverFunctiond_const_w

using momentum::SolverFunctiond_const_w = ::std::weak_ptr<const SolverFunctiond>

Definition at line 84 of file fwd.h.

◆ SolverFunctiond_p

using momentum::SolverFunctiond_p = ::std::shared_ptr<SolverFunctiond>

Definition at line 79 of file fwd.h.

◆ SolverFunctiond_u

using momentum::SolverFunctiond_u = ::std::unique_ptr<SolverFunctiond>

Definition at line 80 of file fwd.h.

◆ SolverFunctiond_w

using momentum::SolverFunctiond_w = ::std::weak_ptr<SolverFunctiond>

Definition at line 81 of file fwd.h.

◆ SolverOptions_const_p

using momentum::SolverOptions_const_p = ::std::shared_ptr<const SolverOptions>

Definition at line 23 of file fwd.h.

◆ SolverOptions_const_u

using momentum::SolverOptions_const_u = ::std::unique_ptr<const SolverOptions>

Definition at line 24 of file fwd.h.

◆ SolverOptions_const_w

using momentum::SolverOptions_const_w = ::std::weak_ptr<const SolverOptions>

Definition at line 25 of file fwd.h.

◆ SolverOptions_p

using momentum::SolverOptions_p = ::std::shared_ptr<SolverOptions>

Definition at line 20 of file fwd.h.

◆ SolverOptions_u

using momentum::SolverOptions_u = ::std::unique_ptr<SolverOptions>

Definition at line 21 of file fwd.h.

◆ SolverOptions_w

using momentum::SolverOptions_w = ::std::weak_ptr<SolverOptions>

Definition at line 22 of file fwd.h.

◆ span

template<typename T>
using momentum::span = gsl::span<T>

Span type alias using gsl::span (C++17 fallback).

Definition at line 54 of file span_compat.h.

◆ SparseGaussNewtonSolver

Definition at line 107 of file fwd.h.

◆ SparseGaussNewtonSolver_const_p

Definition at line 113 of file fwd.h.

◆ SparseGaussNewtonSolver_const_u

Definition at line 114 of file fwd.h.

◆ SparseGaussNewtonSolver_const_w

Definition at line 115 of file fwd.h.

◆ SparseGaussNewtonSolver_p

Definition at line 110 of file fwd.h.

◆ SparseGaussNewtonSolver_u

Definition at line 111 of file fwd.h.

◆ SparseGaussNewtonSolver_w

Definition at line 112 of file fwd.h.

◆ SparseGaussNewtonSolverd

Definition at line 108 of file fwd.h.

◆ SparseGaussNewtonSolverd_const_p

Definition at line 120 of file fwd.h.

◆ SparseGaussNewtonSolverd_const_u

Definition at line 121 of file fwd.h.

◆ SparseGaussNewtonSolverd_const_w

Definition at line 122 of file fwd.h.

◆ SparseGaussNewtonSolverd_p

Definition at line 117 of file fwd.h.

◆ SparseGaussNewtonSolverd_u

Definition at line 118 of file fwd.h.

◆ SparseGaussNewtonSolverd_w

Definition at line 119 of file fwd.h.

◆ SparseGaussNewtonSolverOptions_const_p

Initial value:
::std::shared_ptr<const SparseGaussNewtonSolverOptions>

Definition at line 41 of file fwd.h.

◆ SparseGaussNewtonSolverOptions_const_u

Initial value:
::std::unique_ptr<const SparseGaussNewtonSolverOptions>

Definition at line 43 of file fwd.h.

◆ SparseGaussNewtonSolverOptions_const_w

Initial value:
::std::weak_ptr<const SparseGaussNewtonSolverOptions>

Definition at line 45 of file fwd.h.

◆ SparseGaussNewtonSolverOptions_p

Definition at line 38 of file fwd.h.

◆ SparseGaussNewtonSolverOptions_u

Definition at line 39 of file fwd.h.

◆ SparseGaussNewtonSolverOptions_w

Definition at line 40 of file fwd.h.

◆ SparseMatrix

template<typename T>
using momentum::SparseMatrix = Eigen::SparseMatrix<T>

Column-major sparse matrix.

Used by solver paths that build Jacobians/JtJ in compressed sparse column form.

Definition at line 183 of file types.h.

◆ SparseMatrixb

using momentum::SparseMatrixb = SparseMatrix<std::uint8_t>

Definition at line 186 of file types.h.

◆ SparseMatrixd

Definition at line 185 of file types.h.

◆ SparseMatrixf

Definition at line 184 of file types.h.

◆ SparseMatrixi

using momentum::SparseMatrixi = SparseMatrix<std::int32_t>

Definition at line 189 of file types.h.

◆ SparseMatrixs

using momentum::SparseMatrixs = SparseMatrix<std::uint16_t>

Definition at line 187 of file types.h.

◆ SparseMatrixu

using momentum::SparseMatrixu = SparseMatrix<std::uint32_t>

Definition at line 188 of file types.h.

◆ SparseRowMatrix

template<typename T>
using momentum::SparseRowMatrix = Eigen::SparseMatrix<T, Eigen::RowMajor>

Definition at line 192 of file types.h.

◆ SparseRowMatrixb

Definition at line 195 of file types.h.

◆ SparseRowMatrixd

Definition at line 194 of file types.h.

◆ SparseRowMatrixf

Definition at line 193 of file types.h.

◆ SparseRowMatrixi

Definition at line 198 of file types.h.

◆ SparseRowMatrixs

Definition at line 196 of file types.h.

◆ SparseRowMatrixu

Definition at line 197 of file types.h.

◆ StateErrorFunction

Definition at line 1171 of file fwd.h.

◆ StateErrorFunction_const_p

using momentum::StateErrorFunction_const_p = ::std::shared_ptr<const StateErrorFunction>

Definition at line 1177 of file fwd.h.

◆ StateErrorFunction_const_u

using momentum::StateErrorFunction_const_u = ::std::unique_ptr<const StateErrorFunction>

Definition at line 1178 of file fwd.h.

◆ StateErrorFunction_const_w

Definition at line 1179 of file fwd.h.

◆ StateErrorFunction_p

Definition at line 1174 of file fwd.h.

◆ StateErrorFunction_u

Definition at line 1175 of file fwd.h.

◆ StateErrorFunction_w

Definition at line 1176 of file fwd.h.

◆ StateErrorFunctiond

Definition at line 1172 of file fwd.h.

◆ StateErrorFunctiond_const_p

Definition at line 1184 of file fwd.h.

◆ StateErrorFunctiond_const_u

Definition at line 1185 of file fwd.h.

◆ StateErrorFunctiond_const_w

Definition at line 1186 of file fwd.h.

◆ StateErrorFunctiond_p

Definition at line 1181 of file fwd.h.

◆ StateErrorFunctiond_u

Definition at line 1182 of file fwd.h.

◆ StateErrorFunctiond_w

Definition at line 1183 of file fwd.h.

◆ StateSequenceErrorFunction

Definition at line 347 of file fwd.h.

◆ StateSequenceErrorFunction_const_p

Definition at line 353 of file fwd.h.

◆ StateSequenceErrorFunction_const_u

Definition at line 354 of file fwd.h.

◆ StateSequenceErrorFunction_const_w

Definition at line 355 of file fwd.h.

◆ StateSequenceErrorFunction_p

Definition at line 350 of file fwd.h.

◆ StateSequenceErrorFunction_u

Definition at line 351 of file fwd.h.

◆ StateSequenceErrorFunction_w

Definition at line 352 of file fwd.h.

◆ StateSequenceErrorFunctiond

Definition at line 348 of file fwd.h.

◆ StateSequenceErrorFunctiond_const_p

Definition at line 360 of file fwd.h.

◆ StateSequenceErrorFunctiond_const_u

Definition at line 361 of file fwd.h.

◆ StateSequenceErrorFunctiond_const_w

Definition at line 362 of file fwd.h.

◆ StateSequenceErrorFunctiond_p

Definition at line 357 of file fwd.h.

◆ StateSequenceErrorFunctiond_u

Definition at line 358 of file fwd.h.

◆ StateSequenceErrorFunctiond_w

Definition at line 359 of file fwd.h.

◆ SubsetGaussNewtonSolver

Definition at line 145 of file fwd.h.

◆ SubsetGaussNewtonSolver_const_p

Definition at line 151 of file fwd.h.

◆ SubsetGaussNewtonSolver_const_u

Definition at line 152 of file fwd.h.

◆ SubsetGaussNewtonSolver_const_w

Definition at line 153 of file fwd.h.

◆ SubsetGaussNewtonSolver_p

Definition at line 148 of file fwd.h.

◆ SubsetGaussNewtonSolver_u

Definition at line 149 of file fwd.h.

◆ SubsetGaussNewtonSolver_w

Definition at line 150 of file fwd.h.

◆ SubsetGaussNewtonSolverd

Definition at line 146 of file fwd.h.

◆ SubsetGaussNewtonSolverd_const_p

Definition at line 158 of file fwd.h.

◆ SubsetGaussNewtonSolverd_const_u

Definition at line 159 of file fwd.h.

◆ SubsetGaussNewtonSolverd_const_w

Definition at line 160 of file fwd.h.

◆ SubsetGaussNewtonSolverd_p

Definition at line 155 of file fwd.h.

◆ SubsetGaussNewtonSolverd_u

Definition at line 156 of file fwd.h.

◆ SubsetGaussNewtonSolverd_w

Definition at line 157 of file fwd.h.

◆ SupportContact

Definition at line 351 of file fwd.h.

◆ SupportContact_const_p

using momentum::SupportContact_const_p = ::std::shared_ptr<const SupportContact>

Definition at line 357 of file fwd.h.

◆ SupportContact_const_u

using momentum::SupportContact_const_u = ::std::unique_ptr<const SupportContact>

Definition at line 358 of file fwd.h.

◆ SupportContact_const_w

using momentum::SupportContact_const_w = ::std::weak_ptr<const SupportContact>

Definition at line 359 of file fwd.h.

◆ SupportContact_p

using momentum::SupportContact_p = ::std::shared_ptr<SupportContact>

Definition at line 354 of file fwd.h.

◆ SupportContact_u

using momentum::SupportContact_u = ::std::unique_ptr<SupportContact>

Definition at line 355 of file fwd.h.

◆ SupportContact_w

using momentum::SupportContact_w = ::std::weak_ptr<SupportContact>

Definition at line 356 of file fwd.h.

◆ SupportContactd

Definition at line 352 of file fwd.h.

◆ SupportContactd_const_p

using momentum::SupportContactd_const_p = ::std::shared_ptr<const SupportContactd>

Definition at line 364 of file fwd.h.

◆ SupportContactd_const_u

using momentum::SupportContactd_const_u = ::std::unique_ptr<const SupportContactd>

Definition at line 365 of file fwd.h.

◆ SupportContactd_const_w

using momentum::SupportContactd_const_w = ::std::weak_ptr<const SupportContactd>

Definition at line 366 of file fwd.h.

◆ SupportContactd_p

using momentum::SupportContactd_p = ::std::shared_ptr<SupportContactd>

Definition at line 361 of file fwd.h.

◆ SupportContactd_u

using momentum::SupportContactd_u = ::std::unique_ptr<SupportContactd>

Definition at line 362 of file fwd.h.

◆ SupportContactd_w

using momentum::SupportContactd_w = ::std::weak_ptr<SupportContactd>

Definition at line 363 of file fwd.h.

◆ SupportContactList

Definition at line 370 of file fwd.h.

◆ SupportContactList_const_p

using momentum::SupportContactList_const_p = ::std::shared_ptr<const SupportContactList>

Definition at line 376 of file fwd.h.

◆ SupportContactList_const_u

using momentum::SupportContactList_const_u = ::std::unique_ptr<const SupportContactList>

Definition at line 377 of file fwd.h.

◆ SupportContactList_const_w

Definition at line 378 of file fwd.h.

◆ SupportContactList_p

Definition at line 373 of file fwd.h.

◆ SupportContactList_u

Definition at line 374 of file fwd.h.

◆ SupportContactList_w

Definition at line 375 of file fwd.h.

◆ SupportContactListd

Definition at line 371 of file fwd.h.

◆ SupportContactListd_const_p

Definition at line 383 of file fwd.h.

◆ SupportContactListd_const_u

Definition at line 384 of file fwd.h.

◆ SupportContactListd_const_w

Definition at line 385 of file fwd.h.

◆ SupportContactListd_p

Definition at line 380 of file fwd.h.

◆ SupportContactListd_u

Definition at line 381 of file fwd.h.

◆ SupportContactListd_w

Definition at line 382 of file fwd.h.

◆ SupportPlane

Definition at line 58 of file fwd.h.

◆ SupportPlane_const_p

using momentum::SupportPlane_const_p = ::std::shared_ptr<const SupportPlane>

Definition at line 64 of file fwd.h.

◆ SupportPlane_const_u

using momentum::SupportPlane_const_u = ::std::unique_ptr<const SupportPlane>

Definition at line 65 of file fwd.h.

◆ SupportPlane_const_w

using momentum::SupportPlane_const_w = ::std::weak_ptr<const SupportPlane>

Definition at line 66 of file fwd.h.

◆ SupportPlane_p

using momentum::SupportPlane_p = ::std::shared_ptr<SupportPlane>

Definition at line 61 of file fwd.h.

◆ SupportPlane_u

using momentum::SupportPlane_u = ::std::unique_ptr<SupportPlane>

Definition at line 62 of file fwd.h.

◆ SupportPlane_w

using momentum::SupportPlane_w = ::std::weak_ptr<SupportPlane>

Definition at line 63 of file fwd.h.

◆ SupportPlaned

Definition at line 59 of file fwd.h.

◆ SupportPlaned_const_p

using momentum::SupportPlaned_const_p = ::std::shared_ptr<const SupportPlaned>

Definition at line 71 of file fwd.h.

◆ SupportPlaned_const_u

using momentum::SupportPlaned_const_u = ::std::unique_ptr<const SupportPlaned>

Definition at line 72 of file fwd.h.

◆ SupportPlaned_const_w

using momentum::SupportPlaned_const_w = ::std::weak_ptr<const SupportPlaned>

Definition at line 73 of file fwd.h.

◆ SupportPlaned_p

using momentum::SupportPlaned_p = ::std::shared_ptr<SupportPlaned>

Definition at line 68 of file fwd.h.

◆ SupportPlaned_u

using momentum::SupportPlaned_u = ::std::unique_ptr<SupportPlaned>

Definition at line 69 of file fwd.h.

◆ SupportPlaned_w

using momentum::SupportPlaned_w = ::std::weak_ptr<SupportPlaned>

Definition at line 70 of file fwd.h.

◆ TaperedCapsule

Definition at line 320 of file fwd.h.

◆ TaperedCapsule_const_p

using momentum::TaperedCapsule_const_p = ::std::shared_ptr<const TaperedCapsule>

Definition at line 326 of file fwd.h.

◆ TaperedCapsule_const_u

using momentum::TaperedCapsule_const_u = ::std::unique_ptr<const TaperedCapsule>

Definition at line 327 of file fwd.h.

◆ TaperedCapsule_const_w

using momentum::TaperedCapsule_const_w = ::std::weak_ptr<const TaperedCapsule>

Definition at line 328 of file fwd.h.

◆ TaperedCapsule_p

using momentum::TaperedCapsule_p = ::std::shared_ptr<TaperedCapsule>

Definition at line 323 of file fwd.h.

◆ TaperedCapsule_u

using momentum::TaperedCapsule_u = ::std::unique_ptr<TaperedCapsule>

Definition at line 324 of file fwd.h.

◆ TaperedCapsule_w

using momentum::TaperedCapsule_w = ::std::weak_ptr<TaperedCapsule>

Definition at line 325 of file fwd.h.

◆ TaperedCapsuled

Definition at line 321 of file fwd.h.

◆ TaperedCapsuled_const_p

using momentum::TaperedCapsuled_const_p = ::std::shared_ptr<const TaperedCapsuled>

Definition at line 333 of file fwd.h.

◆ TaperedCapsuled_const_u

using momentum::TaperedCapsuled_const_u = ::std::unique_ptr<const TaperedCapsuled>

Definition at line 334 of file fwd.h.

◆ TaperedCapsuled_const_w

using momentum::TaperedCapsuled_const_w = ::std::weak_ptr<const TaperedCapsuled>

Definition at line 335 of file fwd.h.

◆ TaperedCapsuled_p

using momentum::TaperedCapsuled_p = ::std::shared_ptr<TaperedCapsuled>

Definition at line 330 of file fwd.h.

◆ TaperedCapsuled_u

using momentum::TaperedCapsuled_u = ::std::unique_ptr<TaperedCapsuled>

Definition at line 331 of file fwd.h.

◆ TaperedCapsuled_w

using momentum::TaperedCapsuled_w = ::std::weak_ptr<TaperedCapsuled>

Definition at line 332 of file fwd.h.

◆ Transform

typedef TransformT< float > momentum::Transform = TransformT<float>

Definition at line 77 of file fwd.h.

◆ Transform_const_p

using momentum::Transform_const_p = ::std::shared_ptr<const Transform>

Definition at line 83 of file fwd.h.

◆ Transform_const_u

using momentum::Transform_const_u = ::std::unique_ptr<const Transform>

Definition at line 84 of file fwd.h.

◆ Transform_const_w

using momentum::Transform_const_w = ::std::weak_ptr<const Transform>

Definition at line 85 of file fwd.h.

◆ Transform_p

using momentum::Transform_p = ::std::shared_ptr<Transform>

Definition at line 80 of file fwd.h.

◆ Transform_u

using momentum::Transform_u = ::std::unique_ptr<Transform>

Definition at line 81 of file fwd.h.

◆ Transform_w

using momentum::Transform_w = ::std::weak_ptr<Transform>

Definition at line 82 of file fwd.h.

◆ TransformationList

using momentum::TransformationList = std::vector<Affine3f>

One affine transform per joint, indexed by joint id.

Typical use: joint-to-world transforms for a posed skeleton.

Definition at line 410 of file types.h.

◆ TransformationListT

template<typename T>
using momentum::TransformationListT = std::vector<Affine3<T>>

Scalar-templated counterpart of TransformationList.

Definition at line 413 of file types.h.

◆ Transformd

Definition at line 78 of file fwd.h.

◆ Transformd_const_p

using momentum::Transformd_const_p = ::std::shared_ptr<const Transformd>

Definition at line 90 of file fwd.h.

◆ Transformd_const_u

using momentum::Transformd_const_u = ::std::unique_ptr<const Transformd>

Definition at line 91 of file fwd.h.

◆ Transformd_const_w

using momentum::Transformd_const_w = ::std::weak_ptr<const Transformd>

Definition at line 92 of file fwd.h.

◆ Transformd_p

using momentum::Transformd_p = ::std::shared_ptr<Transformd>

Definition at line 87 of file fwd.h.

◆ Transformd_u

using momentum::Transformd_u = ::std::unique_ptr<Transformd>

Definition at line 88 of file fwd.h.

◆ Transformd_w

using momentum::Transformd_w = ::std::weak_ptr<Transformd>

Definition at line 89 of file fwd.h.

◆ TransformList

Definition at line 243 of file transform.h.

◆ TransformListT

template<typename T>
using momentum::TransformListT = std::vector<TransformT<T>>

Per-joint transform list describing the state of all joints in a skeleton (one entry per joint, indexed by joint id).

Definition at line 228 of file transform.h.

◆ Translation3

template<typename T>
using momentum::Translation3 = Eigen::Translation<T, 3>

Definition at line 390 of file types.h.

◆ Translation3d

Definition at line 392 of file types.h.

◆ Translation3f

Definition at line 391 of file types.h.

◆ TriangleArray

Triangle index buffer; column i holds the three vertex indices of triangle i (size: 3 x numTriangles).

Definition at line 421 of file types.h.

◆ TrustRegionQR

Definition at line 1190 of file fwd.h.

◆ TrustRegionQR_const_p

using momentum::TrustRegionQR_const_p = ::std::shared_ptr<const TrustRegionQR>

Definition at line 1196 of file fwd.h.

◆ TrustRegionQR_const_u

using momentum::TrustRegionQR_const_u = ::std::unique_ptr<const TrustRegionQR>

Definition at line 1197 of file fwd.h.

◆ TrustRegionQR_const_w

using momentum::TrustRegionQR_const_w = ::std::weak_ptr<const TrustRegionQR>

Definition at line 1198 of file fwd.h.

◆ TrustRegionQR_p

using momentum::TrustRegionQR_p = ::std::shared_ptr<TrustRegionQR>

Definition at line 1193 of file fwd.h.

◆ TrustRegionQR_u

using momentum::TrustRegionQR_u = ::std::unique_ptr<TrustRegionQR>

Definition at line 1194 of file fwd.h.

◆ TrustRegionQR_w

using momentum::TrustRegionQR_w = ::std::weak_ptr<TrustRegionQR>

Definition at line 1195 of file fwd.h.

◆ TrustRegionQRd

Definition at line 1191 of file fwd.h.

◆ TrustRegionQRd_const_p

using momentum::TrustRegionQRd_const_p = ::std::shared_ptr<const TrustRegionQRd>

Definition at line 1203 of file fwd.h.

◆ TrustRegionQRd_const_u

using momentum::TrustRegionQRd_const_u = ::std::unique_ptr<const TrustRegionQRd>

Definition at line 1204 of file fwd.h.

◆ TrustRegionQRd_const_w

using momentum::TrustRegionQRd_const_w = ::std::weak_ptr<const TrustRegionQRd>

Definition at line 1205 of file fwd.h.

◆ TrustRegionQRd_p

using momentum::TrustRegionQRd_p = ::std::shared_ptr<TrustRegionQRd>

Definition at line 1200 of file fwd.h.

◆ TrustRegionQRd_u

using momentum::TrustRegionQRd_u = ::std::unique_ptr<TrustRegionQRd>

Definition at line 1201 of file fwd.h.

◆ TrustRegionQRd_w

using momentum::TrustRegionQRd_w = ::std::weak_ptr<TrustRegionQRd>

Definition at line 1202 of file fwd.h.

◆ UintP

using momentum::UintP = Packet<uint32_t>

Definition at line 99 of file simd.h.

◆ UnionErrorFunction

Definition at line 368 of file fwd.h.

◆ UnionErrorFunction_const_p

using momentum::UnionErrorFunction_const_p = ::std::shared_ptr<const UnionErrorFunction>

Definition at line 374 of file fwd.h.

◆ UnionErrorFunction_const_u

using momentum::UnionErrorFunction_const_u = ::std::unique_ptr<const UnionErrorFunction>

Definition at line 375 of file fwd.h.

◆ UnionErrorFunction_const_w

Definition at line 376 of file fwd.h.

◆ UnionErrorFunction_p

Definition at line 371 of file fwd.h.

◆ UnionErrorFunction_u

Definition at line 372 of file fwd.h.

◆ UnionErrorFunction_w

Definition at line 373 of file fwd.h.

◆ UnionErrorFunctiond

Definition at line 369 of file fwd.h.

◆ UnionErrorFunctiond_const_p

Definition at line 381 of file fwd.h.

◆ UnionErrorFunctiond_const_u

Definition at line 382 of file fwd.h.

◆ UnionErrorFunctiond_const_w

Definition at line 383 of file fwd.h.

◆ UnionErrorFunctiond_p

Definition at line 378 of file fwd.h.

◆ UnionErrorFunctiond_u

Definition at line 379 of file fwd.h.

◆ UnionErrorFunctiond_w

Definition at line 380 of file fwd.h.

◆ Vector

template<typename T, int Dim, int Options = 0>
using momentum::Vector = Eigen::Matrix<T, Dim, 1, Options>

Column vector alias (an Nx1 Eigen matrix).

Options allows callers to opt into row-major or alignment flags when needed.

Definition at line 203 of file types.h.

◆ Vector0

template<typename T>
using momentum::Vector0 = Vector<T, 0>

Definition at line 230 of file types.h.

◆ Vector0b

using momentum::Vector0b = Vector0<std::uint8_t>

Definition at line 266 of file types.h.

◆ Vector0d

using momentum::Vector0d = Vector0<double>

Definition at line 258 of file types.h.

◆ Vector0f

using momentum::Vector0f = Vector0<float>

Definition at line 248 of file types.h.

◆ Vector0i

using momentum::Vector0i = Vector0<std::int32_t>

Definition at line 290 of file types.h.

◆ Vector0s

using momentum::Vector0s = Vector0<std::uint16_t>

Definition at line 274 of file types.h.

◆ Vector0u

using momentum::Vector0u = Vector0<std::uint32_t>

Definition at line 282 of file types.h.

◆ Vector1

template<typename T>
using momentum::Vector1 = Vector<T, 1>

Definition at line 232 of file types.h.

◆ Vector1b

using momentum::Vector1b = Vector1<std::uint8_t>

Definition at line 267 of file types.h.

◆ Vector1d

using momentum::Vector1d = Vector1<double>

Definition at line 259 of file types.h.

◆ Vector1f

using momentum::Vector1f = Vector1<float>

Definition at line 249 of file types.h.

◆ Vector1i

using momentum::Vector1i = Vector1<std::int32_t>

Definition at line 291 of file types.h.

◆ Vector1s

using momentum::Vector1s = Vector1<std::uint16_t>

Definition at line 275 of file types.h.

◆ Vector1u

using momentum::Vector1u = Vector1<std::uint32_t>

Definition at line 283 of file types.h.

◆ Vector2

template<typename T>
using momentum::Vector2 = Vector<T, 2>

Definition at line 234 of file types.h.

◆ Vector2b

using momentum::Vector2b = Vector2<std::uint8_t>

Definition at line 268 of file types.h.

◆ Vector2d

using momentum::Vector2d = Vector2<double>

Definition at line 260 of file types.h.

◆ Vector2dP

using momentum::Vector2dP = Vector2P<double>

Definition at line 95 of file simd.h.

◆ Vector2f

using momentum::Vector2f = Vector2<float>

Definition at line 250 of file types.h.

◆ Vector2fP

using momentum::Vector2fP = Vector2P<float>

Definition at line 92 of file simd.h.

◆ Vector2i

using momentum::Vector2i = Vector2<std::int32_t>

Definition at line 292 of file types.h.

◆ Vector2iP

using momentum::Vector2iP = drjit::Array<IntP, 2>

Integer and byte vector types.

Definition at line 102 of file simd.h.

◆ Vector2P

template<typename T>
using momentum::Vector2P = VectorP<T, 2>

Definition at line 85 of file simd.h.

◆ Vector2s

using momentum::Vector2s = Vector2<std::uint16_t>

Definition at line 276 of file types.h.

◆ Vector2u

using momentum::Vector2u = Vector2<std::uint32_t>

Definition at line 284 of file types.h.

◆ Vector3

template<typename T>
using momentum::Vector3 = Vector<T, 3>

Definition at line 236 of file types.h.

◆ Vector3b

using momentum::Vector3b = Vector3<std::uint8_t>

Definition at line 269 of file types.h.

◆ Vector3bP

using momentum::Vector3bP = drjit::Array<ByteP, 3>

Definition at line 104 of file simd.h.

◆ Vector3d

using momentum::Vector3d = Vector3<double>

Definition at line 261 of file types.h.

◆ Vector3dP

using momentum::Vector3dP = Vector3P<double>

Definition at line 96 of file simd.h.

◆ Vector3f

using momentum::Vector3f = Vector3<float>

Definition at line 251 of file types.h.

◆ Vector3fP

using momentum::Vector3fP = Vector3P<float>

Definition at line 93 of file simd.h.

◆ Vector3i

using momentum::Vector3i = Vector3<std::int32_t>

Definition at line 293 of file types.h.

◆ Vector3iP

using momentum::Vector3iP = drjit::Array<IntP, 3>

Definition at line 103 of file simd.h.

◆ Vector3P

template<typename T>
using momentum::Vector3P = VectorP<T, 3>

Definition at line 88 of file simd.h.

◆ Vector3s

using momentum::Vector3s = Vector3<std::uint16_t>

Definition at line 277 of file types.h.

◆ Vector3u

using momentum::Vector3u = Vector3<std::uint32_t>

Definition at line 285 of file types.h.

◆ Vector4

template<typename T>
using momentum::Vector4 = Vector<T, 4>

Definition at line 238 of file types.h.

◆ Vector4b

using momentum::Vector4b = Vector4<std::uint8_t>

Definition at line 270 of file types.h.

◆ Vector4d

using momentum::Vector4d = Vector4<double>

Definition at line 262 of file types.h.

◆ Vector4dP

using momentum::Vector4dP = Vector4P<double>

Definition at line 111 of file simd.h.

◆ Vector4f

using momentum::Vector4f = Vector4<float>

Definition at line 252 of file types.h.

◆ Vector4fP

using momentum::Vector4fP = Vector4P<float>

Definition at line 110 of file simd.h.

◆ Vector4i

using momentum::Vector4i = Vector4<std::int32_t>

Definition at line 294 of file types.h.

◆ Vector4P

template<typename T>
using momentum::Vector4P = VectorP<T, 4>

4D vector types.

Definition at line 108 of file simd.h.

◆ Vector4s

using momentum::Vector4s = Vector4<std::uint16_t>

Definition at line 278 of file types.h.

◆ Vector4u

using momentum::Vector4u = Vector4<std::uint32_t>

Definition at line 286 of file types.h.

◆ Vector5

template<typename T>
using momentum::Vector5 = Vector<T, 5>

Definition at line 240 of file types.h.

◆ Vector5b

using momentum::Vector5b = Vector5<std::uint8_t>

Definition at line 271 of file types.h.

◆ Vector5d

using momentum::Vector5d = Vector5<double>

Definition at line 263 of file types.h.

◆ Vector5f

using momentum::Vector5f = Vector5<float>

Definition at line 253 of file types.h.

◆ Vector5i

using momentum::Vector5i = Vector5<std::int32_t>

Definition at line 295 of file types.h.

◆ Vector5s

using momentum::Vector5s = Vector5<std::uint16_t>

Definition at line 279 of file types.h.

◆ Vector5u

using momentum::Vector5u = Vector5<std::uint32_t>

Definition at line 287 of file types.h.

◆ Vector6

template<typename T>
using momentum::Vector6 = Vector<T, 6>

Definition at line 242 of file types.h.

◆ Vector6b

using momentum::Vector6b = Vector6<std::uint8_t>

Definition at line 272 of file types.h.

◆ Vector6d

using momentum::Vector6d = Vector6<double>

Definition at line 264 of file types.h.

◆ Vector6f

using momentum::Vector6f = Vector6<float>

Definition at line 254 of file types.h.

◆ Vector6i

using momentum::Vector6i = Vector6<std::int32_t>

Definition at line 296 of file types.h.

◆ Vector6s

using momentum::Vector6s = Vector6<std::uint16_t>

Definition at line 280 of file types.h.

◆ Vector6u

using momentum::Vector6u = Vector6<std::uint32_t>

Definition at line 288 of file types.h.

◆ Vector7

template<typename T>
using momentum::Vector7 = Vector<T, 7>

Definition at line 244 of file types.h.

◆ Vector7f

using momentum::Vector7f = Vector7<float>

Definition at line 255 of file types.h.

◆ Vector8

template<typename T>
using momentum::Vector8 = Vector<T, 8>

Definition at line 246 of file types.h.

◆ Vector8f

using momentum::Vector8f = Vector8<float>

Definition at line 256 of file types.h.

◆ Vectorb

template<int Dim>
using momentum::Vectorb = Vector<std::uint8_t, Dim>

Definition at line 221 of file types.h.

◆ Vectord

template<int Dim>
using momentum::Vectord = Vector<double, Dim>

Definition at line 219 of file types.h.

◆ Vectorf

template<int Dim>
using momentum::Vectorf = Vector<float, Dim>

Definition at line 217 of file types.h.

◆ Vectori

template<int Dim>
using momentum::Vectori = Vector<std::int32_t, Dim>

Definition at line 227 of file types.h.

◆ VectorP

template<typename T, int Dim>
using momentum::VectorP = drjit::Array<Packet<T>, Dim>

A Dim-dimensional vector where each component is a SIMD packet.

Definition at line 82 of file simd.h.

◆ Vectors

template<int Dim>
using momentum::Vectors = Vector<std::uint16_t, Dim>

Definition at line 223 of file types.h.

◆ Vectoru

template<int Dim>
using momentum::Vectoru = Vector<std::uint32_t, Dim>

Definition at line 225 of file types.h.

◆ VectorX

template<typename T>
using momentum::VectorX = Vector<T, Dynamic>

Dynamic-size column vector. Common return type for solver residuals and parameter vectors.

Definition at line 207 of file types.h.

◆ VectorXb

using momentum::VectorXb = VectorX<std::uint8_t>

Definition at line 211 of file types.h.

◆ VectorXd

using momentum::VectorXd = VectorX<double>

Definition at line 210 of file types.h.

◆ VectorXf

using momentum::VectorXf = VectorX<float>

Definition at line 209 of file types.h.

◆ VectorXi

using momentum::VectorXi = VectorX<std::int32_t>

Definition at line 214 of file types.h.

◆ VectorXs

using momentum::VectorXs = VectorX<std::uint16_t>

Definition at line 212 of file types.h.

◆ VectorXu

using momentum::VectorXu = VectorX<std::uint32_t>

Definition at line 213 of file types.h.

◆ VelocityMagnitudeSequenceErrorFunction

◆ VelocityMagnitudeSequenceErrorFunction_const_p

Initial value:
::std::shared_ptr<const VelocityMagnitudeSequenceErrorFunction>

Definition at line 375 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunction_const_u

Initial value:
::std::unique_ptr<const VelocityMagnitudeSequenceErrorFunction>

Definition at line 377 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunction_const_w

Initial value:
::std::weak_ptr<const VelocityMagnitudeSequenceErrorFunction>

Definition at line 379 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunction_p

Initial value:
::std::shared_ptr<VelocityMagnitudeSequenceErrorFunction>

Definition at line 369 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunction_u

Initial value:
::std::unique_ptr<VelocityMagnitudeSequenceErrorFunction>

Definition at line 371 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunction_w

Initial value:
::std::weak_ptr<VelocityMagnitudeSequenceErrorFunction>

Definition at line 373 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunctiond

◆ VelocityMagnitudeSequenceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const VelocityMagnitudeSequenceErrorFunctiond>

Definition at line 388 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const VelocityMagnitudeSequenceErrorFunctiond>

Definition at line 390 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const VelocityMagnitudeSequenceErrorFunctiond>

Definition at line 392 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunctiond_p

Initial value:
::std::shared_ptr<VelocityMagnitudeSequenceErrorFunctiond>

Definition at line 382 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunctiond_u

Initial value:
::std::unique_ptr<VelocityMagnitudeSequenceErrorFunctiond>

Definition at line 384 of file fwd.h.

◆ VelocityMagnitudeSequenceErrorFunctiond_w

Initial value:
::std::weak_ptr<VelocityMagnitudeSequenceErrorFunctiond>

Definition at line 386 of file fwd.h.

◆ VertexArray

Mesh vertex positions; column i is the position of vertex i (size: 3 x numVertices).

Definition at line 416 of file types.h.

◆ VertexConstraintData_const_p

Definition at line 68 of file fwd.h.

◆ VertexConstraintData_const_u

Definition at line 69 of file fwd.h.

◆ VertexConstraintData_const_w

Definition at line 70 of file fwd.h.

◆ VertexConstraintData_p

Definition at line 65 of file fwd.h.

◆ VertexConstraintData_u

Definition at line 66 of file fwd.h.

◆ VertexConstraintData_w

Definition at line 67 of file fwd.h.

◆ VertexNormalErrorFunction

Definition at line 1209 of file fwd.h.

◆ VertexNormalErrorFunction_const_p

Definition at line 1215 of file fwd.h.

◆ VertexNormalErrorFunction_const_u

Definition at line 1216 of file fwd.h.

◆ VertexNormalErrorFunction_const_w

Definition at line 1217 of file fwd.h.

◆ VertexNormalErrorFunction_p

Definition at line 1212 of file fwd.h.

◆ VertexNormalErrorFunction_u

Definition at line 1213 of file fwd.h.

◆ VertexNormalErrorFunction_w

Definition at line 1214 of file fwd.h.

◆ VertexNormalErrorFunctiond

Definition at line 1210 of file fwd.h.

◆ VertexNormalErrorFunctiond_const_p

Definition at line 1222 of file fwd.h.

◆ VertexNormalErrorFunctiond_const_u

Definition at line 1223 of file fwd.h.

◆ VertexNormalErrorFunctiond_const_w

Definition at line 1224 of file fwd.h.

◆ VertexNormalErrorFunctiond_p

Definition at line 1219 of file fwd.h.

◆ VertexNormalErrorFunctiond_u

Definition at line 1220 of file fwd.h.

◆ VertexNormalErrorFunctiond_w

Definition at line 1221 of file fwd.h.

◆ VertexPlaneErrorFunction

Definition at line 1228 of file fwd.h.

◆ VertexPlaneErrorFunction_const_p

Definition at line 1234 of file fwd.h.

◆ VertexPlaneErrorFunction_const_u

Definition at line 1235 of file fwd.h.

◆ VertexPlaneErrorFunction_const_w

Definition at line 1236 of file fwd.h.

◆ VertexPlaneErrorFunction_p

Definition at line 1231 of file fwd.h.

◆ VertexPlaneErrorFunction_u

Definition at line 1232 of file fwd.h.

◆ VertexPlaneErrorFunction_w

Definition at line 1233 of file fwd.h.

◆ VertexPlaneErrorFunctiond

Definition at line 1229 of file fwd.h.

◆ VertexPlaneErrorFunctiond_const_p

Definition at line 1241 of file fwd.h.

◆ VertexPlaneErrorFunctiond_const_u

Definition at line 1242 of file fwd.h.

◆ VertexPlaneErrorFunctiond_const_w

Definition at line 1243 of file fwd.h.

◆ VertexPlaneErrorFunctiond_p

Definition at line 1238 of file fwd.h.

◆ VertexPlaneErrorFunctiond_u

Definition at line 1239 of file fwd.h.

◆ VertexPlaneErrorFunctiond_w

Definition at line 1240 of file fwd.h.

◆ VertexPositionErrorFunction

◆ VertexPositionErrorFunction_const_p

Definition at line 1253 of file fwd.h.

◆ VertexPositionErrorFunction_const_u

Definition at line 1254 of file fwd.h.

◆ VertexPositionErrorFunction_const_w

Definition at line 1255 of file fwd.h.

◆ VertexPositionErrorFunction_p

Definition at line 1250 of file fwd.h.

◆ VertexPositionErrorFunction_u

Definition at line 1251 of file fwd.h.

◆ VertexPositionErrorFunction_w

Definition at line 1252 of file fwd.h.

◆ VertexPositionErrorFunctiond

◆ VertexPositionErrorFunctiond_const_p

Definition at line 1260 of file fwd.h.

◆ VertexPositionErrorFunctiond_const_u

Definition at line 1261 of file fwd.h.

◆ VertexPositionErrorFunctiond_const_w

Definition at line 1262 of file fwd.h.

◆ VertexPositionErrorFunctiond_p

Definition at line 1257 of file fwd.h.

◆ VertexPositionErrorFunctiond_u

Definition at line 1258 of file fwd.h.

◆ VertexPositionErrorFunctiond_w

Definition at line 1259 of file fwd.h.

◆ VertexProjectionErrorFunction

◆ VertexProjectionErrorFunction_const_p

Initial value:
::std::shared_ptr<const VertexProjectionErrorFunction>

Definition at line 1272 of file fwd.h.

◆ VertexProjectionErrorFunction_const_u

Initial value:
::std::unique_ptr<const VertexProjectionErrorFunction>

Definition at line 1274 of file fwd.h.

◆ VertexProjectionErrorFunction_const_w

Definition at line 1276 of file fwd.h.

◆ VertexProjectionErrorFunction_p

Definition at line 1269 of file fwd.h.

◆ VertexProjectionErrorFunction_u

Definition at line 1270 of file fwd.h.

◆ VertexProjectionErrorFunction_w

Definition at line 1271 of file fwd.h.

◆ VertexProjectionErrorFunctiond

◆ VertexProjectionErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const VertexProjectionErrorFunctiond>

Definition at line 1281 of file fwd.h.

◆ VertexProjectionErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const VertexProjectionErrorFunctiond>

Definition at line 1283 of file fwd.h.

◆ VertexProjectionErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const VertexProjectionErrorFunctiond>

Definition at line 1285 of file fwd.h.

◆ VertexProjectionErrorFunctiond_p

Definition at line 1278 of file fwd.h.

◆ VertexProjectionErrorFunctiond_u

Definition at line 1279 of file fwd.h.

◆ VertexProjectionErrorFunctiond_w

Definition at line 1280 of file fwd.h.

◆ VertexSDFConstraint

Definition at line 389 of file fwd.h.

◆ VertexSDFConstraint_const_p

Definition at line 395 of file fwd.h.

◆ VertexSDFConstraint_const_u

Definition at line 396 of file fwd.h.

◆ VertexSDFConstraint_const_w

Definition at line 397 of file fwd.h.

◆ VertexSDFConstraint_p

Definition at line 392 of file fwd.h.

◆ VertexSDFConstraint_u

Definition at line 393 of file fwd.h.

◆ VertexSDFConstraint_w

Definition at line 394 of file fwd.h.

◆ VertexSDFConstraintd

Definition at line 390 of file fwd.h.

◆ VertexSDFConstraintd_const_p

Definition at line 402 of file fwd.h.

◆ VertexSDFConstraintd_const_u

Definition at line 403 of file fwd.h.

◆ VertexSDFConstraintd_const_w

Definition at line 404 of file fwd.h.

◆ VertexSDFConstraintd_p

Definition at line 399 of file fwd.h.

◆ VertexSDFConstraintd_u

Definition at line 400 of file fwd.h.

◆ VertexSDFConstraintd_w

Definition at line 401 of file fwd.h.

◆ VertexSDFErrorFunction

Definition at line 1290 of file fwd.h.

◆ VertexSDFErrorFunction_const_p

Definition at line 1296 of file fwd.h.

◆ VertexSDFErrorFunction_const_u

Definition at line 1297 of file fwd.h.

◆ VertexSDFErrorFunction_const_w

Definition at line 1298 of file fwd.h.

◆ VertexSDFErrorFunction_p

Definition at line 1293 of file fwd.h.

◆ VertexSDFErrorFunction_u

Definition at line 1294 of file fwd.h.

◆ VertexSDFErrorFunction_w

Definition at line 1295 of file fwd.h.

◆ VertexSDFErrorFunctiond

Definition at line 1291 of file fwd.h.

◆ VertexSDFErrorFunctiond_const_p

Definition at line 1303 of file fwd.h.

◆ VertexSDFErrorFunctiond_const_u

Definition at line 1304 of file fwd.h.

◆ VertexSDFErrorFunctiond_const_w

Definition at line 1305 of file fwd.h.

◆ VertexSDFErrorFunctiond_p

Definition at line 1300 of file fwd.h.

◆ VertexSDFErrorFunctiond_u

Definition at line 1301 of file fwd.h.

◆ VertexSDFErrorFunctiond_w

Definition at line 1302 of file fwd.h.

◆ VertexSequenceErrorFunction

◆ VertexSequenceErrorFunction_const_p

Definition at line 403 of file fwd.h.

◆ VertexSequenceErrorFunction_const_u

Definition at line 404 of file fwd.h.

◆ VertexSequenceErrorFunction_const_w

Definition at line 405 of file fwd.h.

◆ VertexSequenceErrorFunction_p

Definition at line 400 of file fwd.h.

◆ VertexSequenceErrorFunction_u

Definition at line 401 of file fwd.h.

◆ VertexSequenceErrorFunction_w

Definition at line 402 of file fwd.h.

◆ VertexSequenceErrorFunctiond

◆ VertexSequenceErrorFunctiond_const_p

Definition at line 410 of file fwd.h.

◆ VertexSequenceErrorFunctiond_const_u

Definition at line 411 of file fwd.h.

◆ VertexSequenceErrorFunctiond_const_w

Definition at line 412 of file fwd.h.

◆ VertexSequenceErrorFunctiond_p

Definition at line 407 of file fwd.h.

◆ VertexSequenceErrorFunctiond_u

Definition at line 408 of file fwd.h.

◆ VertexSequenceErrorFunctiond_w

Definition at line 409 of file fwd.h.

◆ VertexVertexDistanceErrorFunction

◆ VertexVertexDistanceErrorFunction_const_p

Initial value:
::std::shared_ptr<const VertexVertexDistanceErrorFunction>

Definition at line 1315 of file fwd.h.

◆ VertexVertexDistanceErrorFunction_const_u

Initial value:
::std::unique_ptr<const VertexVertexDistanceErrorFunction>

Definition at line 1317 of file fwd.h.

◆ VertexVertexDistanceErrorFunction_const_w

Initial value:
::std::weak_ptr<const VertexVertexDistanceErrorFunction>

Definition at line 1319 of file fwd.h.

◆ VertexVertexDistanceErrorFunction_p

Definition at line 1312 of file fwd.h.

◆ VertexVertexDistanceErrorFunction_u

Definition at line 1313 of file fwd.h.

◆ VertexVertexDistanceErrorFunction_w

Definition at line 1314 of file fwd.h.

◆ VertexVertexDistanceErrorFunctiond

◆ VertexVertexDistanceErrorFunctiond_const_p

Initial value:
::std::shared_ptr<const VertexVertexDistanceErrorFunctiond>

Definition at line 1325 of file fwd.h.

◆ VertexVertexDistanceErrorFunctiond_const_u

Initial value:
::std::unique_ptr<const VertexVertexDistanceErrorFunctiond>

Definition at line 1327 of file fwd.h.

◆ VertexVertexDistanceErrorFunctiond_const_w

Initial value:
::std::weak_ptr<const VertexVertexDistanceErrorFunctiond>

Definition at line 1329 of file fwd.h.

◆ VertexVertexDistanceErrorFunctiond_p

Definition at line 1322 of file fwd.h.

◆ VertexVertexDistanceErrorFunctiond_u

Definition at line 1323 of file fwd.h.

◆ VertexVertexDistanceErrorFunctiond_w

◆ WeightMatrix

Initial value:
Eigen::Matrix<float, Eigen::Dynamic, kMaxSkinJoints, Eigen::AutoAlign | Eigen::RowMajor>

Skinning weights for each joint influence.

Row = vertex, column = influence slot (fixed at kMaxSkinJoints). Row-major to keep per-vertex influences contiguous.

Definition at line 28 of file skin_weights.h.

Enumeration Type Documentation

◆ CharacterFormat

enum class momentum::CharacterFormat : uint8_t
strong

Represents the supported character formats.

Enumerator
Fbx 

FBX file format.

Gltf 

glTF file format.

Usd 

USD file format.

Unknown 

Unknown or unsupported file format.

Definition at line 24 of file character_io.h.

◆ CharacterMassScale

enum class momentum::CharacterMassScale
strong

Policy for choosing how physical mass changes when scaling a character.

This is intentionally not a raw multiplier: call sites must spell out whether scaling preserves total mass or density, and any new behavior should be added as a named policy.

Enumerator
PreserveMass 

Preserve total mass while scaling lengths. This is appropriate for unit conversions.

PreserveDensity 

Preserve density while scaling lengths, so mass changes with volume.

Definition at line 18 of file character_utility.h.

◆ CollisionPrimitiveType

enum class momentum::CollisionPrimitiveType : uint8_t
strong

Collision primitive kinds supported by character collision geometry.

Enumerator
TaperedCapsule 
Ellipsoid 
Box 

Definition at line 22 of file collision_geometry.h.

◆ EulerConvention

enum class momentum::EulerConvention
strong

The Euler angles convention.

Note
Momentum's skeleton state uses Extrinsic XYZ convention throughout. quaternionToEuler() returns Extrinsic XYZ angles. JointStateT::set() applies rotations in reverse order (Z, Y, X) which is equivalent to Extrinsic XYZ. Relationship between conventions: Extrinsic XYZ = Intrinsic ZYX (same rotation matrix, different description). eulerToRotationMatrix(angles, 0, 1, 2, Extrinsic) = RotZ(c) * RotY(b) * RotX(a) = eulerToRotationMatrix(angles, 2, 1, 0, Intrinsic).
Enumerator
Intrinsic 

The intrinsic convention.

Intrinsic rotations (also called local, relative, or body-fixed rotations) are performed around the axes of the coordinate system that is attached to the rotating object.

Intrinsic rotations are usually represented by a sequence of three letters, like XYZ, which means rotation around the X-axis, followed by rotation around the Y-axis, and finally rotation around the Z-axis. For example, intrinsic XYZ is equivalent to RotX(a) * RotY(b) * RotZ(c).

Extrinsic 

The extrinsic convention.

Extrinsic rotations (also called global, absolute, or space-fixed rotations) are performed around the axes of a fixed coordinate system.

Extrinsic rotations are often represented by uppercase letters, like XYZ, which means rotation around the fixed X-axis, followed by rotation around the fixed Y-axis, and finally rotation around the fixed Z-axis. For example, extrinsic XYZ is equivalent to RotZ(c) * RotY(b) * RotX(a).

Definition at line 161 of file utility.h.

◆ FbxCoordSystem

enum class momentum::FbxCoordSystem
strong

Specifies the third vector of the system.

Maps to fbxsdk::FbxAxisSystem::ECoordSystem

Enumerator
RightHanded 
LeftHanded 

Definition at line 66 of file file_save_options.h.

◆ FbxFrontVector

enum class momentum::FbxFrontVector
strong

Vector with origin at the screen pointing toward the camera.

This is a subset of enum EUpVector because axis cannot be repeated. We use the system of "parity" to define this vector because its value (X,Y or Z axis) really depends on the up-vector. Maps to fbxsdk::FbxAxisSystem::EFrontVector

Enumerator
ParityEven 
ParityOdd 

Definition at line 62 of file file_save_options.h.

◆ FbxUpVector

enum class momentum::FbxUpVector
strong

Specifies which canonical axis represents up in the system (typically Y or Z).

Maps to fbxsdk::FbxAxisSystem::EUpVector

Enumerator
XAxis 
YAxis 
ZAxis 

Definition at line 55 of file file_save_options.h.

◆ GltfAnimationInterpolation

enum class momentum::GltfAnimationInterpolation : uint8_t
strong

How animation samplers written to a GLTF file interpolate between their keys.

Momentum writes one key per frame for joint and blend shape channels. Step (the default) holds each key; Linear lets readers that evaluate between frames (e.g. motion blur or a camera faster than the motion) see the motion between keys. The values at the keys are the same either way.

Enumerator
Step 

Hold each key until the next one (GLTF "STEP").

Linear 

Interpolate between keys (GLTF "LINEAR"; slerp for rotations).

Definition at line 44 of file file_save_options.h.

◆ GltfFileFormat

enum class momentum::GltfFileFormat
strong

File format in which the character is saved.

Enumerator
Auto 
Binary 
Ascii 

Definition at line 28 of file file_save_options.h.

◆ Handedness

enum class momentum::Handedness
strong

Specifies the handedness (chirality) of a coordinate system.

Enumerator
Left 
Right 

Definition at line 22 of file coordinate_system.h.

◆ JointParameterNames

Enumerator
TX 
TY 
TZ 
RX 
RY 
RZ 
SC 

Definition at line 22 of file types.h.

◆ KeepLocators

enum class momentum::KeepLocators
strong
Enumerator
No 
Yes 

Definition at line 23 of file fbx_io.h.

◆ LengthUnit

enum class momentum::LengthUnit
strong

Specifies the unit of length measurement.

Enumerator
Meter 
Decimeter 
Centimeter 
Millimeter 

Definition at line 28 of file coordinate_system.h.

◆ LimitType

Enumerator
MinMax 
MinMaxJoint 
MinMaxJointPassive 
Linear 
LinearJoint 
Ellipsoid 
HalfPlane 
LimitTypeCount 

Definition at line 20 of file parameter_limits.h.

◆ LoadBlendShapes

enum class momentum::LoadBlendShapes
strong
Enumerator
No 
Yes 

Definition at line 26 of file fbx_io.h.

◆ LocatorSpace

enum class momentum::LocatorSpace
strong
Enumerator
Local 
Global 

Definition at line 18 of file locator_io.h.

◆ LogLevel

enum class momentum::LogLevel
strong

Logging levels in ascending order of verbosity.

Disabled suppresses all output; each successive level enables strictly more messages (Error < Warning < Info < Debug < Trace).

Enumerator
Disabled 
Error 
Warning 
Info 
Debug 
Trace 

Definition at line 212 of file log.h.

◆ Permissive

enum class momentum::Permissive
strong
Enumerator
No 
Yes 

Definition at line 21 of file file_save_options.h.

◆ RotationErrorType

enum class momentum::RotationErrorType
strong

Defines different methods for computing rotation error between two quaternions.

Enumerator
RotationMatrixDifference 

Frobenius norm of rotation matrix difference: ||R1 - R2||_F^2.

This is the default method. It computes the squared Frobenius norm of the difference between two rotation matrices. While not a geodesic distance, it has smooth derivatives everywhere and is computationally efficient.

QuaternionLogMap 

Logarithmic map of relative rotation: ||log(R1^{-1} * R2)||^2.

This method computes the squared norm of the logarithmic map of the relative rotation quaternion. This gives the squared geodesic distance on SO(3), which has a clear geometric interpretation. It uses numerically robust logmap computation with Taylor series for small angles.

Definition at line 17 of file state_error_function.h.

◆ Unit

enum class momentum::Unit
strong

An enumeration representing the units of measurement used in marker data files.

Enumerator
M 

Meters.

DM 

Decimeter.

CM 

Centimeters.

MM 

Millimeters.

Unknown 

Unknown unit of measurement.

Definition at line 22 of file coordinate_system.h.

◆ UpAxis

enum class momentum::UpAxis
strong

Specifies which axis points "up" in a 3D coordinate system.

Enumerator
X 
Y 
Z 

Definition at line 15 of file coordinate_system.h.

◆ UpVector

enum class momentum::UpVector
strong

This enumeration is used to define the primary up vector directions for various coordinate systems and orientations in a 3D environment.

Enumerator
X 

X-axis up vector.

Y 

Y-axis up vector.

Z 

Z-axis up vector.

YNeg 

Negative Y-axis up vector.

Definition at line 14 of file coordinate_system.h.

◆ VertexConstraintType

enum class momentum::VertexConstraintType
strong

Type of vertex constraint mode.

Used by error functions that can operate in different vertex constraint modes (Position, Plane, Normal, SymmetricNormal).

Enumerator
Position 
Plane 
Normal 
SymmetricNormal 

Definition at line 62 of file error_function_types.h.

Function Documentation

◆ accumulateChainDerivatives()

template<typename T, typename SinkFn>
void momentum::accumulateChainDerivatives ( const SkeletonStateT< T > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams,
const Vector3< T > & position,
const Vector3< T > & direction,
T weight,
size_t startJoint,
size_t stopJoint,
T scaleCorrection,
const SinkFn & sink )

Accumulate the derivatives of direction .

position with respect to the model parameters along the joint parent chain, walking from startJoint up to (but not including) stopJoint.

For each active joint parameter, sink(value, jointParamIndex) routes the joint-parameter derivative into the destination buffer (a gradient vector or a single Jacobian row). Pass stopJoint = kInvalidIndex to walk all the way to the skeleton root. scaleCorrection is added to the scale-parameter derivative to account for a collision primitive's support radius scaling with the joint's uniform scale.

Definition at line 102 of file error_function_utils.h.

References momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, kInvalidIndex, and kParametersPerJoint.

Referenced by momentum::CollisionErrorFunctionStatelessT< T >::accumulateGradientAlongChain(), momentum::CollisionErrorFunctionT< T >::accumulateGradientAlongChain(), momentum::PlaneCollisionErrorFunctionT< T >::accumulateGradientAlongChain(), momentum::CollisionErrorFunctionStatelessT< T >::accumulateJacobianAlongChain(), momentum::CollisionErrorFunctionT< T >::accumulateJacobianAlongChain(), and momentum::PlaneCollisionErrorFunctionT< T >::accumulateJacobianAlongChain().

◆ addBlendShapeParameters()

◆ addBlendShapeRegularizer()

void momentum::addBlendShapeRegularizer ( SequenceSolverFunctionT< float > & solverFunc,
size_t solverFrame,
size_t solvedFrames,
const Character & character )

◆ addBlendShapes()

size_t momentum::addBlendShapes ( const fx::gltf::Document & model,
const fx::gltf::Primitive & primitive,
BlendShape_u & blendShape )

Add blend shapes from a glTF primitive.

Parameters
[in]modelThe glTF document.
[in]primitiveThe primitive to load blend shapes from.
[in,out]blendShapeThe blend shape to append data to (may be nullptr, will be created if needed).
Returns
The number of blend shapes newly loaded.

Definition at line 242 of file gltf_mesh_io.cpp.

References copyAccessorBuffer(), MT_CHECK, MT_LOGW, and toMomentumVec3f().

Referenced by loadSkinnedMesh().

◆ addCalibrationOptions()

void momentum::addCalibrationOptions ( CLI::App & app,
std::shared_ptr< CalibrationConfig > config )

Definition at line 44 of file app_utils.cpp.

◆ addCameraIntrinsicsParameters()

std::tuple< ParameterTransform, ParameterLimits > momentum::addCameraIntrinsicsParameters ( ParameterTransform paramTransform,
ParameterLimits paramLimits,
const IntrinsicsModel & intrinsicsModel,
bool tieFocalLength = false )
nodiscard

Add camera intrinsics parameters to the parameter transform.

Names follow "intrinsics_{cameraName}_{paramName}" convention. Idempotent: strips existing params for same camera name first. New columns in transform matrix are zero (not mapped to joints).

Parameters
paramTransformThe parameter transform to augment
paramLimitsThe parameter limits to augment
intrinsicsModelThe intrinsics model whose parameters to add (must have a non-empty name)
tieFocalLengthIf true, add a single "f" parameter instead of separate "fx"/"fy". The single parameter controls both fx and fy, combining gradients from horizontal and vertical residuals. Recommended for cameras with square pixels.
Returns
Tuple of updated (paramTransform, paramLimits)
Exceptions
ifintrinsicsModel.name() is empty

Definition at line 34 of file camera_intrinsics_parameters.cpp.

References getCameraIntrinsicsParameterSet(), kIntrinsicsParamPrefix, kTiedFocalLengthSuffix, MT_CHECK, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::parameterSets, subsetParameterTransform(), and momentum::ParameterTransformT< T >::transform.

◆ addFaceExpressionParameters()

◆ addGloveBones()

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.

For each wrist joint specified in the config, adds a child joint with the given translationOffset and preRotation (defaulting to zero/identity). Does NOT add model parameters or register a parameter set.

Parameters
[in]characterSource character to extend (taken by value for move semantics).
[in]cfgGlove configuration specifying wrist joint names.
[in]offsetsPer-hand translation and rotation offsets to bake into the joints.
[in]prefixName prefix for the added glove joints.
Returns
The modified character with glove bones added to the skeleton.

Definition at line 31 of file glove_utils.cpp.

References eulerToQuaternion(), Intrinsic, momentum::Character::inverseBindPose, kInvalidIndex, kParametersPerJoint, MT_LOGW, MT_THROW_IF, momentum::JointT< T >::name, momentum::Character::parameterTransform, momentum::JointT< T >::parent, momentum::JointT< T >::preRotation, momentum::Character::skeleton, momentum::JointT< T >::translationOffset, and momentum::GloveConfig::wristJointNames.

Referenced by bakeGloveOffsetsFromParams(), and createGloveCharacter().

◆ addGloveCalibrationParameters()

Character momentum::addGloveCalibrationParameters ( Character character,
const GloveConfig & cfg,
const std::string & prefix = "glove_" )

Add 6-DOF model parameters for existing glove bones.

Takes a character that already has glove bones (from addGloveBones()) and adds TX/TY/TZ/RX/RY/RZ model parameters for each glove bone. Registers a "gloves" parameter set containing all glove DOFs.

Parameters
[in]characterCharacter with glove bones already in the skeleton (taken by value for move semantics).
[in]cfgGlove configuration specifying wrist joint names.
[in]prefixName prefix used when adding glove joints.
Returns
The modified character with glove model parameters added.

Definition at line 93 of file glove_utils.cpp.

References kInvalidIndex, kMaxModelParams, kParametersPerJoint, MT_CHECK, MT_LOGW, MT_THROW_IF, momentum::Character::parameterTransform, RX, RY, RZ, momentum::Character::skeleton, TX, TY, TZ, and momentum::GloveConfig::wristJointNames.

Referenced by createGloveCharacter().

◆ addGloveConstraintsToSequenceSolver()

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.

Creates JointToJointPosition/OrientationErrorFunction instances, populates them from pre-built constraint data for the given frame, and adds them to the solver at the specified solver frame index. Called from the per-frame loop in trackSequence().

Parameters
[in,out]solverFuncSequence solver to add error functions to.
[in]solverFrameFrame index within the solver.
[in]characterCharacter with glove bones.
[in]posDataPre-built per-frame position constraint data.
[in]oriDataPre-built per-frame orientation constraint data.
[in]iFrameIndex into the constraint data arrays (source frame).
[in]posWeightPosition constraint weight.
[in]oriWeightOrientation constraint weight.

Definition at line 322 of file glove_utils.cpp.

References momentum::SequenceSolverFunctionT< T >::addErrorFunction(), momentum::OrientationErrorFunctionT< float >::kLegacyWeight, and momentum::PositionErrorFunctionT< float >::kLegacyWeight.

◆ addIOOptions()

void momentum::addIOOptions ( CLI::App & app,
std::shared_ptr< IOOptions > ioOptions )

Definition at line 26 of file app_utils.cpp.

◆ addKeypointProjectionConstraints()

void momentum::addKeypointProjectionConstraints ( SequenceSolverFunctionT< float > & solverFunc,
size_t solverFrame,
size_t iFrame,
const Character & character,
float projectionWeight,
std::span< const CameraKeypointData > cameraKeypointData )

Add 2D keypoint projection constraints from outside-in cameras for one solver frame.

Uses ProjectionErrorFunctionT with projectionMatrixRadians() so the residual is in radians (tangent-of-angle), making the weight pixel-independent and naturally scaled relative to marker constraints (in cm).

Definition at line 312 of file marker_tracker.cpp.

References momentum::SequenceSolverFunctionT< T >::addErrorFunction(), momentum::SkeletonT< T >::joints, momentum::Character::locators, M, MT_LOGI, momentum::ProjectionConstraintDataT< T >::offset, momentum::Character::parameterTransform, momentum::ProjectionConstraintDataT< T >::parent, momentum::ProjectionConstraintDataT< T >::projection, momentum::Character::skeleton, momentum::ProjectionConstraintDataT< T >::target, and momentum::ProjectionConstraintDataT< T >::weight.

◆ addMesh()

size_t momentum::addMesh ( const fx::gltf::Document & model,
const fx::gltf::Primitive & primitive,
Mesh_u & mesh )

Add mesh data from a glTF primitive.

Parameters
[in]modelThe glTF document.
[in]primitiveThe primitive to load mesh data from.
[in,out]meshThe mesh to append data to.
Returns
The number of vertices newly loaded.

Definition at line 224 of file gltf_mesh_io.cpp.

References MT_LOGW.

Referenced by loadSkinnedMesh().

◆ addModelOptions()

void momentum::addModelOptions ( CLI::App & app,
std::shared_ptr< ModelOptions > modelOptions )

Definition at line 35 of file app_utils.cpp.

◆ addRefineOptions()

void momentum::addRefineOptions ( CLI::App & app,
std::shared_ptr< RefineConfig > config )

Definition at line 137 of file app_utils.cpp.

References addTrackingOptions().

◆ addRigidTransformNode()

RigidTransformNodeResult momentum::addRigidTransformNode ( const Character & character,
const std::string & name,
const Eigen::Vector3f & translationOffset = Eigen::Vector3f::Zero(),
const Eigen::Quaternionf & preRotation = Eigen::Quaternionf::Identity() )
nodiscard

◆ addSequenceFrameConstraints()

void momentum::addSequenceFrameConstraints ( SequenceSolverFunctionT< float > & solverFunc,
size_t solverFrame,
size_t iFrame,
size_t solvedFrames,
const Character & character,
const TrackingConfig & config,
const std::vector< std::vector< PositionData > > & constrData,
const std::vector< std::vector< SkinnedLocatorConstraint > > & skinnedConstData,
const std::vector< SkinnedLocatorTriangleConstraintT< float > > & skinnedLocatorMeshContraints,
const std::vector< PlaneDataT< float > > & floorConstraints,
bool enforceFloorInFirstFrame,
const std::string & firstFramePoseConstraintSet,
float targetHeightCm,
const std::optional< GloveConfig > & gloveConfig,
const std::vector< std::vector< JointToJointPositionDataT< float > > > & leftGlovePosData,
const std::vector< std::vector< JointToJointOrientationDataT< float > > > & leftGloveOriData,
const std::vector< std::vector< JointToJointPositionDataT< float > > > & rightGlovePosData,
const std::vector< std::vector< JointToJointOrientationDataT< float > > > & rightGloveOriData,
std::span< const CameraKeypointData > cameraKeypointData = {},
std::span< const std::vector< PlaneDataT< float > > > perFrameFloorContacts = {} )

Add per-frame marker, floor, and glove constraints for one frame of the sequence solver.

Extracted from trackSequence to reduce cyclomatic complexity.

Definition at line 370 of file marker_tracker.cpp.

Referenced by trackSequence().

◆ addSkinnedLocatorParameters()

std::tuple< ParameterTransform, ParameterLimits > momentum::addSkinnedLocatorParameters ( ParameterTransform paramTransform,
ParameterLimits paramLimits,
const std::vector< bool > & activeLocators,
const std::vector< std::string > & locatorNames = {} )
nodiscard

Add a set of parameters that control the rest-space positions of the skinned locators.

This function will add 3 parameters for each locator, one for each of the x, y, and z components of the locator position. The parameters are added to the end of the parameter transform. The parameter transform is returned along with the updated list of parameter limits. Note that you pass in the locator names rather than the actual SkinnedLocator objects because this avoids a circular dependency.

Definition at line 612 of file parameter_transform.cpp.

References momentum::ParameterTransformT< T >::getSkinnedLocatorParameters(), MT_CHECK, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::parameterSets, momentum::ParameterTransformT< T >::skinnedLocatorParameters, subsetParameterTransform(), and momentum::ParameterTransformT< T >::transform.

Referenced by addSkinnedLocatorParametersToTransform().

◆ addSkinnedLocatorParametersToTransform()

Character momentum::addSkinnedLocatorParametersToTransform ( Character character)

◆ addSkinWeights()

void momentum::addSkinWeights ( const fx::gltf::Document & model,
const fx::gltf::Skin & skin,
const fx::gltf::Primitive & primitive,
const std::vector< size_t > & nodeToObjectMap,
size_t kNumVertices,
SkinWeights_u & skinWeights )

Add skin weights from a glTF primitive.

Parameters
[in]modelThe glTF document.
[in]skinThe skin containing joint indices.
[in]primitiveThe primitive to load skin weights from.
[in]nodeToObjectMapMapping from node indices to joint indices.
[in]kNumVerticesThe number of vertices to load weights for.
[in,out]skinWeightsThe skin weights to append data to.

Definition at line 390 of file gltf_mesh_io.cpp.

References copyAccessorBuffer(), kInvalidIndex, loadWeightsFromAccessor(), MT_CHECK, MT_LOGW, and MT_LOGW_IF.

Referenced by loadSkinnedMesh().

◆ addTrackingOptions()

void momentum::addTrackingOptions ( CLI::App & app,
std::shared_ptr< TrackingConfig > config )

Definition at line 106 of file app_utils.cpp.

Referenced by addRefineOptions().

◆ aligned_free()

void momentum::aligned_free ( void * ptr)
inline

◆ aligned_malloc()

void * momentum::aligned_malloc ( size_t size,
size_t  )
inlinenodiscard

Definition at line 91 of file aligned.h.

Referenced by alignedAlloc().

◆ alignedAlloc()

template<typename T, std::size_t Alignment = alignof(T)>
T * momentum::alignedAlloc ( std::size_t n)
nodiscard

Allocates a block of memory that can hold n elements of type T with the specified alignment.

This function is intended to be used in the AlignedAllocator::allocate() method and throws exceptions as std::allocator<T>::allocate does. The allocated size is rounded up to a multiple of Alignment so it satisfies the size requirements of std::aligned_alloc on platforms where it is used. The returned pointer must be released with aligned_free.

Exceptions
std::bad_array_new_lengthif n * sizeof(T) would overflow.
std::bad_allocif the underlying aligned allocation fails.

Definition at line 120 of file aligned.h.

References aligned_malloc(), MT_THROW_IF_T, and roundUpToAlignment().

Referenced by momentum::AlignedAllocator< U, Alignment >::allocate(), makeAlignedShared(), and makeAlignedUnique().

◆ allParams()

ParameterSet momentum::allParams ( )
inline

Creates a ParameterSet with all parameters set to active.

Definition at line 37 of file utility.h.

Referenced by logModelParamsColumns(), and momentum::SequenceSolverFunctionT< T >::SequenceSolverFunctionT().

◆ applyInverseSSD() [1/2]

std::vector< Vector3f > momentum::applyInverseSSD ( const TransformationList & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3f > points,
const SkeletonState & state )

Applies inverse SSD to points, returning new points in bind pose space.

This overload transforms points from skinned space back to bind pose space, returning a new vector of transformed points.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform (in skinned space)
stateCurrent skeleton state containing joint transformations
Returns
Vector of transformed points in bind pose space

Definition at line 362 of file linear_skinning.cpp.

References applyInverseSSD(), momentum::SkinWeights::index, momentum::SkeletonStateT< T >::jointState, kMaxSkinJoints, MT_CHECK, and momentum::SkinWeights::weight.

◆ applyInverseSSD() [2/2]

void momentum::applyInverseSSD ( const TransformationList & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3f > points,
const SkeletonState & state,
Mesh & mesh )

Applies inverse SSD to points, storing results in a mesh.

This overload transforms points from skinned space back to bind pose space, writing the results directly to the provided mesh's vertices.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform (in skinned space)
stateCurrent skeleton state containing joint transformations
meshOutput mesh to store the transformed vertices

Definition at line 351 of file linear_skinning.cpp.

References applyInverseSSD(), MT_CHECK, and momentum::MeshT< T >::vertices.

Referenced by applyInverseSSD(), and applyInverseSSD().

◆ applyModelParameterScales()

ModelParameters momentum::applyModelParameterScales ( const ParameterTransform & parameterTransform,
MatrixXf & motion,
const JointParameters & jointIdentity )
nodiscard

Apply model parameter scale conversion to motion data.

Extracts scaling parameters from the parameter transform, converts joint-level identity parameters (bone scales) to model-level parameters using InverseParameterTransform, and bakes the scale values into each frame of the motion matrix.

Parameters
[in]parameterTransformThe character's parameter transform.
[in,out]motionThe motion matrix (numModelParams x numFrames, column-major). Scale parameters are added to each frame in-place.
[in]jointIdentityJoint-level identity parameters (bone scales).
Returns
Model-level identity parameters with scale values.

Definition at line 43 of file inverse_parameter_transform.cpp.

References momentum::InverseParameterTransformT< T >::apply(), momentum::ParameterTransformT< T >::getScalingParameters(), MT_CHECK, MT_LOGW, MT_THROW_IF, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::CharacterParametersT< T >::pose, momentum::ParameterTransformT< T >::simplify(), momentum::EigenStrongType< Derived, EigenType >::size(), momentum::EigenStrongType< Derived, EigenType >::v, and momentum::EigenStrongType< Derived, EigenType >::Zero().

Referenced by loadCharacterWithMotionModelParameterScales().

◆ applyPassiveJointParameterLimits()

JointParameters momentum::applyPassiveJointParameterLimits ( const ParameterLimits & limits,
const JointParameters & jointParams )

Only processes MinMaxJointPassive limits, clamping parameters to their ranges.

Definition at line 40 of file parameter_limits.cpp.

References kParametersPerJoint, MinMaxJointPassive, MT_THROW_IF, and momentum::EigenStrongType< Derived, EigenType >::size().

Referenced by momentum::CharacterStateT< T >::set().

◆ applySSD() [1/10]

template<typename T>
void momentum::applySSD ( const SkinWeights & skin,
const MeshT< T > & mesh,
typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms,
MeshT< T > & outputMesh )

Applies forward SSD to a mesh using precomputed skinning transforms.

This is the core mesh skinning function that applies precomputed transformation matrices to transform both vertices and normals from bind pose to animated pose.

Parameters
skinSkin weights defining influence of each joint on vertices
meshInput mesh to transform
skinningTransformsPrecomputed skinning transformation matrices
outputMeshOutput mesh to store the transformed result

Definition at line 162 of file linear_skinning.cpp.

References applySSD(), momentum::MeshT< T >::faces, momentum::SkinWeights::index, MT_CHECK, MT_PROFILE_FUNCTION, momentum::MeshT< T >::normals, momentum::MeshT< T >::vertices, and momentum::SkinWeights::weight.

◆ applySSD() [2/10]

template<typename T>
std::vector< Vector3< T > > momentum::applySSD ( const SkinWeights & skin,
typename DeduceSpanType< const Vector3< T > >::type points,
typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms )

Applies forward SSD (linear blend skinning) to points using precomputed skinning transforms.

This is the core skinning function that applies precomputed transformation matrices to transform points from bind pose to animated pose.

Parameters
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform
skinningTransformsPrecomputed skinning transformation matrices
Returns
Vector of transformed points

Definition at line 40 of file linear_skinning.cpp.

References momentum::SkinWeights::index, MT_CHECK, MT_PROFILE_FUNCTION, and momentum::SkinWeights::weight.

Referenced by applySSD(), applySSD(), applySSD(), applySSD(), applySSD(), applySSD(), applySSD(), applySSD(), applySSD(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< double >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), applySSD< float >(), momentum::Character::bake(), momentum::CharacterStateT< T >::set(), and momentum::MeshStateT< T >::update().

◆ applySSD() [3/10]

template<typename T>
void momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
const MeshT< T > & mesh,
const SkeletonStateT< T > & state,
MeshT< T > & outputMesh )

Applies forward SSD to a mesh using skeleton state, modifying output mesh.

This overload transforms both vertices and normals of the mesh, writing results to outputMesh. Use this when working with complete meshes and full skeleton state.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
meshInput mesh to transform
stateCurrent skeleton state containing joint transformations
outputMeshOutput mesh to store the transformed result

Definition at line 260 of file linear_skinning.cpp.

References applySSD(), and momentum::SkeletonStateT< T >::jointState.

◆ applySSD() [4/10]

template<typename T>
void momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
const MeshT< T > & mesh,
const TransformationListT< T > & worldTransforms,
MeshT< T > & outputMesh )

Applies forward SSD to a mesh using precomputed world transforms.

This convenience overload accepts world-space transforms directly instead of joint states. Useful when you already have computed world transforms from another source.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
meshInput mesh to transform
worldTransformsWorld-space transforms for each joint
outputMeshOutput mesh to store the transformed result

Definition at line 270 of file linear_skinning.cpp.

References applySSD(), and MT_CHECK.

◆ applySSD() [5/10]

template<typename T>
void momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
const MeshT< T > & mesh,
typename DeduceSpanType< const JointStateT< T > >::type jointState,
MeshT< T > & outputMesh )

Applies forward SSD to a mesh using joint states, modifying output mesh.

This overload accepts a span of joint states directly. Use this when you have joint transformations but not a complete skeleton state.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
meshInput mesh to transform
jointStateSpan of joint states containing transformations
outputMeshOutput mesh to store the transformed result

Definition at line 249 of file linear_skinning.cpp.

References applySSD(), and computeSkinningTransforms().

◆ applySSD() [6/10]

template<typename T>
void momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
const MeshT< T > & mesh,
typename DeduceSpanType< const TransformT< T > >::type worldTransforms,
MeshT< T > & outputMesh )

Applies forward SSD to a mesh using a span of world transforms.

This overload accepts world-space transforms as a span for greater flexibility. Useful when you have transforms in a contiguous array that isn't a std::vector.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
meshInput mesh to transform
worldTransformsSpan of world-space transforms for each joint
outputMeshOutput mesh to store the transformed result

Definition at line 290 of file linear_skinning.cpp.

References applySSD(), and MT_CHECK.

◆ applySSD() [7/10]

template<typename T>
std::vector< Vector3< T > > momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
typename DeduceSpanType< const Vector3< T > >::type points,
const SkeletonStateT< T > & state )

Applies forward SSD to points using skeleton state, returning new points.

This overload transforms individual points using the full skeleton state. Convenience wrapper that extracts joint states from the skeleton state.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform
stateCurrent skeleton state containing joint transformations
Returns
Vector of transformed points

Definition at line 115 of file linear_skinning.cpp.

References applySSD(), and momentum::SkeletonStateT< T >::jointState.

◆ applySSD() [8/10]

template<typename T>
std::vector< Vector3< T > > momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
typename DeduceSpanType< const Vector3< T > >::type points,
const TransformationListT< T > & worldTransforms )

Applies forward SSD to points using precomputed world transforms, returning new points.

This convenience overload accepts world-space transforms directly instead of joint states. Useful when you already have computed world transforms from another source.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform
worldTransformsWorld-space transforms for each joint
Returns
Vector of transformed points

Definition at line 124 of file linear_skinning.cpp.

References applySSD(), and MT_CHECK.

◆ applySSD() [9/10]

template<typename T>
std::vector< Vector3< T > > momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
typename DeduceSpanType< const Vector3< T > >::type points,
typename DeduceSpanType< const JointStateT< T > >::type jointState )

Applies forward SSD to points using joint states, returning new points.

This overload transforms individual points and returns a new vector of transformed points. Use this when you need to transform arbitrary points without modifying a mesh.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform
jointStateSpan of joint states containing current transformations
Returns
Vector of transformed points

Definition at line 105 of file linear_skinning.cpp.

References applySSD(), and computeSkinningTransforms().

◆ applySSD() [10/10]

template<typename T>
std::vector< Vector3< T > > momentum::applySSD ( const TransformationListT< T > & inverseBindPose,
const SkinWeights & skin,
typename DeduceSpanType< const Vector3< T > >::type points,
typename DeduceSpanType< const TransformT< T > >::type worldTransforms )

Applies forward SSD to points using a span of world transforms, returning new points.

This overload accepts world-space transforms as a span for greater flexibility. Useful when you have transforms in a contiguous array that isn't a std::vector.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
pointsInput points to transform
worldTransformsSpan of world-space transforms for each joint
Returns
Vector of transformed points

Definition at line 143 of file linear_skinning.cpp.

References applySSD(), and MT_CHECK.

◆ applySSD< double >() [1/10]

template void momentum::applySSD< double > ( const SkinWeights & skin,
const MeshT< double > & mesh,
momentum::span< const Eigen::Matrix4d > skinningTransforms,
MeshT< double > & outputMesh )

References applySSD().

◆ applySSD< double >() [2/10]

template std::vector< Vector3d > momentum::applySSD< double > ( const SkinWeights & skin,
momentum::span< const Vector3d > points,
momentum::span< const Eigen::Matrix4d > skinningTransforms )

References applySSD().

◆ applySSD< double >() [3/10]

template void momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
const MeshT< double > & mesh,
const SkeletonStateT< double > & state,
MeshT< double > & outputMesh )

References applySSD().

◆ applySSD< double >() [4/10]

template void momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
const MeshT< double > & mesh,
const TransformationListT< double > & worldTransforms,
MeshT< double > & outputMesh )

References applySSD().

◆ applySSD< double >() [5/10]

template void momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
const MeshT< double > & mesh,
momentum::span< const JointStateT< double > > jointState,
MeshT< double > & outputMesh )

References applySSD().

◆ applySSD< double >() [6/10]

template void momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
const MeshT< double > & mesh,
momentum::span< const TransformT< double > > worldTransforms,
MeshT< double > & outputMesh )

References applySSD().

◆ applySSD< double >() [7/10]

template std::vector< Vector3d > momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3d > points,
const SkeletonStateT< double > & state )

References applySSD().

◆ applySSD< double >() [8/10]

template std::vector< Vector3d > momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3d > points,
const TransformationListT< double > & worldTransforms )

References applySSD().

◆ applySSD< double >() [9/10]

template std::vector< Vector3d > momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3d > points,
momentum::span< const JointStateT< double > > jointState )

References applySSD().

◆ applySSD< double >() [10/10]

template std::vector< Vector3d > momentum::applySSD< double > ( const TransformationListT< double > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3d > points,
momentum::span< const TransformT< double > > worldTransforms )

References applySSD().

◆ applySSD< float >() [1/10]

template void momentum::applySSD< float > ( const SkinWeights & skin,
const MeshT< float > & mesh,
momentum::span< const Eigen::Matrix4f > skinningTransforms,
MeshT< float > & outputMesh )

References applySSD().

◆ applySSD< float >() [2/10]

template std::vector< Vector3f > momentum::applySSD< float > ( const SkinWeights & skin,
momentum::span< const Vector3f > points,
momentum::span< const Eigen::Matrix4f > skinningTransforms )

References applySSD().

◆ applySSD< float >() [3/10]

template void momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
const MeshT< float > & mesh,
const SkeletonStateT< float > & state,
MeshT< float > & outputMesh )

References applySSD().

◆ applySSD< float >() [4/10]

template void momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
const MeshT< float > & mesh,
const TransformationListT< float > & worldTransforms,
MeshT< float > & outputMesh )

References applySSD().

◆ applySSD< float >() [5/10]

template void momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
const MeshT< float > & mesh,
momentum::span< const JointStateT< float > > jointState,
MeshT< float > & outputMesh )

References applySSD().

◆ applySSD< float >() [6/10]

template void momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
const MeshT< float > & mesh,
momentum::span< const TransformT< float > > worldTransforms,
MeshT< float > & outputMesh )

References applySSD().

◆ applySSD< float >() [7/10]

template std::vector< Vector3f > momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3f > points,
const SkeletonStateT< float > & state )

References applySSD().

◆ applySSD< float >() [8/10]

template std::vector< Vector3f > momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3f > points,
const TransformationListT< float > & worldTransforms )

References applySSD().

◆ applySSD< float >() [9/10]

template std::vector< Vector3f > momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3f > points,
momentum::span< const JointStateT< float > > jointState )

References applySSD().

◆ applySSD< float >() [10/10]

template std::vector< Vector3f > momentum::applySSD< float > ( const TransformationListT< float > & inverseBindPose,
const SkinWeights & skin,
momentum::span< const Vector3f > points,
momentum::span< const TransformT< float > > worldTransforms )

References applySSD().

◆ averageTriangleSkinWeights()

std::pair< Eigen::Vector< uint32_t, kMaxSkinJoints >, Eigen::Vector< float, kMaxSkinJoints > > momentum::averageTriangleSkinWeights ( const Character & character,
int triangleIndex,
const Eigen::Vector3f & barycentric )

◆ bakeGloveOffsetsFromParams()

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.

Reads the solved TX/TY/TZ/RX/RY/RZ from the glove bones in solvingCharacter's parameter transform, converts them to joint translationOffset and preRotation, and adds (or updates) glove bones in the target character. After this call the character has glove bones with the calibrated offset baked in, but no glove model parameters.

Parameters
[in,out]characterCharacter to add/update glove bones on.
[in]solvedParamsModel parameters from the calibration solve.
[in]solvingCharacterCharacter with glove calibration parameters.
[in]cfgGlove configuration specifying wrist joint names (no-op if nullopt).

Definition at line 182 of file glove_utils.cpp.

References addGloveBones(), extractGloveOffsetsFromCharacter(), momentum::SkeletonT< T >::joints, kParametersPerJoint, MT_LOGI, momentum::CharacterParametersT< T >::offsets, momentum::CharacterParametersT< T >::pose, momentum::Character::skeleton, and momentum::EigenStrongType< Derived, EigenType >::Zero().

Referenced by calibrateModel().

◆ bindMeshToJoint()

SkinWeights_u momentum::bindMeshToJoint ( const Mesh_u & mesh,
size_t jointId )

Bind a mesh to a single joint.

Parameters
[in]meshThe mesh to bind.
[in]jointIdThe joint index to bind to.
Returns
The skin weights binding all vertices to the specified joint.

Definition at line 540 of file gltf_mesh_io.cpp.

◆ blendTransforms() [1/3]

template TransformT< double > momentum::blendTransforms ( momentum::span< const TransformT< double > > transforms,
momentum::span< const double > weights )

◆ blendTransforms() [2/3]

template TransformT< float > momentum::blendTransforms ( momentum::span< const TransformT< float > > transforms,
momentum::span< const float > weights )

◆ blendTransforms() [3/3]

template<typename T>
TransformT< T > momentum::blendTransforms ( momentum::span< const TransformT< T > > transforms,
momentum::span< const T > weights )

Weighted blend of transforms: rotations are blended via averaged quaternions, translations and scales linearly.

transforms and weights must have the same size.

Definition at line 104 of file transform.cpp.

◆ boxRadiusAlongDirection()

template<typename T>
T momentum::boxRadiusAlongDirection ( const Quaternion< T > & orientation,
const Vector3< T > & halfExtents,
const Vector3< T > & unitDirection )
nodiscard

Return the support radius of an oriented box along a unit world-space direction.

Definition at line 185 of file collision_geometry_state.h.

Referenced by centeredPrimitiveRadiusAlongDirection().

◆ buildCalibBodySets()

◆ buildHierarchicalPaths()

std::vector< std::string > momentum::buildHierarchicalPaths ( const Skeleton & skeleton)

Build hierarchical joint paths from flat names and parent indices.

E.g., joint 0 "root" (no parent) -> "root" joint 1 "spine" (parent 0) -> "root/spine" joint 2 "chest" (parent 1) -> "root/spine/chest"

Definition at line 108 of file usd_skeleton_io.cpp.

References momentum::SkeletonT< T >::joints, kInvalidIndex, and MT_THROW_IF.

Referenced by saveSkeletonStatesToUsd(), and saveSkeletonToUsd().

◆ buildJetMat()

template<typename T, int Rows, int Cols>
Eigen::Matrix< ceres::Jet< T, Cols *Rows >, Rows, Cols > momentum::buildJetMat ( const Eigen::Matrix< T, Rows, Cols > & m)

◆ buildJetVec()

◆ buildTriangleAdjacency()

std::vector< std::vector< size_t > > momentum::buildTriangleAdjacency ( const momentum::Mesh & mesh)

Build triangle adjacency: for each triangle, find triangles that share an edge.

Parameters
meshThe mesh to build adjacency for
Returns
Vector where result[i] contains indices of triangles adjacent to triangle i

Definition at line 407 of file tracker_utils.cpp.

References momentum::MeshT< T >::faces.

Referenced by createSkinnedLocatorMeshConstraints().

◆ calculateDWorldPos()

template<typename T>
Eigen::Vector3< T > momentum::calculateDWorldPos ( const momentum::Character & character,
const SkeletonStateT< T > & state,
const int vertexIndex,
const Eigen::Vector3< T > & d_restPos )

◆ calculateFpsFromAnimationData()

float momentum::calculateFpsFromAnimationData ( const fx::gltf::Document & model)

Calculate FPS from glTF animation data.

Parameters
[in]modelThe glTF document containing animation data.
Returns
Estimated FPS, or 0.0f if unable to calculate.

Definition at line 115 of file gltf_animation_io.cpp.

Referenced by loadMotionFromModel().

◆ calibrateLocators() [1/2]

void momentum::calibrateLocators ( const std::span< const std::vector< Marker > > markerData,
const CalibrationConfig & config,
const ModelParameters & identity,
Character & character )

Calibrate only locator positions with fixed character identity parameters.

This is a specialized calibration function that only solves for locator positions while keeping all other character parameters (scaling, blend shapes) fixed. This is useful when you have reliable identity parameters and only need to fine-tune marker positions.

Parameters
markerDataMarker observations for each frame
configCalibration configuration settings
identityFixed identity parameters (scaling, blend shapes)
characterCharacter model to calibrate (locators modified in-place)

Definition at line 1789 of file marker_tracker.cpp.

References momentum::CalibrationConfig::adaptiveFloorContact, momentum::CalibrationConfig::calibFrames, createLocatorCharacter(), momentum::BaseConfig::debug, momentum::CalibrationConfig::enforceFloorInFirstFrame, extractLocatorsFromCharacter(), momentum::CalibrationConfig::firstFramePoseConstraintSet, momentum::ParameterTransformT< T >::getPoseParameters(), momentum::CalibrationConfig::greedySampling, momentum::Character::locators, momentum::BaseConfig::lossAlpha, momentum::CalibrationConfig::majorIter, momentum::BaseConfig::maxIter, momentum::CalibrationConfig::meshConstraintWeight, momentum::TrackingConfig::meshConstraintWeight, momentum::BaseConfig::minVisPercent, MT_LOGI_IF, MT_LOGW, MT_THROW_IF, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::ParameterTransformT< T >::parameterSets, momentum::Character::parameterTransform, momentum::CharacterParametersT< T >::pose, momentum::BaseConfig::regularization, sampleFrames(), trackPosesForFrames(), trackPosesPerframe(), trackSequence(), and momentum::EigenStrongType< Derived, EigenType >::v.

Referenced by calibrateMarkers(), and processMarkers().

◆ calibrateLocators() [2/2]

void momentum::calibrateLocators ( std::span< const std::vector< momentum::Marker > > markerData,
const CalibrationConfig & config,
const momentum::ModelParameters & identity,
momentum::Character & character )

Calibrate locator offsets of a character from input identity and marker data.

Parameters
[in]markerDataInput marker data.
[in]configSolving options.
[in]identityIdentity parameters of the input character.
[in,out]characterCharacter definition. It provides input locators offsets which will get updated in return. We overwrite the locators in the input character so we don't have to duplicate the character object inside the function.

◆ calibrateMarkers()

void momentum::calibrateMarkers ( momentum::Character & character,
momentum::ModelParameters & identity,
std::span< const std::vector< momentum::Marker > > markerData,
const CalibrationConfig & calibrationConfig,
size_t firstFrame = 0,
size_t maxFrames = 0,
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt,
std::span< const CameraKeypointData > cameraKeypointData = {},
std::vector< size_t > * selectedFrameIndices = nullptr,
Eigen::MatrixXf * selectedFrameMotion = nullptr )

Calibrates a character model using marker data without running full tracking.

This function performs only the calibration step (scaling, locator offsets, and optionally shape parameters) without running per-frame tracking on all frames. This is useful when you want to calibrate on a ROM (range of motion) sequence but don't need the tracked motion for that sequence.

Parameters
[in,out]characterThe input character definition with locators. It also holds the output locators if locators are to be calibrated from the calibrationConfig.
[in,out]identityThe input identity used for calibration. It also holds the solved identity if identity is to be calibrated from the calibrationConfig.
[in]markerDataThe per-frame position targets used for calibration.
[in]calibrationConfigThe config for running calibration.
[in]firstFrameThe first frame to start calibration. We pass in the first frame instead of trimming markerData to avoid data copy.
[in]maxFramesThe maximum number of frames to use for calibration starting from firstFrame.
[out]selectedFrameIndicesIf non-null, receives the frame indices selected by greedy sampling for calibration (relative to the firstFrame-trimmed input).

Definition at line 132 of file process_markers.cpp.

References calibrateLocators(), calibrateModel(), momentum::CalibrationConfig::globalScaleOnly, momentum::CalibrationConfig::locatorsOnly, MT_CHECK, and MT_THROW_IF.

◆ calibrateModel() [1/2]

void momentum::calibrateModel ( const std::span< const std::vector< Marker > > markerData,
const CalibrationConfig & config,
Character & character,
ModelParameters & identity,
const std::array< float, 3 > & regularizerWeights,
std::span< const GloveFrameData > leftGloveData,
std::span< const GloveFrameData > rightGloveData,
const std::optional< GloveConfig > & gloveConfig,
std::span< const CameraKeypointData > cameraKeypointData,
std::vector< size_t > * selectedFrameIndices,
Eigen::MatrixXf * selectedFrameMotion )

Definition at line 1479 of file marker_tracker.cpp.

References momentum::CalibrationConfig::adaptiveFloorContact, addSkinnedLocatorParametersToTransform(), bakeGloveOffsetsFromParams(), momentum::Character::blendShape, buildCalibBodySets(), momentum::CalibrationConfig::calibFrames, momentum::CalibrationConfig::calibShape, computeFloorContactConstraints(), createFloorConstraints< float >(), createGloveCharacter(), createLocatorCharacter(), momentum::BaseConfig::debug, momentum::CalibrationConfig::enforceFloorInFirstFrame, extractBlendWeights(), extractIdAndLocatorsFromParams(), momentum::CalibrationConfig::firstFramePoseConstraintSet, momentum::CalibrationConfig::floorContactPercentile, momentum::ParameterTransformT< T >::getParameterSet(), momentum::ParameterTransformT< T >::getPoseParameters(), momentum::CalibrationConfig::greedySampling, momentum::SkeletonT< T >::joints, momentum::Character::locators, logKeypointReprojectionDiagnostic(), momentum::BaseConfig::lossAlpha, momentum::CalibrationConfig::majorIter, momentum::BaseConfig::maxIter, momentum::CalibrationConfig::meshConstraintWeight, momentum::TrackingConfig::meshConstraintWeight, momentum::BaseConfig::minVisPercent, MT_LOGI, MT_LOGI_IF, MT_LOGW, MT_THROW_IF, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::CalibrationConfig::projectionWeight, momentum::TrackingConfig::projectionWeight, momentum::BaseConfig::regularization, sampleFrames(), momentum::Character::skeleton, momentum::Character::skinnedLocators, momentum::CalibrationConfig::targetHeightCm, trackPosesForFrames(), trackPosesPerframe(), trackSequence(), and momentum::EigenStrongType< Derived, EigenType >::v.

Referenced by calibrateMarkers(), and processMarkers().

◆ calibrateModel() [2/2]

void momentum::calibrateModel ( std::span< const std::vector< momentum::Marker > > markerData,
const CalibrationConfig & config,
momentum::Character & character,
momentum::ModelParameters & identity,
const std::array< float, 3 > & regularizerWeights = {0.0f, 0.0f, 0.0f},
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt,
std::span< const CameraKeypointData > cameraKeypointData = {},
std::vector< size_t > * selectedFrameIndices = nullptr,
Eigen::MatrixXf * selectedFrameMotion = nullptr )

Calibrate body proportions and locator offsets of a character from input marker data.

Parameters
[in]markerDataInput marker data.
[in]configSolving options.
[in,out]characterCharacter definition. It provides input locators offsets which will get updated in return.
[in,out]identityInitial identity parameters that get updated in return. It could also hold the pose of the first frame for better initialization for tracking later.
[in]regularizerWeightsRegularizer weights used for global parameters, at each different stage (3 in total) of the calibration. Ideally these weights would increase over stages: in stage 0, 0 or low regularization weight to allow a large change; in stage 1, a small regularization weight to prevent too large of a change; in stage 2, a higher regularization weight to prevent large changes.
[out]selectedFrameIndicesIf non-null, receives the frame indices selected by greedy sampling for calibration.
[out]selectedFrameMotionIf non-null, receives the solved motion parameters for the selected calibration frames. Each column corresponds to an entry in selectedFrameIndices.

◆ cast()

template<typename OtherScalar, template< typename... > class ContainerType, typename ObjectType>
decltype(auto) momentum::cast ( const ContainerType< ObjectType > & originalContainer)
nodiscard

Casts the scalar type of objects in a container that support the cast<>() method.

Template Parameters
OtherScalarThe target scalar type for the cast.
ContainerTypeThe type of the container.
ObjectTypeThe type of the objects in the original container.
Parameters
originalContainerA container of objects.
Returns
A new container with objects of the scalar type casted to OtherScalar. If OtherScalar matches the original type, the original container is returned.

Definition at line 466 of file types.h.

References cast().

Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), calculateDWorldPos(), cast(), momentum::MppcaT< T >::cast(), momentum::ParameterTransformT< T >::cast(), momentum::SkeletonT< float >::cast(), castMatrices(), castVectors(), momentum::detail_sdf_collision::computeColliderWorldBoundingBox(), momentum::BlendShapeBase::computeDeltas(), momentum::BlendShape::computeShape(), momentum::detail_sdf_collision::computeWorldToColliderTransform(), momentum::FullyDifferentiableProjectionErrorFunctionT< T >::constraintGradient_dot(), momentum::DistanceConstraintDataT< T >::createFromLocator(), momentum::FullyDifferentiableDistanceErrorFunctionT< T >::d_gradient_d_input_dot(), momentum::FullyDifferentiableOrientationErrorFunctionT< T >::d_gradient_d_input_dot(), momentum::FullyDifferentiablePositionErrorFunctionT< T >::d_gradient_d_input_dot(), momentum::FullyDifferentiableProjectionErrorFunctionT< T >::d_gradient_d_input_dot(), momentum::FullyDifferentiableStateErrorFunctionT< T >::d_gradient_d_input_dot(), momentum::VertexNormalErrorFunctionT< T >::evalFunction(), momentum::VertexPlaneErrorFunctionT< T >::evalFunction(), momentum::SDFColliderT< float >::evaluateWithGradient(), momentum::CameraVertexProjectionErrorFunctionT< T >::getError(), momentum::FullyDifferentiablePositionErrorFunctionT< T >::getError(), momentum::HeightErrorFunctionT< T >::getError(), momentum::VertexErrorFunctionT< T, Data, FuncDim >::getError(), momentum::CameraVertexProjectionErrorFunctionT< T >::getGradient(), momentum::HeightErrorFunctionT< T >::getGradient(), momentum::VertexErrorFunctionT< T, Data, FuncDim >::getGradient(), momentum::VertexNormalErrorFunctionT< T >::getGradient(), momentum::VertexPositionErrorFunctionT< T >::getGradient(), momentum::FullyDifferentiablePosePriorErrorFunctionT< T >::getInputImp(), momentum::CameraVertexProjectionErrorFunctionT< T >::getJacobian(), momentum::HeightErrorFunctionT< T >::getJacobian(), momentum::ProjectionErrorFunctionT< T >::getJacobian(), momentum::VertexErrorFunctionT< T, Data, FuncDim >::getJacobian(), momentum::VertexNormalErrorFunctionT< T >::getJacobian(), momentum::VertexPositionErrorFunctionT< T >::getJacobian(), getSkinnedLocatorPosition(), momentum::PlaneCollisionErrorFunctionT< T >::PlaneCollisionErrorFunctionT(), momentum::PlaneCollisionQueryT< T >::PlaneCollisionQueryT(), momentum::JointStateT< T >::set(), momentum::SkeletonStateT< T >::set(), momentum::SkinningWeightIteratorT< T >::SkinningWeightIteratorT(), momentum::SkinningWeightIteratorT< T >::SkinningWeightIteratorT(), momentum::MeshStateT< T >::update(), momentum::PositionConstraintStateT< T >::update(), momentum::CollisionErrorFunctionStatelessT< T >::updateCollisionPairs(), and momentum::CollisionErrorFunctionT< T >::updateCollisionPairs().

◆ cast_span() [1/2]

template<typename T>
std::span< const T > momentum::cast_span ( std::span< const std::byte > bs)
nodiscard

Casts a span of const bytes to a span of a different type.

This function takes a span of const bytes and returns a span of a different type, by reinterpreting the bytes as the new type. This function is useful when working with serialized data or when dealing with raw memory. The function assumes that the size of the new type is an exact multiple of the size of the original span.

Template Parameters
TThe type to cast the span to
Parameters
bsThe original span of const bytes to cast
Returns
A span of the new type, with the same number of elements as the original span

Definition at line 44 of file gsl_utils.h.

◆ cast_span() [2/2]

template<typename T>
std::span< T > momentum::cast_span ( std::span< std::byte > bs)
nodiscard

Casts a span of bytes to a span of a different type.

This function takes a span of bytes and returns a span of a different type, by reinterpreting the bytes as the new type. This function is useful when working with serialized data or when dealing with raw memory. The function assumes that the size of the new type is an exact multiple of the size of the original span.

Template Parameters
TThe type to cast the span to
Parameters
bsThe original span of bytes to cast
Returns
A span of the new type, with the same number of elements as the original span

Definition at line 26 of file gsl_utils.h.

Referenced by loadOpenFbxMarkerSequence().

◆ castMatrices()

template<typename T, typename T2>
std::vector< Eigen::MatrixX< T2 > > momentum::castMatrices ( momentum::span< const Eigen::MatrixX< T > > m_in)

Definition at line 102 of file mppca.cpp.

References cast().

Referenced by momentum::MppcaT< T >::cast().

◆ castVectors()

template<typename T, typename T2, int N>
std::vector< Eigen::Vector< T2, N > > momentum::castVectors ( const std::vector< Eigen::Vector< T, N > > & vec_in)

Definition at line 54 of file mesh.cpp.

References cast().

Referenced by momentum::MeshT< T >::cast().

◆ centeredPrimitiveRadiusAlongDirection()

template<typename T>
T momentum::centeredPrimitiveRadiusAlongDirection ( CollisionPrimitiveType type,
const Quaternion< T > & orientation,
const Vector3< T > & ellipsoidRadii,
const Vector3< T > & boxHalfExtents,
const Vector3< T > & unitDirection )
nodiscard

Return the support radius of an ellipsoid or box along a unit world-space direction.

Definition at line 200 of file collision_geometry_state.h.

References Box, boxRadiusAlongDirection(), Ellipsoid, and ellipsoidRadiusAlongDirection().

Referenced by overlaps(), and overlapsCapsuleCenteredPrimitive().

◆ changeQuaternion() [1/3]

template Quaternion< double > momentum::changeQuaternion ( const Quaternion< double > & ,
const CoordinateSystem & ,
const CoordinateSystem &  )

◆ changeQuaternion() [2/3]

template Quaternion< float > momentum::changeQuaternion ( const Quaternion< float > & ,
const CoordinateSystem & ,
const CoordinateSystem &  )

◆ changeQuaternion() [3/3]

template<typename T>
Quaternion< T > momentum::changeQuaternion ( const Quaternion< T > & q,
const CoordinateSystem & from,
const CoordinateSystem & to )
nodiscard

Converts a quaternion rotation between coordinate systems.

Applies axis permutation (and optional handedness flip). No unit scaling โ€” rotations are dimensionless.

Definition at line 108 of file coordinate_system.cpp.

References changeRotationMatrix().

Referenced by fromMomentumQuaternion(), and toMomentumQuaternion().

◆ changeRotationMatrix() [1/3]

template Matrix3< double > momentum::changeRotationMatrix ( const Matrix3< double > & ,
const CoordinateSystem & ,
const CoordinateSystem &  )

◆ changeRotationMatrix() [2/3]

template Matrix3< float > momentum::changeRotationMatrix ( const Matrix3< float > & ,
const CoordinateSystem & ,
const CoordinateSystem &  )

◆ changeRotationMatrix() [3/3]

template<typename T>
Matrix3< T > momentum::changeRotationMatrix ( const Matrix3< T > & m,
const CoordinateSystem & from,
const CoordinateSystem & to )
nodiscard

Converts a 3x3 rotation matrix between coordinate systems.

Computes R_to = P * R_from * P^T where P is the change-of-basis permutation (and reflection for handedness flips) matrix. No unit scaling.

Precondition
m is a proper rotation matrix (orthonormal, det == +1).

Definition at line 119 of file coordinate_system.cpp.

Referenced by changeQuaternion(), fromMomentumRotationMatrix(), and toMomentumRotationMatrix().

◆ changeVector() [1/3]

template Vector3< double > momentum::changeVector ( const Vector3< double > & ,
const CoordinateSystem & ,
const CoordinateSystem &  )

◆ changeVector() [2/3]

template Vector3< float > momentum::changeVector ( const Vector3< float > & ,
const CoordinateSystem & ,
const CoordinateSystem &  )

◆ changeVector() [3/3]

template<typename T>
Vector3< T > momentum::changeVector ( const Vector3< T > & v,
const CoordinateSystem & from,
const CoordinateSystem & to )
nodiscard

Converts a 3D position vector between coordinate systems.

Applies axis permutation, optional handedness flip, and unit scaling.

Definition at line 100 of file coordinate_system.cpp.

References scaleFactor().

Referenced by fromMomentumVector(), and toMomentumVector().

◆ characterToLegacyJson()

nlohmann::json momentum::characterToLegacyJson ( const Character & character)
nodiscard

Converts a Character to legacy JSON object.

Parameters
[in]characterThe Character to convert
Returns
nlohmann::json object containing the legacy JSON representation

Definition at line 652 of file legacy_json_io.cpp.

References momentum::Character::collision, momentum::Character::locators, momentum::Character::mesh, momentum::Character::skeleton, and momentum::Character::skinWeights.

Referenced by characterToLegacyJsonString(), and saveCharacterToLegacyJson().

◆ characterToLegacyJsonString()

std::string momentum::characterToLegacyJsonString ( const Character & character)
nodiscard

Converts a Character to legacy JSON string.

Parameters
[in]characterThe Character to convert
Returns
String containing the legacy JSON representation

Definition at line 647 of file legacy_json_io.cpp.

References characterToLegacyJson().

◆ checkAlignment()

template<size_t Alignment>
void momentum::checkAlignment ( const Eigen::Ref< Eigen::MatrixXf > & mat,
size_t offset = 0 )

Checks if the data of the matrix is aligned correctly.

Parameters
matThe matrix to check for alignment.
offsetOffset into the matrix data in elements.
Exceptions
ifmat.data() + offset is not aligned to Alignment bytes.

Definition at line 156 of file simd.h.

References MT_THROW_IF.

◆ classifyTrianglesByTexture()

std::vector< std::vector< int32_t > > momentum::classifyTrianglesByTexture ( const Mesh & mesh,
const TextureView & texture,
const RegionColorsView & regionColors,
float threshold = 0.0f,
int32_t numSamples = 3 )

Classify mesh triangles into regions based on texture colors.

For each triangle, samples the texture at barycentric coordinates within the triangle, matches the sampled color against the provided region colors, and assigns the triangle to any matching regions.

Parameters
meshThe mesh with texcoords and texcoord_faces.
textureRGB texture image data.
regionColorsRGB colors defining each region.
thresholdFraction of samples that must match for a triangle to be assigned to a region. 0.0 means at least one sample must match.
numSamplesNumber of barycentric sample points per triangle (1, 3, 4, 6, 7, or 10).
Returns
Vector of sorted triangle index lists, one per region.

Definition at line 97 of file texture_classification.cpp.

References momentum::TextureView::data, momentum::MeshT< T >::faces, momentum::TextureView::height, MT_THROW_IF, momentum::RegionColorsView::nRegions, momentum::TextureView::stride0, momentum::TextureView::stride1, momentum::TextureView::stride2, momentum::MeshT< T >::texcoord_faces, momentum::MeshT< T >::texcoords, and momentum::TextureView::width.

◆ closestPointOnMeshMatchingParent()

ClosestPointOnMeshResult momentum::closestPointOnMeshMatchingParent ( const momentum::Mesh & mesh,
const momentum::SkinWeights & skin,
const momentum::Skeleton & skeleton,
const Eigen::Vector3f & p_world,
uint32_t parentIdx,
float cutoffWeight = 0.02 )

◆ closestPointOnSegmentParameter()

template<typename T>
T momentum::closestPointOnSegmentParameter ( const Vector3< T > & origin,
const Vector3< T > & direction,
const Vector3< T > & point )
nodiscard

Return the clamped segment parameter for the closest point to a world-space point.

Definition at line 161 of file collision_geometry_state.h.

References dot(), and Eps().

Referenced by overlapsCapsuleCenteredPrimitive().

◆ closestPointsOnSegments()

template<typename T>
std::tuple< bool, T, Eigen::Vector2< T > > momentum::closestPointsOnSegments ( const Eigen::Vector3< T > & o1,
const Eigen::Vector3< T > & d1,
const Eigen::Vector3< T > & o2,
const Eigen::Vector3< T > & d2,
T maxDist = std::numeric_limits< T >::max() )
nodiscard

Returns the closest points on two line segments where the line segments are represented in origin and direction.

Template Parameters
TScalar type
Parameters
o1Origin of the first line segment
d1Direction of the first line segment
o2Origin of the second line segment
d2Direction of the second line segment
maxDistMaximum distance to check
Returns
[success, distance, [dist0, dist1]]:
  • success: Whether the closest points were successfully found. On false, the rest return values are invalid.
  • distance: Distance between the closest points
  • [dist0, dist1]: Distances of the closest points from their origins to the directions

Definition at line 449 of file utility.cpp.

References Eps().

Referenced by overlaps().

◆ closestPointsOnSegments< double >()

template std::tuple< bool, double, Eigen::Vector2< double > > momentum::closestPointsOnSegments< double > ( const Eigen::Vector3< double > & o1,
const Eigen::Vector3< double > & d1,
const Eigen::Vector3< double > & o2,
const Eigen::Vector3< double > & d2,
const double maxDist )

◆ closestPointsOnSegments< float >()

template std::tuple< bool, float, Eigen::Vector2< float > > momentum::closestPointsOnSegments< float > ( const Eigen::Vector3< float > & o1,
const Eigen::Vector3< float > & d1,
const Eigen::Vector3< float > & o2,
const Eigen::Vector3< float > & d2,
const float maxDist )

◆ compute_d_targetNormal_d_vertexPos() [1/2]

template<typename T>
std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetNormal_d_vertexPos ( const PointTriangleVertexConstraintT< T > & cons,
const MeshT< T > & mesh )

◆ compute_d_targetNormal_d_vertexPos() [2/2]

template<typename T>
std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetNormal_d_vertexPos ( const SkinnedLocatorTriangleConstraintT< T > & cons,
const MeshT< T > & mesh )

◆ compute_d_targetPos_d_vertexPos() [1/2]

template<typename T>
std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetPos_d_vertexPos ( const PointTriangleVertexConstraintT< T > & cons,
const MeshT< T > & mesh )

◆ compute_d_targetPos_d_vertexPos() [2/2]

template<typename T>
std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetPos_d_vertexPos ( const SkinnedLocatorTriangleConstraintT< T > & cons,
const MeshT< T > & mesh )

◆ computeConvexHull2d()

std::vector< Vector2f > momentum::computeConvexHull2d ( std::span< const Vector2f > points)
nodiscard

Compute the convex hull of 2D support points.

Duplicate points and collinear interior boundary points are omitted. Degenerate inputs return zero, one, or two points.

Parameters
pointsSupport points in the floor plane.
Returns
Convex hull vertices in counter-clockwise order.

Definition at line 124 of file support_polygon.cpp.

References MT_THROW_IF.

Referenced by computeSupportPolygonFromWorldPoints().

◆ computeFloorContactConstraints() [1/2]

std::vector< std::vector< PlaneDataT< float > > > momentum::computeFloorContactConstraints ( const Character & character,
const MatrixXf & motion,
const std::vector< PlaneDataT< float > > & floorConstraints,
const std::vector< size_t > & frameIndices,
float percentile )

◆ computeFloorContactConstraints() [2/2]

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.

For each floor locator independently, computes the Nth percentile of its Y position across all solved frames. Locators at or below their threshold on a given frame are included in that frame's equality constraint set. This allows different feet/regions to be in contact on different frames.

Parameters
characterCharacter with skeleton and floor locators
motionSolved motion matrix (numAllModelParams x numFrames)
floorConstraintsFloor constraint data (from createFloorConstraints)
frameIndicesWhich frames in the motion matrix to evaluate
percentilePercentile threshold for contact detection (0-1, e.g. 0.25)
Returns
Per-frame constraint lists (same length as frameIndices, each entry is the subset of floorConstraints that are in contact for that frame)

◆ computeFloorLocatorSupportContacts()

template<typename T>
SupportContactListT< T > momentum::computeFloorLocatorSupportContacts ( std::span< const JointStateT< T > > states,
std::span< const Locator > locators,
T contactHeight,
const SupportPlaneT< T > & supportPlane )
nodiscard

Return floor-locator support contacts and all valid floor-locator positions.

A floor locator is considered an active support contact when its signed distance to supportPlane is <= contactHeight. Points below the plane are treated as contacts.

Definition at line 149 of file support_contacts.cpp.

References momentum::SupportContactListT< T >::contacts, momentum::SupportContactListT< T >::floorLocatorPositions, MT_THROW_IF, and momentum::Locator::parent.

Referenced by computeFloorLocatorSupportContacts< double >(), computeFloorLocatorSupportContacts< float >(), and computeSupportContacts().

◆ computeFloorLocatorSupportContacts< double >()

template SupportContactListT< double > momentum::computeFloorLocatorSupportContacts< double > ( std::span< const JointStateT< double > > states,
std::span< const Locator > locators,
double contactHeight,
const SupportPlaneT< double > & supportPlane )

◆ computeFloorLocatorSupportContacts< float >()

template SupportContactListT< float > momentum::computeFloorLocatorSupportContacts< float > ( std::span< const JointStateT< float > > states,
std::span< const Locator > locators,
float contactHeight,
const SupportPlaneT< float > & supportPlane )

◆ computeOffset()

template<size_t Alignment>
size_t momentum::computeOffset ( const Eigen::Ref< Eigen::MatrixXf > & mat)
nodiscard

Computes the offset required for the matrix data to meet the alignment requirement.

Alignment is critical for SIMD correctness: misaligned packet loads segfault rather than throw. Returned value is the number of float elements to skip before the first aligned address.

Parameters
matThe matrix whose alignment offset to compute.
Returns
The number of elements to skip to achieve proper alignment.

Definition at line 137 of file simd.h.

◆ computePlaneCollisionSupportContacts()

template<typename T>
std::vector< SupportContactT< T > > momentum::computePlaneCollisionSupportContacts ( PlaneCollisionQueryT< T > & collisionQuery,
std::span< const JointStateT< T > > states,
T contactMargin )
nodiscard

Return support contacts for an explicit plane-collision query object.

The query uses collisionQuery's configured plane. Use computeSupportContacts when floor-locator contacts and collision contacts should be evaluated against one shared support plane.

Definition at line 126 of file support_contacts.cpp.

References momentum::PlaneCollisionQueryT< T >::getContactPointsByParentWithDetails(), and MT_THROW_IF.

Referenced by computePlaneCollisionSupportContacts< double >(), computePlaneCollisionSupportContacts< float >(), and computeSupportContacts().

◆ computePlaneCollisionSupportContacts< double >()

template std::vector< SupportContactT< double > > momentum::computePlaneCollisionSupportContacts< double > ( PlaneCollisionQueryT< double > & collisionQuery,
std::span< const JointStateT< double > > states,
double contactMargin )

◆ computePlaneCollisionSupportContacts< float >()

template std::vector< SupportContactT< float > > momentum::computePlaneCollisionSupportContacts< float > ( PlaneCollisionQueryT< float > & collisionQuery,
std::span< const JointStateT< float > > states,
float contactMargin )

◆ computeSkinnedLocatorMeshDistances()

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.

Returns a vector of (name, distance_cm) pairs for each skinned locator.

Definition at line 924 of file tracker_utils.cpp.

References closestPointOnMeshMatchingParent(), momentum::Character::mesh, momentum::Character::skeleton, momentum::Character::skinnedLocators, and momentum::Character::skinWeights.

◆ computeSkinningTransforms()

template<typename T>
std::vector< Eigen::Matrix4< T > > momentum::computeSkinningTransforms ( typename DeduceSpanType< const JointStateT< T > >::type jointState,
const TransformationListT< T > & inverseBindPose )

Computes the skinning transforms from joint states and inverse bind poses.

Overload selection guide
I have... I want... Use this overload
SkeletonState + Mesh Skinned mesh applySSD(ibp, skin, mesh, state, outMesh)
SkeletonState + points Skinned points applySSD(ibp, skin, points, state) -> returns vector
Precomputed skinning transforms Skinned mesh (batched) computeSkinningTransforms() once, then applySSD(skin, mesh, transforms, outMesh)
World transforms (no skel state) Skinned mesh applySSD(ibp, skin, mesh, worldTransforms, outMesh)
SkeletonState + vertex index Inverse skin transform getInverseSSDTransformation(ibp, skin, state, index)
SkeletonState + posed points Bind-pose points applyInverseSSD(ibp, skin, points, state)

For multi-frame animation with the same character, precompute skinning transforms once per frame with computeSkinningTransforms() and reuse across mesh/point calls. ibp = inverseBindPose throughout.

Each transform is computed as: jointState.transform * inverseBindPose.

Parameters
jointStateSpan of joint states containing current transformations
inverseBindPoseInverse bind pose transformations for each joint
Returns
Vector of 4x4 transformation matrices for skinning

Definition at line 23 of file linear_skinning.cpp.

References MT_CHECK.

Referenced by applySSD(), applySSD(), computeSkinningTransforms< double >(), and computeSkinningTransforms< float >().

◆ computeSkinningTransforms< double >()

template std::vector< Eigen::Matrix4d > momentum::computeSkinningTransforms< double > ( momentum::span< const JointStateT< double > > jointState,
const TransformationListT< double > & inverseBindPose )

◆ computeSkinningTransforms< float >()

template std::vector< Eigen::Matrix4f > momentum::computeSkinningTransforms< float > ( momentum::span< const JointStateT< float > > jointState,
const TransformationListT< float > & inverseBindPose )

◆ computeSubsetParameterIndices()

template<typename T>
std::vector< Eigen::Index > momentum::computeSubsetParameterIndices ( const ParameterTransformT< T > & parameterTransform,
const ParameterSet & activeParams )

◆ computeSupportContactPositions()

template<typename T>
std::vector< Vector3< T > > momentum::computeSupportContactPositions ( const Character & character,
std::span< const JointStateT< T > > states,
T contactHeight,
PlaneCollisionQueryT< T > * collisionQuery,
const SupportPlaneT< T > & supportPlane )
nodiscard

Return only the world-space positions from floor locators and optional plane-collision contacts.

Use this when callers need merged support positions but do not need parent indices, parent-local offsets, or the full set of floor-locator positions.

When collisionQuery is null and character owns collision geometry, a temporary collision query over supportPlane is used for the query. For repeated per-frame queries with collision geometry, pass a persistent collision query to avoid rebuilding its candidate state.

Definition at line 181 of file support_contacts.cpp.

References momentum::Character::locators, and MT_THROW_IF.

Referenced by computeSupportContactPositions< double >(), and computeSupportContactPositions< float >().

◆ computeSupportContactPositions< double >()

template std::vector< Vector3< double > > momentum::computeSupportContactPositions< double > ( const Character & character,
std::span< const JointStateT< double > > states,
double contactHeight,
PlaneCollisionQueryT< double > * collisionQuery,
const SupportPlaneT< double > & supportPlane )

◆ computeSupportContactPositions< float >()

template std::vector< Vector3< float > > momentum::computeSupportContactPositions< float > ( const Character & character,
std::span< const JointStateT< float > > states,
float contactHeight,
PlaneCollisionQueryT< float > * collisionQuery,
const SupportPlaneT< float > & supportPlane )

◆ computeSupportContacts()

template<typename T>
SupportContactListT< T > momentum::computeSupportContacts ( const Character & character,
std::span< const JointStateT< T > > states,
T contactHeight,
PlaneCollisionQueryT< T > * collisionQuery,
const SupportPlaneT< T > & supportPlane )
nodiscard

Return support contacts from floor locators and optional plane-collision contacts.

The same threshold is used as the signed plane-distance limit for floor locators and as the signed surface-distance margin for plane-collision contacts. Call the floor-locator or plane-collision helpers directly when those tolerances need to differ.

When collisionQuery is non-null, it must use the same oriented plane as supportPlane so collision contacts are evaluated against the same plane side as floor locators.

When collisionQuery is null and character owns collision geometry, a temporary collision query over supportPlane is used for the query. For repeated per-frame queries with collision geometry, pass a persistent collision query to avoid rebuilding its candidate state.

Definition at line 217 of file support_contacts.cpp.

References computeFloorLocatorSupportContacts(), computePlaneCollisionSupportContacts(), computeSupportContacts(), momentum::SupportContactListT< T >::contacts, and momentum::Character::locators.

Referenced by computeSupportContacts(), computeSupportContacts< double >(), and computeSupportContacts< float >().

◆ computeSupportContacts< double >()

template SupportContactListT< double > momentum::computeSupportContacts< double > ( const Character & character,
std::span< const JointStateT< double > > states,
double contactHeight,
PlaneCollisionQueryT< double > * collisionQuery,
const SupportPlaneT< double > & supportPlane )

◆ computeSupportContacts< float >()

template SupportContactListT< float > momentum::computeSupportContacts< float > ( const Character & character,
std::span< const JointStateT< float > > states,
float contactHeight,
PlaneCollisionQueryT< float > * collisionQuery,
const SupportPlaneT< float > & supportPlane )

◆ computeSupportPolygonFromWorldPoints() [1/2]

std::vector< Vector2f > momentum::computeSupportPolygonFromWorldPoints ( const std::span< const Vector3f > points)
nodiscard

Compute the 2D support polygon from world-space support points on the Y-up ground plane.

Definition at line 158 of file support_polygon.cpp.

References computeSupportPolygonFromWorldPoints().

Referenced by computeSupportPolygonFromWorldPoints().

◆ computeSupportPolygonFromWorldPoints() [2/2]

std::vector< Vector2f > momentum::computeSupportPolygonFromWorldPoints ( std::span< const Vector3f > points,
const SupportPlane & supportPlane )
nodiscard

Compute the 2D support polygon from world-space support points.

Support points are projected onto supportPlane before hull construction.

Parameters
pointsWorld-space contact/support points.
supportPlanePlane and in-plane basis used for projection.
Returns
Convex hull vertices in support-plane coordinates.

Definition at line 162 of file support_polygon.cpp.

References computeConvexHull2d(), momentum::SupportPlaneT< T >::coordinates(), and MT_THROW_IF.

◆ computeTargetBaryPosition() [1/2]

◆ computeTargetBaryPosition() [2/2]

template<typename T>
Eigen::Vector3< T > momentum::computeTargetBaryPosition ( const MeshT< T > & mesh,
const SkinnedLocatorTriangleConstraintT< T > & c )

◆ computeTargetPosition() [1/2]

◆ computeTargetPosition() [2/2]

template<typename T>
Eigen::Vector3< T > momentum::computeTargetPosition ( const MeshT< T > & mesh,
const SkinnedLocatorTriangleConstraintT< T > & c )

◆ computeTargetTriangleNormal() [1/2]

◆ computeTargetTriangleNormal() [2/2]

template<typename T>
Eigen::Vector3< T > momentum::computeTargetTriangleNormal ( const MeshT< T > & mesh,
const SkinnedLocatorTriangleConstraintT< T > & c )

◆ copyAccessorBuffer()

template<typename T>
std::vector< T > momentum::copyAccessorBuffer ( const fx::gltf::Document & model,
int32_t id )

◆ copyAlignedAccessorBuffer()

template<typename T>
std::vector< T > momentum::copyAlignedAccessorBuffer ( const fx::gltf::Document & model,
int32_t id )

Definition at line 90 of file accessor_utils.h.

References getComponentSize(), getTypeSize(), and MT_LOGW.

Referenced by loadWeightsFromAccessor().

◆ createAccessorBuffer()

template<typename T>
int32_t momentum::createAccessorBuffer ( fx::gltf::Document & model,
std::span< T > data,
const bool align = false,
const bool normalized = false )

Definition at line 135 of file accessor_utils.h.

References setAccessorType().

Referenced by createSampler(), and createSampler().

◆ createCollisionBox()

CollisionBox momentum::createCollisionBox ( const fx::gltf::Node & node,
const nlohmann::json & extension )

Create a collision box from a glTF node.

Parameters
[in]nodeThe glTF node containing the collision box data.
[in]extensionThe FB_momentum extension JSON data.
Returns
The created CollisionBox object.

Definition at line 219 of file gltf_skeleton_io.cpp.

References fromJson(), momentum::CollisionBoxT< S >::halfExtents, kInvalidIndex, MT_THROW, momentum::CollisionBoxT< S >::parent, momentum::TransformT< T >::rotation, toMomentumQuaternionf(), toMomentumVec3f(), momentum::CollisionBoxT< S >::transformation, and momentum::TransformT< T >::translation.

◆ createCollisionCapsule()

TaperedCapsule momentum::createCollisionCapsule ( const fx::gltf::Node & node,
const nlohmann::json & extension )

Create a collision capsule from a glTF node.

Parameters
[in]nodeThe glTF node containing the collision capsule data.
[in]extensionThe FB_momentum extension JSON data.
Returns
The created TaperedCapsule object.

Definition at line 180 of file gltf_skeleton_io.cpp.

References fromJson(), kInvalidIndex, momentum::TaperedCapsuleT< S >::length, MT_THROW, momentum::TaperedCapsuleT< S >::parent, momentum::TaperedCapsuleT< S >::radius, momentum::TransformT< T >::rotation, toMomentumQuaternionf(), toMomentumVec3f(), momentum::TaperedCapsuleT< S >::transformation, and momentum::TransformT< T >::translation.

◆ createCollisionEllipsoid()

CollisionEllipsoid momentum::createCollisionEllipsoid ( const fx::gltf::Node & node,
const nlohmann::json & extension )

Create a collision ellipsoid from a glTF node.

Parameters
[in]nodeThe glTF node containing the collision ellipsoid data.
[in]extensionThe FB_momentum extension JSON data.
Returns
The created CollisionEllipsoid object.

Definition at line 199 of file gltf_skeleton_io.cpp.

References fromJson(), kInvalidIndex, MT_THROW, momentum::CollisionEllipsoidT< S >::parent, momentum::CollisionEllipsoidT< S >::radii, momentum::TransformT< T >::rotation, toMomentumQuaternionf(), toMomentumVec3f(), momentum::CollisionEllipsoidT< S >::transformation, and momentum::TransformT< T >::translation.

◆ createConstraintData() [1/2]

std::vector< std::vector< PositionData > > momentum::createConstraintData ( const std::span< const std::vector< Marker > > markerData,
const LocatorList & locators )

Definition at line 37 of file tracker_utils.cpp.

Referenced by trackPosesForFrames(), and trackSequence().

◆ createConstraintData() [2/2]

std::vector< std::vector< momentum::PositionData > > momentum::createConstraintData ( std::span< const std::vector< momentum::Marker > > markerData,
const momentum::LocatorList & locators )

◆ createFloorConstraints()

template<typename T>
std::vector< PlaneDataT< T > > momentum::createFloorConstraints ( const std::string & prefix,
const LocatorList & locators,
const Vector3< T > & floorNormal,
const T & floorOffset,
const float weight )

Create non-penetration half-plane constraints from locators with the input prefix.

Definition at line 15 of file plane_error_function.cpp.

◆ createFloorConstraints< double >()

template std::vector< PlaneDataT< double > > momentum::createFloorConstraints< double > ( const std::string & prefix,
const LocatorList & locators,
const Vector3d & floorNormal,
const double & floorOffset,
const float weight )

◆ createFloorConstraints< float >()

template std::vector< PlaneDataT< float > > momentum::createFloorConstraints< float > ( const std::string & prefix,
const LocatorList & locators,
const Vector3f & floorNormal,
const float & floorOffset,
const float weight )

◆ createGloveCharacter()

Character momentum::createGloveCharacter ( const Character & src,
const GloveConfig & cfg,
const std::string & prefix = "glove_" )

Add glove bones with 6-DOF model parameters (convenience wrapper).

Calls addGloveBones() then addGloveCalibrationParameters(). Equivalent to the original createGloveCharacter() behavior.

Parameters
[in]srcSource character to extend.
[in]cfgGlove configuration specifying wrist joint names.
[in]prefixName prefix for the added glove joints.
Returns
A new character with glove bones and model parameters added.

Definition at line 152 of file glove_utils.cpp.

References addGloveBones(), and addGloveCalibrationParameters().

Referenced by calibrateModel().

◆ createGloveOrientationConstraintData()

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.

For each frame and each valid observation, creates a constraint between the finger joint (source) and the glove bone (reference), with the observation's orientation as the target relative orientation.

Parameters
[in]gloveDataPer-frame glove sensor observations.
[in]characterCharacter with glove bones (from createGloveCharacter()).
[in]cfgGlove configuration.
[in]handIndexHand index (0=left, 1=right).
Returns
Vector of per-frame constraint vectors.

Definition at line 269 of file glove_utils.cpp.

References momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::joints, kInvalidIndex, momentum::JointToJointOrientationDataT< T >::name, momentum::JointToJointOrientationDataT< T >::referenceJoint, momentum::Character::skeleton, momentum::JointToJointOrientationDataT< T >::sourceJoint, momentum::JointToJointOrientationDataT< T >::target, momentum::JointToJointOrientationDataT< T >::weight, and momentum::GloveConfig::wristJointNames.

Referenced by setupGloveErrorFunctions(), and trackSequence().

◆ createGlovePositionConstraintData()

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.

For each frame and each valid observation, creates a constraint between the finger joint (source) and the glove bone (reference), with the observation's position as the target in the glove bone's coordinate frame.

Parameters
[in]gloveDataPer-frame glove sensor observations.
[in]characterCharacter with glove bones (from createGloveCharacter()).
[in]cfgGlove configuration.
[in]handIndexHand index (0=left, 1=right).
Returns
Vector of per-frame constraint vectors.

Definition at line 214 of file glove_utils.cpp.

References momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::joints, kInvalidIndex, momentum::JointToJointPositionDataT< T >::name, momentum::JointToJointPositionDataT< T >::referenceJoint, momentum::JointToJointPositionDataT< T >::referenceOffset, momentum::Character::skeleton, momentum::JointToJointPositionDataT< T >::sourceJoint, momentum::JointToJointPositionDataT< T >::sourceOffset, momentum::JointToJointPositionDataT< T >::target, momentum::JointToJointPositionDataT< T >::weight, and momentum::GloveConfig::wristJointNames.

Referenced by setupGloveErrorFunctions(), and trackSequence().

◆ createJoint()

Joint momentum::createJoint ( const fx::gltf::Node & node)

Create a joint from a glTF node.

Parameters
[in]nodeThe glTF node containing the joint data.
Returns
The created Joint object.

Definition at line 267 of file gltf_skeleton_io.cpp.

References kInvalidIndex, momentum::JointT< T >::name, momentum::JointT< T >::parent, momentum::JointT< T >::preRotation, toMomentumQuaternionf(), toMomentumVec3f(), and momentum::JointT< T >::translationOffset.

◆ createLocator()

Locator momentum::createLocator ( const fx::gltf::Node & node,
const nlohmann::json & extension )

Create a locator from a glTF node.

Parameters
[in]nodeThe glTF node containing the locator data.
[in]extensionThe FB_momentum extension JSON data.
Returns
The created Locator object.

Definition at line 237 of file gltf_skeleton_io.cpp.

References momentum::Locator::attachedToSkin, fromJson(), kInvalidIndex, momentum::Locator::limitOrigin, momentum::Locator::limitWeight, momentum::Locator::locked, MT_THROW, momentum::Locator::name, momentum::Locator::offset, momentum::Locator::parent, momentum::Locator::skinOffset, toMomentumVec3f(), and momentum::Locator::weight.

◆ createLocatorCharacter()

◆ createSampler() [1/2]

template<typename T>
int32_t momentum::createSampler ( fx::gltf::Document & model,
fx::gltf::Animation & anim,
std::span< T > data,
const int32_t timestampAccessor,
GltfAnimationInterpolation interpolation )

Definition at line 302 of file accessor_utils.h.

References createAccessorBuffer(), and toGltfSamplerType().

◆ createSampler() [2/2]

template<typename T>
int32_t momentum::createSampler ( fx::gltf::Document & model,
fx::gltf::Animation & anim,
std::span< T > data,
const std::span< float > & timestamps,
GltfAnimationInterpolation interpolation )

Definition at line 280 of file accessor_utils.h.

References createAccessorBuffer(), MT_CHECK, and toGltfSamplerType().

◆ createSkeletonWithOnlyRoot()

JointList momentum::createSkeletonWithOnlyRoot ( )

Create a skeleton with only a root joint.

Returns
A JointList containing a single root joint.

Definition at line 441 of file gltf_skeleton_io.cpp.

References createSkeletonWithOnlyRoot(), and MT_CHECK.

Referenced by createSkeletonWithOnlyRoot().

◆ createSkinnedConstraintData() [1/2]

std::vector< std::vector< SkinnedLocatorConstraint > > momentum::createSkinnedConstraintData ( const std::span< const std::vector< Marker > > markerData,
const SkinnedLocatorList & locators )

◆ createSkinnedConstraintData() [2/2]

std::vector< std::vector< momentum::SkinnedLocatorConstraint > > momentum::createSkinnedConstraintData ( std::span< const std::vector< momentum::Marker > > markerData,
const momentum::SkinnedLocatorList & locators )

◆ createSkinnedLocatorMeshConstraints()

◆ cross() [1/2]

◆ cross() [2/2]

template<typename S, typename Derived>
Vector3P< S > momentum::cross ( const Vector3P< S > & v1,
const Eigen::MatrixBase< Derived > & v2 )

Computes cross product of Vector3P and Eigen::Vector3f.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3-vector of packets.
v2A 3D vector of Eigen.
Returns
Cross product as a 3-vector of packets.

Definition at line 325 of file simd.h.

◆ cross2d()

float momentum::cross2d ( const Vector2f & origin,
const Vector2f & a,
const Vector2f & b )
nodiscard

Compute the signed 2D cross product of vectors from an origin.

Parameters
originShared origin for both vectors.
aEnd point of the first vector.
bEnd point of the second vector.
Returns
Positive when origin -> a -> b turns counter-clockwise.

Definition at line 118 of file support_polygon.cpp.

◆ crossProductMatrix()

template<typename T>
Eigen::Matrix< T, 3, 3 > momentum::crossProductMatrix ( const Eigen::Vector3< T > & v)

Creates a skew-symmetric matrix for computing cross products.

Returns a matrix M such that M*u = vร—u for any vector u

Template Parameters
TThe scalar type
Parameters
vInput vector
Returns
3ร—3 skew-symmetric matrix

Definition at line 343 of file utility.h.

◆ d_modelParams_d_inputs()

◆ d_modelParams_d_inputs< double >()

template std::vector< ErrorFunctionDerivativesT< double > > momentum::d_modelParams_d_inputs< double > ( const Skeleton & skeleton,
const ParameterTransformT< double > & parameterTransform,
const ParameterSet & activeParams,
const ModelParametersT< double > & modelParameters,
SkeletonSolverFunctionT< double > & solverFunction,
Eigen::Ref< const Eigen::VectorX< double > > dLoss_dModelParams,
double * gradientRmse )

◆ d_modelParams_d_inputs< float >()

template std::vector< ErrorFunctionDerivativesT< float > > momentum::d_modelParams_d_inputs< float > ( const Skeleton & skeleton,
const ParameterTransformT< float > & parameterTransform,
const ParameterSet & activeParams,
const ModelParametersT< float > & modelParameters,
SkeletonSolverFunctionT< float > & solverFunction,
Eigen::Ref< const Eigen::VectorX< float > > dLoss_dModelParams,
float * gradientRmse )

◆ dot() [1/2]

template<typename Derived, typename S>
FloatP momentum::dot ( const Eigen::MatrixBase< Derived > & v1,
const Vector3P< S > & v2 )

Computes dot product of Eigen::Vector3f and 3-vector of packets.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3D vector of Eigen.
v2A 3-vector of packets.
Returns
Dot product as a packet of floats.

Definition at line 191 of file simd.h.

Referenced by closestPointOnSegmentParameter(), momentum::SkeletonStateT< T >::compare(), momentum::FixedAxisAngleErrorFunctionT< T >::evalFunction(), momentum::VertexPlaneErrorFunctionT< T >::evalFunction(), and operator*().

◆ dot() [2/2]

template<typename Derived, typename S>
FloatP momentum::dot ( const Vector3P< S > & v1,
const Eigen::MatrixBase< Derived > & v2 )

Computes dot product of Vector3P and Eigen::Vector3f.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3-vector of packets.
v2A 3D vector of Eigen.
Returns
Dot product as a packet of floats.

Definition at line 203 of file simd.h.

◆ ellipsoidRadiusAlongDirection()

template<typename T>
T momentum::ellipsoidRadiusAlongDirection ( const Quaternion< T > & orientation,
const Vector3< T > & radii,
const Vector3< T > & unitDirection )
nodiscard

Return the support radius of an oriented ellipsoid along a unit world-space direction.

Definition at line 175 of file collision_geometry_state.h.

Referenced by centeredPrimitiveRadiusAlongDirection().

◆ Eps()

◆ eulerToQuaternion() [1/3]

template Quaternion< double > momentum::eulerToQuaternion ( const Vector3< double > & angles,
int axis0,
int axis1,
int axis2,
EulerConvention convention )

◆ eulerToQuaternion() [2/3]

template Quaternion< float > momentum::eulerToQuaternion ( const Vector3< float > & angles,
int axis0,
int axis1,
int axis2,
EulerConvention convention )

◆ eulerToQuaternion() [3/3]

template<typename T>
Quaternion< T > momentum::eulerToQuaternion ( const Vector3< T > & angles,
int axis0,
int axis1,
int axis2,
EulerConvention convention )
nodiscard

Converts Euler angles to quaternion.

Template Parameters
TThe scalar type.
Parameters
[in]anglesThe 3-dimensional vector of Euler angles in order.
[in]axis0The index of the first rotation's axis, one of {0, 1, 2}.
[in]axis1The index of the second rotation's axis, one of {0, 1, 2}.
[in]axis2The index of the third rotation's axis, one of {0, 1, 2}.
[in]conventionThe Euler angles convention.

Definition at line 289 of file utility.cpp.

References eulerToQuaternion(), Extrinsic, and Intrinsic.

Referenced by addGloveBones(), eulerToQuaternion(), and eulerToRotationMatrix().

◆ eulerToRotationMatrix() [1/3]

template Matrix3< double > momentum::eulerToRotationMatrix ( const Vector3< double > & angles,
int axis0,
int axis1,
int axis2,
EulerConvention convention )

◆ eulerToRotationMatrix() [2/3]

template Matrix3< float > momentum::eulerToRotationMatrix ( const Vector3< float > & angles,
int axis0,
int axis1,
int axis2,
EulerConvention convention )

◆ eulerToRotationMatrix() [3/3]

template<typename T>
Matrix3< T > momentum::eulerToRotationMatrix ( const Vector3< T > & angles,
int axis0,
int axis1,
int axis2,
EulerConvention convention )
nodiscard

Converts Euler angles to rotation matrix.

Template Parameters
TThe scalar type.
Parameters
[in]anglesThe 3-dimensional vector of Euler angles in order.
[in]axis0The index of the first rotation's axis, one of {0, 1, 2}.
[in]axis1The index of the second rotation's axis, one of {0, 1, 2}.
[in]axis2The index of the third rotation's axis, one of {0, 1, 2}.
[in]conventionThe Euler angles convention.

Definition at line 307 of file utility.cpp.

References eulerToQuaternion().

◆ eulerXYZToRotationMatrix() [1/3]

template Matrix3< double > momentum::eulerXYZToRotationMatrix ( const Vector3< double > & angles,
EulerConvention convention )

◆ eulerXYZToRotationMatrix() [2/3]

template Matrix3< float > momentum::eulerXYZToRotationMatrix ( const Vector3< float > & angles,
EulerConvention convention )

◆ eulerXYZToRotationMatrix() [3/3]

template<typename T>
Matrix3< T > momentum::eulerXYZToRotationMatrix ( const Vector3< T > & angles,
EulerConvention convention )
nodiscard

An optimized version of eulerToRotationMatrix(angles, 0, 1, 2, convention) or eulerToRotationMatrix(angles.reverse(), 2, 1, 0, convention).

Definition at line 317 of file utility.cpp.

References eulerZYXToRotationMatrix(), Extrinsic, and Intrinsic.

Referenced by eulerZYXToRotationMatrix().

◆ eulerZYXToRotationMatrix() [1/3]

template Matrix3< double > momentum::eulerZYXToRotationMatrix ( const Vector3< double > & angles,
EulerConvention convention )

◆ eulerZYXToRotationMatrix() [2/3]

template Matrix3< float > momentum::eulerZYXToRotationMatrix ( const Vector3< float > & angles,
EulerConvention convention )

◆ eulerZYXToRotationMatrix() [3/3]

template<typename T>
Matrix3< T > momentum::eulerZYXToRotationMatrix ( const Vector3< T > & angles,
EulerConvention convention )
nodiscard

An optimized version of eulerToRotationMatrix(angles, 2, 1, 0, convention) or eulerToRotationMatrix(angles.reverse(), 0, 1, 2, convention).

Definition at line 351 of file utility.cpp.

References eulerXYZToRotationMatrix(), Extrinsic, and Intrinsic.

Referenced by eulerXYZToRotationMatrix().

◆ extractBlendShapeFromParams()

◆ extractBlendWeights()

template<typename T>
BlendWeightsT< T > momentum::extractBlendWeights ( const ParameterTransform & paramTransform,
const ModelParametersT< T > & modelParams )

Extracts blend shape weights from model parameters.

Maps from the model parameter space to blend shape weights using the parameter transform. Use this function to get weights for identity/shape blend shapes (e.g., body shape variations).

Parameters
paramTransformMapping between model parameters and blend shape parameters
modelParamsCurrent model parameters
Returns
Vector of blend shape weights

Definition at line 22 of file blend_shape_skinning.cpp.

References momentum::ParameterTransformT< T >::blendShapeParameters, and momentum::EigenStrongType< Derived, EigenType >::size().

Referenced by momentum::Character::bake(), momentum::Character::bakeBlendShape(), calibrateModel(), extractBlendShapeFromParams(), extractBlendWeights< double >(), extractBlendWeights< float >(), skinWithBlendShapes(), and momentum::MeshStateT< T >::update().

◆ extractBlendWeights< double >()

template BlendWeightsT< double > momentum::extractBlendWeights< double > ( const ParameterTransform & paramTransform,
const ModelParametersT< double > & modelParams )

References extractBlendWeights().

◆ extractBlendWeights< float >()

template BlendWeightsT< float > momentum::extractBlendWeights< float > ( const ParameterTransform & paramTransform,
const ModelParametersT< float > & modelParams )

References extractBlendWeights().

◆ extractCameraIntrinsics()

Eigen::VectorXf momentum::extractCameraIntrinsics ( const ParameterTransform & paramTransform,
const ModelParameters & modelParams,
const IntrinsicsModel & intrinsicsModel )
nodiscard

Extract camera intrinsic parameter values from model parameters.

Reads the values at the parameter indices corresponding to the camera's intrinsics (looked up by name in paramTransform). Parameters not present in paramTransform retain the current values from the intrinsics model. This mirrors the extractBlendWeights() pattern.

Parameters
paramTransformThe parameter transform with camera intrinsics parameters
modelParamsThe model parameters to read from
intrinsicsModelThe intrinsics model (provides name, parameter names, and default values)
Returns
Intrinsic parameter vector suitable for IntrinsicsModel::setIntrinsicParameters()

Definition at line 93 of file camera_intrinsics_parameters.cpp.

References kTiedFocalLengthSuffix, and momentum::EigenStrongType< Derived, EigenType >::size().

◆ extractFaceExpressionBlendWeights()

template<typename T>
BlendWeightsT< T > momentum::extractFaceExpressionBlendWeights ( const ParameterTransform & paramTransform,
const ModelParametersT< T > & modelParams )

Extracts facial expression blend shape weights from model parameters.

Maps from the model parameter space to facial expression blend shape weights using the parameter transform. Use this function specifically for facial animation parameters, which are stored separately from regular blend shapes.

Parameters
paramTransformMapping between model parameters and face expression parameters
modelParamsCurrent model parameters
Returns
Vector of facial expression blend shape weights

Definition at line 36 of file blend_shape_skinning.cpp.

References momentum::ParameterTransformT< T >::faceExpressionParameters, and momentum::EigenStrongType< Derived, EigenType >::size().

Referenced by extractFaceExpressionBlendWeights< double >(), extractFaceExpressionBlendWeights< float >(), and momentum::MeshStateT< T >::update().

◆ extractFaceExpressionBlendWeights< double >()

template BlendWeightsT< double > momentum::extractFaceExpressionBlendWeights< double > ( const ParameterTransform & paramTransform,
const ModelParametersT< double > & modelParams )

◆ extractFaceExpressionBlendWeights< float >()

template BlendWeightsT< float > momentum::extractFaceExpressionBlendWeights< float > ( const ParameterTransform & paramTransform,
const ModelParametersT< float > & modelParams )

◆ extractGloveOffsetsFromCharacter()

std::array< GloveOffset, 2 > momentum::extractGloveOffsetsFromCharacter ( const Character & gloveChar,
const CharacterParameters & params,
const GloveConfig & cfg )

Extract calibrated glove offsets from solved parameters.

Reads the translation and rotation DOFs from the glove bones in a character that was created by createGloveCharacter(), returning the solved offsets for each hand.

Parameters
[in]gloveCharCharacter with glove bones (from createGloveCharacter()).
[in]paramsSolved character parameters containing glove offsets.
[in]cfgGlove configuration used when creating the character.
Returns
Array of two GloveOffset values, one per hand (left=0, right=1).

Definition at line 156 of file glove_utils.cpp.

References momentum::ParameterTransformT< T >::apply(), momentum::SkeletonT< T >::getJointIdByName(), kInvalidIndex, kParametersPerJoint, momentum::Character::parameterTransform, RX, RY, RZ, momentum::Character::skeleton, TX, TY, TZ, momentum::EigenStrongType< Derived, EigenType >::v, and momentum::GloveConfig::wristJointNames.

Referenced by bakeGloveOffsetsFromParams().

◆ extractIdAndLocatorsFromParams()

◆ extractLocatorsFromCharacter()

◆ extractMarkersFromMotion()

std::vector< std::vector< momentum::Marker > > momentum::extractMarkersFromMotion ( const Character & character,
const Eigen::MatrixXf & motion )

◆ extractParameters()

momentum::ModelParameters momentum::extractParameters ( const ModelParameters & params,
const ParameterSet & parameterSet )

◆ extractSkinnedLocatorsFromCharacter()

◆ extractSubsetMat()

template<typename T>
Eigen::MatrixX< T > momentum::extractSubsetMat ( Eigen::Ref< const Eigen::MatrixX< T > > fullMat,
const std::vector< Eigen::Index > & subsetIndexToFullParamIndex )

Definition at line 47 of file fully_differentiable_body_ik.cpp.

Referenced by d_modelParams_d_inputs().

◆ extractSubsetVec()

template<typename T>
Eigen::VectorX< T > momentum::extractSubsetVec ( Eigen::Ref< const Eigen::VectorX< T > > fullVec,
const std::vector< Eigen::Index > & subsetIndexToFullParamIndex )

Definition at line 35 of file fully_differentiable_body_ik.cpp.

Referenced by d_modelParams_d_inputs().

◆ extrapolateModelParameters() [1/2]

ModelParameters momentum::extrapolateModelParameters ( const ModelParameters & previous,
const ModelParameters & current,
const ParameterSet & activeParams,
float factor = kDefaultExtrapolateFactor,
float maxDelta = kDefaultExtrapolateMaxDelta )
nodiscard

Extrapolates model parameters considering active parameters.

The extrapolation is done by first clamping the difference between current and previous parameters to the range [-maxDelta, maxDelta] for each active parameter, and then scaling this clamped difference by factor. Inactive parameters (those for which activeParams.test(i) is false) are passed through unchanged from current. Returns the current parameters when sizes mismatch.

Definition at line 29 of file skeleton_utility.cpp.

References MT_PROFILE_FUNCTION, and momentum::EigenStrongType< Derived, EigenType >::size().

◆ extrapolateModelParameters() [2/2]

ModelParameters momentum::extrapolateModelParameters ( const ModelParameters & previous,
const ModelParameters & current,
float factor = kDefaultExtrapolateFactor,
float maxDelta = kDefaultExtrapolateMaxDelta )
nodiscard

Extrapolates model parameters by first clamping the difference between current and previous parameters to the range [-maxDelta, maxDelta], and then scaling this clamped difference by factor.

Returns the current parameters when sizes mismatch.

Definition at line 13 of file skeleton_utility.cpp.

References MT_PROFILE_FUNCTION, momentum::EigenStrongType< Derived, EigenType >::size(), and momentum::EigenStrongType< Derived, EigenType >::v.

◆ facesToVertices()

template<typename T>
std::vector< bool > momentum::facesToVertices ( const MeshT< T > & mesh,
const std::vector< bool > & activeFaces )
nodiscard

Converts a face selection to a vertex selection.

A vertex is marked active if it is referenced by any active face.

Definition at line 1520 of file character_utility.cpp.

References momentum::MeshT< T >::faces, facesToVertices(), MT_CHECK, and momentum::MeshT< T >::vertices.

Referenced by facesToVertices(), reduceMeshByFaces(), and reduceMeshByFaces().

◆ facesToVertices< double >()

template std::vector< bool > momentum::facesToVertices< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activeFaces )

◆ facesToVertices< float >()

template std::vector< bool > momentum::facesToVertices< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activeFaces )

◆ fillIdentity()

void momentum::fillIdentity ( const ParameterSet & idSet,
const ModelParameters & identity,
Eigen::MatrixXf & motionNoId )

◆ findCandidateTrianglesDfs()

std::vector< momentum::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.

Starting from a triangle, performs a depth-first search along the mesh surface, collecting triangles that are within the search distance, have compatible normals, and have sufficient skin weight for the specified parent joint.

Parameters
meshThe mesh to search
skinThe skin weights
skeletonThe skeleton for joint hierarchy
adjacencyPre-computed triangle adjacency (from buildTriangleAdjacency)
startTriangleIdxIndex of the starting triangle
initialPointThe initial locator position (for distance calculations)
referenceNormalThe normal of the starting triangle (for angle filtering)
parentJointIdxThe parent joint index for skin weight filtering
maxSearchDistanceCmMaximum distance from initialPoint to include triangles
maxNormalAngleDegMaximum angle (in degrees) between triangle normal and reference normal
Returns
Vector of candidate triangles that pass all filters

Definition at line 459 of file tracker_utils.cpp.

References cross(), momentum::MeshT< T >::faces, momentum::SkinWeights::index, isRelatedJoint(), MT_CHECK, normal(), pi(), momentum::CandidateTriangle::triangleIdx, momentum::CandidateTriangle::vertexIndices, momentum::MeshT< T >::vertices, and momentum::SkinWeights::weight.

Referenced by createSkinnedLocatorMeshConstraints().

◆ findMainSubjectIndex()

int momentum::findMainSubjectIndex ( std::span< const MarkerSequence > markerSequences)
nodiscard

Finds the "main subject" from a vector of MarkerSequences.

The main subject is currently defined as a named actor with the maximum number of visible markers in the sequence.

Parameters
[in]markerSequencesA vector of MarkerSequences to search for the main subject.
Returns
int The main subject's index in the input vector. If no main subject found, -1 is returned.
Note
This function is exposed mainly for unit tests.

Definition at line 114 of file marker_io.cpp.

Referenced by loadMarkersForMainSubject(), loadMarkersForMainSubject(), and processMarkerFile().

◆ fromJson()

template<typename T>
T momentum::fromJson ( const nlohmann::json & j)

◆ fromMomentumQuaternion() [1/3]

template Quaternion< double > momentum::fromMomentumQuaternion ( const Quaternion< double > & ,
const CoordinateSystem &  )

◆ fromMomentumQuaternion() [2/3]

template Quaternion< float > momentum::fromMomentumQuaternion ( const Quaternion< float > & ,
const CoordinateSystem &  )

◆ fromMomentumQuaternion() [3/3]

template<typename T>
Quaternion< T > momentum::fromMomentumQuaternion ( const Quaternion< T > & q,
const CoordinateSystem & to )
nodiscard

Converts a quaternion rotation from Momentum's canonical coordinate system into to.

Definition at line 145 of file coordinate_system.cpp.

References changeQuaternion(), and kMomentumCoordinateSystem.

◆ fromMomentumQuaternionf()

std::array< float, 4 > momentum::fromMomentumQuaternionf ( const Quaternionf & quat)
inlinenodiscardnoexcept

Definition at line 62 of file coordinate_utils.h.

Referenced by momentum::GltfBuilder::addCharacter().

◆ fromMomentumRotationMatrix() [1/3]

template Matrix3< double > momentum::fromMomentumRotationMatrix ( const Matrix3< double > & ,
const CoordinateSystem &  )

◆ fromMomentumRotationMatrix() [2/3]

template Matrix3< float > momentum::fromMomentumRotationMatrix ( const Matrix3< float > & ,
const CoordinateSystem &  )

◆ fromMomentumRotationMatrix() [3/3]

template<typename T>
Matrix3< T > momentum::fromMomentumRotationMatrix ( const Matrix3< T > & m,
const CoordinateSystem & to )
nodiscard

Converts a 3x3 rotation matrix from Momentum's canonical coordinate system into to.

Definition at line 155 of file coordinate_system.cpp.

References changeRotationMatrix(), and kMomentumCoordinateSystem.

◆ fromMomentumVec3f() [1/3]

Vector3f momentum::fromMomentumVec3f ( const Vector3f & vec)
inlinenodiscardnoexcept

Definition at line 26 of file coordinate_utils.h.

References fromMomentumVector(), and kGltfCoordinateSystem.

Referenced by momentum::GltfBuilder::addCharacter().

◆ fromMomentumVec3f() [2/3]

void momentum::fromMomentumVec3f ( std::vector< Vector3f > & vec)
inline

◆ fromMomentumVec3f() [3/3]

void momentum::fromMomentumVec3f ( VectorXf & vec)
inline

◆ fromMomentumVector() [1/3]

template Vector3< double > momentum::fromMomentumVector ( const Vector3< double > & ,
const CoordinateSystem &  )

◆ fromMomentumVector() [2/3]

template Vector3< float > momentum::fromMomentumVector ( const Vector3< float > & ,
const CoordinateSystem &  )

◆ fromMomentumVector() [3/3]

template<typename T>
Vector3< T > momentum::fromMomentumVector ( const Vector3< T > & v,
const CoordinateSystem & to )
nodiscard

Converts a position vector from Momentum's canonical coordinate system into to.

Definition at line 135 of file coordinate_system.cpp.

References changeVector(), and kMomentumCoordinateSystem.

Referenced by fromMomentumVec3f().

◆ gatherSkeletonRoots()

std::vector< std::vector< uint32_t > > momentum::gatherSkeletonRoots ( const fx::gltf::Document & model)
nodiscard

Gather skeleton roots from the glTF model.

Return a vector of roots for each skeleton. Each item represents a skeleton, and for each skeleton multiple root nodes are allowed.

Parameters
[in]modelThe glTF document.
Returns
A vector of vectors containing root node indices for each skeleton.

Definition at line 280 of file gltf_skeleton_io.cpp.

References MT_CHECK.

Referenced by loadHierarchy().

◆ generateBoxMesh()

Mesh momentum::generateBoxMesh ( float dimX,
float dimY,
float dimZ )

Generates a box mesh with the given dimensions centered at the origin.

Parameters
dimXFull extent along the X axis (in the caller's units).
dimYFull extent along the Y axis.
dimZFull extent along the Z axis.
Returns
A mesh with 8 vertices and 12 triangular faces.

Definition at line 185 of file urdf_mesh_io.cpp.

References momentum::MeshT< T >::faces, momentum::MeshT< T >::updateNormals(), and momentum::MeshT< T >::vertices.

◆ generateCylinderMesh()

Mesh momentum::generateCylinderMesh ( float radius,
float length,
int segments = 32 )

Generates a cylinder mesh centered at the origin with the Z axis as its axis.

Parameters
radiusCylinder radius.
lengthCylinder length along the Z axis.
segmentsNumber of segments around the circumference.
Returns
A triangulated cylinder mesh with top and bottom caps.

Definition at line 229 of file urdf_mesh_io.cpp.

References momentum::MeshT< T >::faces, twopi(), momentum::MeshT< T >::updateNormals(), and momentum::MeshT< T >::vertices.

◆ generateSphereMesh()

Mesh momentum::generateSphereMesh ( float radius,
int latSegments = 16,
int lonSegments = 32 )

Generates a UV sphere mesh centered at the origin.

Parameters
radiusSphere radius.
latSegmentsNumber of latitude bands (stacks).
lonSegmentsNumber of longitude segments (slices).
Returns
A triangulated sphere mesh.

Definition at line 278 of file urdf_mesh_io.cpp.

References momentum::MeshT< T >::faces, pi(), twopi(), momentum::MeshT< T >::updateNormals(), and momentum::MeshT< T >::vertices.

◆ getAllCameraIntrinsicsParameterSet()

ParameterSet momentum::getAllCameraIntrinsicsParameterSet ( const ParameterTransform & paramTransform)
nodiscard

Get ParameterSet for ALL camera intrinsics parameters.

Parameters
paramTransformThe parameter transform to search
Returns
ParameterSet with bits set for all intrinsics parameters

Definition at line 148 of file camera_intrinsics_parameters.cpp.

References kIntrinsicsParamPrefix, and momentum::ParameterTransformT< T >::name.

◆ getAuxiliaryDataFromMotion()

std::tuple< MatrixXf, std::vector< std::string > > momentum::getAuxiliaryDataFromMotion ( const MatrixXf & poses,
std::span< const std::string > parameterNames )

Extract auxiliary data from motion parameters.

Auxiliary parameters are identified by names wrapped with double underscores (e.g., "__param__")

Parameters
posesMotion poses matrix
parameterNamesNames of all parameters
Returns
Tuple of (auxiliary data matrix, auxiliary parameter names without underscores)

Definition at line 229 of file mmo_io.cpp.

◆ getCameraIntrinsicsParameterSet()

ParameterSet momentum::getCameraIntrinsicsParameterSet ( const ParameterTransform & paramTransform,
const std::string & cameraName )
nodiscard

Get ParameterSet for a specific camera's intrinsics parameters.

Parameters
paramTransformThe parameter transform to search
cameraNameThe camera name to look up
Returns
ParameterSet with bits set for the camera's intrinsics parameters

Definition at line 135 of file camera_intrinsics_parameters.cpp.

References momentum::ParameterTransformT< T >::name.

Referenced by addCameraIntrinsicsParameters().

◆ getComponentSize()

int32_t momentum::getComponentSize ( const fx::gltf::Accessor::ComponentType & componentType)
inline

Definition at line 18 of file accessor_utils.h.

Referenced by copyAccessorBuffer(), and copyAlignedAccessorBuffer().

◆ getInverseSSDTransformation()

Affine3f momentum::getInverseSSDTransformation ( const TransformationList & inverseBindPose,
const SkinWeights & skin,
const SkeletonState & state,
size_t index )

Computes the inverse SSD transformation for a specific vertex.

Returns a transformation matrix that converts from skinned space back to bind pose space. This is useful for operations that need to work in the original bind pose space.

Parameters
inverseBindPoseInverse bind pose transformations for each joint
skinSkin weights defining influence of each joint on vertices
stateCurrent skeleton state containing joint transformations
indexIndex of the vertex to compute inverse transformation for
Returns
Inverse transformation matrix for the specified vertex

Definition at line 309 of file linear_skinning.cpp.

References getInverseSSDTransformation(), momentum::SkinWeights::index, momentum::SkeletonStateT< T >::jointState, kMaxSkinJoints, MT_CHECK, and momentum::SkinWeights::weight.

Referenced by getInverseSSDTransformation().

◆ GetLineCrossPlatform()

std::istream & momentum::GetLineCrossPlatform ( std::istream & is,
std::string & line )

Reads a line from the input stream, handling line endings for different platforms.

This function reads a line from the given input stream and stores it in the 'line' parameter. It properly handles line endings for different platforms (e.g., LF for Unix, CRLF for Windows).

Parameters
[in,out]isReference to the input stream from which the line should be read.
[in,out]lineReference to the string variable where the line will be stored.
Returns
Reference to the input stream after reading the line.

Definition at line 80 of file stream_utils.cpp.

Referenced by loadTrc().

◆ getLocatorError() [1/2]

std::pair< float, float > momentum::getLocatorError ( std::span< const std::vector< momentum::Marker > > markerData,
const Eigen::MatrixXf & motion,
momentum::Character & character )

Get the error of the locator motion vs the markers.

Parameters
[in]markerDataInput marker data.
[in]motionMotion to compare against.
[in]characterCharacter definition
Returns
average per frame error and max marker error

◆ getLocatorError() [2/2]

std::pair< float, float > momentum::getLocatorError ( std::span< const std::vector< momentum::Marker > > markerData,
const MatrixXf & motion,
momentum::Character & character )

Compute average and maximum marker tracking errors across all frames.

This is a utility function for evaluating tracking quality by measuring the Euclidean distance between observed marker positions and their corresponding locator positions on the character. It provides both average error per frame and the maximum error encountered across all markers and frames.

This function supports both regular locators and skinned locators.

Parameters
markerDataMarker observations for each frame
motionSolved motion parameters matrix (parameters x frames)
characterCharacter model with locators
Returns
Pair of (average_error, max_error) in world units

Definition at line 1978 of file marker_tracker.cpp.

References momentum::ParameterTransformT< T >::apply(), getSkinnedLocatorPosition(), momentum::Character::inverseBindPose, momentum::SkeletonStateT< T >::jointState, momentum::Character::locators, MT_CHECK, MT_LOGI, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::SkeletonStateT< T >::set(), momentum::Character::skeleton, and momentum::Character::skinnedLocators.

Referenced by processMarkers().

◆ getLogLevel()

LogLevel momentum::getLogLevel ( )
nodiscard

Returns the current global log threshold.

Mirrors what was last set via setLogLevel; defaults to LogLevel::Info if never set.

Definition at line 129 of file log.cpp.

References Debug, Disabled, Error, Info, Trace, and Warning.

◆ getMotionFromModel()

std::tuple< MotionParameters, IdentityParameters > momentum::getMotionFromModel ( fx::gltf::Document & model)

Get motion parameters from a glTF model.

Parameters
[in]modelThe glTF document containing motion data.
Returns
A tuple containing the motion parameters and identity parameters.

Definition at line 73 of file gltf_animation_io.cpp.

References copyAccessorBuffer(), and kParametersPerJoint.

Referenced by loadMotionFromModel().

◆ getPoseConstraintParameterLimits()

ParameterLimits momentum::getPoseConstraintParameterLimits ( const std::string & name,
const ParameterTransform & pt,
const float weight )

◆ getRotationDerivative()

template<typename T, typename T2>
Eigen::Vector3< T > momentum::getRotationDerivative ( const JointStateT< T2 > & js,
const size_t index,
const Eigen::Vector3< T > & ref )

◆ getScaleDerivative()

template<typename T, typename T2>
Eigen::Vector3< T > momentum::getScaleDerivative ( const JointStateT< T2 > & js,
const Eigen::Vector3< T > & ref )

◆ getSkinnedLocatorPosition() [1/2]

template<typename T>
Vector3< T > momentum::getSkinnedLocatorPosition ( const SkinnedLocator & locator,
const TransformationList & inverseBindPose,
const SkeletonStateT< T > & state )

Computes the world position of a skinned locator using linear blend skinning.

Convenience overload that uses the locator's stored rest position.

Parameters
locatorThe skinned locator containing parent joints, weights, and rest position
inverseBindPoseInverse bind pose transformations for each joint
stateCurrent skeleton state containing joint transformations
Returns
The locator's world position

Definition at line 585 of file linear_skinning.cpp.

References cast(), getSkinnedLocatorPosition(), and momentum::SkinnedLocator::position.

◆ getSkinnedLocatorPosition() [2/2]

template<typename T>
Vector3< T > momentum::getSkinnedLocatorPosition ( const SkinnedLocator & locator,
const Vector3< T > & restPosition,
const TransformationList & inverseBindPose,
const SkeletonStateT< T > & state )

Computes the world position of a skinned locator using linear blend skinning.

This function applies linear blend skinning to transform a locator's rest position to its world position based on the current skeleton state. The position is computed by blending the transforms from each parent joint weighted by the corresponding skin weights.

Parameters
locatorThe skinned locator containing parent joints and weights
restPositionThe locator's position in rest pose (bind pose)
inverseBindPoseInverse bind pose transformations for each joint
stateCurrent skeleton state containing joint transformations
Returns
The locator's world position

Definition at line 544 of file linear_skinning.cpp.

References getSkinnedLocatorPosition(), momentum::SkeletonStateT< T >::jointState, MT_THROW_IF, momentum::SkinnedLocator::parents, and momentum::SkinnedLocator::skinWeights.

Referenced by getLocatorError(), getSkinnedLocatorPosition(), getSkinnedLocatorPosition(), getSkinnedLocatorPosition< double >(), getSkinnedLocatorPosition< double >(), getSkinnedLocatorPosition< float >(), and getSkinnedLocatorPosition< float >().

◆ getSkinnedLocatorPosition< double >() [1/2]

template Vector3< double > momentum::getSkinnedLocatorPosition< double > ( const SkinnedLocator & locator,
const TransformationList & inverseBindPose,
const SkeletonStateT< double > & state )

◆ getSkinnedLocatorPosition< double >() [2/2]

template Vector3< double > momentum::getSkinnedLocatorPosition< double > ( const SkinnedLocator & locator,
const Vector3< double > & restPosition,
const TransformationList & inverseBindPose,
const SkeletonStateT< double > & state )

◆ getSkinnedLocatorPosition< float >() [1/2]

template Vector3< float > momentum::getSkinnedLocatorPosition< float > ( const SkinnedLocator & locator,
const TransformationList & inverseBindPose,
const SkeletonStateT< float > & state )

◆ getSkinnedLocatorPosition< float >() [2/2]

template Vector3< float > momentum::getSkinnedLocatorPosition< float > ( const SkinnedLocator & locator,
const Vector3< float > & restPosition,
const TransformationList & inverseBindPose,
const SkeletonStateT< float > & state )

◆ getTypeSize()

int32_t momentum::getTypeSize ( const fx::gltf::Accessor::Type & ty)
inline

Definition at line 35 of file accessor_utils.h.

Referenced by copyAccessorBuffer(), and copyAlignedAccessorBuffer().

◆ gradient_jointParams_to_modelParams() [1/2]

◆ gradient_jointParams_to_modelParams() [2/2]

template<typename T>
void momentum::gradient_jointParams_to_modelParams ( const T grad_jointParams,
const Eigen::Index iJointParam,
const ParameterTransform & parameterTransform,
Eigen::Ref< Eigen::VectorX< T > > gradient )

◆ hasComponentData()

template<typename T>
bool momentum::hasComponentData ( const T & archetype)
inline

Check whether an archetype has any component data to log.

The rerun Rust FFI panics when logging archetypes with zero component batches (null pointer in slice::from_raw_parts_mut). This helper serializes the archetype and returns false when the result is empty, allowing callers to skip the log call.

Definition at line 146 of file rerun_compat.h.

◆ hessianInverseTimes()

template<typename T>
Eigen::VectorX< T > momentum::hessianInverseTimes ( Eigen::Ref< const Eigen::MatrixX< T > > jacobian,
Eigen::Ref< const Eigen::VectorX< T > > v )

Definition at line 75 of file fully_differentiable_body_ik.cpp.

References sqr().

Referenced by d_modelParams_d_inputs().

◆ intersectFace()

template<typename T>
bool momentum::intersectFace ( const MeshT< T > & mesh,
const std::vector< Vector3< T > > & faceNormals,
int32_t face0,
int32_t face1 )

Tests whether two given triangle faces of a mesh intersect with each other.

Parameters
meshSource mesh providing vertex positions and triangle face indices.
faceNormalsPer-face normals, indexed by face id; must be sized to match mesh.faces and computed from the same vertex positions as mesh.
face0Index of the first face into mesh.faces.
face1Index of the second face into mesh.faces.
Returns
True if the two triangles intersect, false otherwise. Faces that share one or more vertex indices are treated as non-intersecting (adjacent faces are ignored to avoid false positives along shared edges/vertices).
Precondition
face0 and face1 are valid indices into mesh.faces.
faceNormals.size() == mesh.faces.size().

Definition at line 36 of file intersection.cpp.

References Eps(), momentum::MeshT< T >::faces, and momentum::MeshT< T >::vertices.

Referenced by intersectMesh(), and intersectMeshBruteForce().

◆ intersectFace< double >()

template bool momentum::intersectFace< double > ( const MeshT< double > & mesh,
const std::vector< Vector3< double > > & faceNormals,
const int32_t face0,
const int32_t face1 )

◆ intersectFace< float >()

template bool momentum::intersectFace< float > ( const MeshT< float > & mesh,
const std::vector< Vector3< float > > & faceNormals,
const int32_t face0,
const int32_t face1 )

◆ intersectMesh()

template<typename T>
std::vector< std::pair< int32_t, int32_t > > momentum::intersectMesh ( const MeshT< T > & mesh)

Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a BVH (bounding volume hierarchy) acceleration structure.

Parameters
meshSource mesh to test for self-intersection.
Returns
All unique pairs of face indices whose triangles intersect according to intersectFace. Pairs of faces that share a vertex are excluded. The returned vector is empty if no intersections are found. Order of pairs is implementation- defined and may differ from intersectMeshBruteForce.
Note
Functionally equivalent to intersectMeshBruteForce but asymptotically faster for large meshes.

Definition at line 153 of file intersection.cpp.

References cross(), momentum::MeshT< T >::faces, intersectFace(), and momentum::MeshT< T >::vertices.

◆ intersectMesh< double >()

template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMesh< double > ( const MeshT< double > & mesh)

◆ intersectMesh< float >()

template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMesh< float > ( const MeshT< float > & mesh)

◆ intersectMeshBruteForce()

template<typename T>
std::vector< std::pair< int32_t, int32_t > > momentum::intersectMeshBruteForce ( const MeshT< T > & mesh)

Tests if the mesh self-intersects anywhere and returns all intersecting face pairs using a brute-force O(n^2) pairwise check over all faces.

Parameters
meshSource mesh to test for self-intersection.
Returns
All pairs (i, j) of face indices (with i < j by convention of the pairwise loop) whose triangles intersect according to intersectFace. Pairs of faces that share a vertex are excluded (see intersectFace). The returned vector is empty if no intersections are found.
Note
Intended primarily for correctness reference and small meshes; prefer intersectMesh for large meshes.

Definition at line 123 of file intersection.cpp.

References cross(), momentum::MeshT< T >::faces, intersectFace(), and momentum::MeshT< T >::vertices.

◆ intersectMeshBruteForce< double >()

template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMeshBruteForce< double > ( const MeshT< double > & mesh)

◆ intersectMeshBruteForce< float >()

template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMeshBruteForce< float > ( const MeshT< float > & mesh)

◆ isApprox()

template<typename T = float>
bool momentum::isApprox ( T l,
T r,
T eps = Eps<T>(1e-4, 1e-6) )
nodiscardnoexcept

◆ isCenteredPrimitive()

bool momentum::isCenteredPrimitive ( CollisionPrimitiveType type)
inlinenodiscard

Return whether the primitive is represented by a center, orientation, and support radius.

Definition at line 194 of file collision_geometry_state.h.

References Box, and Ellipsoid.

Referenced by overlaps().

◆ isFloorLocatorName()

bool momentum::isFloorLocatorName ( const std::string_view name)
nodiscard

Return true when name uses Momentum's floor-locator prefix.

Definition at line 22 of file support_contacts.cpp.

◆ isGlobalTransformZero()

bool momentum::isGlobalTransformZero ( const Eigen::VectorXf & dof,
const ParameterSet & rigidParams )

Check if the global transform is zero by checking if any rigid parameters are non-zero.

This is used to determine whether initialization is needed for pose tracking. If all rigid parameters are zero, we need to solve for an initial rigid transform.

Parameters
dofThe parameter vector to check
rigidParamsParameter set defining which parameters are rigid/global
Returns
True if global transform is zero (needs initialization), false otherwise

Definition at line 732 of file marker_tracker.cpp.

Referenced by trackPosesForFrames().

◆ isHierarchyNode()

bool momentum::isHierarchyNode ( const fx::gltf::Node & node)
nodiscard

Check if a node is allowed in the skeleton hierarchy.

The skinned mesh should not exist in the same hierarchy as the skeleton. Note that markers have mesh, so we are allowing the nodes with mesh in the hierarchy.

Parameters
[in]nodeThe glTF node to check.
Returns
True if the node is a hierarchy node, false otherwise.

Definition at line 276 of file gltf_skeleton_io.cpp.

◆ isInRange() [1/2]

bool momentum::isInRange ( const LimitLinear & limit,
float value )

If rangeMin and rangeMax are both 0, the limit applies to all values.

Definition at line 105 of file parameter_limits.cpp.

References momentum::LimitLinear::rangeMax, and momentum::LimitLinear::rangeMin.

◆ isInRange() [2/2]

bool momentum::isInRange ( const LimitLinearJoint & limit,
float value )

If rangeMin and rangeMax are both 0, the limit applies to all values.

Definition at line 115 of file parameter_limits.cpp.

References momentum::LimitLinearJoint::rangeMax, and momentum::LimitLinearJoint::rangeMin.

◆ IsNanNoOpt()

bool momentum::IsNanNoOpt ( float f)
inlinenodiscard

NaN check function that isn't optimized away by fastmath.

Unlike std::isnan(), this implementation is not affected by compiler optimizations when using fast math options

Definition at line 25 of file utility.h.

Referenced by momentum::MeshT< T >::updateNormals().

◆ isRelatedJoint()

bool momentum::isRelatedJoint ( const momentum::Skeleton & skeleton,
uint32_t jointA,
uint32_t jointB )

Check if two joints are related (same joint, parent-child, or child-parent relationship).

Parameters
skeletonThe skeleton containing the joint hierarchy
jointAFirst joint index
jointBSecond joint index
Returns
True if the joints are related (same, or one is the parent of the other)

Definition at line 172 of file tracker_utils.cpp.

References momentum::SkeletonT< T >::joints.

Referenced by closestPointOnMeshMatchingParent(), and findCandidateTrianglesDfs().

◆ isValidCollisionPair()

template<typename T, typename S>
bool momentum::isValidCollisionPair ( const CollisionGeometryStateT< T > & collisionState,
const CollisionGeometry & collisionGeometry,
const SkeletonT< S > & skeleton,
size_t i,
size_t j,
bool filterRestPoseOverlaps = true )
nodiscard

Determines whether a pair of collision geometry primitives should be included as a valid collision pair.

A pair is excluded if:

  • The primitives overlap in rest pose (permanently overlapping, e.g. adjacent body parts), unless filterRestPoseOverlaps is false
  • The primitives are attached to the same joint or directly adjacent joints
Parameters
collisionStateThe collision geometry state in rest pose
collisionGeometryThe collision geometry definition
skeletonThe skeleton used for adjacency checks
iIndex of the first primitive
jIndex of the second primitive
filterRestPoseOverlapsWhen true, exclude pairs that overlap in rest pose
Returns
True if the pair is a valid collision pair (should be checked for collisions)

Definition at line 526 of file collision_geometry_state.h.

References momentum::SkeletonT< T >::isSameOrAdjacentJoints(), kInvalidIndex, and overlaps().

Referenced by momentum::CollisionErrorFunctionStatelessT< T >::updateCollisionPairs(), and momentum::CollisionErrorFunctionT< T >::updateCollisionPairs().

◆ jacobian_jointParams_to_modelParams() [1/5]

◆ jacobian_jointParams_to_modelParams() [2/5]

template<typename T>
void momentum::jacobian_jointParams_to_modelParams ( const T & jacobian_jointParams,
const Eigen::Index iJointParam,
const Eigen::Index iRow,
const ParameterTransform & parameterTransform,
Eigen::Ref< Eigen::MatrixX< T > > jacobian )

◆ jacobian_jointParams_to_modelParams() [3/5]

template<typename T, typename Derived>
void momentum::jacobian_jointParams_to_modelParams ( const T & jacobian_jointParams,
const Eigen::Index iJointParam,
const ParameterTransform & parameterTransform,
Eigen::MatrixBase< Derived > & jacobian )

Overload accepting MatrixBase for Eigen expression types (e.g. row blocks).

Definition at line 64 of file error_function_utils.h.

References momentum::ParameterTransformT< T >::transform.

◆ jacobian_jointParams_to_modelParams() [4/5]

template<typename T>
void momentum::jacobian_jointParams_to_modelParams ( const T & jacobian_jointParams,
const Eigen::Index iJointParam,
const ParameterTransform & parameterTransform,
Eigen::Ref< Eigen::MatrixX< T > > jacobian )

◆ jacobian_jointParams_to_modelParams() [5/5]

template<typename T>
void momentum::jacobian_jointParams_to_modelParams ( const T jacobian_jointParams,
const Eigen::Index iJointParam,
const ParameterTransform & parameterTransform,
Eigen::Ref< Eigen::MatrixX< T > > jacobian )

◆ jointIdentityToModelIdentity()

◆ jointPhysicalPropertiesFromJson()

JointPhysicalProperties momentum::jointPhysicalPropertiesFromJson ( const nlohmann::json & j,
const std::string & jointName,
size_t jointIndex )

Parses one joint's physical mass properties from JSON.

All fields written by jointPhysicalPropertiesToJson() are required. jointName and jointIndex are supplied by the enclosing skeleton node, because the per-node schema does not duplicate the joint identity inside the physical-properties object.

Definition at line 338 of file json_utils.cpp.

References momentum::JointPhysicalProperties::centerOfMassOffset, momentum::JointPhysicalProperties::inertia, momentum::JointPhysicalProperties::inertiaRotation, momentum::JointPhysicalProperties::jointIndex, momentum::JointPhysicalProperties::jointName, momentum::JointPhysicalProperties::mass, and MT_THROW_IF.

Referenced by jointPhysicalPropertiesFromJsonString().

◆ jointPhysicalPropertiesFromJsonString()

std::optional< JointPhysicalProperties > momentum::jointPhysicalPropertiesFromJsonString ( const std::string & json,
const std::string & jointName,
size_t jointIndex )
nodiscard

Parses one joint's physical mass properties from its canonical on-disk JSON string.

jointName and jointIndex identify the owning joint (see jointPhysicalPropertiesFromJson()). If the string cannot be parsed (malformed JSON) or fails semantic validation (e.g. a missing field or non-positive mass), this logs a warning and returns std::nullopt, so that a single corrupt entry does not abort loading the rest of the character.

Definition at line 382 of file json_utils.cpp.

References jointPhysicalPropertiesFromJson(), and MT_LOGW.

◆ jointPhysicalPropertiesToJson()

void momentum::jointPhysicalPropertiesToJson ( const JointPhysicalProperties & jointProperties,
nlohmann::json & j )

Serializes one joint's physical mass properties.

The JSON object contains mass, centerOfMass as a 3-element vector, inertia as the six symmetric tensor fields ixx, ixy, ixz, iyy, iyz, izz, and inertiaRotation as a quaternion in [w, x, y, z] order. Length-valued fields use the Momentum units documented on JointPhysicalProperties.

Definition at line 310 of file json_utils.cpp.

References momentum::JointPhysicalProperties::centerOfMassOffset, momentum::JointPhysicalProperties::inertia, momentum::JointPhysicalProperties::inertiaRotation, momentum::JointPhysicalProperties::jointName, momentum::JointPhysicalProperties::mass, and MT_THROW_IF.

Referenced by jointPhysicalPropertiesToJsonString().

◆ jointPhysicalPropertiesToJsonString()

std::string momentum::jointPhysicalPropertiesToJsonString ( const JointPhysicalProperties & jointProperties)
nodiscard

Serializes one joint's physical mass properties to its canonical on-disk JSON string.

This is the string representation written by the string-based Character I/O backends (FBX, USD). It is equivalent to dumping the object produced by jointPhysicalPropertiesToJson().

Definition at line 376 of file json_utils.cpp.

References jointPhysicalPropertiesToJson().

Referenced by momentum::fbx_internal::addPhysicalProperties().

◆ ln2()

◆ loadBlendShape() [1/2]

BlendShape momentum::loadBlendShape ( const filesystem::path & filename,
int expectedShapes = -1,
int expectedVertices = -1 )

Loads a blend shape from a file, including base shape and shape vectors.

Parameters
filenamePath to the blend shape data file
expectedShapesLimits number of shape vectors loaded if > 0, otherwise loads all
expectedVerticesLimits number of vertices loaded if > 0, otherwise loads all
Returns
BlendShape object with loaded data
Note
Only supports local files. For non-local paths, use the stream version.

Definition at line 104 of file blend_shape_io.cpp.

References loadBlendShape().

Referenced by loadBlendShape().

◆ loadBlendShape() [2/2]

BlendShape momentum::loadBlendShape ( std::istream & data,
int expectedShapes = -1,
int expectedVertices = -1 )

Loads a blend shape from a stream, including base shape and shape vectors.

Parameters
dataInput stream containing blend shape data
expectedShapesLimits number of shape vectors loaded if > 0, otherwise loads all
expectedVerticesLimits number of vertices loaded if > 0, otherwise loads all
Returns
BlendShape object with loaded data

Definition at line 109 of file blend_shape_io.cpp.

References MT_THROW_IF, and momentum::BlendShapeBase::setShapeVectors().

◆ loadBlendShapeBase() [1/2]

BlendShapeBase momentum::loadBlendShapeBase ( const filesystem::path & filename,
int expectedShapes = -1,
int expectedVertices = -1 )

Loads blend shape vectors from a file without base shape.

Parameters
filenamePath to the blend shape base data file
expectedShapesLimits number of shape vectors loaded if > 0, otherwise loads all
expectedVerticesLimits number of vertices loaded if > 0, otherwise loads all
Returns
BlendShapeBase object with loaded shape vectors

Definition at line 73 of file blend_shape_io.cpp.

References loadBlendShapeBase().

Referenced by loadBlendShapeBase().

◆ loadBlendShapeBase() [2/2]

BlendShapeBase momentum::loadBlendShapeBase ( std::istream & data,
int expectedShapes = -1,
int expectedVertices = -1 )

Loads blend shape vectors from a stream without base shape.

Parameters
dataInput stream containing blend shape base data
expectedShapesLimits number of shape vectors loaded if > 0, otherwise loads all
expectedVerticesLimits number of vertices loaded if > 0, otherwise loads all
Returns
BlendShapeBase object with loaded shape vectors

Definition at line 78 of file blend_shape_io.cpp.

References MT_THROW_IF, and momentum::BlendShapeBase::setShapeVectors().

◆ loadBlendShapesFromUsd()

std::shared_ptr< BlendShape > momentum::loadBlendShapesFromUsd ( const UsdStageRefPtr & stage,
size_t numVertices )

Load blend shapes from a USD stage.

Reads UsdSkelBlendShape prims bound to the first mesh found.

Parameters
[in]stageThe USD stage to read from.
[in]numVerticesThe expected number of vertices.
Returns
The loaded BlendShape, or nullptr if none found.

Definition at line 449 of file usd_mesh_io.cpp.

◆ loadBvhCharacter() [1/2]

Character momentum::loadBvhCharacter ( const filesystem::path & filepath)
nodiscard

Loads a character from a BVH (BioVision Hierarchy) file.

The character is created with an identity ParameterTransform where model parameters map directly to joint parameters (7 per joint: tx, ty, tz, rx, ry, rz, sc).

Parameters
[in]filepathThe path to the BVH file.
Returns
The loaded Character object.

Definition at line 629 of file bvh_io.cpp.

References MT_THROW_IF.

◆ loadBvhCharacter() [2/2]

Character momentum::loadBvhCharacter ( std::span< const std::byte > bytes)
nodiscard

Loads a character from a BVH file buffer.

Parameters
[in]bytesThe buffer containing the BVH file data.
Returns
The loaded Character object.

Definition at line 636 of file bvh_io.cpp.

◆ loadBvhCharacterWithMotion() [1/2]

std::tuple< Character, MotionParameters, float > momentum::loadBvhCharacterWithMotion ( const filesystem::path & filepath)
nodiscard

Loads a character with motion data from a BVH (BioVision Hierarchy) file.

Returns the character with an identity ParameterTransform, along with the motion data represented as model parameters and the frame rate. BVH rotation values are converted from degrees to radians and mapped to Momentum's ZYX Euler convention.

Parameters
[in]filepathThe path to the BVH file.
Returns
A tuple of (Character, MotionParameters, fps).

Definition at line 642 of file bvh_io.cpp.

References MT_THROW_IF.

◆ loadBvhCharacterWithMotion() [2/2]

std::tuple< Character, MotionParameters, float > momentum::loadBvhCharacterWithMotion ( std::span< const std::byte > bytes)
nodiscard

Loads a character with motion data from a BVH file buffer.

Parameters
[in]bytesThe buffer containing the BVH file data.
Returns
A tuple of (Character, MotionParameters, fps).

Definition at line 649 of file bvh_io.cpp.

◆ loadC3d()

std::vector< MarkerSequence > momentum::loadC3d ( const std::string & filename,
UpVector up = UpVector::Y,
std::span< const std::string > validMarkerNames = {} )
nodiscard

Loads all the subjects from a C3D file into a vector of MarkerSequences.

The function reads the given C3D file and stores the marker data as a MarkerSequence. The unit of the input file will be read from the file and converted to the momentum unit (i.e., cm). The UpVector parameter 'up' is the up-vector convention of the input marker file.

Parameters
[in]filenameThe C3D file to load marker data from.
[in]up(Optional) The up-vector convention of the input marker file (default: UpVector::Y).
Returns
std::vector<MarkerSequence> A vector containing the marker sequences from the C3D file.

Definition at line 292 of file c3d_io.cpp.

References MT_LOGE.

Referenced by loadMarkers(), and loadMarkers().

◆ loadCalibratedModel()

std::tuple< momentum::Character, momentum::ModelParameters > momentum::loadCalibratedModel ( const std::string & modelFile)

Definition at line 155 of file app_utils.cpp.

References jointIdentityToModelIdentity(), and loadCharacterWithMotion().

◆ loadCharacterFromLegacyJson()

Character momentum::loadCharacterFromLegacyJson ( const std::string & jsonPath)
nodiscard

Loads a Character from a legacy JSON format that was previously used by older Python libraries (and some other tools).

The legacy JSON format contains:

  • "skeleton": FBX skeleton structure with joints, hierarchy, and transforms
  • "skinnedmodel": Mesh data with skinning weights
  • "collision": Optional collision geometry (tapered capsules)
Parameters
[in]jsonPathPath to the legacy JSON file
Returns
The loaded Character object
Exceptions
std::runtime_errorif the file cannot be loaded or parsed

Definition at line 572 of file legacy_json_io.cpp.

References loadCharacterFromLegacyJsonString(), and MT_THROW_IF.

◆ loadCharacterFromLegacyJsonBuffer()

Character momentum::loadCharacterFromLegacyJsonBuffer ( std::span< const std::byte > jsonBuffer)
nodiscard

Loads a Character from a legacy JSON buffer.

Parameters
[in]jsonBufferBuffer containing the legacy JSON data
Returns
The loaded Character object
Exceptions
std::runtime_errorif the buffer cannot be parsed

Definition at line 582 of file legacy_json_io.cpp.

References loadCharacterFromLegacyJsonString().

◆ loadCharacterFromLegacyJsonString()

Character momentum::loadCharacterFromLegacyJsonString ( const std::string & jsonString)
nodiscard

Loads a Character from a legacy JSON string.

Parameters
[in]jsonStringString containing the legacy JSON data
Returns
The loaded Character object
Exceptions
std::runtime_errorif the string cannot be parsed

Definition at line 587 of file legacy_json_io.cpp.

References momentum::ParameterTransformT< float >::empty(), momentum::SkeletonT< T >::joints, kParametersPerJoint, and MT_THROW_IF.

Referenced by loadCharacterFromLegacyJson(), and loadCharacterFromLegacyJsonBuffer().

◆ loadCharacterWithIdentity()

◆ loadCharacterWithMotion() [1/2]

std::tuple< Character, MatrixXf, momentum::JointParameters, float > momentum::loadCharacterWithMotion ( const filesystem::path & gltfFilename)

Load a glTF character with motion from a file path.

This function loads both the character and motion data from a glTF file. The motion is represented in model parameters and the identity vector is represented as joint parameters. This function assumes the file format is glTF without checking the extension.

Parameters
[in]gltfFilenameThe path to the glTF file.
Returns
A tuple containing the loaded Character object, the motion represented in model parameters, the identity vector represented as joint parameters, and the fps.

Definition at line 309 of file gltf_io.cpp.

References loadCharacterWithMotionCommon().

Referenced by loadCalibratedModel(), and loadCharacterWithIdentity().

◆ loadCharacterWithMotion() [2/2]

std::tuple< Character, MatrixXf, momentum::JointParameters, float > momentum::loadCharacterWithMotion ( std::span< const std::byte > byteSpan)

Load a glTF character from a buffer.

Parameters
[in]byteSpanThe buffer containing the glTF character data.
Returns
A tuple containing the loaded Character object, the motion represented in model parameters, the identity vector represented as joint parameters, and the fps.

Definition at line 314 of file gltf_io.cpp.

References loadCharacterWithMotionCommon().

◆ loadCharacterWithMotionCommon()

std::tuple< Character, MatrixXf, JointParameters, float > momentum::loadCharacterWithMotionCommon ( const std::variant< filesystem::path, std::span< const std::byte > > & input,
bool mapParameters = false )

Load character with motion from input (common implementation).

Parameters
[in]inputEither a filesystem path or a byte span containing glTF data.
[in]mapParametersWhether to map parameters to the character (default: false).
Returns
A tuple containing the character, motion matrix, joint parameters, and fps.

Definition at line 194 of file gltf_animation_io.cpp.

References loadGltfCharacter(), loadMotionFromModel(), mapIdentityToCharacter(), mapMotionToCharacter(), mapParameters(), MT_LOGW_IF, and MT_THROW.

Referenced by loadCharacterWithMotion(), loadCharacterWithMotion(), loadCharacterWithMotionModelParameterScales(), and loadMotionOnCharacterCommon().

◆ loadCharacterWithMotionModelParameterScales() [1/2]

std::tuple< Character, MatrixXf, momentum::ModelParameters, float > momentum::loadCharacterWithMotionModelParameterScales ( const filesystem::path & gltfFilename)

Load a glTF character with motion and apply scale parameters to the motion.

This function loads both the character and motion data from a glTF file, applying the character's scale parameters directly to the motion as model parameters. This approach is preferred over the deprecated method of storing scales in an offset vector in the parameter transform. The scale parameters from the identity vector are integrated into the motion data for each frame.

Parameters
[in]gltfFilenameThe path to the glTF file.
Returns
A tuple containing the loaded Character object, the motion represented in model parameters with scales applied, the identity parameters as model parameters, and the fps.

Definition at line 319 of file gltf_io.cpp.

References loadCharacterWithMotionModelParameterScales(), MT_THROW, and MT_THROW_IF.

Referenced by loadCharacterWithMotionModelParameterScales().

◆ loadCharacterWithMotionModelParameterScales() [2/2]

std::tuple< Character, MatrixXf, momentum::ModelParameters, float > momentum::loadCharacterWithMotionModelParameterScales ( std::span< const std::byte > byteSpan)

Load a glTF character with motion and apply scale parameters to the motion.

This function loads both the character and motion data from a glTF file, applying the character's scale parameters directly to the motion as model parameters. This approach is preferred over the deprecated method of storing scales in an offset vector in the parameter transform. The scale parameters from the identity vector are integrated into the motion data for each frame.

Parameters
[in]byteSpanThe buffer containing the glTF character data.
Returns
A tuple containing the loaded Character object, the motion represented in model parameters with scales applied, the identity parameters as model parameters, and the fps.

Definition at line 337 of file gltf_io.cpp.

References applyModelParameterScales(), loadCharacterWithMotionCommon(), MT_THROW_IF, momentum::ParameterTransformT< T >::numAllModelParameters(), and momentum::Character::parameterTransform.

◆ loadCharacterWithSkeletonStates() [1/2]

std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > momentum::loadCharacterWithSkeletonStates ( const filesystem::path & gltfFilename)

Load a glTF character with motion in the form of skeleton states.

This function loads motion data as skeleton states (transform matrices) instead of model parameters. Unlike the other loadCharacterWithMotion functions, this function does not require the file to be saved using momentum's custom glTF extension for model parameters. However, the resulting skeleton states may be harder to work with than model parameters.

Parameters
[in]gltfFilenameThe path to the glTF file.
Returns
A tuple containing the loaded Character object, a vector of skeleton states for each frame, and a vector of timestamps.

Definition at line 357 of file gltf_io.cpp.

References loadCharacterWithSkeletonStatesCommon().

◆ loadCharacterWithSkeletonStates() [2/2]

std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > momentum::loadCharacterWithSkeletonStates ( std::span< const std::byte > byteSpan)

Load a glTF character with motion in the form of skeleton states.

This function loads motion data as skeleton states (transform matrices) instead of model parameters. Unlike the other loadCharacterWithMotion functions, this function does not require the file to be saved using momentum's custom glTF extension for model parameters. However, the resulting skeleton states may be harder to work with than model parameters.

Parameters
[in]byteSpanThe buffer containing the glTF character data.
Returns
A tuple containing the loaded Character object, a vector of skeleton states for each frame, and a vector of timestamps.

Definition at line 352 of file gltf_io.cpp.

References loadCharacterWithSkeletonStatesCommon().

◆ loadCharacterWithSkeletonStatesCommon()

std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > momentum::loadCharacterWithSkeletonStatesCommon ( const std::variant< filesystem::path, std::span< const std::byte > > & input)

Load character with skeleton states from input (common implementation).

Parameters
[in]inputEither a filesystem path or a byte span containing glTF data.
Returns
A tuple containing the character, skeleton states, and timestamps.

Definition at line 369 of file gltf_animation_io.cpp.

References kInvalidIndex, loadGltfCharacterInternal(), MT_LOGW, and momentum::Character::skeleton.

Referenced by loadCharacterWithSkeletonStates(), and loadCharacterWithSkeletonStates().

◆ loadCollisionGeometryFromUsd()

◆ loadFbxBlendShapeWeights()

MatrixXf momentum::loadFbxBlendShapeWeights ( const filesystem::path & filename)

Load per-frame blend shape animation weights from an FBX file.

Reads the DeformPercent animation curves on FbxBlendShapeChannel objects in the FBX scene. Returns a matrix of shape (numShapes x numFrames) with values in [0, 1] range. Returns an empty matrix if no blend shape animation is found.

Parameters
filenamePath to the FBX file containing blend shape animation.
Returns
A matrix of blend shape weights (numShapes x numFrames), values in [0, 1].

Definition at line 466 of file fbx_io.cpp.

References MT_THROW.

◆ loadFbxCharacter() [1/2]

Character momentum::loadFbxCharacter ( const filesystem::path & inputPath,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 178 of file fbx_io.cpp.

References loadOpenFbxCharacter().

◆ loadFbxCharacter() [2/2]

Character momentum::loadFbxCharacter ( std::span< const std::byte > inputSpan,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 188 of file fbx_io.cpp.

References loadOpenFbxCharacter().

◆ loadFbxCharacterWithMotion() [1/2]

std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadFbxCharacterWithMotion ( const filesystem::path & inputPath,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 198 of file fbx_io.cpp.

References loadOpenFbxCharacterWithMotion().

◆ loadFbxCharacterWithMotion() [2/2]

std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadFbxCharacterWithMotion ( std::span< const std::byte > inputSpan,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 208 of file fbx_io.cpp.

References loadOpenFbxCharacterWithMotion().

◆ loadFbxMarkerSequence() [1/2]

MarkerSequence momentum::loadFbxMarkerSequence ( const filesystem::path & filename,
bool stripNamespaces = true )

Loads a MarkerSequence from an FBX file.

This function reads motion capture marker data from an FBX file and returns it as a MarkerSequence. The markers must be stored in the FBX scene hierarchy under a "Markers" root node, and each marker node must have the custom property "Momentum_Marker" to be recognized. The Markers root node must have the custom property "Momentum_Markers_Root" to be identified.

Parameters
[in]filenamePath to the FBX file containing marker data.
stripNamespacesRemoves namespace from joints when true. True by default
Returns
A MarkerSequence object containing the marker animation data, including marker positions per frame and fps. Returns an empty sequence if no markers or animations are found.

Definition at line 218 of file fbx_io.cpp.

References loadOpenFbxMarkerSequence().

Referenced by loadMarkers(), and loadMarkers().

◆ loadFbxMarkerSequence() [2/2]

MarkerSequence momentum::loadFbxMarkerSequence ( std::span< const std::byte > inputSpan,
bool stripNamespaces = true )

Loads a MarkerSequence from an in-memory FBX byte buffer.

Same semantics as the filename overload. Uses OpenFBX, which natively accepts a byte buffer, so this is true zero-copy.

Parameters
[in]inputSpanBuffer holding the FBX file contents.
stripNamespacesRemoves namespace from joints when true. True by default.
Returns
A MarkerSequence object containing the marker animation data.

Definition at line 222 of file fbx_io.cpp.

References loadOpenFbxMarkerSequence().

◆ loadFullCharacter()

Character momentum::loadFullCharacter ( const std::string & characterPath,
const std::string & parametersPath = std::string(),
const std::string & locatorsPath = std::string(),
LoadBlendShapes loadBlendShapes = LoadBlendShapes::No )
nodiscard

High level function to load a character of any type, with a local path.

Parameters
[in]characterPathThe path to the character file.
[in]parametersPathThe optional path to the file containing additional parameters for the character.
[in]locatorsPathThe optional path to the file containing additional locators for the character.
[in]loadBlendShapesWhether to load blendshapes from the file (default: No).
Returns
The loaded Character object.

Currently, only supports .glb and .fbx. If you want to parse from a non-local path, you may need to parse it using your favorite resource retriever into a buffer and use the buffer version of this function.

Definition at line 103 of file character_io.cpp.

References loadLocators(), loadMomentumModel(), loadParameters(), MT_THROW_IF, and Unknown.

Referenced by loadCharacterWithIdentity().

◆ loadFullCharacterFromBuffer()

Character momentum::loadFullCharacterFromBuffer ( CharacterFormat format,
std::span< const std::byte > characterBuffer,
std::span< const std::byte > paramBuffer = std::span< const std::byte >(),
std::span< const std::byte > locBuffer = std::span< const std::byte >(),
LoadBlendShapes loadBlendShapes = LoadBlendShapes::No )
nodiscard

Buffer version of loadFullCharacter function, supports .glb and .fbx file formats.

Parameters
[in]formatThe character file format.
[in]characterBufferThe buffer containing the character data.
[in]paramBufferThe optional buffer containing additional parameters for the character.
[in]locBufferThe optional buffer containing additional locators for the character.
[in]loadBlendShapesWhether to load blendshapes from the file (default: No).
Returns
The loaded Character object.

Definition at line 132 of file character_io.cpp.

References loadLocatorsFromBuffer(), loadMomentumModelFromBuffer(), loadParameters(), and MT_THROW_IF.

◆ loadGltfCharacter() [1/3]

Character momentum::loadGltfCharacter ( const filesystem::path & gltfFilename)

Load a glTF character from a file path.

This function assumes the file format is glTF without checking the extension.

Parameters
[in]gltfFilenameThe path to the glTF file.
Returns
The loaded Character object.

Definition at line 261 of file gltf_io.cpp.

◆ loadGltfCharacter() [2/3]

Character momentum::loadGltfCharacter ( const fx::gltf::Document & model)

Load a glTF character from a document.

Parameters
[in]modelThe glTF document to load from.
Returns
The loaded Character object.

Definition at line 256 of file gltf_io.cpp.

References loadGltfCharacterInternal().

Referenced by loadCharacterWithMotionCommon().

◆ loadGltfCharacter() [3/3]

Character momentum::loadGltfCharacter ( std::span< const std::byte > byteSpan)

Load a glTF character from a byte buffer.

Parameters
[in]byteSpanThe buffer containing the glTF character data.
Returns
The loaded Character object.

Definition at line 265 of file gltf_io.cpp.

◆ loadGltfCharacterInternal()

Character momentum::loadGltfCharacterInternal ( const fx::gltf::Document & model,
std::vector< size_t > & nodeToObjectMap )

Internal function to load a character from a glTF model with node-to-object mapping.

This function is used internally by other glTF I/O functions that need access to the node-to-object mapping for resolving references between glTF nodes and momentum objects.

Parameters
[in]modelThe glTF document to load from.
[out]nodeToObjectMapOutput mapping from glTF node indices to momentum object indices.
Returns
The loaded Character object.

Definition at line 240 of file gltf_io.cpp.

References MT_THROW.

Referenced by loadCharacterWithSkeletonStatesCommon(), and loadGltfCharacter().

◆ loadHierarchy()

std::tuple< std::string, JointList, CollisionGeometry_u, LocatorList, PhysicalProperties, std::vector< size_t > > momentum::loadHierarchy ( const fx::gltf::Document & model)

Load the hierarchy from the model.

This includes skeleton, collision geometry, locators and a mapping between the nodes and the objects.

Parameters
[in]modelThe glTF document.
Returns
A tuple containing the name, joints, collision geometry, locators, physical properties, and node-to-object map.

Definition at line 389 of file gltf_skeleton_io.cpp.

References gatherSkeletonRoots(), kInvalidIndex, MT_CHECK, and MT_THROW_IF.

◆ loadLocators()

LocatorList momentum::loadLocators ( const filesystem::path & filename,
const Skeleton & skeleton,
const ParameterTransform & parameterTransform )

Definition at line 59 of file locator_io.cpp.

References loadLocatorsFromBuffer(), and MT_THROW_IF.

Referenced by loadCharacterWithIdentity(), and loadFullCharacter().

◆ loadLocatorsFromBuffer()

◆ loadLocatorsFromUsd()

◆ loadMarkers() [1/2]

std::vector< MarkerSequence > momentum::loadMarkers ( const std::string & filename,
UpVector up = UpVector::Y,
std::span< const std::string > validMarkerNames = {} )
nodiscard

Loads all actor sequences from a marker file (c3d, trc, glb) and converts the positions to the target coordinate system.

Default target coordinate system is: (Y-up, right-handed, centimeter units).

Parameters
[in]filenameThe marker file to load data from.
[in]up(Optional) The up-vector convention of the input marker file (default: UpVector::Y).
Returns
std::vector<MarkerSequence> A vector of MarkerSequences containing the marker data from the file.

Definition at line 32 of file marker_io.cpp.

References loadC3d(), loadFbxMarkerSequence(), loadMarkerSequence(), loadTrc(), and MT_LOGE.

Referenced by loadMarkersForMainSubject(), loadMarkersForMainSubject(), and processMarkerFile().

◆ loadMarkers() [2/2]

std::vector< MarkerSequence > momentum::loadMarkers ( std::span< const std::byte > bytes,
const std::string & format,
UpVector up = UpVector::Y,
std::span< const std::string > validMarkerNames = {} )
nodiscard

Loads all actor sequences from an in-memory marker file buffer (c3d, trc, glb, fbx).

Same semantics as the filename overload, but takes a byte buffer plus an explicit format hint (since bytes don't carry an extension). All four formats use a true-bytes path with no temporary file: c3d via the patched ezc3d istream constructor, trc via std::istringstream, glb via fx::gltf's byte-span loader, and fbx via OpenFBX's native buffer API.

Parameters
[in]bytesMarker file contents.
[in]formatFile extension including the leading dot (".c3d", ".trc", ".glb", ".fbx").
[in]up(Optional) Up-vector convention of the input data.
[in]validMarkerNames(Optional) Marker-name allowlist (c3d only).
Returns
Vector of MarkerSequences. Empty on unknown format or read error.

Definition at line 69 of file marker_io.cpp.

References loadC3d(), loadFbxMarkerSequence(), loadMarkerSequence(), loadTrc(), and MT_LOGE.

◆ loadMarkerSequence() [1/2]

MarkerSequence momentum::loadMarkerSequence ( const filesystem::path & filename)

Load a marker sequence from a glTF file.

This function loads motion capture marker data from a glTF file.

Parameters
[in]filenamePath to the glTF file containing the marker sequence data.
Returns
A MarkerSequence object containing the loaded motion capture marker data.

Definition at line 485 of file gltf_io.cpp.

Referenced by loadMarkers(), and loadMarkers().

◆ loadMarkerSequence() [2/2]

MarkerSequence momentum::loadMarkerSequence ( std::span< const std::byte > byteSpan)

Load a marker sequence from an in-memory glTF byte buffer.

Same semantics as the filename overload but reads the glTF document from a buffer instead of a file path. Useful when the glTF data is already in memory (e.g., fetched from blob storage) and you want to avoid spilling it to disk.

Parameters
[in]byteSpanBuffer holding the glTF (.glb) file contents.
Returns
A MarkerSequence object containing the loaded motion capture marker data.

Definition at line 489 of file gltf_io.cpp.

◆ loadMarkerSequenceFromUsd()

MarkerSequence momentum::loadMarkerSequenceFromUsd ( const UsdStageRefPtr & stage)

Load marker sequence from animated Xform prims.

Reads Xform prims under a Markers scope and reconstructs marker data for each frame from time-sampled translations and occlusion attributes.

Parameters
[in]stageThe USD stage to read from.
Returns
The loaded MarkerSequence containing per-frame marker data and fps.

Definition at line 450 of file usd_animation_io.cpp.

References momentum::Marker::confidence, momentum::MarkerSequence::fps, momentum::MarkerSequence::frames, momentum::Marker::name, momentum::Marker::occluded, and momentum::Marker::pos.

Referenced by loadUsdMarkerSequence().

◆ loadMarkersForMainSubject() [1/2]

std::optional< MarkerSequence > momentum::loadMarkersForMainSubject ( const std::string & filename,
UpVector up = UpVector::Y,
std::span< const std::string > validMarkerNames = {} )
nodiscard

Loads the main subject's marker data from a marker file (c3d, trc, glb) and converts the positions to the target coordinate system.

Default target coordinate system is: (Y-up, right-handed, centimeter units). The main subject is determined as the one with the most number of visible markers in the first frame.

Parameters
[in]filenameThe marker file to load data from.
[in]up(Optional) The up-vector convention of the input marker file (default: UpVector::Y).
Returns
std::optional<MarkerSequence> A MarkerSequence containing the main subject's marker data, or an empty optional if no main subject is found.

Definition at line 56 of file marker_io.cpp.

References findMainSubjectIndex(), and loadMarkers().

◆ loadMarkersForMainSubject() [2/2]

std::optional< MarkerSequence > momentum::loadMarkersForMainSubject ( std::span< const std::byte > bytes,
const std::string & format,
UpVector up = UpVector::Y,
std::span< const std::string > validMarkerNames = {} )
nodiscard

Loads the main subject's marker data from an in-memory marker file buffer.

Convenience wrapper around the buffer-based loadMarkers + findMainSubjectIndex.

Parameters
[in]bytesMarker file contents.
[in]formatFile extension including the leading dot (".c3d", ".trc", ".glb", ".fbx").
[in]up(Optional) Up-vector convention of the input data.
[in]validMarkerNames(Optional) Marker-name allowlist (c3d only).
Returns
The main subject's sequence, or empty optional if no main subject is found.

Definition at line 99 of file marker_io.cpp.

References findMainSubjectIndex(), and loadMarkers().

◆ loadMeshFromUsd()

Mesh momentum::loadMeshFromUsd ( const UsdStageRefPtr & stage)

Load a mesh from a USD stage.

Reads vertices, faces, and vertex colors from the first UsdGeomMesh prim found on the stage.

Parameters
[in]stageThe USD stage to read from.
Returns
The loaded Mesh.

Definition at line 180 of file usd_mesh_io.cpp.

References momentum::MeshT< T >::colors, momentum::MeshT< T >::confidence, momentum::MeshT< T >::faces, MT_LOGW, momentum::MeshT< T >::normals, and momentum::MeshT< T >::vertices.

◆ loadMmo() [1/2]

std::tuple< MatrixXf, VectorXf, std::vector< std::string >, std::vector< std::string > > momentum::loadMmo ( const std::string & filename)

Load motion data from file.

Parameters
filenameInput file path
Returns
Tuple of (poses, scale, parameter names, joint names)

Definition at line 254 of file mmo_io.cpp.

References kParametersPerJoint, and MT_LOGW.

◆ loadMmo() [2/2]

std::tuple< MatrixXf, VectorXf > momentum::loadMmo ( const std::string & filename,
const Character & character )

Load motion data and map to character parameter space.

Parameters
filenameInput file path
characterTarget character for parameter mapping
Returns
Tuple of (mapped poses, mapped scale)

Definition at line 223 of file mmo_io.cpp.

References loadMmo(), and mapMotionToCharacter().

Referenced by loadMmo().

◆ loadModelDefinition() [1/2]

std::tuple< ParameterTransform, ParameterLimits > momentum::loadModelDefinition ( const filesystem::path & filename,
const Skeleton & skeleton )

Definition at line 531 of file parameter_transform_io.cpp.

References MT_THROW_IF.

◆ loadModelDefinition() [2/2]

std::tuple< ParameterTransform, ParameterLimits > momentum::loadModelDefinition ( std::span< const std::byte > rawData,
const Skeleton & skeleton )

Definition at line 543 of file parameter_transform_io.cpp.

References MT_THROW_IF.

◆ loadMomentumModel()

std::unordered_map< std::string, std::string > momentum::loadMomentumModel ( const filesystem::path & filename)

Definition at line 255 of file parameter_transform_io.cpp.

References MT_THROW_IF.

Referenced by loadFullCharacter().

◆ loadMomentumModelFromBuffer()

std::unordered_map< std::string, std::string > momentum::loadMomentumModelFromBuffer ( std::span< const std::byte > buffer)

Definition at line 271 of file parameter_transform_io.cpp.

Referenced by loadFullCharacterFromBuffer().

◆ loadMotion()

std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotion ( const filesystem::path & gltfFilename)

Load motion data from a glTF file.

Parameters
[in]gltfFilenameThe path to the glTF file.
Returns
A tuple containing the motion parameters, identity parameters, and fps.

Definition at line 269 of file gltf_io.cpp.

References loadMotionFromModel(), and MT_THROW.

◆ loadMotionFromModel()

std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotionFromModel ( fx::gltf::Document & model)

Load motion data from a glTF model.

Parameters
[in,out]modelThe glTF document containing motion data.
Returns
A tuple containing the motion parameters, identity parameters, and fps.

Definition at line 167 of file gltf_animation_io.cpp.

References calculateFpsFromAnimationData(), getMotionFromModel(), MT_LOGD, MT_LOGW, and MT_THROW.

Referenced by loadCharacterWithMotionCommon(), and loadMotion().

◆ loadMotionFromUsd()

std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotionFromUsd ( const UsdPrim & prim)

Load model-parameter motion from custom attributes on a USD prim.

Definition at line 268 of file usd_animation_io.cpp.

References MT_LOGW.

◆ loadMotionOnCharacter() [1/2]

std::tuple< MatrixXf, JointParameters, float > momentum::loadMotionOnCharacter ( const filesystem::path & gltfFilename,
const Character & character )

Load motion from a glTF file and map it to a character.

This function loads motion data from a glTF file and maps it onto the input character by matching joint names and parameter names. This is useful when the motion was saved with a different character but you want to apply it to your character. This function assumes the file format is glTF without checking the extension.

Parameters
[in]gltfFilenameThe path to the glTF motion file.
[in]characterThe Character object to map the motion onto.
Returns
A tuple containing the motion represented in model parameters, the identity vector represented as joint parameters, and the fps. The model parameters and joint parameters are mapped to the input character by name matching.

Definition at line 361 of file gltf_io.cpp.

References loadMotionOnCharacterCommon().

◆ loadMotionOnCharacter() [2/2]

std::tuple< MatrixXf, JointParameters, float > momentum::loadMotionOnCharacter ( std::span< const std::byte > byteSpan,
const Character & character )

Load motion from a buffer and map it to a character.

This function loads motion data from a buffer and maps it onto the input character by matching joint names and parameter names. This is useful when the motion was saved with a different character but you want to apply it to your character.

Parameters
[in]byteSpanThe buffer containing the glTF motion data.
[in]characterThe Character object to map the motion onto.
Returns
A tuple containing the motion represented in model parameters, the identity vector represented as joint parameters, and the fps. The model parameters and joint parameters are mapped to the input character by name matching.

Definition at line 367 of file gltf_io.cpp.

References loadMotionOnCharacterCommon().

◆ loadMotionOnCharacterCommon()

std::tuple< MatrixXf, JointParameters, float > momentum::loadMotionOnCharacterCommon ( const std::variant< filesystem::path, std::span< const std::byte > > & input,
const Character & character )

Load motion onto a character (common implementation).

Parameters
[in]inputEither a filesystem path or a byte span containing glTF data.
[in]characterThe character to map motion onto.
Returns
A tuple containing the motion matrix, joint parameters, and fps.

Definition at line 221 of file gltf_animation_io.cpp.

References loadCharacterWithMotionCommon(), mapIdentityToCharacter(), and mapMotionToCharacter().

Referenced by loadMotionOnCharacter(), and loadMotionOnCharacter().

◆ loadMotionTimestamps()

std::vector< int64_t > momentum::loadMotionTimestamps ( const filesystem::path & gltfFilename)

Load per-frame timestamps from a glTF file.

This function loads timestamps that were saved using GltfBuilder::addMotion.

Parameters
[in]gltfFilenameThe path to the glTF file.
Returns
A vector of per-frame timestamps (usually in microseconds).

Definition at line 282 of file gltf_io.cpp.

References MT_LOGW, and MT_THROW.

◆ loadMppca() [1/3]

std::shared_ptr< const Mppca > momentum::loadMppca ( const std::span< const unsigned char > posePriorDataRaw)

Definition at line 19 of file mppca_io.cpp.

References loadMppca().

Referenced by loadMppca(), and loadMppca().

◆ loadMppca() [2/3]

std::shared_ptr< const Mppca > momentum::loadMppca ( const std::string & name)

Definition at line 30 of file mppca_io.cpp.

References loadMppca(), and MT_THROW_IF.

◆ loadMppca() [3/3]

std::shared_ptr< const Mppca > momentum::loadMppca ( std::istream & inputStream)

Definition at line 37 of file mppca_io.cpp.

References MT_THROW, and MT_THROW_IF.

◆ loadObj() [1/2]

Mesh momentum::loadObj ( const filesystem::path & filepath)
nodiscard

Loads a mesh from a Wavefront OBJ file.

Reads positions (v), texture coordinates (vt) and faces (f), accepting all four OBJ face-corner forms (v, v/vt, v//vn, v/vt/vn) and both positive and negative (relative) indices. Polygons are fan-triangulated into Mesh::faces, and the original topology is preserved in Mesh::polyFaces and Mesh::polyFaceSizes.

Texture coordinates are indexed per face corner, which is OBJ's own layout, so they map directly onto Mesh::texcoords and Mesh::texcoord_faces. They are kept only if every face carries a complete set of vt indices; a file that texture-maps some faces and not others is loaded untextured, because Mesh::texcoord_faces has to align one-to-one with Mesh::faces.

Vertex normals are recomputed from the geometry rather than read from vn: Mesh stores one normal per vertex, while OBJ indexes them per face corner, so honouring vn in general would mean splitting vertices. This matches how the FBX and glTF loaders treat normals.

Vertex colours are read from the six-float v x y z r g b form some exporters emit, and default to white otherwise.

Material, group, object and smoothing directives (mtllib, usemtl, g, o, s) are ignored, so the whole file loads as one mesh.

Parameters
[in]filepathPath to the OBJ file.
Returns
The loaded mesh.
Exceptions
std::runtime_errorif the file cannot be opened, an index is out of range, or the file contains no geometry.

Definition at line 220 of file obj_io.cpp.

References MT_THROW_IF.

◆ loadObj() [2/2]

Mesh momentum::loadObj ( std::span< const std::byte > bytes)
nodiscard

Loads a mesh from an in-memory OBJ file.

Parameters
[in]bytesBuffer holding the OBJ file contents.
Returns
The loaded mesh.
Exceptions
std::runtime_errorunder the same conditions as the path overload.

Definition at line 226 of file obj_io.cpp.

◆ loadObjMesh()

std::optional< Mesh > momentum::loadObjMesh ( const filesystem::path & filepath)

Loads a mesh from a Wavefront OBJ file (vertices and triangular/polygon faces).

Only v (vertex) and f (face) records are parsed. Face vertex indices may use v, v/vt, v/vt/vn, or v//vn notation; only vertex indices are used.

Parameters
filepathPath to the OBJ file.
Returns
The loaded mesh, or std::nullopt if the file cannot be read.

Definition at line 348 of file urdf_mesh_io.cpp.

References momentum::MeshT< T >::faces, MT_LOGW, momentum::MeshT< T >::updateNormals(), and momentum::MeshT< T >::vertices.

◆ loadOpenFbxCharacter() [1/2]

Character momentum::loadOpenFbxCharacter ( const filesystem::path & path,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 1535 of file openfbx_loader.cpp.

References loadOpenFbxCharacter().

◆ loadOpenFbxCharacter() [2/2]

Character momentum::loadOpenFbxCharacter ( const std::span< const std::byte > inputData,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 1524 of file openfbx_loader.cpp.

Referenced by loadFbxCharacter(), loadFbxCharacter(), and loadOpenFbxCharacter().

◆ loadOpenFbxCharacterWithMotion() [1/2]

std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadOpenFbxCharacterWithMotion ( const filesystem::path & inputPath,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

Definition at line 1559 of file openfbx_loader.cpp.

References loadOpenFbxCharacterWithMotion().

◆ loadOpenFbxCharacterWithMotion() [2/2]

std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadOpenFbxCharacterWithMotion ( std::span< const std::byte > inputData,
KeepLocators keepLocators,
Permissive permissive,
LoadBlendShapes loadBlendShapes,
bool stripNamespaces )

◆ loadOpenFbxMarkerSequence() [1/2]

MarkerSequence momentum::loadOpenFbxMarkerSequence ( const filesystem::path & filename,
bool stripNamespaces )

Definition at line 1607 of file openfbx_loader.cpp.

References loadOpenFbxMarkerSequence().

◆ loadOpenFbxMarkerSequence() [2/2]

MarkerSequence momentum::loadOpenFbxMarkerSequence ( std::span< const std::byte > inputData,
bool stripNamespaces = true )

Load a MarkerSequence from an in-memory FBX byte buffer.

Same semantics as the filename overload but parses the FBX scene from a buffer instead of reading from disk. OpenFBX accepts a raw byte pointer + length, so this is true zero-copy.

Parameters
[in]inputDataBuffer holding the FBX file contents.
[in]stripNamespacesRemoves namespace from joints when true. True by default.
Returns
A MarkerSequence object containing the marker animation data, or an empty sequence if no markers or animations are found.

Definition at line 1574 of file openfbx_loader.cpp.

References cast_span(), and MT_THROW_IF.

Referenced by loadFbxMarkerSequence(), loadFbxMarkerSequence(), and loadOpenFbxMarkerSequence().

◆ loadParameters()

◆ loadPoseShape()

PoseShape momentum::loadPoseShape ( const std::string & filename,
const Character & character )

Loads pose shape data from a binary file.

Parameters
filenamePath to the pose shape data file
characterCharacter containing skeleton and mesh for validation and joint mapping
Returns
PoseShape with loaded data, or empty PoseShape if file cannot be opened

Definition at line 20 of file pose_shape_io.cpp.

References momentum::PoseShape::baseJoint, momentum::PoseShape::baseRot, momentum::PoseShape::baseShape, momentum::SkeletonT< T >::getJointIdByName(), momentum::PoseShape::jointMap, momentum::SkeletonT< T >::joints, kInvalidIndex, momentum::Character::mesh, MT_CHECK, MT_LOGW, momentum::PoseShape::shapeVectors, and momentum::Character::skeleton.

◆ loadSkeletonFromUsd()

Skeleton momentum::loadSkeletonFromUsd ( const UsdStageRefPtr & stage)

◆ loadSkeletonStatesFromUsd()

std::tuple< std::vector< SkeletonState >, std::vector< float > > momentum::loadSkeletonStatesFromUsd ( const UsdStageRefPtr & stage,
const Skeleton & skeleton )

Load skeleton states from a USD stage.

Reads UsdSkelAnimation time-sampled data and reconstructs SkeletonState objects for each frame.

Parameters
[in]stageThe USD stage to read from.
[in]skeletonThe skeleton definition.
Returns
A tuple of (skeleton states, frame times in seconds).

Definition at line 128 of file usd_animation_io.cpp.

References momentum::SkeletonT< T >::joints, kParametersPerJoint, quaternionToEuler(), and momentum::EigenStrongType< Derived, EigenType >::Zero().

Referenced by loadUsdCharacterWithSkeletonStates(), and loadUsdCharacterWithSkeletonStates().

◆ loadSkinnedMesh()

std::tuple< Mesh_u, SkinWeights_u, BlendShape_u > momentum::loadSkinnedMesh ( const fx::gltf::Document & model,
const std::vector< size_t > & meshNodes,
const std::vector< size_t > & nodeToObjectMap )

Load skinned mesh, skin weights, and blend shapes from the model.

Parameters
[in]modelThe glTF document.
[in]meshNodesThe node indices containing meshes.
[in]nodeToObjectMapMapping from node indices to joint indices.
Returns
A tuple containing the mesh, skin weights, and blend shapes.

Definition at line 474 of file gltf_mesh_io.cpp.

References addBlendShapes(), addMesh(), addSkinWeights(), MT_CHECK, and MT_LOGW_IF.

◆ loadSkinWeightsFromUsd()

SkinWeights momentum::loadSkinWeightsFromUsd ( const UsdStageRefPtr & stage,
size_t numVertices )

Load skin weights from a USD stage.

Reads joint indices and weights from the first skinned UsdGeomMesh prim found on the stage.

Parameters
[in]stageThe USD stage to read from.
[in]numVerticesThe expected number of vertices.
Returns
The loaded SkinWeights.

Definition at line 217 of file usd_mesh_io.cpp.

References momentum::SkinWeights::index, kMaxSkinJoints, and momentum::SkinWeights::weight.

◆ loadStlMesh()

std::optional< Mesh > momentum::loadStlMesh ( const filesystem::path & filepath)

Loads a mesh from an STL file (binary or ASCII).

Binary STL vertices are deduplicated to produce an indexed mesh.

Parameters
filepathPath to the STL file.
Returns
The loaded mesh, or std::nullopt if the file cannot be read.

Definition at line 336 of file urdf_mesh_io.cpp.

References MT_LOGW.

◆ loadTrc() [1/3]

MarkerSequence momentum::loadTrc ( const std::string & filename,
UpVector up = UpVector::Y )
nodiscard

Loads marker data from a TRC file into a MarkerSequence.

The function reads the given TRC file and stores the marker data as a MarkerSequence. The unit of the input file will be read from the file and converted to the momentum unit (i.e., cm). The UpVector parameter 'up' is the up-vector convention of the input marker file.

Parameters
[in]filenameThe TRC file to load marker data from.
[in]up(Optional) The up-vector convention of the input marker file (default: UpVector::Y).
Returns
MarkerSequence A MarkerSequence containing the marker data from the TRC file.

Definition at line 97 of file trc_io.cpp.

References loadTrc().

◆ loadTrc() [2/3]

MarkerSequence momentum::loadTrc ( std::istream & stream,
UpVector up = UpVector::Y )
nodiscard

Loads marker data from a TRC input stream into a MarkerSequence.

Same as the filename overload but reads from any std::istream (e.g., a file, a memory-backed stream, etc.). The caller owns the stream and is responsible for opening it in text mode.

Parameters
[in,out]streamOpen input stream positioned at the start of the TRC content.
[in]up(Optional) The up-vector convention of the input marker file.
Returns
MarkerSequence A MarkerSequence containing the marker data from the stream.

Definition at line 19 of file trc_io.cpp.

References momentum::MarkerSequence::fps, momentum::MarkerSequence::frames, GetLineCrossPlatform(), MT_THROW_IF, tokenize(), and toMomentumVector3().

Referenced by loadMarkers(), loadMarkers(), loadTrc(), and loadTrc().

◆ loadTrc() [3/3]

MarkerSequence momentum::loadTrc ( std::span< const std::byte > bytes,
UpVector up = UpVector::Y )
nodiscard

Loads marker data from an in-memory TRC byte buffer into a MarkerSequence.

Wraps the buffer in an ispanstream and forwards to the istream overload, so no copy is made.

Parameters
[in]bytesBuffer holding the TRC file contents.
[in]up(Optional) The up-vector convention of the input marker file.
Returns
MarkerSequence A MarkerSequence containing the marker data from the buffer.

Definition at line 105 of file trc_io.cpp.

References loadTrc().

◆ loadUrdfCharacter() [1/3]

Character momentum::loadUrdfCharacter ( const filesystem::path & filepath)

Loads a character from a URDF file.

Parses the skeleton (joints, hierarchy, limits), parameter transform, visual meshes, and supported collision proxies. Currently only <cylinder> collision geometry is imported (as Momentum tapered capsules); other shapes (<box>, <sphere>, <mesh>) are skipped with a warning. Mesh files referenced by <visual> elements (STL, OBJ) are resolved relative to the URDF file's directory.

Parameters
filepathPath to the URDF file.
Returns
The loaded character with skeleton, parameter transform, limits, and optionally mesh with skin weights.

Definition at line 948 of file urdf_io.cpp.

References MT_THROW.

◆ loadUrdfCharacter() [2/3]

Character momentum::loadUrdfCharacter ( std::span< const std::byte > bytes)
nodiscard

Loads a character from a URDF file using the provided byte data.

Mesh loading is not supported when loading from bytes because there is no file path to resolve relative mesh references. Use the overload with meshBasePath to enable mesh loading.

Definition at line 969 of file urdf_io.cpp.

References MT_THROW.

◆ loadUrdfCharacter() [3/3]

Character momentum::loadUrdfCharacter ( std::span< const std::byte > bytes,
const filesystem::path & meshBasePath )
nodiscard

Loads a character from a URDF file using the provided byte data, with a base path for resolving mesh file references.

Parameters
bytesThe raw URDF file contents.
meshBasePathThe directory to use for resolving relative mesh file paths.

Definition at line 992 of file urdf_io.cpp.

References MT_THROW.

◆ loadUsdCharacter() [1/2]

Character momentum::loadUsdCharacter ( const filesystem::path & inputPath)

Load a USD character from a local file path.

Parameters
[in]inputPathThe path to the USD character file.
Returns
The loaded Character object.

Definition at line 595 of file usd_io.cpp.

References MT_THROW_IF.

◆ loadUsdCharacter() [2/2]

Character momentum::loadUsdCharacter ( std::span< const std::byte > inputSpan)

Load a USD character from a buffer.

Parameters
[in]inputSpanThe buffer containing the USD character data.
Returns
The loaded Character object.

Definition at line 605 of file usd_io.cpp.

◆ loadUsdCharacterWithMotion() [1/2]

std::tuple< Character, MotionParameters, IdentityParameters, float > momentum::loadUsdCharacterWithMotion ( const filesystem::path & inputPath)

Load a USD character with model-parameter motion from a local file path.

Parameters
[in]inputPathThe path to the USD character file.
Returns
A tuple of (Character, motion parameters, identity parameters, fps).

Definition at line 711 of file usd_io.cpp.

References MT_THROW_IF.

Referenced by loadUsdCharacterWithMotionModelParameterScales(), and loadUsdCharacterWithMotionModelParameterScales().

◆ loadUsdCharacterWithMotion() [2/2]

std::tuple< Character, MotionParameters, IdentityParameters, float > momentum::loadUsdCharacterWithMotion ( std::span< const std::byte > inputSpan)

Load a USD character with model-parameter motion from a buffer.

Parameters
[in]inputSpanThe buffer containing the USD character data.
Returns
A tuple of (Character, motion parameters, identity parameters, fps).

Definition at line 722 of file usd_io.cpp.

◆ loadUsdCharacterWithMotionModelParameterScales() [1/2]

std::tuple< Character, MatrixXf, ModelParameters, float > momentum::loadUsdCharacterWithMotionModelParameterScales ( const filesystem::path & inputPath)

Load a USD character with motion and apply scale parameters to the motion.

This function loads both the character and motion data from a USD file, applying the character's scale parameters directly to the motion as model parameters. This approach is preferred over the deprecated method of storing scales in an offset vector in the parameter transform. The scale parameters from the identity vector are integrated into the motion data for each frame.

Parameters
[in]inputPathThe path to the USD character file.
Returns
A tuple containing the loaded Character object, the motion represented in model parameters with scales applied, the identity parameters as model parameters, and the fps.

Definition at line 754 of file usd_io.cpp.

References loadUsdCharacterWithMotion().

◆ loadUsdCharacterWithMotionModelParameterScales() [2/2]

std::tuple< Character, MatrixXf, ModelParameters, float > momentum::loadUsdCharacterWithMotionModelParameterScales ( std::span< const std::byte > inputSpan)

Load a USD character with motion and apply scale parameters to the motion.

Parameters
[in]inputSpanThe buffer containing the USD character data.
Returns
A tuple containing the loaded Character object, the motion represented in model parameters with scales applied, the identity parameters as model parameters, and the fps.

Definition at line 759 of file usd_io.cpp.

References loadUsdCharacterWithMotion().

◆ loadUsdCharacterWithSkeletonStates() [1/2]

std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > momentum::loadUsdCharacterWithSkeletonStates ( const filesystem::path & inputPath)

Load a USD character with skeleton states from a local file path.

Parameters
[in]inputPathThe path to the USD character file.
Returns
A tuple of (Character, skeleton states, frame times in seconds).

Definition at line 625 of file usd_io.cpp.

References loadSkeletonStatesFromUsd(), and MT_THROW_IF.

◆ loadUsdCharacterWithSkeletonStates() [2/2]

std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > momentum::loadUsdCharacterWithSkeletonStates ( std::span< const std::byte > inputSpan)

Load a USD character with skeleton states from a buffer.

Parameters
[in]inputSpanThe buffer containing the USD character data.
Returns
A tuple of (Character, skeleton states, frame times in seconds).

Definition at line 639 of file usd_io.cpp.

References loadSkeletonStatesFromUsd().

◆ loadUsdMarkerSequence()

MarkerSequence momentum::loadUsdMarkerSequence ( const filesystem::path & inputPath)

Load a marker sequence from a USD file.

Parameters
[in]inputPathThe path to the USD file.
Returns
The loaded MarkerSequence.

Definition at line 763 of file usd_io.cpp.

References loadMarkerSequenceFromUsd(), and MT_THROW_IF.

◆ loadWeightsFromAccessor()

std::vector< Vector4f > momentum::loadWeightsFromAccessor ( const fx::gltf::Document & model,
int32_t accessorIdx )

Load skin weights from a glTF accessor.

Parameters
[in]modelThe glTF document.
[in]accessorIdxThe accessor index containing weight data.
Returns
A vector of weight data (4 weights per vertex).

Definition at line 362 of file gltf_mesh_io.cpp.

References copyAccessorBuffer(), and copyAlignedAccessorBuffer().

Referenced by addSkinWeights().

◆ locatorsToSkinnedLocators()

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.

Does not add parameters for the skinned locators, however, that should be a separate step if you are planning to solve for their locations.

Parameters
sourceCharacterCharacter with locators to convert
maxDistanceMaximum distance to search for the closest point on the mesh surface. If the locator is further than this distance, it will not be converted.
minSkinWeightMinimum skin weight threshold for considering a mesh triangle as belonging to the same bone as the locator.
verboseIf true, print diagnostic messages about locators that could not be converted.
markerDiameterMarker diameter in centimeters. When positive, the skinned locator position is offset toward the mesh surface by half this value to account for the physical marker sitting on top of the skin.

Definition at line 243 of file tracker_utils.cpp.

References averageTriangleSkinWeights(), momentum::Character::blendShape, closestPointOnMeshMatchingParent(), momentum::Character::collision, momentum::Character::faceExpressionBlendShape, momentum::Character::inverseBindPose, momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, momentum::Character::locators, momentum::Character::mesh, MT_LOGI_IF, MT_LOGT, momentum::Character::name, momentum::SkinnedLocator::name, momentum::ParameterTransformT< T >::numJointParameters(), momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::SkinnedLocator::parents, momentum::Character::poseShapes, momentum::SkinnedLocator::position, momentum::Character::skeleton, momentum::SkinnedLocator::skinOffset, momentum::Character::skinWeights, momentum::SkinnedLocator::skinWeights, momentum::SkinnedLocator::weight, and momentum::EigenStrongType< Derived, EigenType >::Zero().

◆ logAxes3D()

void momentum::logAxes3D ( const rerun::RecordingStream & rec,
const std::string & path,
float axisLength )
inline

Definition at line 91 of file rerun_compat.h.

◆ logBvh()

void momentum::logBvh ( const rerun::RecordingStream & rec,
const std::string & streamName,
const CollisionGeometry & collisionGeometry,
const SkeletonState & skeletonState )

◆ logCharacter()

void momentum::logCharacter ( const rerun::RecordingStream & rec,
const std::string & charStreamName,
const Character & character,
const CharacterState & characterState,
const rerun::Color & color )

◆ logCollisionGeometry()

void momentum::logCollisionGeometry ( const rerun::RecordingStream & rec,
const std::string & streamName,
const CollisionGeometry & collisionGeometry,
const SkeletonState & skeletonState )

◆ logJointParamNames()

void momentum::logJointParamNames ( const rerun::RecordingStream & rec,
const std::string & worldPrefix,
const std::string & posePrefix,
std::span< const std::string > names )

Definition at line 337 of file logger.cpp.

References kJointParameterNames, makeSeriesLineWithName(), and safeLogStatic().

◆ logJointParams()

void momentum::logJointParams ( const rerun::RecordingStream & rec,
const std::string & worldPrefix,
const std::string & posePrefix,
std::span< const std::string > names,
const Eigen::VectorXf & params )

Definition at line 301 of file logger.cpp.

References kJointParameterNames, kParametersPerJoint, makeScalar(), and safeLog().

◆ logJointParamsColumns()

void momentum::logJointParamsColumns ( const rerun::RecordingStream & rec,
const std::string & worldPrefix,
const std::string & posePrefix,
std::span< const std::string > names,
const Eigen::MatrixXf & allJointParams,
std::span< const int64_t > frameIndices,
std::span< const double > times )

Log joint parameters for all frames at once using send_columns.

This is significantly faster than calling logJointParams per frame because it batches all time points into a single send_columns call per parameter channel.

Parameters
recThe recording stream.
worldPrefixThe stream prefix for world/root joint parameters.
posePrefixThe stream prefix for pose joint parameters.
namesThe joint names.
allJointParamsMatrix where each column is a frame's joint parameter vector (nJoints * kParametersPerJoint x nFrames).
frameIndicesThe frame index for each column.
timesThe time in seconds for each column.

Definition at line 404 of file logger.cpp.

References kJointParameterNames, kParametersPerJoint, makeDurationSecondsTimeColumn(), makeScalarColumns(), and makeSequenceTimeColumn().

◆ logJoints()

void momentum::logJoints ( const rerun::RecordingStream & rec,
const std::string & streamName,
const Skeleton & skeleton,
const JointStateList & jointStates )

◆ logKeypointReprojectionDiagnostic()

void momentum::logKeypointReprojectionDiagnostic ( const Character & character,
const ParameterTransform & transform,
const Eigen::MatrixXf & motion,
std::span< const CameraKeypointData > cameraKeypointData,
const CalibrationConfig & config,
const std::string & label )

◆ logLevelMap()

std::map< std::string, LogLevel > momentum::logLevelMap ( )
nodiscard

Returns the canonical mapping from human-readable level names ("Disabled", "Error", "Warning", "Info", "Debug", "Trace") to LogLevel values.

Useful for building CLI argument parsers or config validators.

Definition at line 104 of file log.cpp.

References Debug, Disabled, Error, Info, Trace, and Warning.

◆ logLocators()

void momentum::logLocators ( const rerun::RecordingStream & rec,
const std::string & streamName,
const LocatorList & locators,
const LocatorState & locatorState )

Definition at line 191 of file logger.cpp.

References momentum::LocatorState::position, and safeLog().

Referenced by logCharacter().

◆ logMarkerLocatorCorrespondence()

void momentum::logMarkerLocatorCorrespondence ( const rerun::RecordingStream & rec,
const std::string & streamName,
const std::map< std::string, size_t > & locatorLookup,
const LocatorState & locatorState,
std::span< const Marker > markers,
const float kPositionErrorThreshold )

Definition at line 232 of file logger.cpp.

References momentum::LocatorState::position, and safeLog().

◆ logMarkers()

void momentum::logMarkers ( const rerun::RecordingStream & rec,
const std::string & streamName,
std::span< const Marker > markers )

Definition at line 166 of file logger.cpp.

References safeLog().

◆ logMesh()

void momentum::logMesh ( const rerun::RecordingStream & rec,
const std::string & streamName,
const Mesh & mesh,
std::optional< rerun::Color > color = std::nullopt )
Parameters
[in](Optional)The color to use for the mesh. If not provided, the colors stored in the mesh are used.

Definition at line 106 of file logger.cpp.

References momentum::MeshT< T >::colors, momentum::MeshT< T >::faces, momentum::MeshT< T >::normals, safeLog(), and momentum::MeshT< T >::vertices.

Referenced by logCharacter().

◆ logModelParamNames()

void momentum::logModelParamNames ( const rerun::RecordingStream & rec,
const std::string & worldPrefix,
const std::string & posePrefix,
std::span< const std::string > names )

Definition at line 323 of file logger.cpp.

References makeSeriesLineWithName(), and safeLogStatic().

◆ logModelParams()

void momentum::logModelParams ( const rerun::RecordingStream & rec,
const std::string & worldPrefix,
const std::string & posePrefix,
std::span< const std::string > names,
const Eigen::VectorXf & params )

Definition at line 283 of file logger.cpp.

References makeScalar(), and safeLog().

◆ logModelParamsColumns()

void momentum::logModelParamsColumns ( const rerun::RecordingStream & rec,
const std::string & worldPrefix,
const std::string & posePrefix,
std::span< const std::string > names,
const Eigen::MatrixXf & allParams,
std::span< const int64_t > frameIndices,
std::span< const double > times )

Log model parameters for all frames at once using send_columns.

This is significantly faster than calling logModelParams per frame because it batches all time points into a single send_columns call per parameter.

Parameters
recThe recording stream.
worldPrefixThe stream prefix for world (root) parameters.
posePrefixThe stream prefix for pose parameters.
namesThe parameter names.
allParamsMatrix where each column is a frame's parameter vector (nParams x nFrames).
frameIndicesThe frame index for each column.
timesThe time in seconds for each column.

Definition at line 360 of file logger.cpp.

References allParams(), makeDurationSecondsTimeColumn(), makeScalarColumns(), and makeSequenceTimeColumn().

◆ makeAlignedShared()

template<typename T, std::size_t Alignment = alignof(T), class Deleter = AlignedDeleter>
std::shared_ptr< T > momentum::makeAlignedShared ( std::size_t n,
Deleter deleter = Deleter() )
nodiscard

Creates a std::shared_ptr for aligned memory.

Definition at line 151 of file aligned.h.

References alignedAlloc().

◆ makeAlignedUnique()

template<typename T, std::size_t Alignment = alignof(T), class Deleter = AlignedDeleter>
std::unique_ptr< T, Deleter > momentum::makeAlignedUnique ( std::size_t n,
Deleter deleter = Deleter() )
nodiscard

Creates a std::unique_ptr for aligned memory.

Definition at line 143 of file aligned.h.

References alignedAlloc().

◆ makeCharacterDocument()

fx::gltf::Document momentum::makeCharacterDocument ( const Character & character,
float fps = 120.0f,
const MotionParameters & motion = {},
const IdentityParameters & offsets = {},
std::span< const std::vector< Marker > > markerSequence = {},
bool embedResource = true,
const FileSaveOptions & options = FileSaveOptions(),
std::span< const int64_t > timestamps = {} )

Create a glTF document from a character.

This function creates a glTF document containing the character data and optionally motion, identity offsets, and marker sequences.

Parameters
[in]characterThe Character object to save.
[in]fpsFrame rate of the motion in frames per second (default: 120.0f).
[in]motionOptional motion parameters to include in the document.
[in]offsetsOptional identity parameters (joint offsets) to include in the document.
[in]markerSequenceOptional marker sequence data to include in the document.
[in]embedResourceWhether to embed resources in the document (default: true).
[in]optionsOptional file save options for controlling output.
[in]timestampsOptional per-frame timestamps. Size should match motion columns.
Returns
A glTF document containing the character data.

Definition at line 373 of file gltf_io.cpp.

References momentum::GltfBuilder::addCharacter(), momentum::GltfBuilder::addMarkerSequence(), momentum::GltfBuilder::addMotion(), momentum::FileSaveOptions::extensions, momentum::GltfBuilder::forceEmbedResources(), momentum::GltfBuilder::getDocument(), momentum::FileSaveOptions::gltfAnimationInterpolation, momentum::SkeletonT< T >::joints, momentum::Character::mesh, momentum::GltfBuilder::setAnimationInterpolation(), and momentum::Character::skeleton.

Referenced by saveCharacterToBytes(), saveGltfCharacter(), and saveGltfCharacter().

◆ makeDurationSecondsTimeColumn()

rerun::TimeColumn momentum::makeDurationSecondsTimeColumn ( std::string timelineName,
rerun::Collection< double > values,
rerun::SortingStatus sortingStatus = rerun::SortingStatus::Unknown )
inline

Definition at line 117 of file rerun_compat.h.

Referenced by logJointParamsColumns(), and logModelParamsColumns().

◆ makeScalar()

template<typename T>
auto momentum::makeScalar ( T value)
inline

Definition at line 38 of file rerun_compat.h.

Referenced by logJointParams(), and logModelParams().

◆ makeScalarColumns()

rerun::Collection< rerun::ComponentColumn > momentum::makeScalarColumns ( std::vector< double > values)
inline

Definition at line 131 of file rerun_compat.h.

Referenced by logJointParamsColumns(), and logModelParamsColumns().

◆ makeSequenceTimeColumn()

rerun::TimeColumn momentum::makeSequenceTimeColumn ( std::string timelineName,
rerun::Collection< int64_t > values,
rerun::SortingStatus sortingStatus = rerun::SortingStatus::Unknown )
inline

Definition at line 107 of file rerun_compat.h.

Referenced by logJointParamsColumns(), and logModelParamsColumns().

◆ makeSeriesLine()

auto momentum::makeSeriesLine ( )
inline

Definition at line 50 of file rerun_compat.h.

◆ makeSeriesLineWithName()

auto momentum::makeSeriesLineWithName ( const std::string & name)
inline

Definition at line 59 of file rerun_compat.h.

Referenced by logJointParamNames(), and logModelParamNames().

◆ makeTransform3D()

template<typename... Args>
auto momentum::makeTransform3D ( Args &&... args)
inline

Definition at line 84 of file rerun_compat.h.

◆ mapIdentityToCharacter()

JointParameters momentum::mapIdentityToCharacter ( const IdentityParameters & inputIdentity,
const Character & targetCharacter )

Maps the input JointParameter vector to a target character by matching joint names.

Mismatched names will be discarded (source) or set to zero (target). For every matched joint, all 7 parameters will be copied over.

Precondition
std::get<0>(inputIdentity).size() * kParametersPerJoint == std::get<1>(inputIdentity).size(). Callers that may not have identity data (e.g. glTF motion files saved without identity offsets) must check this before assembling the tuple โ€” passing joint names paired with an empty identity vector violates the precondition. Either skip the call entirely or pass a fully empty IdentityParameters{}, which yields a zero-padded result.

Definition at line 982 of file character_utility.cpp.

References momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, MT_CHECK, MT_LOGW, and momentum::Character::skeleton.

Referenced by loadCharacterWithMotionCommon(), and loadMotionOnCharacterCommon().

◆ mapMotionToCharacter() [1/2]

std::tuple< MatrixXf, VectorXf > momentum::mapMotionToCharacter ( const MatrixXf & poses,
const VectorXf & offsets,
std::span< const std::string > parameterNames,
std::span< const std::string > jointNames,
const Character & character )

Map motion data from one parameter space to character parameter space.

Parameters
posesSource motion poses
offsetsSource joint offsets
parameterNamesSource parameter names
jointNamesSource joint names
characterTarget character definition
Returns
Tuple of (mapped poses, mapped offsets)

Definition at line 174 of file mmo_io.cpp.

References momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, and momentum::Character::skeleton.

◆ mapMotionToCharacter() [2/2]

MatrixXf momentum::mapMotionToCharacter ( const MotionParameters & inputMotion,
const Character & targetCharacter )

Maps the input ModelParameter motion to a target character by matching model parameter names.

Mismatched names will be discarded (source) or set to zero (target).

Returns
A matrix of model parameters for the target character (one column per frame).

Definition at line 955 of file character_utility.cpp.

References momentum::ParameterTransformT< T >::getParameterIdByName(), kInvalidIndex, MT_CHECK, MT_LOGW, momentum::ParameterTransformT< T >::numAllModelParameters(), and momentum::Character::parameterTransform.

Referenced by loadCharacterWithMotionCommon(), loadMmo(), and loadMotionOnCharacterCommon().

◆ mapParameters()

template<typename T>
Eigen::VectorX< T > momentum::mapParameters ( const ModelParametersT< T > & in,
const std::vector< size_t > & mp )

◆ mapParameterTransformJoints() [1/3]

template ParameterTransformT< double > momentum::mapParameterTransformJoints ( const ParameterTransformT< double > & paramTransform,
size_t numTargetJoints,
const std::vector< size_t > & jointMapping )

◆ mapParameterTransformJoints() [2/3]

template ParameterTransformT< float > momentum::mapParameterTransformJoints ( const ParameterTransformT< float > & paramTransform,
size_t numTargetJoints,
const std::vector< size_t > & jointMapping )

◆ mapParameterTransformJoints() [3/3]

template<typename T>
ParameterTransformT< T > momentum::mapParameterTransformJoints ( const ParameterTransformT< T > & parameterTransform,
size_t numTargetJoints,
const std::vector< size_t > & jointMapping )
nodiscard

Construct a new parameter transform where the joints have been mapped to a new skeleton.

Joints that are mapped to kInvalidIndex will be simply skipped. Note that this does not delete any parameters so it's possible if you remove enough joints to have "orphan" parameters still kicking around; to avoid this consider also applying an appropriate subsetParameterTransform() operation.

Definition at line 229 of file parameter_transform.cpp.

References momentum::ParameterTransformT< T >::activeJointParams, momentum::ParameterTransformT< T >::blendShapeParameters, momentum::ParameterTransformT< T >::faceExpressionParameters, kInvalidIndex, kParametersPerJoint, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::offsets, momentum::ParameterTransformT< T >::parameterSets, momentum::ParameterTransformT< T >::poseConstraints, momentum::ParameterTransformT< T >::skinnedLocatorParameters, and momentum::ParameterTransformT< T >::transform.

Referenced by momentum::Character::simplifySkeleton().

◆ MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS() [1/2]

momentum::MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS ( DistanceErrorFunction )

◆ MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS() [2/2]

momentum::MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS ( FullyDifferentiableProjectionErrorFunction )

◆ MOMENTUM_FWD_DECLARE_TEMPLATE_STRUCT()

momentum::MOMENTUM_FWD_DECLARE_TEMPLATE_STRUCT ( DistanceConstraintData )

◆ nan()

template<typename T = float>
T momentum::nan ( )
nodiscardconstexprnoexcept

Returns a quiet NaN value of type T.

Definition at line 17 of file constants.h.

◆ normal() [1/4]

◆ normal() [2/4]

template<typename DynamicMatrix>
DynamicMatrix momentum::normal ( Eigen::Index rows,
Eigen::Index cols,
typename DynamicMatrix::Scalar mean,
typename DynamicMatrix::Scalar sigma )
nodiscard

Normally distributed dynamic-size matrix via the global Random singleton.

See Random::normal.

Precondition
sigma >= 0, rows >= 0, and cols >= 0.

Definition at line 403 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ normal() [3/4]

template<typename DynamicVector>
DynamicVector momentum::normal ( Eigen::Index size,
typename DynamicVector::Scalar mean,
typename DynamicVector::Scalar sigma )
nodiscard

Normally distributed dynamic-size vector via the global Random singleton.

See Random::normal.

Precondition
sigma >= 0 and size >= 0.

Definition at line 394 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ normal() [4/4]

template<typename FixedSizeT>
FixedSizeT momentum::normal ( typename FixedSizeT::Scalar mean,
typename FixedSizeT::Scalar sigma )
nodiscard

Normally distributed fixed-size vector/matrix via the global Random singleton.

See Random::normal.

Precondition
sigma >= 0.

Definition at line 388 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ operator!=()

template<class T, class U, std::size_t Alignment>
bool momentum::operator!= ( const AlignedAllocator< T, Alignment > & ,
const AlignedAllocator< U, Alignment > &  )
nodiscard

Checks if storage allocated from lhs cannot be deallocated from rhs, and vice versa.

This always returns false for stateless allocators.

Definition at line 208 of file aligned.h.

◆ operator*() [1/4]

template<typename S, typename Derived>
Vector3P< S > momentum::operator* ( const Eigen::MatrixBase< Derived > & xf,
const Vector3P< S > & vec )

Applies 3x3 matrix transformation to each 3x1 vector in packet.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Matrix3f.
Parameters
xfA 3x3 matrix.
vecA 3-vector of packets.
Returns
Transformed vectors as a 3-vector of packets.

Definition at line 276 of file simd.h.

References dot().

◆ operator*() [2/4]

template<typename S>
Vector3P< S > momentum::operator* ( const Eigen::Quaternion< S > & q,
const Vector3P< S > & vec )

Applies quaternion rotation to each 3x1 vector in packet.

Delegates to DrJit's quaternion-vector multiplication via ADL.

Parameters
qA quaternion.
vecA 3-vector of packets.
Returns
Rotated vectors as a 3-vector of packets.

Definition at line 263 of file simd.h.

◆ operator*() [3/4]

template<typename S>
Vector3P< S > momentum::operator* ( const Eigen::Transform< S, 3, Eigen::Affine > & xf,
const Vector3P< S > & vec )

Applies affine transformation to each 3x1 vector in packet.

Parameters
xfAn affine transformation matrix.
vecA 3-vector of packets.
Returns
Transformed vectors as a 3-vector of packets.

Definition at line 287 of file simd.h.

References operator+().

◆ operator*() [4/4]

template<typename S>
Vector3P< S > momentum::operator* ( const TransformT< S > & xf,
const Vector3P< S > & vec )

Applies momentum::Transform to each 3x1 vector in packet.

Parameters
xfA momentum transform.
vecA 3-vector of packets.
Returns
Transformed vectors as a 3-vector of packets.

Definition at line 297 of file simd.h.

References operator+(), momentum::TransformT< T >::toLinear(), and momentum::TransformT< T >::translation.

◆ operator+() [1/2]

template<typename S, typename Derived>
Vector3P< S > momentum::operator+ ( const Eigen::MatrixBase< Derived > & v1,
const Vector3P< S > & v2 )

Adds Eigen::Vector3f and Vector3P element-wise.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3D vector of Eigen.
v2A 3-vector of packets.
Returns
Element-wise sum as a 3-vector of packets.

Definition at line 215 of file simd.h.

Referenced by operator*(), and operator*().

◆ operator+() [2/2]

template<typename S, typename Derived>
Vector3P< S > momentum::operator+ ( const Vector3P< S > & v1,
const Eigen::MatrixBase< Derived > & v2 )

Adds Vector3P and Eigen::Vector3f element-wise.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3-vector of packets.
v2A 3D vector of Eigen.
Returns
Element-wise sum as a 3-vector of packets.

Definition at line 227 of file simd.h.

◆ operator-() [1/2]

template<typename S, typename Derived>
Vector3P< S > momentum::operator- ( const Eigen::MatrixBase< Derived > & v1,
const Vector3P< S > & v2 )

Subtracts Vector3P from Eigen::Vector3f element-wise.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3D vector of Eigen.
v2A 3-vector of packets.
Returns
Element-wise difference as a 3-vector of packets.

Definition at line 239 of file simd.h.

◆ operator-() [2/2]

template<typename S, typename Derived>
Vector3P< S > momentum::operator- ( const Vector3P< S > & v1,
const Eigen::MatrixBase< Derived > & v2 )

Subtracts Eigen::Vector3f from Vector3P element-wise.

Template Parameters
DerivedA derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f.
Parameters
v1A 3-vector of packets.
v2A 3D vector of Eigen.
Returns
Element-wise difference as a 3-vector of packets.

Definition at line 251 of file simd.h.

◆ operator==()

template<class T, class U, std::size_t Alignment>
bool momentum::operator== ( const AlignedAllocator< T, Alignment > & ,
const AlignedAllocator< U, Alignment > &  )
nodiscard

Checks if storage allocated from lhs can be deallocated from rhs, and vice versa.

This always returns true for stateless allocators.

Definition at line 198 of file aligned.h.

◆ overlaps() [1/2]

template<typename T>
bool momentum::overlaps ( const CollisionGeometryStateT< T > & collisionState,
const CollisionGeometry & collisionGeometry,
size_t indexA,
size_t indexB,
CollisionOverlapResultT< T > & result )
nodiscard

Determines whether two collision primitives overlap.

Capsule-capsule pairs use the existing closest-segment query. Centered primitive pairs use a support radius along the center-feature separation direction, which gives a stable contact normal for the solver and preserves the same overlap convention used by tapered capsules.

Parameters
collisionStateWorld-space collision state for collisionGeometry.
collisionGeometryCollision primitives corresponding to collisionState.
indexAFirst primitive index.
indexBSecond primitive index.
resultOutput: closest points, contact positions, support radii, distance, and overlap.
Returns
True when the primitive pair overlaps with a non-degenerate contact direction.

Definition at line 284 of file collision_geometry_state.h.

References momentum::CollisionGeometryStateT< T >::boxHalfExtents, centeredPrimitiveRadiusAlongDirection(), momentum::CollisionOverlapResultT< T >::closestPoints, momentum::CollisionGeometryStateT< T >::delta, momentum::CollisionGeometryStateT< T >::direction, momentum::CollisionOverlapResultT< T >::distance, momentum::CollisionGeometryStateT< T >::ellipsoidRadii, Eps(), isCenteredPrimitive(), normal(), momentum::CollisionGeometryStateT< T >::orientation, momentum::CollisionGeometryStateT< T >::origin, momentum::CollisionOverlapResultT< T >::overlap, overlaps(), overlapsCapsuleCenteredPrimitive(), momentum::CollisionOverlapResultT< T >::positionA, momentum::CollisionOverlapResultT< T >::positionB, momentum::CollisionGeometryStateT< T >::radius, momentum::CollisionOverlapResultT< T >::radiusA, momentum::CollisionOverlapResultT< T >::radiusB, and TaperedCapsule.

◆ overlaps() [2/2]

template<typename T>
bool momentum::overlaps ( const Vector3< T > & originA,
const Vector3< T > & directionA,
const Vector2< T > & radiiA,
T deltaA,
const Vector3< T > & originB,
const Vector3< T > & directionB,
const Vector2< T > & radiiB,
T deltaB,
T & outDistance,
Vector2< T > & outClosestPoints,
T & outOverlap )

Determines if two tapered capsules overlap.

Parameters
originAOrigin of the first capsule
directionADirection vector of the first capsule (length encodes the segment length)
radiiARadii at the endpoints of the first capsule
deltaASigned difference between radii of the first capsule (radiiA[1] - radiiA[0])
originBOrigin of the second capsule
directionBDirection vector of the second capsule (length encodes the segment length)
radiiBRadii at the endpoints of the second capsule
deltaBSigned difference between radii of the second capsule (radiiB[1] - radiiB[0])
outDistanceOutput: distance between the closest points on the two centerline segments. Only written when the closest-point computation succeeds; left unchanged when the function returns false due to an early exit from closestPointsOnSegments.
outClosestPointsOutput: parametric positions in [0, 1] along each segment of the closest points (outClosestPoints[0] for capsule A, outClosestPoints[1] for B).
outOverlapOutput: amount of overlap (positive if overlapping). Only written when the closest-point computation succeeds.
Returns
True if the capsules overlap and the closest points are not coincident (separation >= ~1e-8 for float, ~1e-17 for double).

Definition at line 121 of file collision_geometry_state.h.

References closestPointsOnSegments(), and Eps().

Referenced by momentum::CollisionErrorFunctionStatelessT< T >::checkCollision(), momentum::CollisionErrorFunctionT< T >::checkCollision(), isValidCollisionPair(), and overlaps().

◆ overlapsCapsuleCenteredPrimitive()

template<typename T>
bool momentum::overlapsCapsuleCenteredPrimitive ( const Vector3< T > & capsuleOrigin,
const Vector3< T > & capsuleDirection,
const Vector2< T > & capsuleRadii,
T capsuleDelta,
CollisionPrimitiveType primitiveType,
const Vector3< T > & primitiveCenter,
const Quaternion< T > & primitiveOrientation,
const Vector3< T > & ellipsoidRadii,
const Vector3< T > & boxHalfExtents,
T & outDistance,
T & outCapsuleParam,
T & outOverlap,
T & outCapsuleRadius,
T & outPrimitiveRadius )
nodiscard

Test overlap between a tapered capsule and an oriented centered primitive.

The centered primitive can be an ellipsoid or box. The function fills the closest capsule parameter, support radii, distance, and signed overlap used by the solver when a non-degenerate overlap is found.

Parameters
capsuleOriginOrigin of the capsule segment in world space.
capsuleDirectionDirection vector from capsule start to end in world space.
capsuleRadiiRadii at the capsule start and end points.
capsuleDeltaSigned difference between capsule radii (capsuleRadii[1] - capsuleRadii[0]).
primitiveTypeCentered primitive type; must be ellipsoid or box.
primitiveCenterPrimitive center in world space.
primitiveOrientationPrimitive orientation in world space.
ellipsoidRadiiEllipsoid radii along its local axes; ignored for boxes.
boxHalfExtentsBox half extents along its local axes; ignored for ellipsoids.
outDistanceOutput: distance between the capsule centerline point and primitive center.
outCapsuleParamOutput: parametric position in [0, 1] along the capsule segment.
outOverlapOutput: signed overlap amount, positive when overlapping.
outCapsuleRadiusOutput: capsule support radius at outCapsuleParam.
outPrimitiveRadiusOutput: primitive support radius along the contact direction.
Returns
True when the capsule and centered primitive overlap with a non-degenerate contact direction.

Definition at line 239 of file collision_geometry_state.h.

References centeredPrimitiveRadiusAlongDirection(), closestPointOnSegmentParameter(), Eps(), and normal().

Referenced by overlaps().

◆ padToSimdAlignment()

size_t momentum::padToSimdAlignment ( size_t size)
nodiscardconstexpr

Pads a row count to be a multiple of kJacobianRowAlignment for SIMD alignment.

This is used when allocating Jacobian matrices to ensure proper alignment for SIMD operations.

Parameters
[in]sizeThe original row count.
Returns
The padded row count, rounded up to the nearest multiple of 8.

Definition at line 27 of file solver_function.h.

References kJacobianRowAlignment.

Referenced by momentum::GaussNewtonSolverQRT< T >::doIteration(), momentum::MultiposeSolverT< T >::doIteration(), momentum::TrustRegionQRT< T >::doIteration(), momentum::SolverFunctionT< T >::getJacobian(), and momentum::SolverFunctionT< T >::getJtJR().

◆ parameterLimitsFromJson()

ParameterLimits momentum::parameterLimitsFromJson ( const Character & character,
const nlohmann::json & j )

◆ parameterLimitsToJson()

void momentum::parameterLimitsToJson ( const Character & character,
nlohmann::json & j )

◆ parameterSetsFromJson()

ParameterSets momentum::parameterSetsFromJson ( const Character & character,
const nlohmann::json & j )

◆ parameterSetsToJson()

void momentum::parameterSetsToJson ( const Character & character,
nlohmann::json & j )

◆ parameterTransformFromJson()

◆ parameterTransformToJson()

◆ parseParameterLimits() [1/2]

ParameterLimits momentum::parseParameterLimits ( const io_detail::SectionContent & content,
const Skeleton & skeleton,
const ParameterTransform & parameterTransform )

◆ parseParameterLimits() [2/2]

ParameterLimits momentum::parseParameterLimits ( const std::string & data,
const Skeleton & skeleton,
const ParameterTransform & parameterTransform,
size_t lineOffset )

◆ parseParameterSets() [1/3]

ParameterSets momentum::parseParameterSets ( const io_detail::SectionContent & content,
const ParameterTransform & pt )

◆ parseParameterSets() [2/3]

◆ parseParameterSets() [3/3]

ParameterSets momentum::parseParameterSets ( const std::string & data,
const ParameterTransform & pt,
size_t lineOffset )

◆ parseParameterTransform() [1/3]

ParameterTransform momentum::parseParameterTransform ( const io_detail::SectionContent & content,
const Skeleton & skeleton )

◆ parseParameterTransform() [2/3]

◆ parseParameterTransform() [3/3]

ParameterTransform momentum::parseParameterTransform ( const std::string & data,
const Skeleton & skeleton,
size_t lineOffset )

◆ parsePoseConstraints() [1/3]

PoseConstraints momentum::parsePoseConstraints ( const io_detail::SectionContent & content,
const ParameterTransform & pt )

◆ parsePoseConstraints() [2/3]

◆ parsePoseConstraints() [3/3]

PoseConstraints momentum::parsePoseConstraints ( const std::string & data,
const ParameterTransform & pt,
size_t lineOffset )

◆ pi()

template<typename T = float>
T momentum::pi ( )
nodiscardconstexprnoexcept

Returns the mathematical constant pi.

Note
Use this instead of M_PI. Windows MSVC does not define M_PI by default (it requires _USE_MATH_DEFINES before <cmath>). This function is always available on all platforms.

Definition at line 50 of file constants.h.

Referenced by findCandidateTrianglesDfs(), generateSphereMesh(), logCollisionGeometry(), quaternionLogMap(), rotationMatrixToEulerXYZ(), rotationMatrixToEulerZYX(), momentum::MppcaT< float >::set(), momentum::FullyDifferentiablePosePriorErrorFunctionT< T >::setPosePrior(), momentum::FullyDifferentiablePosePriorErrorFunctionT< float >::setPosePrior(), toDeg(), toRad(), momentum::PoseTransformSolverT< T >::transformPose(), and twopi().

◆ polysToVertices()

template<typename T>
std::vector< bool > momentum::polysToVertices ( const MeshT< T > & mesh,
const std::vector< bool > & activePolys )
nodiscard

Converts a polygon selection to a vertex selection.

A vertex is marked active if it is referenced by any active polygon.

Definition at line 1542 of file character_utility.cpp.

References MT_CHECK, momentum::MeshT< T >::polyFaces, momentum::MeshT< T >::polyFaceSizes, polysToVertices(), and momentum::MeshT< T >::vertices.

Referenced by polysToVertices(), reduceMeshByPolys(), and reduceMeshByPolys().

◆ polysToVertices< double >()

template std::vector< bool > momentum::polysToVertices< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activePolys )

◆ polysToVertices< float >()

template std::vector< bool > momentum::polysToVertices< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activePolys )

◆ poseConstraintsFromJson()

PoseConstraints momentum::poseConstraintsFromJson ( const Character & character,
const nlohmann::json & j )

◆ poseConstraintsToJson()

void momentum::poseConstraintsToJson ( const Character & character,
nlohmann::json & j )

◆ preprocessMarkerGaps()

void momentum::preprocessMarkerGaps ( std::vector< std::vector< Marker > > & markerData,
const GapFillConfig & config = {} )

Pre-process marker data to fill temporary gaps and blend off permanent dropouts.

For temporary gaps (marker disappears then reappears within maxGapFrames), the gap is filled using cubic Hermite interpolation with position and velocity at the gap boundaries. Filled markers get occluded=false and confidence=1.0.

For permanent dropouts (marker disappears and never returns, or appears late), the marker position is extrapolated using linear velocity estimated from the nearest visible frames, and the confidence ramps from 1.0 to 0.0 over blendOffFrames using a cosine curve. Extrapolated markers get occluded=false.

For long gaps with visible frames on both sides (exceeding maxGapFrames), the marker is blended off from each side independently, preventing a hard pop when the marker reappears.

Parameters
[in,out]markerDataMarker data to process in-place. Each frame must have the same markers in the same order.
[in]configGap fill configuration.

Definition at line 376 of file marker_gap_fill.cpp.

References momentum::GapFillConfig::blendOffFrames, momentum::GapFillConfig::enabled, and momentum::GapFillConfig::minVisibleFrames.

Referenced by trackPosesForFrames().

◆ processMarkerFile()

void momentum::processMarkerFile ( const std::string & inputMarkerFile,
const std::string & outputFile,
const TrackingConfig & trackingConfig,
const CalibrationConfig & calibrationConfig,
const ModelOptions & modelOptions,
bool calibrate,
size_t firstFrame = 0,
size_t maxFrames = 0 )

Runs marker tracking on an input marker file (e.g.

c3d) and writes the output motion (e.g. glb) to outputFile

Definition at line 292 of file process_markers.cpp.

References findMainSubjectIndex(), loadCharacterWithIdentity(), loadMarkers(), MT_LOGE, MT_LOGI, processMarkers(), saveMotion(), and Y.

◆ processMarkers()

Eigen::MatrixXf momentum::processMarkers ( momentum::Character & character,
momentum::ModelParameters & identity,
const std::vector< std::vector< momentum::Marker > > & markerData,
const TrackingConfig & trackingConfig,
const CalibrationConfig & calibrationConfig,
bool calibrate = true,
size_t firstFrame = 0,
size_t maxFrames = 0,
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt,
std::span< const CameraKeypointData > cameraKeypointData = {} )

Processes marker data for a character model.

It can calibrate the model and locators based on the calibrationConfig, and track the motion of the markers.

Parameters
[in,out]characterThe input character definition with locators. It also holds the output locators if locators are to be calibrated from the calibrationConfig.
[in,out]identityThe input identity used for tracking. It also holds the solved identify if identity is to be calibrated from the calibrationConfig.
[in]markerDataThe per-frame position targets to be tracked.
[in]trackingConfigThe config for per-frame tracking after the correct identity and locators are solved for (or from input).
[in]calibrationConfigThe config for running calibration if calibrate is set to true.
[in]calibrateTrue to run calibration according to calibrationConfig.
[in]firstFrameThe first frame to start solving. We pass in the first frame instead of triming markerData to avoid data copy.
[in]maxFramesThe maximum number of frames to process starting from firstFrame.
Returns
The final motion matrix after tracking.

Definition at line 202 of file process_markers.cpp.

References calibrateLocators(), calibrateModel(), momentum::BaseConfig::debug, getLocatorError(), momentum::CalibrationConfig::globalScaleOnly, momentum::CalibrationConfig::locatorsOnly, MT_CHECK, MT_LOGI, MT_THROW_IF, and trackPosesPerframe().

Referenced by processMarkerFile().

◆ pseudoInverse() [1/6]

template MatrixX< double > momentum::pseudoInverse ( const MatrixX< double > & mat)

◆ pseudoInverse() [2/6]

template MatrixX< float > momentum::pseudoInverse ( const MatrixX< float > & mat)

◆ pseudoInverse() [3/6]

template<typename T>
MatrixX< T > momentum::pseudoInverse ( const MatrixX< T > & mat)

Calculates the pseudo-inverse of a matrix.

Uses singular value decomposition (SVD) to compute the Moore-Penrose pseudo-inverse. Singular values at or below max(rows, cols) * epsilon * the largest singular value count as zero, so for a rank-deficient matrix pseudoInverse(A) * b is the minimum-norm least-squares solution, and a zero matrix gets a zero pseudo-inverse.

Template Parameters
TThe scalar type
Parameters
matInput matrix
Returns
The pseudo-inverse of the input matrix

Definition at line 422 of file utility.cpp.

Referenced by momentum::InverseParameterTransformT< T >::InverseParameterTransformT(), and pseudoInverse().

◆ pseudoInverse() [4/6]

template MatrixX< double > momentum::pseudoInverse ( const SparseMatrix< double > & mat)

◆ pseudoInverse() [5/6]

template MatrixX< float > momentum::pseudoInverse ( const SparseMatrix< float > & mat)

◆ pseudoInverse() [6/6]

template<typename T>
MatrixX< T > momentum::pseudoInverse ( const SparseMatrix< T > & mat)

Calculates the pseudo-inverse of a sparse matrix.

Converts the sparse matrix to a dense matrix before computing the pseudo-inverse

Template Parameters
TThe scalar type
Parameters
matInput sparse matrix
Returns
The pseudo-inverse as a dense matrix

Definition at line 444 of file utility.cpp.

References pseudoInverse().

◆ quaternionAverage()

Quaternionf momentum::quaternionAverage ( momentum::span< const Quaternionf > q,
momentum::span< const float > w = {} )

Computes the weighted average of multiple quaternions.

Uses the method described in Markley et al. "Averaging Quaternions". Finds the eigenvector of the 4x4 quaternion outer product matrix corresponding to the largest eigenvalue.

Note
Used in simplify() when merging child joint rotations into ancestors, and in motion processing when blending pose estimates.
Precondition
If w is provided, its size must match q.
Parameters
qArray of quaternions to average
wOptional weights for each quaternion (defaults to equal weights)
Returns
The average quaternion

Definition at line 397 of file utility.cpp.

◆ quaternionExpMap() [1/3]

template Quaternion< double > momentum::quaternionExpMap ( const Vector3< double > & v)

◆ quaternionExpMap() [2/3]

template Quaternion< float > momentum::quaternionExpMap ( const Vector3< float > & v)

◆ quaternionExpMap() [3/3]

template<typename T>
Quaternion< T > momentum::quaternionExpMap ( const Vector3< T > & v)

Computes the exponential map from a rotation vector (axis-angle in R^3) to a quaternion.

The exponential map takes a 3D rotation vector (where the direction is the rotation axis and the magnitude is the rotation angle in radians) and returns the corresponding unit quaternion. This is numerically robust for small angles using Taylor series expansion.

Reference: "Practical Parameterization of Rotations Using the Exponential Map" by F. Sebastian Grassia, Journal of Graphics Tools, 1998.

Note
The exp map is used internally by JointStateT::set() to convert the 3 Euler rotation parameters [rx, ry, rz] into a quaternion. The log map is used by skeletonStateToJointParameters() for the inverse conversion. The exp map is numerically robust for small angles (Taylor series expansion), important because most joint rotations are small perturbations from rest pose during optimization. For 180 degree rotations (near -I quaternion), a consistent branch is chosen to avoid discontinuities.
Template Parameters
TThe scalar type
Parameters
vThe rotation vector (axis-angle representation)
Returns
The corresponding unit quaternion

Definition at line 34 of file utility.cpp.

References Eps().

◆ quaternionLogMap() [1/3]

template Vector3< double > momentum::quaternionLogMap ( const Quaternion< double > & q)

◆ quaternionLogMap() [2/3]

template Vector3< float > momentum::quaternionLogMap ( const Quaternion< float > & q)

◆ quaternionLogMap() [3/3]

template<typename T>
Vector3< T > momentum::quaternionLogMap ( const Quaternion< T > & q)

Computes the logarithmic map from a quaternion to a rotation vector (axis-angle in R^3).

The logarithmic map takes a unit quaternion and returns the corresponding 3D rotation vector (where the direction is the rotation axis and the magnitude is the rotation angle in radians). This is numerically robust for small angles using Taylor series expansion. For quaternions close to -I (180 degree rotation), a consistent branch is chosen.

Reference: "Practical Parameterization of Rotations Using the Exponential Map" by F. Sebastian Grassia, Journal of Graphics Tools, 1998.

Note
The exp map is used internally by JointStateT::set() to convert the 3 Euler rotation parameters [rx, ry, rz] into a quaternion. The log map is used by skeletonStateToJointParameters() for the inverse conversion. The exp map is numerically robust for small angles (Taylor series expansion), important because most joint rotations are small perturbations from rest pose during optimization. For 180 degree rotations (near -I quaternion), a consistent branch is chosen to avoid discontinuities.
Precondition
q should be normalized.
Template Parameters
TThe scalar type
Parameters
qThe input quaternion (should be normalized)
Returns
The corresponding rotation vector (axis-angle representation)

Definition at line 74 of file utility.cpp.

References Eps(), and pi().

Referenced by momentum::StateErrorFunctionT< T >::getError(), momentum::StateSequenceErrorFunctionT< T >::getError(), momentum::StateErrorFunctionT< T >::getGradient(), momentum::StateSequenceErrorFunctionT< T >::getGradient(), momentum::StateErrorFunctionT< T >::getJacobian(), and momentum::StateSequenceErrorFunctionT< T >::getJacobian().

◆ quaternionLogMapDerivative() [1/3]

template Eigen::Matrix< double, 3, 4 > momentum::quaternionLogMapDerivative ( const Quaternion< double > & q)

◆ quaternionLogMapDerivative() [2/3]

template Eigen::Matrix< float, 3, 4 > momentum::quaternionLogMapDerivative ( const Quaternion< float > & q)

◆ quaternionLogMapDerivative() [3/3]

template<typename T>
Eigen::Matrix< T, 3, 4 > momentum::quaternionLogMapDerivative ( const Quaternion< T > & q)

Computes the derivative of the logarithmic map with respect to quaternion components.

Given a quaternion q with coeffs [x, y, z, w], computes the Jacobian matrix J where: J(i,j) = d(log(q)[i]) / dq.coeffs()[j] where log(q) is the 3D rotation vector and q.coeffs() = [x, y, z, w] (Eigen's convention).

This is the fundamental building block for computing derivatives of functions involving logmap through the chain rule.

Reference: "Practical Parameterization of Rotations Using the Exponential Map" by F. Sebastian Grassia, Journal of Graphics Tools, 1998.

Template Parameters
TThe scalar type
Parameters
qThe input quaternion (should be normalized)
Returns
3x4 Jacobian matrix where column j is the gradient w.r.t. q.coeffs()[j], i.e., columns are ordered as [d/dx, d/dy, d/dz, d/dw]

Definition at line 120 of file utility.cpp.

References Eps().

Referenced by momentum::StateErrorFunctionT< T >::getGradient(), momentum::StateSequenceErrorFunctionT< T >::getGradient(), momentum::StateErrorFunctionT< T >::getJacobian(), and momentum::StateSequenceErrorFunctionT< T >::getJacobian().

◆ quaternionToEuler() [1/3]

template<typename T>
Vector3< T > momentum::quaternionToEuler ( const Quaternion< T > & q)

Converts a quaternion to Euler angles using the Extrinsic XYZ convention.

The returned angles [x, y, z] are such that applying Extrinsic rotations RotX(x) then RotY(y) then RotZ(z) (i.e., about fixed world axes) reproduces the input quaternion's rotation. Empirically verified by tests.

Note: This matches the convention used in skeleton_state (skel_state): Extrinsic XYZ.

Template Parameters
TThe scalar type
Parameters
qInput quaternion
Returns
Vector of Euler angles [x, y, z]

Definition at line 385 of file utility.cpp.

References sqr().

Referenced by loadSkeletonStatesFromUsd().

◆ quaternionToEuler() [2/3]

template Vector3d momentum::quaternionToEuler ( const Quaterniond & q)

◆ quaternionToEuler() [3/3]

template Vector3f momentum::quaternionToEuler ( const Quaternionf & q)

◆ redirectLogsToRerun()

bool momentum::redirectLogsToRerun ( const rerun::RecordingStream & rec)

Redirects logs from the XR_LOG framework to the Rerun logger.

This function registers a custom log sink for the XR_LOG framework, redirecting its log messages to the Rerun logger. The redirection is only performed once, and subsequent calls to this function have no effect.

Parameters
[in]recThe recording stream to which to write the logs. You should make sure the lifetime of this is longer than the loggings from momentum libraries.
Returns
Returns true if the redirection is successful or has already been done.

Definition at line 72 of file logging_redirect.cpp.

References MT_LOGW.

◆ reduceMeshByFaces() [1/2]

Character momentum::reduceMeshByFaces ( const Character & character,
const std::vector< bool > & activeFaces )
nodiscard

Reduces the character's mesh to only include the specified faces and associated vertices.

Precondition
activeFaces.size() == character.mesh->faces.size()

Definition at line 1469 of file character_utility.cpp.

References facesToVertices(), momentum::Character::mesh, and MT_CHECK.

◆ reduceMeshByFaces() [2/2]

template<typename T>
MeshT< T > momentum::reduceMeshByFaces ( const MeshT< T > & mesh,
const std::vector< bool > & activeFaces )
nodiscard

Reduces a standalone mesh to only include the specified faces and associated vertices.

This is the mesh-only version of reduceMeshByFaces that works without a Character. It handles vertices, normals, colors, confidence, faces, lines, texcoords, texcoord_faces, and texcoord_lines with proper index remapping and compaction.

Precondition
activeFaces.size() == mesh.faces.size()

Definition at line 1496 of file character_utility.cpp.

References momentum::MeshT< T >::faces, facesToVertices(), and MT_CHECK.

◆ reduceMeshByFaces< double >()

template MeshT< double > momentum::reduceMeshByFaces< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activeFaces )

◆ reduceMeshByFaces< float >()

template MeshT< float > momentum::reduceMeshByFaces< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activeFaces )

◆ reduceMeshByPolys() [1/2]

Character momentum::reduceMeshByPolys ( const Character & character,
const std::vector< bool > & activePolys )
nodiscard

Reduces the character's mesh to only include the specified polygons and associated vertices.

Converts polygon selection to vertex selection and face selection, then reduces the mesh. Both triangulated faces and polygon data are filtered and remapped.

Precondition
activePolys.size() == character.mesh->polygons.size()

Definition at line 1566 of file character_utility.cpp.

References momentum::Character::mesh, MT_CHECK, polysToVertices(), and verticesToFaces().

◆ reduceMeshByPolys() [2/2]

template<typename T>
MeshT< T > momentum::reduceMeshByPolys ( const MeshT< T > & mesh,
const std::vector< bool > & activePolys )
nodiscard

Reduces a standalone mesh to only include the specified polygons and associated vertices.

Converts polygon selection to vertex selection and face selection, then reduces the mesh. Both triangulated faces and polygon data are filtered and remapped.

Precondition
activePolys.size() == mesh.polygons.size()

Definition at line 1553 of file character_utility.cpp.

References MT_CHECK, momentum::MeshT< T >::polyFaceSizes, polysToVertices(), and verticesToFaces().

◆ reduceMeshByPolys< double >()

template MeshT< double > momentum::reduceMeshByPolys< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activePolys )

◆ reduceMeshByPolys< float >()

template MeshT< float > momentum::reduceMeshByPolys< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activePolys )

◆ reduceMeshByVertices() [1/2]

Character momentum::reduceMeshByVertices ( const Character & character,
const std::vector< bool > & activeVertices )
nodiscard

Reduces the character's mesh to only include the specified vertices and associated faces.

Precondition
activeVertices.size() == character.mesh->vertices.size()

Definition at line 1454 of file character_utility.cpp.

References momentum::Character::mesh, MT_CHECK, and verticesToFaces().

◆ reduceMeshByVertices() [2/2]

template<typename T>
MeshT< T > momentum::reduceMeshByVertices ( const MeshT< T > & mesh,
const std::vector< bool > & activeVertices )
nodiscard

Reduces a standalone mesh to only include the specified vertices and associated faces.

This is the mesh-only version of reduceMeshByVertices that works without a Character. It handles vertices, normals, colors, confidence, faces, lines, texcoords, texcoord_faces, and texcoord_lines with proper index remapping and compaction.

Precondition
activeVertices.size() == mesh.vertices.size()

Definition at line 1483 of file character_utility.cpp.

References MT_CHECK, momentum::MeshT< T >::vertices, and verticesToFaces().

◆ reduceMeshByVertices< double >()

template MeshT< double > momentum::reduceMeshByVertices< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activeVertices )

◆ reduceMeshByVertices< float >()

template MeshT< float > momentum::reduceMeshByVertices< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activeVertices )

◆ refineMotion() [1/2]

Eigen::MatrixXf momentum::refineMotion ( std::span< const std::vector< momentum::Marker > > markerData,
const Eigen::MatrixXf & motion,
const RefineConfig & config,
momentum::Character & character )

◆ refineMotion() [2/2]

MatrixXf momentum::refineMotion ( std::span< const std::vector< momentum::Marker > > markerData,
const MatrixXf & motion,
const RefineConfig & config,
momentum::Character & character )

Refine existing motion by smoothing and optionally recalibrating identity/locators.

This is a post-processing function that takes an already tracked motion and improves it by applying temporal smoothness constraints, and optionally recalibrating character identity or locator positions. It uses the sequence solver to enforce temporal coherence across frames.

Parameters
markerDataMarker observations for each frame
motionInitial motion to refine (parameters x frames)
configRefinement configuration settings
characterCharacter model (may be modified if calibration is enabled)
Returns
Refined motion parameters matrix with improved temporal consistency

Definition at line 1915 of file marker_tracker.cpp.

References momentum::RefineConfig::calibId, momentum::RefineConfig::calibLocators, createLocatorCharacter(), extractIdAndLocatorsFromParams(), momentum::ParameterTransformT< T >::getScalingParameters(), momentum::Character::locators, MT_THROW_IF, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::ParameterTransformT< T >::parameterSets, momentum::Character::parameterTransform, momentum::RefineConfig::regularizer, momentum::Character::skinnedLocators, and trackSequence().

◆ removeIdentity()

void momentum::removeIdentity ( const ParameterSet & idSet,
const ModelParameters & identity,
Eigen::MatrixXf & motionWithId )

Definition at line 867 of file tracker_utils.cpp.

References momentum::EigenStrongType< Derived, EigenType >::v.

Referenced by saveMotion().

◆ removeJoints()

Character momentum::removeJoints ( const Character & character,
momentum::span< const size_t > jointsToRemove )
nodiscard

◆ replaceSkeletonHierarchy()

Character momentum::replaceSkeletonHierarchy ( const Character & srcCharacter,
const Character & tgtCharacter,
const std::string & srcRootJoint,
const std::string & tgtRootJoint )
nodiscard

◆ resolveMeshPath()

std::optional< filesystem::path > momentum::resolveMeshPath ( const std::string & filename,
const filesystem::path & urdfDir )

Resolves a mesh filename from a URDF visual element to a filesystem path.

Handles absolute paths, paths relative to the URDF directory, package:// URIs (strips scheme and package name), and file:// URIs.

Parameters
filenameThe mesh filename string from the URDF (e.g., "meshes/part.stl" or "package://robot/meshes/part.stl").
urdfDirThe directory containing the URDF file, used as the base for relative path resolution.
Returns
The resolved filesystem path, or std::nullopt if the file cannot be found.

Definition at line 415 of file urdf_mesh_io.cpp.

References MT_LOGW.

◆ resolvePhysicalPropertiesJointIndex()

size_t momentum::resolvePhysicalPropertiesJointIndex ( const JointPhysicalProperties & properties,
const Skeleton & skeleton )
nodiscard

Resolves physical mass properties to a skeleton joint.

A non-empty joint name is the source of truth: the cached joint index is used only when it is valid and points at the same joint name. If not, the name is looked up in the skeleton.

Definition at line 22 of file character_utility.cpp.

References momentum::SkeletonT< T >::getJointIdByName(), momentum::JointPhysicalProperties::jointIndex, momentum::JointPhysicalProperties::jointName, momentum::SkeletonT< T >::joints, and kInvalidIndex.

Referenced by momentum::fbx_internal::addPhysicalProperties().

◆ rotationMatrixToEuler() [1/3]

template Vector3< double > momentum::rotationMatrixToEuler ( const Matrix3< double > & m,
int axis0,
int axis1,
int axis2,
EulerConvention convention )

◆ rotationMatrixToEuler() [2/3]

template Vector3< float > momentum::rotationMatrixToEuler ( const Matrix3< float > & m,
int axis0,
int axis1,
int axis2,
EulerConvention convention )

◆ rotationMatrixToEuler() [3/3]

template<typename T>
Vector3< T > momentum::rotationMatrixToEuler ( const Matrix3< T > & m,
int axis0,
int axis1,
int axis2,
EulerConvention convention )
nodiscard

Converts rotation matrix to Euler angles.

Template Parameters
TThe scalar type.
Parameters
[in]mThe rotation matrix to convert.
[in]axis0The index of the first rotation's axis, one of {0, 1, 2}.
[in]axis1The index of the second rotation's axis, one of {0, 1, 2}.
[in]axis2The index of the third rotation's axis, one of {0, 1, 2}.
[in]conventionThe Euler angles convention.

Definition at line 187 of file utility.cpp.

References Extrinsic, Intrinsic, and rotationMatrixToEuler().

Referenced by rotationMatrixToEuler().

◆ rotationMatrixToEulerXYZ() [1/3]

template Vector3< double > momentum::rotationMatrixToEulerXYZ ( const Matrix3< double > & m,
EulerConvention convention )

◆ rotationMatrixToEulerXYZ() [2/3]

template Vector3< float > momentum::rotationMatrixToEulerXYZ ( const Matrix3< float > & m,
EulerConvention convention )

◆ rotationMatrixToEulerXYZ() [3/3]

template<typename T>
Vector3< T > momentum::rotationMatrixToEulerXYZ ( const Matrix3< T > & m,
EulerConvention convention )
nodiscard

An optimized version of rotationMatrixToEuler(m, 0, 1, 2, convention) or rotationMatrixToEuler(m, 2, 1, 0, convention).reverse().

Definition at line 201 of file utility.cpp.

References Extrinsic, Intrinsic, pi(), and rotationMatrixToEulerZYX().

Referenced by momentum::fbx_internal::createCollisionGeometryNodes(), rotationMatrixToEulerZYX(), and writeParameterLimits().

◆ rotationMatrixToEulerZYX() [1/3]

template Vector3< double > momentum::rotationMatrixToEulerZYX ( const Matrix3< double > & m,
EulerConvention convention )

◆ rotationMatrixToEulerZYX() [2/3]

template Vector3< float > momentum::rotationMatrixToEulerZYX ( const Matrix3< float > & m,
EulerConvention convention )

◆ rotationMatrixToEulerZYX() [3/3]

template<typename T>
Vector3< T > momentum::rotationMatrixToEulerZYX ( const Matrix3< T > & m,
EulerConvention convention )
nodiscard

An optimized version of rotationMatrixToEuler(m, 2, 1, 0, convention) or rotationMatrixToEuler(m, 0, 1, 2, convention).reverse().

Definition at line 242 of file utility.cpp.

References Extrinsic, Intrinsic, pi(), and rotationMatrixToEulerXYZ().

Referenced by momentum::fbx_internal::createSkeletonNodes(), and rotationMatrixToEulerXYZ().

◆ rotationMatrixToOneAxisEuler() [1/3]

template double momentum::rotationMatrixToOneAxisEuler ( const Matrix3< double > & m,
int axis0 )

◆ rotationMatrixToOneAxisEuler() [2/3]

template float momentum::rotationMatrixToOneAxisEuler ( const Matrix3< float > & m,
int axis0 )

◆ rotationMatrixToOneAxisEuler() [3/3]

template<typename T>
T momentum::rotationMatrixToOneAxisEuler ( const Matrix3< T > & m,
int axis0 )
nodiscard

Fits a single-axis Euler rotation to a rotation matrix.

Finds the best-fit single-axis rotation angle that minimizes the L2 distance to the target rotation matrix using Gauss-Newton optimization. This is NOT a direct conversion - if the input matrix cannot be exactly represented as a single-axis rotation, this function returns the closest approximation.

For exact single-axis rotations, the result will be precise. For general rotation matrices (e.g., those involving rotations around multiple axes), the result is the best single-axis approximation in the least-squares sense.

Template Parameters
TThe scalar type.
Parameters
[in]mThe target rotation matrix.
[in]axis0The rotation axis index, one of {0, 1, 2} (X, Y, Z).
Returns
The fitted rotation angle around the specified axis.

Definition at line 819 of file utility.cpp.

References MT_CHECK.

Referenced by rotationMatrixToTwoAxisEuler().

◆ rotationMatrixToTwoAxisEuler() [1/3]

template Vector2< double > momentum::rotationMatrixToTwoAxisEuler ( const Matrix3< double > & m,
int axis0,
int axis1 )

◆ rotationMatrixToTwoAxisEuler() [2/3]

template Vector2< float > momentum::rotationMatrixToTwoAxisEuler ( const Matrix3< float > & m,
int axis0,
int axis1 )

◆ rotationMatrixToTwoAxisEuler() [3/3]

template<typename T>
Vector2< T > momentum::rotationMatrixToTwoAxisEuler ( const Matrix3< T > & m,
int axis0,
int axis1 )
nodiscard

Fits a two-axis Euler rotation to a rotation matrix.

Finds the best-fit two-axis Euler angles (axis0 then axis1) that minimize the L2 distance to the target rotation matrix using Gauss-Newton optimization.

Template Parameters
TThe scalar type.
Parameters
[in]mThe target rotation matrix.
[in]axis0The index of the first rotation axis, one of {0, 1, 2}.
[in]axis1The index of the second rotation axis, one of {0, 1, 2}.
Returns
A 2D vector containing the fitted Euler angles [angle0, angle1].

Definition at line 840 of file utility.cpp.

References MT_CHECK, and rotationMatrixToOneAxisEuler().

◆ roundUpToAlignment()

std::size_t momentum::roundUpToAlignment ( std::size_t value,
std::size_t alignment )
inlineconstexpr

Rounds value up to the nearest multiple of alignment (in bytes).

Precondition
alignment must be non-zero. Throws std::invalid_argument otherwise.
Returns
The smallest multiple of alignment that is >= value.

Definition at line 105 of file aligned.h.

References MT_THROW_IF_T.

Referenced by alignedAlloc().

◆ safeLog()

template<typename T>
void momentum::safeLog ( const rerun::RecordingStream & rec,
std::string_view entityPath,
const T & archetype )
inline

Safe wrapper for RecordingStream::log that skips empty archetypes.

Serializes the archetype exactly once and forwards the batches via try_log_serialized_batches, so there is no overhead compared to a raw rec.log() call.

Definition at line 158 of file rerun_compat.h.

Referenced by logBvh(), logCollisionGeometry(), logJointParams(), logJoints(), logLocators(), logMarkerLocatorCorrespondence(), logMarkers(), logMesh(), and logModelParams().

◆ safeLogStatic()

template<typename T>
void momentum::safeLogStatic ( const rerun::RecordingStream & rec,
std::string_view entityPath,
const T & archetype )
inline

Safe wrapper for RecordingStream::log_static that skips empty archetypes.

Definition at line 169 of file rerun_compat.h.

Referenced by logJointParamNames(), and logModelParamNames().

◆ sampleFrames()

std::vector< size_t > momentum::sampleFrames ( momentum::Character & character,
const MatrixXf & initialMotion,
std::span< const std::vector< momentum::Marker > > markerData,
const ParameterSet & parameters,
const size_t frameStride,
const size_t numSamples )

Sample representative frames from motion data to maximize parameter variance.

Uses a greedy algorithm to select frames that are maximally different from each other in parameter space, while filtering out frames with high marker tracking errors. This is useful for calibration where you want to solve on a diverse set of poses rather than all frames.

Parameters
characterThe character model used for computing marker errors
initialMotionInitial motion parameters matrix (parameters x frames)
markerDataMarker observations for each frame
parametersSet of parameters to consider for variance calculation
frameStrideOnly consider every frameStride-th frame as candidates
numSamplesMaximum number of frames to sample
Returns
Vector of frame indices representing the selected keyframes

Definition at line 93 of file marker_tracker.cpp.

References momentum::ParameterTransformT< T >::apply(), momentum::SkeletonStateT< T >::jointState, momentum::Character::locators, MT_CHECK, momentum::Character::parameterTransform, momentum::SkeletonStateT< T >::set(), and momentum::Character::skeleton.

Referenced by calibrateLocators(), and calibrateModel().

◆ sanitizePrimName()

std::string momentum::sanitizePrimName ( const std::string & name)

Sanitize a string for use as a USD SDF prim name.

USD prim names must match [a-zA-Z_][a-zA-Z0-9_]*. This function replaces invalid characters with underscores and prepends an underscore if the name starts with a digit. Empty names become "_".

Parameters
[in]nameThe original name to sanitize.
Returns
A valid USD prim name.

Definition at line 14 of file usd_utils.cpp.

Referenced by saveBlendShapesToUsd(), saveCollisionGeometryToUsd(), and saveLocatorsToUsd().

◆ saveBlendShape() [1/2]

void momentum::saveBlendShape ( const filesystem::path & filename,
const BlendShape & blendShape )

Saves a blend shape to a file.

Parameters
filenameOutput file path for the blend shape data
blendShapeBlendShape object to save

Definition at line 153 of file blend_shape_io.cpp.

References MT_LOGW, and saveBlendShape().

Referenced by saveBlendShape().

◆ saveBlendShape() [2/2]

void momentum::saveBlendShape ( std::ostream & os,
const BlendShape & blendShape )

Saves a blend shape to a stream.

Parameters
osOutput stream to write blend shape data
blendShapeBlendShape object to save

Definition at line 174 of file blend_shape_io.cpp.

References momentum::BlendShape::getBaseShape(), momentum::BlendShapeBase::getShapeVectors(), and MT_CHECK.

◆ saveBlendShapeBase() [1/2]

void momentum::saveBlendShapeBase ( const filesystem::path & filename,
const BlendShapeBase & blendShapeBase )

Saves a blend shape base (shape vectors) to a file.

Parameters
filenameOutput file path for the blend shape data
blendShapeBaseBlendShapeBase object to save

Definition at line 144 of file blend_shape_io.cpp.

References MT_LOGW, and saveBlendShapeBase().

Referenced by saveBlendShapeBase().

◆ saveBlendShapeBase() [2/2]

void momentum::saveBlendShapeBase ( std::ostream & os,
const BlendShapeBase & blendShapeBase )

Saves a blend shape base (shape vectors) to a stream.

Parameters
osOutput stream to write blend shape data
blendShapeBaseBlendShapeBase object to save

Definition at line 162 of file blend_shape_io.cpp.

References momentum::BlendShapeBase::getShapeVectors().

◆ saveBlendShapesToUsd()

void momentum::saveBlendShapesToUsd ( const BlendShape & blendShape,
UsdGeomMesh & meshPrim )

Save blend shapes to a USD stage.

Creates UsdSkelBlendShape prims under the mesh and binds them via UsdSkelBindingAPI.

Parameters
[in]blendShapeThe BlendShape to save.
[in]meshPrimThe UsdGeomMesh prim to attach blend shapes to.

Definition at line 378 of file usd_mesh_io.cpp.

References momentum::BlendShapeBase::getShapeNames(), momentum::BlendShapeBase::getShapeVectors(), momentum::BlendShapeBase::modelSize(), MT_THROW_IF, sanitizePrimName(), and momentum::BlendShapeBase::shapeSize().

◆ saveBvhCharacter()

void momentum::saveBvhCharacter ( const filesystem::path & filepath,
const Character & character )

Saves a character to a BVH file with a single rest-pose frame.

Writes the skeleton hierarchy with default BVH channel layout: root joints get 6 channels (Xposition, Yposition, Zposition, Zrotation, Xrotation, Yrotation), non-root joints get 3 rotation channels (Zrotation, Xrotation, Yrotation).

Parameters
[in]filepathThe output BVH file path.
[in]characterThe character to save.

Definition at line 655 of file bvh_io.cpp.

References momentum::SkeletonT< T >::joints, kParametersPerJoint, MT_THROW_IF, and momentum::Character::skeleton.

◆ saveBvhCharacterWithMotion() [1/2]

std::vector< std::byte > momentum::saveBvhCharacterWithMotion ( const Character & character,
const MotionParameters & motionParams,
float fps )
nodiscard

Saves a character with motion data to a byte buffer in BVH format.

Parameters
[in]characterThe character to save.
[in]motionParamsThe motion parameters (parameter names + motion matrix).
[in]fpsThe frame rate for the BVH file.
Returns
The BVH file content as a byte buffer.

Definition at line 678 of file bvh_io.cpp.

◆ saveBvhCharacterWithMotion() [2/2]

void momentum::saveBvhCharacterWithMotion ( const filesystem::path & filepath,
const Character & character,
const MotionParameters & motionParams,
float fps )

Saves a character with motion data to a BVH file.

Converts Momentum model parameters back to BVH channel values. Rotation values are converted from radians (Momentum ZYX convention) to degrees in the BVH channel order.

Parameters
[in]filepathThe output BVH file path.
[in]characterThe character to save.
[in]motionParamsThe motion parameters (parameter names + motion matrix).
[in]fpsThe frame rate for the BVH file.

Definition at line 666 of file bvh_io.cpp.

References MT_THROW_IF.

◆ saveCharacter() [1/2]

void momentum::saveCharacter ( const filesystem::path & filename,
const Character & character,
float fps,
std::span< const SkeletonState > skeletonStates,
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

High level function to save a character with motion in skeleton states and markers to any supported format.

The format is determined by the file extension (.fbx, .glb, .gltf, .usd, .usda, .usdc). This is a unified interface that automatically selects between FBX, GLTF, and USD based on extension.

Parameters
[in]filenameThe path where the character file will be saved.
[in]characterThe Character object to save.
[in]fpsFrame rate for the animation.
[in]skeletonStatesThe motion represented in skeleton states (ie. JointStates).
[in]markerSequenceOptional marker sequence data to save with the character.
[in]optionsOptional file save options for controlling output (default: FileSaveOptions{}).

Definition at line 204 of file character_io.cpp.

References Fbx, Gltf, MT_THROW, MT_THROW_IF, saveFbxWithSkeletonStates(), saveGltfCharacter(), saveUsdCharacter(), Unknown, and Usd.

◆ saveCharacter() [2/2]

void momentum::saveCharacter ( const filesystem::path & filename,
const Character & character,
float fps = 120.f,
const MatrixXf & motion = MatrixXf(),
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

High level function to save a character with motion and markers to any supported format.

The format is determined by the file extension (.fbx, .glb, .gltf, .usd, .usda, .usdc). This is a unified interface that automatically selects between FBX, GLTF, and USD based on extension.

Parameters
[in]filenameThe path where the character file will be saved.
[in]characterThe Character object to save.
[in]fpsFrame rate for the animation (default: 120.0f).
[in]motionThe motion represented in model parameters (numModelParams, numFrames).
[in]markerSequenceOptional marker sequence data to save with the character.
[in]optionsOptional file save options for controlling output (default: FileSaveOptions{}).

Definition at line 157 of file character_io.cpp.

References Fbx, Gltf, MT_THROW, MT_THROW_IF, momentum::ParameterTransformT< T >::name, momentum::Character::parameterTransform, saveFbx(), saveGltfCharacter(), saveUsdCharacterWithMotion(), Unknown, and Usd.

◆ saveCharacterToBytes()

std::vector< std::byte > momentum::saveCharacterToBytes ( const Character & character,
float fps = 120.0f,
const MotionParameters & motion = {},
const IdentityParameters & offsets = {},
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions(),
std::span< const int64_t > timestamps = {} )

Save a character with motion to a byte buffer.

This function saves a character along with optional motion data, identity parameters, and marker sequences to a byte buffer instead of a file.

Parameters
[in]characterThe Character object to save.
[in]fpsFrame rate of the motion in frames per second (default: 120.0f).
[in]motionOptional motion parameters to save (default: empty).
[in]offsetsOptional identity parameters capturing skeleton bone lengths (default: empty).
[in]markerSequenceOptional marker sequence data to save (default: empty).
[in]optionsOptional file save options for controlling output (default: FileSaveOptions{}).
[in]timestampsOptional per-frame timestamps. Size should match motion columns.
Returns
A byte buffer containing the glTF data.

Definition at line 523 of file gltf_io.cpp.

References makeCharacterDocument().

◆ saveCharacterToLegacyJson()

void momentum::saveCharacterToLegacyJson ( const Character & character,
const std::string & jsonPath )

Saves a Character to legacy JSON format.

This function converts a momentum::Character back to the legacy JSON format for compatibility with existing tools and workflows.

Parameters
[in]characterThe Character to save
[in]jsonPathPath where to save the legacy JSON file
Exceptions
std::runtime_errorif the file cannot be written

Definition at line 638 of file legacy_json_io.cpp.

References characterToLegacyJson(), and MT_THROW_IF.

◆ saveCollisionGeometryToUsd()

void momentum::saveCollisionGeometryToUsd ( const CollisionGeometry & collision,
const Skeleton & skeleton,
const UsdStageRefPtr & stage,
const SdfPath & skelRootPath )

Save collision geometry as child prims under the skeleton.

Definition at line 244 of file usd_skeleton_io.cpp.

References Box, Ellipsoid, momentum::SkeletonT< T >::joints, MT_THROW_IF, sanitizePrimName(), and TaperedCapsule.

◆ saveFbx()

void momentum::saveFbx ( const filesystem::path & filename,
const Character & character,
const MatrixXf & poses = MatrixXf(),
const VectorXf & identity = VectorXf(),
double framerate = 120.0,
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

Save a character with animation to an FBX file.

Blend shape and face expression weights are automatically extracted from the model parameters (poses) when the character has blend shapes or face expression blend shapes configured in its parameter transform. No separate weight arguments are needed.

Parameters
filenamePath to the output FBX file
characterThe character to save
posesModel parameters for each frame (empty for bind pose only)
identityIdentity pose parameters (empty to use bind pose)
framerateAnimation framerate in frames per second
markerSequenceOptional marker sequence data to save with the character
optionsOptional file save options for controlling output (default: FileSaveOptions{})

Definition at line 424 of file fbx_io.cpp.

References MT_THROW.

Referenced by saveCharacter(), and saveMotion().

◆ saveFbxModel()

void momentum::saveFbxModel ( const filesystem::path & filename,
const Character & character,
const FileSaveOptions & options = FileSaveOptions() )

Save a character model (skeleton and mesh) without animation.

Parameters
filenamePath to the output FBX file
characterThe character to save
optionsOptional file save options for controlling output (default: FileSaveOptions{})

Definition at line 458 of file fbx_io.cpp.

References MT_THROW.

◆ saveFbxWithJointParams()

void momentum::saveFbxWithJointParams ( const filesystem::path & filename,
const Character & character,
const MatrixXf & jointParams = MatrixXf(),
double framerate = 120.0,
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

Save a character with animation using joint parameters directly.

Blend shape and face expression weights are automatically extracted from the model parameters when the character has blend shapes or face expression blend shapes configured in its parameter transform. Since joint parameters do not contain blend shape weights, this function does not save blend shape animation. Use saveFbx() with model parameters to include blend shape animation.

Parameters
filenamePath to the output FBX file
characterThe character to save
jointParamsJoint parameters for each frame (empty for bind pose only)
framerateAnimation framerate in frames per second
markerSequenceOptional marker sequence data to save with the character
optionsOptional file save options for controlling output (default: FileSaveOptions{})

Definition at line 436 of file fbx_io.cpp.

References MT_THROW.

◆ saveFbxWithSkeletonStates()

void momentum::saveFbxWithSkeletonStates ( const filesystem::path & filename,
const Character & character,
std::span< const SkeletonState > skeletonStates,
double framerate = 120.0,
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

Save a character with animation using skeleton states directly.

Since skeleton states do not contain blend shape weights, this function does not save blend shape animation. Use saveFbx() with model parameters to include blend shape animation.

Parameters
filenamePath to the output FBX file
characterThe character to save
skeletonStatesSkeletonState for each frame (empty for bind pose only)
framerateAnimation framerate in frames per second
markerSequenceOptional marker sequence data to save with the character
optionsOptional file save options for controlling output (default: FileSaveOptions{})

Definition at line 447 of file fbx_io.cpp.

References MT_THROW.

Referenced by saveCharacter().

◆ saveGltfCharacter() [1/2]

void momentum::saveGltfCharacter ( const filesystem::path & filename,
const Character & character,
float fps,
std::span< const SkeletonState > skeletonStates,
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

Save a character with skeleton states to a glTF file.

This function saves a character along with skeleton states (transform matrices for each joint at each frame) to a glTF file. This is an alternative to saving model parameters.

Parameters
[in]filenameThe path where the glTF file will be saved.
[in]characterThe Character object to save.
[in]fpsFrame rate of the motion in frames per second.
[in]skeletonStatesThe skeleton states for each frame of the motion sequence.
[in]markerSequenceOptional marker sequence data to save (default: empty).
[in]optionsOptional file save options for controlling output (default: FileSaveOptions{}).

Definition at line 509 of file gltf_io.cpp.

References momentum::FileSaveOptions::gltfFileFormat, makeCharacterDocument(), and momentum::GltfBuilder::save().

◆ saveGltfCharacter() [2/2]

void momentum::saveGltfCharacter ( const filesystem::path & filename,
const Character & character,
float fps = 120.0f,
const MotionParameters & motion = {},
const IdentityParameters & offsets = {},
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions(),
std::span< const int64_t > timestamps = {} )

Save a character with motion to a glTF file.

This function saves a character along with optional motion data, identity parameters, and marker sequences to a glTF file.

Parameters
[in]filenameThe path where the glTF file will be saved.
[in]characterThe Character object to save.
[in]fpsFrame rate of the motion in frames per second (default: 120.0f).
[in]motionOptional motion parameters to save (default: empty).
[in]offsetsOptional identity parameters capturing skeleton bone lengths (default: empty).
[in]markerSequenceOptional marker sequence data to save (default: empty).
[in]optionsOptional file save options for controlling output (default: FileSaveOptions{}).
[in]timestampsOptional per-frame timestamps. Size should match motion columns.

Definition at line 493 of file gltf_io.cpp.

References momentum::FileSaveOptions::gltfFileFormat, makeCharacterDocument(), and momentum::GltfBuilder::save().

Referenced by saveCharacter(), and saveCharacter().

◆ saveLocators()

void momentum::saveLocators ( const filesystem::path & filename,
const LocatorList & locators,
const Skeleton & skeleton,
const LocatorSpace space )

◆ saveLocatorsToUsd()

void momentum::saveLocatorsToUsd ( const LocatorList & locators,
const Skeleton & skeleton,
const UsdStageRefPtr & stage,
const SdfPath & skelRootPath )

Save locators as child prims under the skeleton.

Definition at line 389 of file usd_skeleton_io.cpp.

References momentum::SkeletonT< T >::joints, MT_THROW_IF, and sanitizePrimName().

◆ saveMarkerSequenceToUsd()

void momentum::saveMarkerSequenceToUsd ( const UsdStageRefPtr & stage,
const SdfPath & skelRootPath,
float fps,
std::span< const std::vector< Marker > > markerSequence )

Save marker sequence as animated Xform prims under a Markers scope.

Creates Xform prims for each unique marker with time-sampled translations and occlusion attributes.

Parameters
[in]stageThe USD stage to write to.
[in]skelRootPathThe path to the SkelRoot prim under which to create the Markers scope.
[in]fpsFrames per second for the animation.
[in]markerSequenceThe marker data to save (one vector of markers per frame).

Definition at line 340 of file usd_animation_io.cpp.

References MT_CHECK.

Referenced by saveUsdCharacter(), and saveUsdCharacterWithMotion().

◆ saveMeshToUsd()

void momentum::saveMeshToUsd ( const Mesh & mesh,
UsdGeomMesh & meshPrim )

Save a mesh to a USD stage.

Writes vertices and faces to the given UsdGeomMesh prim.

Parameters
[in]meshThe Mesh to save.
[in]meshPrimThe UsdGeomMesh prim to write to.

Definition at line 272 of file usd_mesh_io.cpp.

References momentum::MeshT< T >::colors, momentum::MeshT< T >::confidence, momentum::MeshT< T >::faces, MT_LOGW, normal(), momentum::MeshT< T >::normals, and momentum::MeshT< T >::vertices.

◆ saveMmo() [1/3]

void momentum::saveMmo ( const std::string & filename,
const MatrixXf & poses,
const VectorXf & scale,
const Character & character,
const MatrixXf & additionalParameters = MatrixXf(),
std::span< const std::string > additionalParameterNames = std::vector< std::string >() )

Save motion data with optional additional parameters.

Parameters
filenameOutput file path
posesMotion poses matrix (parameters x frames)
scaleJoint scale parameters
characterCharacter definition for parameter mapping
additionalParametersExtra parameters to store alongside poses
additionalParameterNamesNames for additional parameters

Definition at line 44 of file mmo_io.cpp.

References momentum::SkeletonT< T >::joints, kParametersPerJoint, MT_LOGW, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, saveMmo(), and momentum::Character::skeleton.

◆ saveMmo() [2/3]

void momentum::saveMmo ( const std::string & filename,
const MatrixXf & poses,
const VectorXf & scale,
std::span< const std::string > parameterNames,
std::span< const std::string > jointNames )

Save motion data with explicit parameter and joint names.

Parameters
filenameOutput file path
posesMotion poses matrix (parameters x frames)
scaleJoint scale parameters
parameterNamesNames of motion parameters
jointNamesNames of skeleton joints

Definition at line 114 of file mmo_io.cpp.

References kParametersPerJoint, and MT_LOGW.

◆ saveMmo() [3/3]

void momentum::saveMmo ( const std::string & filename,
std::span< const VectorXf > poses,
const VectorXf & scale,
const Character & character )

Save motion data using character parameter mapping.

Parameters
filenameOutput file path
posesMotion poses as span of vectors, each vector represents one frame
scaleJoint scale parameters
characterCharacter definition for parameter mapping

Definition at line 18 of file mmo_io.cpp.

References MT_LOGW, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, and saveMmo().

Referenced by saveMmo(), and saveMmo().

◆ saveMotion()

void momentum::saveMotion ( const std::string & outFile,
const momentum::Character & character,
const momentum::ModelParameters & identity,
Eigen::MatrixXf & finalMotion,
std::span< const std::vector< momentum::Marker > > markerData,
double fps,
bool saveMarkerMesh = true,
std::span< const int64_t > timestamps = {} )

Save the given character and motion to a GLB or FBX file.

Parameters
[in]outFileThe GLB/FBX file to save to
[in]characterThe GLB/FBX file to save to
[in]identityThe identity parameters used for the character
[in]finalMotionThe motion save to the file. (Note: this may be modified to remove scaling parameters if saveScaleToMotion is false)
[in]markerDataMarker data to save to the file
[in]fpsFramerate of the motion
[in]saveMarkerMesh(optional) Whether to save a visible cube mesh for the markers
[in]saveScaleToMotion(optional) Whether to save the scale parameters to the motion or identity parameter vectors (saving to motion is preferred)
[in]timestampsPer-frame timestamps. Size should match motion columns.

Definition at line 195 of file app_utils.cpp.

References momentum::GltfBuilder::addMarkerSequence(), momentum::GltfBuilder::addMotion(), momentum::ParameterTransformT< T >::apply(), extractParameters(), momentum::SkeletonT< T >::getJointNames(), momentum::ParameterTransformT< T >::getScalingParameters(), momentum::ParameterTransformT< T >::name, momentum::GltfBuilder::None, momentum::Character::parameterTransform, removeIdentity(), momentum::GltfBuilder::save(), saveFbx(), momentum::Character::skeleton, momentum::GltfBuilder::UnitCube, and momentum::EigenStrongType< Derived, EigenType >::v.

Referenced by processMarkerFile().

◆ saveMotionToUsd()

void momentum::saveMotionToUsd ( const UsdPrim & prim,
float fps,
const MotionParameters & motion,
const IdentityParameters & offsets )

Save model-parameter motion as custom attributes on a USD prim.

Definition at line 219 of file usd_animation_io.cpp.

Referenced by saveUsdCharacterWithMotion().

◆ saveMppca()

void momentum::saveMppca ( const Mppca & mppca,
const std::string & name )

◆ saveSkeletonStatesToUsd()

void momentum::saveSkeletonStatesToUsd ( const UsdStageRefPtr & stage,
UsdSkelSkeleton & skelPrim,
const Skeleton & skeleton,
std::span< const SkeletonState > skeletonStates,
float fps )

Save skeleton states as a UsdSkelAnimation on the stage.

Creates a UsdSkelAnimation prim with time-sampled translations, rotations, and scales per joint per frame.

Parameters
[in]stageThe USD stage to write to.
[in]skelPrimThe skeleton prim to bind the animation to.
[in]skeletonThe skeleton definition (for joint names).
[in]skeletonStatesThe skeleton states to save (one per frame).
[in]fpsFrames per second for the animation.

Definition at line 54 of file usd_animation_io.cpp.

References buildHierarchicalPaths(), momentum::SkeletonT< T >::joints, and MT_CHECK.

Referenced by saveUsdCharacter(), and saveUsdCharacterWithMotion().

◆ saveSkeletonToUsd()

void momentum::saveSkeletonToUsd ( const Skeleton & skeleton,
UsdSkelSkeleton & skelPrim )

Save a skeleton to a USD stage.

Definition at line 217 of file usd_skeleton_io.cpp.

References buildHierarchicalPaths(), and momentum::SkeletonT< T >::joints.

◆ saveSkinWeightsToUsd()

void momentum::saveSkinWeightsToUsd ( const SkinWeights & skinWeights,
UsdGeomMesh & meshPrim,
const UsdSkelSkeleton & skelPrim )

Save skin weights to a USD stage.

Writes joint indices and weights to the given UsdGeomMesh prim via UsdSkelBindingAPI, and binds it to the specified skeleton.

Parameters
[in]skinWeightsThe SkinWeights to save.
[in]meshPrimThe UsdGeomMesh prim to write skinning data to.
[in]skelPrimThe UsdSkelSkeleton prim to bind to.

Definition at line 337 of file usd_mesh_io.cpp.

References momentum::SkinWeights::index, and momentum::SkinWeights::weight.

◆ saveUsd()

void momentum::saveUsd ( const filesystem::path & filename,
const Character & character,
const FileSaveOptions & options = FileSaveOptions() )

Save a character to a USD file.

Parameters
[in]filenameThe path to save the USD file.
[in]characterThe Character object to save.
[in]optionsOptional file save options for controlling output.

Definition at line 613 of file usd_io.cpp.

◆ saveUsdCharacter()

void momentum::saveUsdCharacter ( const filesystem::path & filename,
const Character & character,
float fps,
std::span< const SkeletonState > skeletonStates,
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

Save a character with skeleton state animation to a USD file.

Parameters
[in]filenameThe path to save the USD file.
[in]characterThe Character object to save.
[in]fpsFrames per second for the animation.
[in]skeletonStatesThe skeleton states to save (one per frame).
[in]markerSequenceOptional marker sequence to save.
[in]optionsOptional file save options for controlling output.

Definition at line 651 of file usd_io.cpp.

References saveMarkerSequenceToUsd(), saveSkeletonStatesToUsd(), and momentum::Character::skeleton.

Referenced by saveCharacter().

◆ saveUsdCharacterWithMotion()

void momentum::saveUsdCharacterWithMotion ( const filesystem::path & filename,
const Character & character,
float fps = 120.0f,
const MotionParameters & motion = {},
const IdentityParameters & offsets = {},
std::span< const std::vector< Marker > > markerSequence = {},
const FileSaveOptions & options = FileSaveOptions() )

Save a character with model-parameter motion to a USD file.

Parameters
[in]filenameThe path to save the USD file.
[in]characterThe Character object to save.
[in]fpsFrames per second for the animation.
[in]motionThe motion data (parameter names, poses matrix).
[in]offsetsThe identity parameters (joint names, offset values).
[in]markerSequenceOptional marker sequence to save.
[in]optionsOptional file save options for controlling output.

Definition at line 674 of file usd_io.cpp.

References momentum::ParameterTransformT< T >::apply(), momentum::Character::parameterTransform, saveMarkerSequenceToUsd(), saveMotionToUsd(), saveSkeletonStatesToUsd(), and momentum::Character::skeleton.

Referenced by saveCharacter().

◆ scaleCharacter()

Character momentum::scaleCharacter ( const Character & character,
float scale,
CharacterMassScale massScale = CharacterMassScale::PreserveMass )
nodiscard

Scales the character (mesh and skeleton) by the desired amount.

Note that this should primarily be used when transforming the character into different units. If you simply want to apply an identity-specific scale to the character, you should use the 'scale_global' parameter in the ParameterTransform class.

The optional mass scale policy controls how physical mass changes during the scale. With PreserveMass, inertia scales by scale^2; with PreserveDensity, mass scales by scale^3 and inertia scales by scale^5.

Precondition
scale > 0.0f.

Definition at line 419 of file character_utility.cpp.

References momentum::Character::blendShape, momentum::Character::collision, momentum::Character::faceExpressionBlendShape, momentum::Character::inverseBindPose, momentum::Character::locators, momentum::Character::mesh, MT_CHECK, momentum::Character::name, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::Character::physicalProperties, momentum::Character::poseShapes, momentum::Character::skeleton, and momentum::Character::skinWeights.

◆ scaleFactor()

template<typename T>
T momentum::scaleFactor ( const CoordinateSystem & from,
const CoordinateSystem & to )
nodiscard

Returns the length scale factor when converting a length from from's unit to to's unit.

For example, with from.unit == Meter and to.unit == Centimeter the result is 100. Depends only on the unit fields of from and to; ignores up and hand.

Definition at line 94 of file coordinate_system.cpp.

References momentum::CoordinateSystem::unit.

Referenced by changeVector(), and toMomentumVector3().

◆ scaleFactor< double >()

template double momentum::scaleFactor< double > ( const CoordinateSystem & ,
const CoordinateSystem &  )

◆ scaleFactor< float >()

template float momentum::scaleFactor< float > ( const CoordinateSystem & ,
const CoordinateSystem &  )

◆ setAccessorType()

template<typename T>
void momentum::setAccessorType ( fx::gltf::Accessor & )

Definition at line 129 of file accessor_utils.h.

References MT_THROW.

Referenced by createAccessorBuffer().

◆ setAccessorType< const float >()

template<>
void momentum::setAccessorType< const float > ( fx::gltf::Accessor & accessor)
inline

Definition at line 213 of file accessor_utils.h.

◆ setAccessorType< const int32_t >()

template<>
void momentum::setAccessorType< const int32_t > ( fx::gltf::Accessor & accessor)
inline

Definition at line 207 of file accessor_utils.h.

◆ setAccessorType< const Matrix4f >()

template<>
void momentum::setAccessorType< const Matrix4f > ( fx::gltf::Accessor & accessor)
inline

Definition at line 261 of file accessor_utils.h.

◆ setAccessorType< const Vector2f >()

template<>
void momentum::setAccessorType< const Vector2f > ( fx::gltf::Accessor & accessor)
inline

Definition at line 219 of file accessor_utils.h.

◆ setAccessorType< const Vector3b >()

template<>
void momentum::setAccessorType< const Vector3b > ( fx::gltf::Accessor & accessor)
inline

Definition at line 237 of file accessor_utils.h.

◆ setAccessorType< const Vector3f >()

template<>
void momentum::setAccessorType< const Vector3f > ( fx::gltf::Accessor & accessor)
inline

Definition at line 225 of file accessor_utils.h.

◆ setAccessorType< const Vector3i >()

template<>
void momentum::setAccessorType< const Vector3i > ( fx::gltf::Accessor & accessor)
inline

Definition at line 243 of file accessor_utils.h.

◆ setAccessorType< const Vector4b >()

template<>
void momentum::setAccessorType< const Vector4b > ( fx::gltf::Accessor & accessor)
inline

Definition at line 255 of file accessor_utils.h.

◆ setAccessorType< const Vector4f >()

template<>
void momentum::setAccessorType< const Vector4f > ( fx::gltf::Accessor & accessor)
inline

Definition at line 231 of file accessor_utils.h.

◆ setAccessorType< const Vector4s >()

template<>
void momentum::setAccessorType< const Vector4s > ( fx::gltf::Accessor & accessor)
inline

Definition at line 249 of file accessor_utils.h.

◆ setCameraIntrinsics()

void momentum::setCameraIntrinsics ( const ParameterTransform & paramTransform,
const IntrinsicsModel & intrinsicsModel,
ModelParameters & modelParams )

Write camera intrinsic parameter values from an IntrinsicsModel into model parameters.

Copies the intrinsics model's current parameter values into the corresponding slots of modelParameters. Parameters not present in paramTransform are silently skipped.

Parameters
paramTransformThe parameter transform with camera intrinsics parameters
intrinsicsModelThe intrinsics model to read values from
[in,out]modelParamsThe model parameters to write into

Definition at line 115 of file camera_intrinsics_parameters.cpp.

References kTiedFocalLengthSuffix, and momentum::EigenStrongType< Derived, EigenType >::size().

◆ setLogLevel() [1/2]

void momentum::setLogLevel ( const std::string & levelStr)

Parses levelStr (case-insensitive: "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "DISABLED") and forwards to setLogLevel(LogLevel).

Exceptions
std::invalid_argumentif levelStr is not one of the recognized names.

Definition at line 125 of file log.cpp.

References setLogLevel().

◆ setLogLevel() [2/2]

void momentum::setLogLevel ( LogLevel level)

Sets the global log threshold; messages below level are filtered out.

Forwards to the active backend (XR logger / spdlog). When no backend is compiled in, the value is recorded in a process-local fallback so that getLogLevel round-trips.

Definition at line 114 of file log.cpp.

Referenced by setLogLevel().

◆ setTimeSeconds()

void momentum::setTimeSeconds ( const rerun::RecordingStream & rec,
const std::string & timelineName,
double seconds )
inline

Definition at line 70 of file rerun_compat.h.

◆ setupGloveErrorFunctions()

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.

Creates error function instances, adds them to the SkeletonSolverFunction, and builds the per-frame constraint data. Returns nullopt if the glove data is empty or the glove bone is not found.

Parameters
[in,out]solverFuncSkeleton solver to register error functions with.
[in]characterCharacter with glove bones.
[in]gloveDataPer-frame glove sensor observations.
[in]cfgGlove configuration.
[in]handIndexHand index (0=left, 1=right).
Returns
GloveErrorFunctions if successfully set up, nullopt otherwise.

Definition at line 352 of file glove_utils.cpp.

References momentum::SkeletonSolverFunctionT< T >::addErrorFunction(), createGloveOrientationConstraintData(), createGlovePositionConstraintData(), momentum::SkeletonT< T >::getJointIdByName(), kInvalidIndex, momentum::OrientationErrorFunctionT< float >::kLegacyWeight, momentum::PositionErrorFunctionT< float >::kLegacyWeight, momentum::GloveErrorFunctions::oriData, momentum::GloveConfig::orientationWeight, momentum::GloveErrorFunctions::oriFunc, momentum::GloveErrorFunctions::posData, momentum::GloveErrorFunctions::posFunc, momentum::GloveConfig::positionWeight, momentum::Character::skeleton, and momentum::GloveConfig::wristJointNames.

Referenced by trackPosesForFrames().

◆ skeletonStateToJointParameters() [1/6]

template JointParametersT< double > momentum::skeletonStateToJointParameters ( const SkeletonStateT< double > & state,
const Skeleton & skeleton )

◆ skeletonStateToJointParameters() [2/6]

template JointParametersT< float > momentum::skeletonStateToJointParameters ( const SkeletonStateT< float > & state,
const Skeleton & skeleton )

◆ skeletonStateToJointParameters() [3/6]

template<typename T>
JointParametersT< T > momentum::skeletonStateToJointParameters ( const SkeletonStateT< T > & state,
const Skeleton & skeleton )
nodiscard

The "RespectingActiveParameters" variants use rotationMatrixToOneAxisEuler or rotationMatrixToTwoAxisEuler for joints with restricted DOF, avoiding Euler angle ambiguity that the standard 3-axis extraction suffers from.

Scenario Function
General 3-axis joints skeletonStateToJointParameters(state, skeleton)
Joints with <3 rotation DOF skeletonStateToJointParametersRespectingActiveParameters(state, skeleton, activeJointParams)
Starting from transforms skeletonStateToJointParameters(transforms, skeleton)
Transforms + constrained DOF skeletonStateToJointParametersRespectingActiveParameters(transforms, skeleton, activeJointParams)

Invert the skeleton state (global transforms in world space) back to joint parameters (Euler angles in local space). Note that this conversion is not unique due to the non-uniqueness of Euler angle conversion.

Warning
Euler angle extraction is numerically unstable near gimbal lock (ยฑ90ยฐ pitch / Y-axis rotation). Near these configurations:
  • Float precision: round-trip FK โ†’ inverse FK can shift angles by ~1e-3 radians
  • Double precision: ~1e-10 radians
  • The extracted angles may "flip" to an equivalent but numerically different representation

For joints with fewer than 3 rotation DOF, prefer skeletonStateToJointParametersRespectingActiveParameters() which uses constrained Euler extraction and avoids the ambiguity entirely.

Definition at line 246 of file skeleton_state.cpp.

References momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, kParametersPerJoint, momentum::EigenStrongType< Derived, EigenType >::v, and momentum::EigenStrongType< JointParametersT, ::Eigen::VectorX< T > >::Zero().

◆ skeletonStateToJointParameters() [4/6]

template JointParametersT< double > momentum::skeletonStateToJointParameters ( const TransformListT< double > & state,
const Skeleton & skeleton )

◆ skeletonStateToJointParameters() [5/6]

template JointParametersT< float > momentum::skeletonStateToJointParameters ( const TransformListT< float > & state,
const Skeleton & skeleton )

◆ skeletonStateToJointParameters() [6/6]

◆ skeletonStateToJointParametersRespectingActiveParameters() [1/6]

template JointParametersT< double > momentum::skeletonStateToJointParametersRespectingActiveParameters ( const SkeletonStateT< double > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams )

◆ skeletonStateToJointParametersRespectingActiveParameters() [2/6]

template JointParametersT< float > momentum::skeletonStateToJointParametersRespectingActiveParameters ( const SkeletonStateT< float > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams )

◆ skeletonStateToJointParametersRespectingActiveParameters() [3/6]

template<typename T>
JointParametersT< T > momentum::skeletonStateToJointParametersRespectingActiveParameters ( const SkeletonStateT< T > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams )
nodiscard

Converts skeleton state back to joint parameters, respecting active joint parameter constraints.

This function addresses the limitation of the original skeletonStateToJointParameters which always uses 3-axis Euler rotations. Many joints only support 1-axis or 2-axis rotations, so this function uses the provided activeJointParams to determine how many rotation axes are active for each joint and applies the appropriate conversion method:

Template Parameters
TThe scalar type (float or double)
Parameters
[in]stateThe skeleton state to convert
[in]skeletonThe skeleton defining joint hierarchy and properties
[in]activeJointParamsBoolean array indicating which joint parameters are active. Size should be skeleton.joints.size() * kParametersPerJoint
Returns
Joint parameters with rotations respecting the active parameter constraints

Definition at line 346 of file skeleton_state.cpp.

References momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, kParametersPerJoint, MT_CHECK, momentum::EigenStrongType< Derived, EigenType >::v, and momentum::EigenStrongType< JointParametersT, ::Eigen::VectorX< T > >::Zero().

◆ skeletonStateToJointParametersRespectingActiveParameters() [4/6]

template JointParametersT< double > momentum::skeletonStateToJointParametersRespectingActiveParameters ( const TransformListT< double > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams )

◆ skeletonStateToJointParametersRespectingActiveParameters() [5/6]

template JointParametersT< float > momentum::skeletonStateToJointParametersRespectingActiveParameters ( const TransformListT< float > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams )

◆ skeletonStateToJointParametersRespectingActiveParameters() [6/6]

template<typename T>
JointParametersT< T > momentum::skeletonStateToJointParametersRespectingActiveParameters ( const TransformListT< T > & state,
const Skeleton & skeleton,
const VectorX< bool > & activeJointParams )
nodiscard

Converts transform list back to joint parameters, respecting active joint parameter constraints.

This function addresses the limitation of the original skeletonStateToJointParameters which always uses 3-axis Euler rotations. Many joints only support 1-axis or 2-axis rotations, so this function uses the provided activeJointParams to determine how many rotation axes are active for each joint and applies the appropriate conversion method:

Template Parameters
TThe scalar type (float or double)
Parameters
[in]stateThe transform list to convert
[in]skeletonThe skeleton defining joint hierarchy and properties
[in]activeJointParamsBoolean array indicating which joint parameters are active. Size should be skeleton.joints.size() * kParametersPerJoint
Returns
Joint parameters with rotations respecting the active parameter constraints

Definition at line 372 of file skeleton_state.cpp.

References momentum::TransformT< T >::inverse(), momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, MT_CHECK, momentum::EigenStrongType< Derived, EigenType >::v, and momentum::EigenStrongType< JointParametersT, ::Eigen::VectorX< T > >::Zero().

◆ skinnedLocatorsToLocators()

momentum::Character momentum::skinnedLocatorsToLocators ( const momentum::Character & sourceCharacter)

Convert skinned locators to regular locators by selecting the bone with the highest skin weight.

This is useful when exporting to file formats that don't support skinned locators (e.g., Maya). Each skinned locator will be converted to a regular locator attached to the bone with the highest weight. The position will be transformed from the rest pose space to the local space of the selected bone.

Parameters
sourceCharacterCharacter with skinned locators to convert
Returns
Character with skinned locators converted to regular locators

Definition at line 340 of file tracker_utils.cpp.

References momentum::Character::blendShape, momentum::Character::collision, momentum::Character::faceExpressionBlendShape, momentum::Character::inverseBindPose, momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, kMaxSkinJoints, momentum::Locator::limitOrigin, momentum::Locator::limitWeight, momentum::Character::locators, momentum::Locator::locked, momentum::Character::mesh, MT_LOGI, MT_LOGT, momentum::Character::name, momentum::Locator::name, momentum::ParameterTransformT< T >::numJointParameters(), momentum::Locator::offset, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::Locator::parent, momentum::Character::poseShapes, momentum::Character::skeleton, momentum::Character::skinnedLocators, momentum::Character::skinWeights, momentum::Locator::weight, and momentum::EigenStrongType< Derived, EigenType >::Zero().

◆ skinWithBlendShapes() [1/6]

template void momentum::skinWithBlendShapes ( const Character & character,
const SkeletonStateT< double > & state,
const BlendWeightsT< double > & modelParams,
MeshT< double > & outputMesh )

References skinWithBlendShapes().

◆ skinWithBlendShapes() [2/6]

template void momentum::skinWithBlendShapes ( const Character & character,
const SkeletonStateT< double > & state,
const ModelParametersT< double > & modelParams,
MeshT< double > & outputMesh )

References skinWithBlendShapes().

◆ skinWithBlendShapes() [3/6]

template void momentum::skinWithBlendShapes ( const Character & character,
const SkeletonStateT< float > & state,
const BlendWeightsT< float > & modelParams,
MeshT< float > & outputMesh )

References skinWithBlendShapes().

◆ skinWithBlendShapes() [4/6]

template void momentum::skinWithBlendShapes ( const Character & character,
const SkeletonStateT< float > & state,
const ModelParametersT< float > & modelParams,
MeshT< float > & outputMesh )

References skinWithBlendShapes().

◆ skinWithBlendShapes() [5/6]

template<typename T>
void momentum::skinWithBlendShapes ( const Character & character,
const SkeletonStateT< T > & state,
const BlendWeightsT< T > & blendWeights,
MeshT< T > & outputMesh )

Applies blend shape deformations and skeletal transformations to a mesh.

Computes the final vertex positions by applying blend shape offsets to the base mesh, then transforming the resulting vertices using linear blend skinning based on the skeleton state. Use this overload when you already have pre-calculated blend weights.

Parameters
characterCharacter containing mesh, blend shapes, and skinning data
stateCurrent pose of the skeleton
blendWeightsWeights for each blend shape
[out]outputMeshResulting deformed mesh

Definition at line 60 of file blend_shape_skinning.cpp.

References momentum::Character::blendShape, momentum::Character::inverseBindPose, momentum::SkeletonStateT< T >::jointState, momentum::Character::mesh, MT_CHECK, momentum::EigenStrongType< Derived, EigenType >::size(), momentum::Character::skinWeights, and momentum::MeshT< T >::vertices.

◆ skinWithBlendShapes() [6/6]

template<typename T>
void momentum::skinWithBlendShapes ( const Character & character,
const SkeletonStateT< T > & state,
const ModelParametersT< T > & modelParams,
MeshT< T > & outputMesh )

Applies blend shape deformations and skeletal transformations to a mesh.

Overload that extracts blend shape weights from modelParams via the character's parameter transform before skinning.

Parameters
characterCharacter containing mesh, blend shapes, and skinning data
stateCurrent pose of the skeleton
modelParamsModel parameters; blend shape weights are extracted from these
[out]outputMeshResulting deformed mesh

Definition at line 50 of file blend_shape_skinning.cpp.

References extractBlendWeights(), momentum::Character::parameterTransform, and skinWithBlendShapes().

Referenced by momentum::CharacterStateT< T >::set(), skinWithBlendShapes(), skinWithBlendShapes(), skinWithBlendShapes(), skinWithBlendShapes(), and skinWithBlendShapes().

◆ slerp() [1/3]

template TransformT< double > momentum::slerp ( const TransformT< double > & ,
const TransformT< double > & ,
double  )

◆ slerp() [2/3]

template TransformT< float > momentum::slerp ( const TransformT< float > & ,
const TransformT< float > & ,
float  )

◆ slerp() [3/3]

template<typename T>
TransformT< T > momentum::slerp ( const TransformT< T > & t1,
const TransformT< T > & t2,
T weight )

Spherical linear interpolation between two transforms.

Parameters
weightInterpolation parameter in [0, 1]; 0 returns t1, 1 returns t2.

Definition at line 156 of file transform.cpp.

References momentum::TransformT< T >::rotation, momentum::TransformT< T >::scale, and momentum::TransformT< T >::translation.

◆ solveRigidInitialization()

bool momentum::solveRigidInitialization ( GaussNewtonSolverQR & solver,
GaussNewtonSolverQROptions & solverOptions,
Eigen::VectorXf & dof,
const ParameterTransform & pt,
const ParameterSet & poseParams,
const std::shared_ptr< ModelParametersErrorFunction > & smoothConstrFunc,
const TrackingConfig & config,
bool isContinuous,
size_t iFrame )

Solve for rigid parameters only as initialization for a frame.

When starting tracking (or re-starting for non-continuous mode), we first solve for only the rigid body parameters to get a rough global pose before solving for the full set of pose parameters.

Returns
false (to clear the needsInit flag)

Definition at line 801 of file marker_tracker.cpp.

References momentum::BaseConfig::debug, momentum::ParameterTransformT< T >::getRigidParameters(), momentum::BaseConfig::maxIter, momentum::SolverOptions::maxIterations, MT_LOGI_IF, momentum::SolverT< T >::setEnabledParameters(), momentum::GaussNewtonSolverQRT< T >::setOptions(), momentum::TrackingConfig::smoothing, and momentum::SolverT< T >::solve().

Referenced by trackPosesForFrames().

◆ splitMeshByTextureRegion()

Mesh momentum::splitMeshByTextureRegion ( const Mesh & mesh,
const TextureView & texture,
const RegionColorsView & regionColors,
int32_t numBinarySearchSteps = 8 )

Split mesh triangles along texture region boundaries.

For each face, classifies its texcoord vertices as inside or outside the specified region colors. Faces fully inside are kept, fully outside are discarded, and boundary faces are split by binary-searching for the crossing point along each edge in UV space.

Parameters
meshThe mesh with vertices, faces, texcoords, and texcoord_faces.
textureRGB texture image data.
regionColorsRGB colors defining the "inside" region.
numBinarySearchStepsNumber of binary search iterations for edge crossing precision (8 gives 1/256 sub-pixel accuracy).
Returns
A new Mesh containing only the inside portion, with boundary triangles split along the texture region boundary.

Definition at line 320 of file texture_classification.cpp.

References momentum::MeshT< T >::colors, momentum::MeshT< T >::confidence, momentum::MeshT< T >::faces, MT_THROW_IF, momentum::MeshT< T >::normals, reduceMeshByFaces< float >(), momentum::MeshT< T >::texcoord_faces, momentum::MeshT< T >::texcoords, and momentum::MeshT< T >::vertices.

◆ sqr() [1/2]

◆ sqr() [2/2]

float momentum::sqr ( float val)

Definition at line 70 of file fully_differentiable_body_ik.cpp.

◆ subsetParameterTransform() [1/3]

template std::tuple< ParameterTransformT< double >, ParameterLimits > momentum::subsetParameterTransform ( const ParameterTransformT< double > & paramTransform,
const ParameterLimits & parameterLimits,
const ParameterSet & paramSet )

◆ subsetParameterTransform() [2/3]

template std::tuple< ParameterTransformT< float >, ParameterLimits > momentum::subsetParameterTransform ( const ParameterTransformT< float > & paramTransform,
const ParameterLimits & parameterLimits,
const ParameterSet & paramSet )

◆ subsetParameterTransform() [3/3]

◆ subsetVecToFullVec()

template<typename T>
Eigen::VectorX< T > momentum::subsetVecToFullVec ( Eigen::Ref< const Eigen::VectorX< T > > subsetVec,
const std::vector< Eigen::Index > & subsetIndexToFullParamIndex,
Eigen::Index fullVecSize )

Definition at line 59 of file fully_differentiable_body_ik.cpp.

Referenced by d_modelParams_d_inputs().

◆ times_parameterTransform_times_v()

template<typename T, typename T2>
T momentum::times_parameterTransform_times_v ( const T & value,
const size_t jointParamIdx,
const ParameterTransform & parameterTransform,
Eigen::Ref< const Eigen::VectorX< T2 > > v )

◆ toCm()

template<typename T = float>
T momentum::toCm ( T x = T(1))
nodiscardconstexprnoexcept

Converts the given length x (in meters) to centimeters.

If called without an argument, it returns the conversion factor from meters to centimeters.

Definition at line 96 of file constants.h.

◆ toDeg()

template<typename T = float>
T momentum::toDeg ( T x = T(1))
nodiscardconstexprnoexcept

Converts the given angle x (in radians) to degrees.

If called without an argument, it returns the conversion factor from radians to degrees.

Definition at line 78 of file constants.h.

References pi().

Referenced by momentum::fbx_internal::createCollisionGeometryNodes(), momentum::fbx_internal::createSkeletonNodes(), momentum::fbx_internal::jointParamToFbx(), and writeParameterLimits().

◆ toGltfSamplerType()

fx::gltf::Animation::Sampler::Type momentum::toGltfSamplerType ( GltfAnimationInterpolation interpolation)
inline

Converts the save option to the GLTF sampler interpolation type.

Definition at line 268 of file accessor_utils.h.

References Linear, and Step.

Referenced by createSampler(), and createSampler().

◆ toJson()

template<typename Derived>
void momentum::toJson ( const Eigen::MatrixBase< Derived > & mat,
nlohmann::json & j )

Definition at line 30 of file json_utils.h.

◆ tokenize() [1/2]

std::vector< std::string > momentum::tokenize ( const std::string & inputString,
const std::string & delimiters = " \t\r\n",
bool trim = true )

Tokenizes a string using the specified single-byte delimiter characters.

Splits inputString at every occurrence of any character in delimiters. Comparison is byte-wise (via std::string::find_first_of), so multi-byte UTF-8 sequences in delimiters are treated as a set of independent bytes rather than code points.

When inputString is empty an empty vector is returned. Otherwise the result has at least one element, possibly empty. Each returned token is a freshly allocated copy of a substring of inputString.

Parameters
inputStringThe string to tokenize.
delimitersThe set of single-byte delimiter characters.
trimWhen true (the default), empty tokens (produced by leading, trailing, or consecutive delimiters) are dropped from the result. When false, empty tokens are preserved. Note: this parameter does not strip whitespace from non-empty tokens despite its name.
Returns
A vector of tokenized strings.

Definition at line 42 of file string.cpp.

References trim().

Referenced by loadTrc(), parseParameterSets(), parseParameterTransform(), and parsePoseConstraints().

◆ tokenize() [2/2]

std::vector< std::string_view > momentum::tokenize ( std::string_view inputString,
std::string_view delimiters = " \t\r\n",
bool trim = true )

Tokenizes a string_view using the specified single-byte delimiter characters.

Behaves identically to the std::string overload, except that the returned tokens are std::string_view instances aliasing inputString's underlying buffer. The caller must ensure that buffer outlives the returned vector.

Parameters
inputStringThe string_view to tokenize.
delimitersThe set of single-byte delimiter characters.
trimWhen true (the default), empty tokens (produced by leading, trailing, or consecutive delimiters) are dropped from the result. When false, empty tokens are preserved. Note: this parameter does not strip whitespace from non-empty tokens despite its name.
Returns
A vector of tokenized string_views aliasing inputString.

Definition at line 69 of file string.cpp.

References trim().

◆ toM()

template<typename T = float>
T momentum::toM ( T x = T(1))
nodiscardconstexprnoexcept

Converts the given length x (in centimeters) to meters.

If called without an argument, it returns the conversion factor from centimeters to meters.

Definition at line 87 of file constants.h.

◆ toMomentumQuaternion() [1/3]

template Quaternion< double > momentum::toMomentumQuaternion ( const Quaternion< double > & ,
const CoordinateSystem &  )

◆ toMomentumQuaternion() [2/3]

template Quaternion< float > momentum::toMomentumQuaternion ( const Quaternion< float > & ,
const CoordinateSystem &  )

◆ toMomentumQuaternion() [3/3]

template<typename T>
Quaternion< T > momentum::toMomentumQuaternion ( const Quaternion< T > & q,
const CoordinateSystem & from )
nodiscard

Converts a quaternion rotation from from into Momentum's canonical coordinate system.

Definition at line 140 of file coordinate_system.cpp.

References changeQuaternion(), and kMomentumCoordinateSystem.

◆ toMomentumQuaternionf()

Quaternionf momentum::toMomentumQuaternionf ( const std::array< float, 4 > & gltfQuat)
inlinenodiscardnoexcept

◆ toMomentumRotationMatrix() [1/3]

template Matrix3< double > momentum::toMomentumRotationMatrix ( const Matrix3< double > & ,
const CoordinateSystem &  )

◆ toMomentumRotationMatrix() [2/3]

template Matrix3< float > momentum::toMomentumRotationMatrix ( const Matrix3< float > & ,
const CoordinateSystem &  )

◆ toMomentumRotationMatrix() [3/3]

template<typename T>
Matrix3< T > momentum::toMomentumRotationMatrix ( const Matrix3< T > & m,
const CoordinateSystem & from )
nodiscard

Converts a 3x3 rotation matrix from from into Momentum's canonical coordinate system.

Definition at line 150 of file coordinate_system.cpp.

References changeRotationMatrix(), and kMomentumCoordinateSystem.

◆ toMomentumVec3f() [1/2]

Vector3f momentum::toMomentumVec3f ( const std::array< float, 3 > & vec)
inlinenodiscardnoexcept

◆ toMomentumVec3f() [2/2]

void momentum::toMomentumVec3f ( std::vector< Vector3f > & vec)
inline

◆ toMomentumVector() [1/3]

template Vector3< double > momentum::toMomentumVector ( const Vector3< double > & ,
const CoordinateSystem &  )

◆ toMomentumVector() [2/3]

template Vector3< float > momentum::toMomentumVector ( const Vector3< float > & ,
const CoordinateSystem &  )

◆ toMomentumVector() [3/3]

template<typename T>
Vector3< T > momentum::toMomentumVector ( const Vector3< T > & v,
const CoordinateSystem & from )
nodiscard

Converts a position vector from from into Momentum's canonical coordinate system.

Definition at line 130 of file coordinate_system.cpp.

References changeVector(), and kMomentumCoordinateSystem.

Referenced by toMomentumVec3f().

◆ toMomentumVector3() [1/6]

template Vector3< double > momentum::toMomentumVector3 ( const Vector3< double > & vec,
UpVector up,
const std::string & unitStr )

◆ toMomentumVector3() [2/6]

template Vector3< double > momentum::toMomentumVector3 ( const Vector3< double > & vec,
UpVector up,
Unit unit )

◆ toMomentumVector3() [3/6]

template Vector3< float > momentum::toMomentumVector3 ( const Vector3< float > & vec,
UpVector up,
const std::string & unitStr )

◆ toMomentumVector3() [4/6]

template Vector3< float > momentum::toMomentumVector3 ( const Vector3< float > & vec,
UpVector up,
Unit unit )

◆ toMomentumVector3() [5/6]

template<typename T>
Vector3< T > momentum::toMomentumVector3 ( const Vector3< T > & vec,
UpVector up,
const std::string & unitStr )
nodiscard

This function converts a 3D vector in the mocap marker coordinate system to the Momentum coordinate system, using a string to specify the unit.

The mocap marker coordinate system uses a spatial index with a specified up-axis (default Z), right-handedness, and units specified in the 'unitStr' parameter (e.g., "m", "cm", "mm"). The Momentum coordinate system uses a spatial index with Y as the up-axis, right-handedness, and units in centimeters.

Template Parameters
TThe numeric type of the input and output 3D vectors.
Parameters
[in]vecThe 3D vector in the mocap marker coordinate system to be converted.
[in]up(Optional) The up-axis convention of the input marker coordinate system (default: UpVector::Z).
[in]unitStrThe string representation of the units of measurement used in the input marker coordinate system.
Returns
A 3D vector in the Momentum coordinate system.
Note
This conversion has only been tested for TRC and C3D formats.

Definition at line 100 of file conversions.cpp.

References toMomentumVector3().

◆ toMomentumVector3() [6/6]

template<typename T>
Vector3< T > momentum::toMomentumVector3 ( const Vector3< T > & vec,
UpVector up = UpVector::Z,
Unit unit = Unit::MM )
nodiscard

This function converts a 3D vector in the mocap marker coordinate system to the Momentum coordinate system.

The mocap marker coordinate system uses a spatial index with a specified up-axis (default Z), right-handedness, and units specified in the 'unit' parameter (default millimeters). The Momentum coordinate system uses a spatial index with Y as the up-axis, right-handedness, and units in centimeters.

Template Parameters
TThe numeric type of the input and output 3D vectors.
Parameters
[in]vecThe 3D vector in the mocap marker coordinate system to be converted.
[in]up(Optional) The up-axis convention of the input marker coordinate system (default: UpVector::Z).
[in]unit(Optional) The units of measurement used in the input marker coordinate system (default: Unit::MM).
Returns
A 3D vector in the Momentum coordinate system.
Note
This conversion has only been tested for TRC and C3D formats.

Definition at line 67 of file conversions.cpp.

References Centimeter, MT_LOGE, Right, scaleFactor(), toString(), Unknown, X, Y, YNeg, and Z.

Referenced by loadTrc(), and toMomentumVector3().

◆ toRad()

template<typename T = float>
T momentum::toRad ( T x = T(1))
nodiscardconstexprnoexcept

Converts the given angle x (in degrees) to radians.

If called without an argument, it returns the conversion factor from degrees to radians.

Definition at line 68 of file constants.h.

References pi().

◆ toString() [1/2]

◆ toString() [2/2]

std::string_view momentum::toString ( VertexConstraintType type)
nodiscard

Returns a string representation of the constraint type.

Definition at line 12 of file error_function_types.cpp.

References Normal, Plane, Position, and SymmetricNormal.

◆ trackPosesForFrames() [1/2]

Eigen::MatrixXf momentum::trackPosesForFrames ( const std::span< const std::vector< Marker > > markerData,
const Character & character,
const MatrixXf & initialMotion,
const TrackingConfig & config,
const std::vector< size_t > & frameIndices,
bool isContinuous,
std::span< const GloveFrameData > leftGloveData,
std::span< const GloveFrameData > rightGloveData,
const std::optional< GloveConfig > & gloveConfig,
const std::string & progressLabel )

Track poses independently for specific frame indices with fixed character identity.

Similar to trackPosesPerframe, but only solves for the specified frame indices rather than processing frames with a stride. This is particularly useful during calibration when you want to solve poses only for carefully selected keyframes that have been sampled for maximum parameter variance.

Parameters
markerDataMarker observations for each frame
characterThe character model with fixed identity parameters
initialMotionInitial parameter values (parameters x frames)
configTracking configuration settings
frameIndicesVector of specific frame indices to solve
isContinuousWhether to use temporal coherence between frames
Returns
Solved motion parameters matrix (parameters x frames) with poses for selected frames

Definition at line 848 of file marker_tracker.cpp.

References momentum::TrackingConfig::activeParams, momentum::SequenceSolverFunctionT< T >::addErrorFunction(), momentum::Character::collision, momentum::TrackingConfig::collisionErrorWeight, createConstraintData(), createFloorConstraints< float >(), createSkinnedConstraintData(), momentum::BaseConfig::debug, momentum::GaussNewtonSolverBaseOptions::doLineSearch, momentum::TrackingConfig::gapFillConfig, momentum::SequenceSolverFunctionT< T >::getError(), momentum::ParameterTransformT< T >::getPoseParameters(), momentum::ParameterTransformT< T >::getRigidParameters(), momentum::ProgressBar::increment(), isGlobalTransformZero(), momentum::PlaneErrorFunctionT< float >::kLegacyWeight, momentum::PositionErrorFunctionT< float >::kLegacyWeight, momentum::Character::locators, momentum::BaseConfig::lossAlpha, momentum::TrackingConfig::markerWeight, momentum::BaseConfig::maxIter, momentum::SolverOptions::maxIterations, momentum::SolverOptions::minIterations, momentum::BaseConfig::minVisPercent, MT_CHECK, MT_LOGI, MT_LOGW, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::ParameterTransformT< T >::parameterSets, momentum::Character::parameterTransform, preprocessMarkerGaps(), momentum::BaseConfig::regularization, momentum::GaussNewtonSolverBaseOptions::regularization, setupGloveErrorFunctions(), momentum::Character::skinnedLocators, momentum::TrackingConfig::smoothing, solveRigidInitialization(), momentum::SolverOptions::threshold, updateGloveConstraintsForBothHands(), and momentum::SolverOptions::verbose.

Referenced by calibrateLocators(), calibrateModel(), and trackPosesPerframe().

◆ trackPosesForFrames() [2/2]

Eigen::MatrixXf momentum::trackPosesForFrames ( std::span< const std::vector< momentum::Marker > > markerData,
const momentum::Character & character,
const Eigen::MatrixXf & initialMotion,
const TrackingConfig & config,
const std::vector< size_t > & frameIndices,
bool isContinuous = false,
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt,
const std::string & progressLabel = "Tracking per-frame" )

Track poses for given frames.

Parameters
[in]markerDataInput marker data.
[in]characterCharacter definition.
[in]globalParamsCalibrated identity info; could be repurposed to pass in an initial pose too.
[in]configSolving options.
[in]frameIndicesFrame indices of the frames to be solved.
[in]isContinuousWhether to use temporal coherence between frames.
Returns
The solved motion. It has the same length as markerData. It repeats the same solved pose within a frame stride.

◆ trackPosesPerframe() [1/2]

Eigen::MatrixXf momentum::trackPosesPerframe ( const std::span< const std::vector< Marker > > markerData,
const Character & character,
const ModelParameters & globalParams,
const TrackingConfig & config,
const size_t frameStride,
std::span< const GloveFrameData > leftGloveData,
std::span< const GloveFrameData > rightGloveData,
const std::optional< GloveConfig > & gloveConfig )

Track poses independently per frame with fixed character identity.

This is the main production tracking function used after character calibration. It solves each frame independently using a per-frame optimizer, which makes it robust to tracking failures. The character identity (scaling, locators, blend shapes) is fixed from calibration and only pose parameters are solved.

Parameters
markerDataMarker observations for each frame
characterThe character model with calibrated identity parameters
globalParamsFixed global parameters (scaling, locators, etc.) from calibration
configTracking configuration settings
frameStrideProcess every frameStride-th frame (1 = all frames)
Returns
Solved motion parameters matrix (parameters x frames) with fixed identity

Definition at line 754 of file marker_tracker.cpp.

References MT_CHECK, trackPosesForFrames(), and momentum::EigenStrongType< Derived, EigenType >::v.

Referenced by calibrateLocators(), calibrateModel(), and processMarkers().

◆ trackPosesPerframe() [2/2]

Eigen::MatrixXf momentum::trackPosesPerframe ( std::span< const std::vector< momentum::Marker > > markerData,
const momentum::Character & character,
const momentum::ModelParameters & globalParams,
const TrackingConfig & config,
size_t frameStride = 1,
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt )

Track poses per-frame given a calibrated character.

Parameters
[in]markerDataInput marker data.
[in]characterCharacter definition.
[in]globalParamsCalibrated identity info; could be repurposed to pass in an initial pose too.
[in]configSolving options.
[in]frameStrideFrame stride to select solver frames (ie. uniform sample).
Returns
The solved motion. It has the same length as markerData. It repeats the same solved pose within a frame stride.

◆ trackSequence() [1/4]

Eigen::MatrixXf momentum::trackSequence ( const std::span< const std::vector< Marker > > markerData,
const Character & character,
const ParameterSet & globalParams,
const MatrixXf & initialMotion,
const TrackingConfig & config,
const std::vector< size_t > & frames,
float regularizer,
bool enforceFloorInFirstFrame,
const std::string & firstFramePoseConstraintSet,
float targetHeightCm,
std::span< const GloveFrameData > leftGloveData,
std::span< const GloveFrameData > rightGloveData,
const std::optional< GloveConfig > & gloveConfig,
std::span< const CameraKeypointData > cameraKeypointData,
std::span< const std::vector< PlaneDataT< float > > > perFrameFloorContacts )

Track motion across multiple frames simultaneously for specific frame indices.

This is the same as the main trackSequence function above, but instead of using a frameStride to sample frames uniformly, it tracks motion only for the specified frame indices. This is particularly useful during calibration when you want to solve on carefully selected keyframes rather than uniformly sampled frames.

Parameters
markerDataMarker observations for each frame
characterThe character model with skeleton, locators, and parameter transform
globalParamsSet of global parameters to solve (scaling, locators, etc.)
initialMotionInitial parameter values (parameters x frames)
configTracking configuration settings
framesVector of specific frame indices to solve
regularizerWeight for regularizing changes to global parameters
firstFramePoseConstraintSetName of pose constraint set for first frame
Returns
Solved motion parameters matrix (parameters x frames)

Definition at line 506 of file marker_tracker.cpp.

References momentum::TrackingConfig::activeParams, momentum::SequenceSolverFunctionT< T >::addErrorFunction(), momentum::SequenceSolverFunctionT< T >::addSequenceErrorFunction(), addSequenceFrameConstraints(), momentum::Character::collision, momentum::TrackingConfig::collisionErrorWeight, createConstraintData(), createFloorConstraints< float >(), createGloveOrientationConstraintData(), createGlovePositionConstraintData(), createSkinnedConstraintData(), createSkinnedLocatorMeshConstraints(), momentum::BaseConfig::debug, momentum::SequenceSolverOptionsBase::doLineSearch, momentum::ParameterTransformT< T >::getBlendShapeParameters(), momentum::SequenceSolverFunctionT< T >::getError(), momentum::SequenceSolverFunctionT< T >::getFrameParameters(), momentum::SequenceSolverFunctionT< T >::getJoinedParameterVector(), momentum::ParameterTransformT< T >::getParameterSet(), momentum::ParameterTransformT< T >::getPoseParameters(), momentum::ParameterTransformT< T >::getScalingParameters(), kAllFrames, momentum::Character::locators, momentum::BaseConfig::maxIter, momentum::SolverOptions::maxIterations, momentum::Character::mesh, momentum::SolverOptions::minIterations, momentum::BaseConfig::minVisPercent, MT_CHECK, MT_LOGI, MT_LOGI_IF, momentum::SequenceSolverOptionsBase::multithreaded, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::SequenceSolverOptionsBase::progressBar, momentum::BaseConfig::regularization, momentum::SequenceSolverOptionsBase::regularization, momentum::SequenceSolverBaseT< T >::setEnabledParameters(), momentum::SequenceSolverFunctionT< T >::setFrameParameters(), momentum::Character::skinnedLocators, momentum::TrackingConfig::smoothing, momentum::SolverT< T >::solve(), momentum::SolverOptions::threshold, and momentum::SolverOptions::verbose.

◆ trackSequence() [2/4]

Eigen::MatrixXf momentum::trackSequence ( const std::span< const std::vector< Marker > > markerData,
const Character & character,
const ParameterSet & globalParams,
const MatrixXf & initialMotion,
const TrackingConfig & config,
float regularizer,
const size_t frameStride,
bool enforceFloorInFirstFrame,
const std::string & firstFramePoseConstraintSet,
float targetHeightCm,
std::span< const GloveFrameData > leftGloveData,
std::span< const GloveFrameData > rightGloveData,
const std::optional< GloveConfig > & gloveConfig,
std::span< const CameraKeypointData > cameraKeypointData )

Track motion across multiple frames simultaneously with temporal constraints.

This is the main global optimization function that solves for both pose parameters and global parameters (scaling, locators, blend shapes) across multiple frames simultaneously. It enforces temporal smoothness constraints and can handle calibration scenarios where identity parameters need to be solved.

Parameters
markerDataMarker observations for each frame
characterThe character model with skeleton, locators, and parameter transform
globalParamsSet of global parameters to solve (scaling, locators, etc.)
initialMotionInitial parameter values (parameters x frames)
configTracking configuration settings
regularizerWeight for regularizing changes to global parameters
frameStrideProcess every frameStride-th frame (1 = all frames)
firstFramePoseConstraintSetName of pose constraint set for first frame
Returns
Solved motion parameters matrix (parameters x frames)

Definition at line 228 of file marker_tracker.cpp.

References MT_CHECK, and trackSequence().

Referenced by calibrateLocators(), calibrateModel(), refineMotion(), and trackSequence().

◆ trackSequence() [3/4]

Eigen::MatrixXf momentum::trackSequence ( std::span< const std::vector< momentum::Marker > > markerData,
const momentum::Character & character,
const momentum::ParameterSet & globalParams,
const Eigen::MatrixXf & initialMotion,
const TrackingConfig & config,
const std::vector< size_t > & frames,
float regularizer = 0.0,
bool enforceFloorInFirstFrame = false,
const std::string & firstFramePoseConstraintSet = "",
float targetHeightCm = 0.0f,
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt,
std::span< const CameraKeypointData > cameraKeypointData = {},
std::span< const std::vector< PlaneDataT< float > > > perFrameFloorContacts = {} )

Use multiple frames to solve for global parameters such as body proportions and/or marker offsets together with the motion.

Parameters
[in]markerDataMarker data.
[in]characterCharacter definition.
[in]globalParamsBitset to indicate global parameters to solve for; could be all zeros for post-process a motion.
[in]initialMotionInitial values of all parameters. It should be the same length as markerData, but only frames used in solving are used. Values in unused frames do not matter. Number of parameters should be the same as defined in character.
[in]configSolving options.
[in]framesList of frames to solve for.
[in]firstFramePoseConstraintSetName of a pose constraint set to use for the first frame
Returns
The solved motion. It has the same length as markerData. It repeats the same solved pose within a frame stride.

◆ trackSequence() [4/4]

Eigen::MatrixXf momentum::trackSequence ( std::span< const std::vector< momentum::Marker > > markerData,
const momentum::Character & character,
const momentum::ParameterSet & globalParams,
const Eigen::MatrixXf & initialMotion,
const TrackingConfig & config,
float regularizer = 0.0,
size_t frameStride = 1,
bool enforceFloorInFirstFrame = false,
const std::string & firstFramePoseConstraintSet = "",
float targetHeightCm = 0.0f,
std::span< const GloveFrameData > leftGloveData = {},
std::span< const GloveFrameData > rightGloveData = {},
const std::optional< GloveConfig > & gloveConfig = std::nullopt,
std::span< const CameraKeypointData > cameraKeypointData = {} )

Use multiple frames to solve for global parameters such as body proportions and/or marker offsets together with the motion.

It can also be used to smooth out a motion with or without solving for global parameters, for example to fill gaps when there are missing markers.

Parameters
[in]markerDataMarker data.
[in]characterCharacter definition.
[in]globalParamsBitset to indicate global parameters to solve for; could be all zeros for post-process a motion.
[in]initialMotionInitial values of all parameters. It should be the same length as markerData, but only frames used in solving are used. Values in unused frames do not matter. Number of parameters should be the same as defined in character.
[in]configSolving options.
[in]frameStrideFrame stride to select solver frames (ie. uniform sample).
[in]firstFramePoseConstraintSetName of a pose constraint set to use for the first frame
Returns
The solved motion. It has the same length as markerData. It repeats the same solved pose within a frame stride.

◆ transformAtoB() [1/3]

template TransformT< double > momentum::transformAtoB ( size_t jointA,
size_t jointB,
const Skeleton & referenceSkeleton,
const SkeletonStateT< double > & skelState )

◆ transformAtoB() [2/3]

template TransformT< float > momentum::transformAtoB ( size_t jointA,
size_t jointB,
const Skeleton & referenceSkeleton,
const SkeletonStateT< float > & skelState )

◆ transformAtoB() [3/3]

template<typename T>
TransformT< T > momentum::transformAtoB ( size_t jointA,
size_t jointB,
const Skeleton & referenceSkeleton,
const SkeletonStateT< T > & skelState )

Computes the relative transform between two joints in a skeleton.

This transform maps points from joint A's local space to joint B's local space. It is computed by finding the common ancestor of both joints and combining the transforms along the path, which is more numerically stable than computing (T_B)^{-1} * T_A directly.

Parameters
jointASource joint index
jointBTarget joint index
referenceSkeletonThe skeleton structure defining joint hierarchy
skelStateCurrent state of the skeleton
Returns
Transform from joint A's local space to joint B's local space

Definition at line 186 of file skeleton_state.cpp.

References momentum::TransformT< T >::inverse(), momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, kInvalidIndex, and MT_CHECK.

◆ transformCharacter()

Character momentum::transformCharacter ( const Character & character,
const Affine3f & xform )
nodiscard

Transforms the character (mesh and skeleton) by the desired transformation matrix.

Precondition
xform must be a rigid transform (no scale or shear).

Note that this should primarily be used for transforming models between different coordinate spaces (e.g. y-up vs. z-up). If you want to move a character around the scene, you should preferably use the model parameters.

Definition at line 553 of file character_utility.cpp.

References momentum::Character::blendShape, momentum::Character::collision, momentum::Character::faceExpressionBlendShape, momentum::Character::inverseBindPose, momentum::Character::locators, momentum::Character::mesh, momentum::Character::name, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::Character::physicalProperties, momentum::Character::poseShapes, momentum::Character::skeleton, and momentum::Character::skinWeights.

◆ transformPose() [1/6]

template std::vector< ModelParametersT< double > > momentum::transformPose ( const Character & character,
const std::vector< ModelParametersT< double > > & modelParameters,
const TransformT< double > & transform )

◆ transformPose() [2/6]

template std::vector< ModelParametersT< float > > momentum::transformPose ( const Character & character,
const std::vector< ModelParametersT< float > > & modelParameters,
const TransformT< float > & transform )

◆ transformPose() [3/6]

template<typename T>
std::vector< ModelParametersT< T > > momentum::transformPose ( const Character & character,
const std::vector< ModelParametersT< T > > & modelParameters,
const std::vector< TransformT< T > > & transforms,
bool ensureContinuousOutput = true )

Function which computes a new set of model parameters such that the character pose is a rigidly transformed version of the original pose.

While there is technically a closed form solution for any given skeleton, this is complicated in momentum because different characters attach the rigid parameters to different joints, so a fully general solution uses IK. However, getting it right requires dealing with local minima issues in Euler angles and other challenges. So centralizing this functionality in a single place is useful.

Parameters
[in]ensureContinuousOutputIf true, the output model parameters will be solved sequentially so that the resulting output is continuous where possible. This helps to avoid issues with Euler flipping.

Definition at line 229 of file transform_pose.cpp.

References MT_CHECK, and momentum::PoseTransformSolverT< T >::transformPose().

◆ transformPose() [4/6]

template<typename T>
std::vector< ModelParametersT< T > > momentum::transformPose ( const Character & character,
const std::vector< ModelParametersT< T > > & modelParameters,
const TransformT< T > & transforms )

Definition at line 78 of file transform_pose.cpp.

References transformPose().

Referenced by transformPose().

◆ transformPose() [5/6]

template std::vector< ModelParametersT< double > > momentum::transformPose ( const Character & characterFull,
const std::vector< ModelParametersT< double > > & modelParametersFull,
const std::vector< TransformT< double > > & transforms,
bool ensureContinuousOutput )

◆ transformPose() [6/6]

template std::vector< ModelParametersT< float > > momentum::transformPose ( const Character & characterFull,
const std::vector< ModelParametersT< float > > & modelParametersFull,
const std::vector< TransformT< float > > & transforms,
bool ensureContinuousOutput )

◆ triangulate()

std::vector< Eigen::Vector3i > momentum::triangulate ( std::span< const uint32_t > indices,
std::span< const uint32_t > offsets )

Definition at line 17 of file polygon_data.cpp.

References MT_THROW_IF.

◆ trim() [1/4]

std::string momentum::trim ( const char * text,
const char * whiteChars = " \t" )
nodiscard

Returns a copy of the null-terminated C string with leading and trailing characters in whiteChars removed.

Allocates a new std::string (constructed from text) before trimming, so this overload always allocates regardless of whether any characters are stripped. See the templated overload for the byte-wise comparison semantics.

Parameters
textThe string to trim (must be null-terminated, must not be null).
whiteCharsNull-terminated set of single-byte characters to strip from both ends.
Returns
The trimmed string.

Definition at line 37 of file string.cpp.

References trim().

◆ trim() [2/4]

template std::string momentum::trim ( const std::string & text,
const char * whiteChars )

◆ trim() [3/4]

template std::string_view momentum::trim ( const std::string_view & text,
const char * whiteChars )

◆ trim() [4/4]

template<typename StringType>
StringType momentum::trim ( const StringType & text,
const char * whiteChars = " \t" )
nodiscard

Returns a copy of the string with leading and trailing characters in whiteChars removed.

Comparison is byte-wise: each byte of text is checked against whiteChars via std::strchr. Multi-byte UTF-8 sequences are not interpreted as code points, so only single-byte (ASCII) whitespace characters can be specified in whiteChars. If text is empty or consists entirely of whiteChars, an empty string is returned.

Template Parameters
StringTypeThe type of the string to trim (e.g., std::string, std::string_view). For std::string_view inputs the returned view aliases the same underlying buffer as text and remains valid only as long as that buffer does.
Parameters
textThe string to trim.
whiteCharsNull-terminated set of single-byte characters to strip from both ends.
Returns
The trimmed string (or view).

Definition at line 16 of file string.cpp.

Referenced by parseParameterLimits(), parseParameterSets(), parseParameterTransform(), parsePoseConstraints(), tokenize(), tokenize(), and trim().

◆ twopi()

template<typename T = float>
T momentum::twopi ( )
nodiscardconstexprnoexcept

Returns 2 * pi.

Note
Use this instead of 2 * M_PI. Windows MSVC does not define M_PI by default (it requires _USE_MATH_DEFINES before <cmath>). This function is always available on all platforms.

Definition at line 60 of file constants.h.

References pi().

Referenced by generateCylinderMesh(), generateSphereMesh(), and momentum::MppcaT< T >::set().

◆ uniform() [1/4]

template<typename T>
T momentum::uniform ( const T & min,
const T & max )
nodiscard

Convenience wrappers that forward to Random<>::GetSingleton().

Warning
These share the singleton's mutable engine state and inherit its non-thread-safe behavior; concurrent calls from different threads must be externally synchronized. Range and distribution semantics match the corresponding Random member functions. Uniformly distributed value via the global Random singleton. See Random::uniform.

Definition at line 326 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

Referenced by momentum::Random< Generator_ >::uniformAffine3().

◆ uniform() [2/4]

template<typename DynamicMatrix>
DynamicMatrix momentum::uniform ( Eigen::Index rows,
Eigen::Index cols,
typename DynamicMatrix::Scalar min,
typename DynamicMatrix::Scalar max )
nodiscard

Uniformly distributed dynamic-size matrix via the global Random singleton.

See Random::uniform.

Precondition
rows >= 0 and cols >= 0.

Definition at line 345 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ uniform() [3/4]

template<typename DynamicVector>
DynamicVector momentum::uniform ( Eigen::Index size,
typename DynamicVector::Scalar min,
typename DynamicVector::Scalar max )
nodiscard

Uniformly distributed dynamic-size vector via the global Random singleton.

See Random::uniform.

Precondition
size >= 0.

Definition at line 339 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ uniform() [4/4]

template<typename FixedSizeT>
FixedSizeT momentum::uniform ( typename FixedSizeT::Scalar min,
typename FixedSizeT::Scalar max )
nodiscard

Uniformly distributed fixed-size vector/matrix via the global Random singleton.

See Random::uniform.

Definition at line 332 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ uniformAffine3()

template<typename T>
Affine3< T > momentum::uniformAffine3 ( T scaleMin = T(0.1),
T scaleMax = T(10.0),
const Vector3< T > & min = Vector3< T >::Zero(),
const Vector3< T > & max = Vector3< T >::Ones() )
nodiscard

Random affine transformation via the global Random singleton (uniform rotation, uniform scale in [scaleMin, scaleMax], uniform translation in [min, max]).

Requires a floating-point T; integer T is rejected by static_assert in the implementation.

Definition at line 372 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ uniformIsometry3()

template<typename T>
Isometry3< T > momentum::uniformIsometry3 ( const Vector3< T > & min,
const Vector3< T > & max )
nodiscard

Random isometry on SE(3) via the global Random singleton (uniform rotation, uniform translation in [min, max]).

Definition at line 366 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

◆ uniformQuaternion()

template<typename T>
Quaternion< T > momentum::uniformQuaternion ( )
nodiscard

Uniformly distributed unit quaternion on SO(3) via the global Random singleton.

Definition at line 355 of file random-inl.h.

References momentum::Random< Generator_ >::GetSingleton().

Referenced by momentum::Random< Generator_ >::uniformRotationMatrix(), and uniformRotationMatrix().

◆ uniformRotationMatrix()

template<typename T>
Matrix3< T > momentum::uniformRotationMatrix ( )
nodiscard

Uniformly distributed rotation matrix on SO(3) via the global Random singleton.

Definition at line 361 of file random-inl.h.

References uniformQuaternion().

Referenced by momentum::Random< Generator_ >::uniformAffine3(), and momentum::Random< Generator_ >::uniformIsometry3().

◆ updateAabb() [1/2]

◆ updateAabb() [2/2]

template<typename T>
void momentum::updateAabb ( axel::BoundingBox< T > & aabb,
const Vector3< T > & originA,
const Vector3< T > & direction,
const Vector2< T > & radii )

Updates an axis-aligned bounding box to encompass a tapered capsule.

Parameters
aabbThe bounding box to update
originAOrigin of the capsule
directionDirection vector of the capsule
radiiRadii at the endpoints of the capsule

Definition at line 410 of file collision_geometry_state.h.

Referenced by momentum::CollisionErrorFunctionStatelessT< T >::computeBroadPhase(), momentum::CollisionErrorFunctionT< T >::computeBroadPhase(), logBvh(), updateAabb(), momentum::CollisionErrorFunctionStatelessT< T >::updateCollisionPairs(), and momentum::CollisionErrorFunctionT< T >::updateCollisionPairs().

◆ updateBoxAabb()

template<typename T>
void momentum::updateBoxAabb ( axel::BoundingBox< T > & aabb,
const Vector3< T > & center,
const Quaternion< T > & orientation,
const Vector3< T > & halfExtents )

Updates an axis-aligned bounding box to encompass an oriented box.

Uses the exact OBB half-extent h_i = sum_j |R_ij| * halfExtents_j (L1 over the rotated extents). For a box this is the tight, correct AABB; do NOT switch it to the ellipsoid L2 row-norm, which would under-bound the box and miss collisions.

Parameters
aabbThe bounding box to update
centerCenter of the box
orientationOrientation of the box
halfExtentsHalf extents along the box's local axes

Definition at line 466 of file collision_geometry_state.h.

Referenced by updateAabb().

◆ updateEllipsoidAabb()

template<typename T>
void momentum::updateEllipsoidAabb ( axel::BoundingBox< T > & aabb,
const Vector3< T > & center,
const Quaternion< T > & orientation,
const Vector3< T > & radii )

Updates an axis-aligned bounding box to encompass an oriented ellipsoid.

Uses the tight ellipsoid AABB half-extent h_i = sqrt(sum_j (R_ij * radii_j)^2), i.e. the L2 norm of each rotation-matrix row scaled component-wise by the radii. This is the exact AABB of the ellipsoid, unlike the looser L1/OBB bound (sum_j |R_ij| * radii_j) which over-estimates by up to a factor of sqrt(3).

Parameters
aabbThe bounding box to update
centerCenter of the ellipsoid
orientationOrientation of the ellipsoid
radiiRadii along the ellipsoid's local axes

Definition at line 440 of file collision_geometry_state.h.

Referenced by updateAabb().

◆ updateGloveConstraintsForBothHands()

void momentum::updateGloveConstraintsForBothHands ( std::optional< GloveErrorFunctions > & left,
std::optional< GloveErrorFunctions > & right,
size_t iFrame )

Update glove constraints for both hands for a given frame.

Definition at line 712 of file marker_tracker.cpp.

References updateGloveConstraintsForFrame().

Referenced by trackPosesForFrames().

◆ updateGloveConstraintsForFrame()

void momentum::updateGloveConstraintsForFrame ( GloveErrorFunctions & funcs,
size_t iFrame )

Swap per-frame glove constraint data on already-registered error functions.

Clears existing constraints and loads the constraint data for the specified frame index. Called in the per-frame loop of trackPosesForFrames().

Parameters
[in,out]funcsError functions to update.
[in]iFrameFrame index into the constraint data arrays.

Definition at line 393 of file glove_utils.cpp.

References momentum::GloveErrorFunctions::oriData, momentum::GloveErrorFunctions::oriFunc, momentum::GloveErrorFunctions::posData, and momentum::GloveErrorFunctions::posFunc.

Referenced by updateGloveConstraintsForBothHands().

◆ validateColumnIndices()

void momentum::validateColumnIndices ( momentum::span< const Eigen::Index > colIndices,
Eigen::Index maxEntry )

Validates that every entry in colIndices is in [0, maxEntry); throws otherwise.

Parameters
colIndicesColumn indices to validate.
maxEntryExclusive upper bound (typically the underlying matrix's cols()).

Definition at line 148 of file online_householder_qr.cpp.

References MT_CHECK.

Referenced by momentum::ColumnIndexedMatrix< MatrixType >::ColumnIndexedMatrix().

◆ verticesToFaces()

template<typename T>
std::vector< bool > momentum::verticesToFaces ( const MeshT< T > & mesh,
const std::vector< bool > & activeVertices )
nodiscard

Converts a vertex selection to a face selection.

A face is marked active only if every one of its vertices is active.

Definition at line 1509 of file character_utility.cpp.

References momentum::MeshT< T >::faces, MT_CHECK, momentum::MeshT< T >::vertices, and verticesToFaces().

Referenced by reduceMeshByPolys(), reduceMeshByPolys(), reduceMeshByVertices(), reduceMeshByVertices(), and verticesToFaces().

◆ verticesToFaces< double >()

template std::vector< bool > momentum::verticesToFaces< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activeVertices )

◆ verticesToFaces< float >()

template std::vector< bool > momentum::verticesToFaces< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activeVertices )

◆ verticesToPolys()

template<typename T>
std::vector< bool > momentum::verticesToPolys ( const MeshT< T > & mesh,
const std::vector< bool > & activeVertices )
nodiscard

Converts a vertex selection to a polygon selection.

A polygon is marked active only if every one of its vertices is active.

Definition at line 1531 of file character_utility.cpp.

References MT_CHECK, momentum::MeshT< T >::polyFaces, momentum::MeshT< T >::polyFaceSizes, momentum::MeshT< T >::vertices, and verticesToPolys().

Referenced by verticesToPolys().

◆ verticesToPolys< double >()

template std::vector< bool > momentum::verticesToPolys< double > ( const MeshT< double > & mesh,
const std::vector< bool > & activeVertices )

◆ verticesToPolys< float >()

template std::vector< bool > momentum::verticesToPolys< float > ( const MeshT< float > & mesh,
const std::vector< bool > & activeVertices )

◆ writeModelDefinition()

std::string momentum::writeModelDefinition ( const Skeleton & skeleton,
const ParameterTransform & parameterTransform,
const ParameterLimits & parameterLimits )

Write complete model definition file.

Parameters
skeletonThe character's skeletal structure
parameterTransformMaps model parameters to joint parameters
parameterLimitsConstraints on model parameters (can be empty)
Returns
String containing the complete model definition

Definition at line 659 of file parameter_transform_io.cpp.

References momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::parameterSets, momentum::ParameterTransformT< T >::poseConstraints, writeParameterLimits(), and writeParameterTransform().

◆ writeParameterLimits()

◆ writeParameterSets()

std::string momentum::writeParameterSets ( const ParameterSets & parameterSets)

Definition at line 622 of file parameter_transform_io.cpp.

◆ writeParameterTransform()

◆ writePoseConstraints()

std::string momentum::writePoseConstraints ( const PoseConstraints & poseConstraints)

Definition at line 642 of file parameter_transform_io.cpp.

Variable Documentation

◆ Dynamic

int momentum::Dynamic = Eigen::Dynamic
inlineconstexpr

Re-export of Eigen::Dynamic for use as a compile-time dimension token in momentum's type aliases (e.g., MatrixX, VectorX).

Definition at line 37 of file types.h.

◆ kAllFrames

◆ kDefaultExtrapolateFactor

float momentum::kDefaultExtrapolateFactor = 0.8f
inlineconstexpr

Definition at line 15 of file skeleton_utility.h.

◆ kDefaultExtrapolateMaxDelta

float momentum::kDefaultExtrapolateMaxDelta = 0.4f
inlineconstexpr

Definition at line 16 of file skeleton_utility.h.

◆ kGltfCoordinateSystem

CoordinateSystem momentum::kGltfCoordinateSystem
inlineconstexpr

◆ kIntrinsicsParamPrefix

const char* momentum::kIntrinsicsParamPrefix = "intrinsics_"
inlineconstexpr

◆ kInvalidIndex

size_t momentum::kInvalidIndex = std::numeric_limits<size_t>::max()
inlineconstexpr

Sentinel value indicating an invalid or unset size_t index.

Definition at line 182 of file types.h.

Referenced by accumulateChainDerivatives(), momentum::detail_sdf_collision::accumulateColliderHierarchyGradient(), momentum::detail_sdf_collision::accumulateColliderHierarchyJacobian(), momentum::PlaneCollisionErrorFunctionT< T >::accumulateGradientAlongChain(), momentum::PlaneCollisionErrorFunctionT< T >::accumulateJacobianAlongChain(), momentum::SkeletonDerivativeT< T >::accumulateJointGradient(), momentum::SkeletonDerivativeT< T >::accumulateJointJacobian(), momentum::VertexErrorFunctionT< T, Data, FuncDim >::addConstraint(), addGloveBones(), addGloveCalibrationParameters(), momentum::fbx_internal::addPhysicalProperties(), addRigidTransformNode(), addSkinWeights(), buildCalibBodySets(), buildHierarchicalPaths(), momentum::CameraProjectionErrorFunctionT< float >::CameraProjectionErrorFunctionT(), momentum::CameraVertexProjectionErrorFunctionT< float >::CameraVertexProjectionErrorFunctionT(), momentum::CollisionBoxT< float >::CollisionBoxT(), momentum::CollisionEllipsoidT< float >::CollisionEllipsoidT(), momentum::CollisionPrimitiveT< float >::CollisionPrimitiveT(), momentum::SkeletonT< T >::commonAncestor(), momentum::detail_sdf_collision::computeColliderWorldBoundingBox(), momentum::detail_sdf_collision::computeWorldToColliderTransform(), momentum::FullyDifferentiableProjectionErrorFunctionT< T >::constraintGradient_dot(), createCollisionBox(), createCollisionCapsule(), createCollisionEllipsoid(), momentum::fbx_internal::createCollisionGeometryNodes(), createGloveOrientationConstraintData(), createGlovePositionConstraintData(), createJoint(), createLocator(), momentum::fbx_internal::createLocatorNodes(), momentum::fbx_internal::createSkeletonNodes(), momentum::FullyDifferentiablePosePriorErrorFunctionT< T >::d_gradient_d_input_dot(), extractGloveOffsetsFromCharacter(), momentum::detail_sdf_collision::findCommonAncestorForVertex(), momentum::PosePriorErrorFunctionT< T >::getBestFitMode(), momentum::GltfBuilder::getCharacterRootIndex(), momentum::SkeletonT< T >::getChildrenJoints(), momentum::PlaneCollisionQueryT< T >::getContactPointsByParentWithDetails(), momentum::CameraProjectionErrorFunctionT< T >::getError(), momentum::CameraVertexProjectionErrorFunctionT< T >::getError(), momentum::JointErrorFunctionT< T, AimDataT< T >, 3, 2, 1 >::getError(), momentum::CameraProjectionErrorFunctionT< T >::getGradient(), momentum::CameraVertexProjectionErrorFunctionT< T >::getGradient(), momentum::CollisionErrorFunctionStatelessT< T >::getGradient(), momentum::CollisionErrorFunctionT< T >::getGradient(), momentum::DistanceErrorFunctionT< T >::getGradient(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getGradient(), momentum::JointToJointDistanceErrorFunctionT< T >::getGradient(), momentum::JointToJointOrientationErrorFunctionT< T >::getGradient(), momentum::JointToJointPositionErrorFunctionT< T >::getGradient(), momentum::PosePriorErrorFunctionT< T >::getGradient(), momentum::ProjectionErrorFunctionT< T >::getGradient(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getGradient(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getGradient(), momentum::StateErrorFunctionT< T >::getGradient(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getGradient(), momentum::VertexSDFErrorFunctionT< T >::getGradient(), momentum::CameraProjectionErrorFunctionT< T >::getJacobian(), momentum::CameraVertexProjectionErrorFunctionT< T >::getJacobian(), momentum::CollisionErrorFunctionStatelessT< T >::getJacobian(), momentum::CollisionErrorFunctionT< T >::getJacobian(), momentum::DistanceErrorFunctionT< T >::getJacobian(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getJacobian(), momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getJacobian(), momentum::JointToJointDistanceErrorFunctionT< T >::getJacobian(), momentum::JointToJointOrientationErrorFunctionT< T >::getJacobian(), momentum::JointToJointPositionErrorFunctionT< T >::getJacobian(), momentum::PosePriorErrorFunctionT< T >::getJacobian(), momentum::ProjectionErrorFunctionT< T >::getJacobian(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getJacobian(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getJacobian(), momentum::StateErrorFunctionT< T >::getJacobian(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getJacobian(), momentum::VertexSDFErrorFunctionT< T >::getJacobian(), momentum::SkeletonT< T >::getJointIdByName(), momentum::PosePriorErrorFunctionT< T >::getMeanShape(), momentum::GltfBuilder::getNumJoints(), momentum::ParameterTransformT< T >::getParameterIdByName(), momentum::SkeletonT< T >::isAncestor(), momentum::SkeletonT< T >::isSameOrAdjacentJoints(), isValidCollisionPair(), loadCharacterWithSkeletonStatesCommon(), loadHierarchy(), momentum::PosePriorErrorFunctionT< T >::loadInternal(), loadLocatorsFromBuffer(), loadPoseShape(), loadSkeletonFromUsd(), momentum::Locator::Locator(), logCollisionGeometry(), logJoints(), momentum::detail::makeCollisionBoxLogData(), momentum::detail::makeCollisionEllipsoidLogData(), mapIdentityToCharacter(), mapMotionToCharacter(), mapMotionToCharacter(), mapParameters(), mapParameterTransformJoints(), momentum::SkinningWeightIteratorT< T >::next(), parameterSetsFromJson(), parameterTransformFromJson(), parseParameterSets(), parseParameterTransform(), parsePoseConstraints(), poseConstraintsFromJson(), momentum::PoseTransformSolverT< T >::PoseTransformSolverT(), removeJoints(), replaceSkeletonHierarchy(), resolvePhysicalPropertiesJointIndex(), momentum::SDFColliderT< float >::SDFColliderT(), setupGloveErrorFunctions(), momentum::Character::simplifySkeleton(), skeletonStateToJointParameters(), skeletonStateToJointParametersRespectingActiveParameters(), momentum::SkeletonT< T >::SkeletonT(), subsetParameterTransform(), momentum::TaperedCapsuleT< float >::TaperedCapsuleT(), transformAtoB(), and momentum::CollisionGeometryStateT< T >::updatePrimitive().

◆ kInvalidTexCoord

uint32_t momentum::kInvalidTexCoord = static_cast<uint32_t>(-1)
inlineconstexpr

Definition at line 15 of file polygon_data.cpp.

Referenced by momentum::PolygonData::warnMessage().

◆ kJacobianRowAlignment

size_t momentum::kJacobianRowAlignment = 8
inlineconstexpr

Alignment for SIMD operations on Jacobian rows (8 floats = 32 bytes for AVX).

Definition at line 19 of file solver_function.h.

Referenced by padToSimdAlignment().

◆ kJointParameterNames

std::array<const char*, kParametersPerJoint> momentum::kJointParameterNames {"tx", "ty", "tz", "rx", "ry", "rz", "sc"}
inlineconstexpr

◆ kMaxModelParams

size_t momentum::kMaxModelParams = 2048
constexpr

Maximum number of model parameters supported per frame across any character.

This is a compile-time bound that sizes ParameterSet; raising it grows every ParameterSet instance.

Definition at line 427 of file types.h.

Referenced by addGloveCalibrationParameters(), and createLocatorCharacter().

◆ kMaxSkinJoints

◆ kMomentumCoordinateSystem

CoordinateSystem momentum::kMomentumCoordinateSystem
inlineconstexpr

◆ kMomentumMarkerProperty

const char* momentum::kMomentumMarkerProperty = "Momentum_Marker"
constexpr

Definition at line 22 of file openfbx_loader.h.

◆ kMomentumMarkersRootProperty

const char* momentum::kMomentumMarkersRootProperty = "Momentum_Markers_Root"
constexpr

Definition at line 21 of file openfbx_loader.h.

◆ kParametersPerJoint

size_t momentum::kParametersPerJoint = 7
inlineconstexpr

Definition at line 21 of file types.h.

Referenced by accumulateChainDerivatives(), momentum::detail_sdf_collision::accumulateColliderHierarchyGradient(), momentum::detail_sdf_collision::accumulateColliderHierarchyJacobian(), momentum::SkeletonDerivativeT< T >::accumulateJointGradient(), momentum::SkeletonDerivativeT< T >::accumulateJointJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionJacobian(), momentum::Character::activeJointsToParameters(), addGloveBones(), addGloveCalibrationParameters(), addRigidTransformNode(), applyPassiveJointParameterLimits(), bakeGloveOffsetsFromParams(), momentum::Character::bindPose(), momentum::fbx_internal::createAnimationCurves(), createLocatorCharacter(), extractGloveOffsetsFromCharacter(), momentum::CollisionErrorFunctionStatelessT< T >::getError(), momentum::CollisionErrorFunctionT< T >::getError(), momentum::JointErrorFunctionT< T, AimDataT< T >, 3, 2, 1 >::getError(), momentum::LimitErrorFunctionT< T >::getError(), momentum::PlaneCollisionErrorFunctionT< T >::getError(), momentum::StateErrorFunctionT< T >::getError(), momentum::CollisionErrorFunctionStatelessT< T >::getGradient(), momentum::CollisionErrorFunctionT< T >::getGradient(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getGradient(), momentum::JointToJointDistanceErrorFunctionT< T >::getGradient(), momentum::JointToJointOrientationErrorFunctionT< T >::getGradient(), momentum::JointToJointPositionErrorFunctionT< T >::getGradient(), momentum::PlaneCollisionErrorFunctionT< T >::getGradient(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getGradient(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getGradient(), momentum::StateErrorFunctionT< T >::getGradient(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getGradient(), momentum::VertexSDFErrorFunctionT< T >::getGradient(), momentum::CollisionErrorFunctionStatelessT< T >::getJacobian(), momentum::CollisionErrorFunctionT< T >::getJacobian(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getJacobian(), momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getJacobian(), momentum::JointToJointDistanceErrorFunctionT< T >::getJacobian(), momentum::JointToJointOrientationErrorFunctionT< T >::getJacobian(), momentum::JointToJointPositionErrorFunctionT< T >::getJacobian(), momentum::PlaneCollisionErrorFunctionT< T >::getJacobian(), momentum::SDFCollisionErrorFunctionT< T, SdfColliderType >::getJacobian(), momentum::SDFCollisionSequenceErrorFunctionT< T, SdfColliderType >::getJacobian(), momentum::StateErrorFunctionT< T >::getJacobian(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getJacobian(), momentum::VertexSDFErrorFunctionT< T >::getJacobian(), getMotionFromModel(), momentum::ParameterTransformT< T >::identity(), momentum::Character::initParameterTransform(), loadCharacterFromLegacyJsonString(), loadMmo(), loadSkeletonStatesFromUsd(), logJointParams(), logJointParamsColumns(), mapIdentityToCharacter(), mapMotionToCharacter(), mapParameterTransformJoints(), momentum::Character::parametersToActiveJoints(), parameterTransformFromJson(), parameterTransformToJson(), parseParameterTransform(), removeJoints(), replaceSkeletonHierarchy(), saveBvhCharacter(), saveLocators(), saveMmo(), saveMmo(), momentum::fbx_internal::setupJointAnimCurves(), skeletonStateToJointParameters(), skeletonStateToJointParameters(), skeletonStateToJointParametersRespectingActiveParameters(), skeletonStateToJointParametersRespectingActiveParameters(), writeParameterLimits(), and writeParameterTransform().

◆ kSimdAlignment

size_t momentum::kSimdAlignment = kSimdPacketSize * sizeof(float)
inlineconstexpr

Byte alignment required for the platform's default SIMD loads/stores.

drjit::load<FloatP>(ptr) requires ptr to be aligned to this many bytes; misaligned loads cause segfaults (not exceptions). Use makeAlignedUnique<float, kSimdAlignment>() from common/aligned.h for all SoA data arrays consumed by SIMD error functions.

Definition at line 67 of file simd.h.

◆ kSimdPacketSize

size_t momentum::kSimdPacketSize = drjit::DefaultSize
inlineconstexpr

Number of floats in the platform's default SIMD register, chosen at compile time by DrJit based on available instruction sets (4 on SSE/NEON, 8 on AVX).

Used as the inner-loop stride in SIMD error functions.

Definition at line 59 of file simd.h.

◆ kTiedFocalLengthSuffix

const char* momentum::kTiedFocalLengthSuffix = "f"
inlineconstexpr

◆ kVelocityMagnitudeEpsilon

template<typename T>
T momentum::kVelocityMagnitudeEpsilon = T(1e-6)
inlineconstexpr

Epsilon for smooth velocity magnitude approximation: ||v||_smooth = sqrt(||v||^2 + eps^2).

This provides a smooth, differentiable approximation to the velocity magnitude with well-defined gradients even when velocity is near zero.

Definition at line 21 of file velocity_magnitude_sequence_error_function.h.

Referenced by momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getError(), momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getGradient(), and momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getJacobian().

◆ RotationAxis

template<typename T>
const std::array<Vector3<T>, 3> momentum::RotationAxis
Initial value:

Definition at line 16 of file joint_state.cpp.

Referenced by momentum::JointStateT< T >::set().