|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
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... | |
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 ¶mTransform, const ModelParametersT< T > &modelParams) |
| Extracts blend shape weights from model parameters. | |
| template<typename T> | |
| BlendWeightsT< T > | extractFaceExpressionBlendWeights (const ParameterTransform ¶mTransform, 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 ¶mTransform, const ModelParametersT< float > &modelParams) |
| template BlendWeightsT< double > | extractBlendWeights< double > (const ParameterTransform ¶mTransform, const ModelParametersT< double > &modelParams) |
| template BlendWeightsT< float > | extractFaceExpressionBlendWeights< float > (const ParameterTransform ¶mTransform, const ModelParametersT< float > &modelParams) |
| template BlendWeightsT< double > | extractFaceExpressionBlendWeights< double > (const ParameterTransform ¶mTransform, 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 > ¢er, 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 > ¢er, 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 ¶meterTransform, 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 > ¶meterTransform, 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 > ¶mTransform, const ParameterLimits ¶mLimitsOld, const ParameterSet ¶mSet) |
| 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 > ¶mTransform, const ParameterLimits ¶meterLimits, const ParameterSet ¶mSet) |
| template std::tuple< ParameterTransformT< double >, ParameterLimits > | subsetParameterTransform (const ParameterTransformT< double > ¶mTransform, const ParameterLimits ¶meterLimits, const ParameterSet ¶mSet) |
| template ParameterTransformT< float > | mapParameterTransformJoints (const ParameterTransformT< float > ¶mTransform, size_t numTargetJoints, const std::vector< size_t > &jointMapping) |
| template ParameterTransformT< double > | mapParameterTransformJoints (const ParameterTransformT< double > ¶mTransform, 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 ¤t, 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 ¤t, 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 ®ionColors, 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 ®ionColors, 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 ¶mTransform, const ModelParameters &modelParams, const IntrinsicsModel &intrinsicsModel) |
| Extract camera intrinsic parameter values from model parameters. | |
| void | setCameraIntrinsics (const ParameterTransform ¶mTransform, const IntrinsicsModel &intrinsicsModel, ModelParameters &modelParams) |
| Write camera intrinsic parameter values from an IntrinsicsModel into model parameters. | |
| ParameterSet | getCameraIntrinsicsParameterSet (const ParameterTransform ¶mTransform, const std::string &cameraName) |
| Get ParameterSet for a specific camera's intrinsics parameters. | |
| ParameterSet | getAllCameraIntrinsicsParameterSet (const ParameterTransform ¶mTransform) |
| 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 ¶meterTransform, 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 ¶meterTransform, Eigen::Ref< Eigen::MatrixX< T > > jacobian) |
| template<typename T> | |
| void | jacobian_jointParams_to_modelParams (const T &jacobian_jointParams, const Eigen::Index iJointParam, const ParameterTransform ¶meterTransform, 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 ¶meterTransform, 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 ¶meterTransform, 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 ¶meterTransform, Eigen::Ref< Eigen::VectorX< T > > gradient) |
| template<typename T> | |
| void | jacobian_jointParams_to_modelParams (const T jacobian_jointParams, const Eigen::Index iJointParam, const ParameterTransform ¶meterTransform, 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 ¶meterTransform, Eigen::Ref< const Eigen::VectorX< T2 > > v) |
| template<typename T> | |
| std::vector< Eigen::Index > | computeSubsetParameterIndices (const ParameterTransformT< T > ¶meterTransform, 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 > ¶meterTransform, 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 > ¶meterTransform, 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 > ¶meterTransform, 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 ¶metersPath=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 > ×tamps, 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 ¶meterTransform) |
| LocatorList | loadLocatorsFromBuffer (std::span< const std::byte > rawData, const Skeleton &skeleton, const ParameterTransform ¶meterTransform) |
| 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 ¶meterTransform) |
| ParameterLimits | parseParameterLimits (const std::string &data, const Skeleton &skeleton, const ParameterTransform ¶meterTransform, size_t lineOffset) |
| std::string | writeParameterLimits (const ParameterLimits ¶meterLimits, const Skeleton &skeleton, const ParameterTransform ¶meterTransform) |
| 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 ¶meterTransform, const Skeleton &skeleton) |
| std::string | writeParameterSets (const ParameterSets ¶meterSets) |
| std::string | writePoseConstraints (const PoseConstraints &poseConstraints) |
| std::string | writeModelDefinition (const Skeleton &skeleton, const ParameterTransform ¶meterTransform, const ParameterLimits ¶meterLimits) |
| 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 > ¶m, 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 ¶ms) |
| void | logJointParams (const rerun::RecordingStream &rec, const std::string &worldPrefix, const std::string &posePrefix, std::span< const std::string > names, const Eigen::VectorXf ¶ms) |
| 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 ¶ms, 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 ¶meters, 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 > ®ularizerWeights, 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 > ®ularizerWeights={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 ¶ms, const ParameterSet ¶meterSet) |
| std::tuple< Eigen::VectorXf, LocatorList, SkinnedLocatorList > | extractIdAndLocatorsFromParams (const ModelParameters ¶m, const Character &sourceCharacter, const Character &targetCharacter) |
| Mesh | extractBlendShapeFromParams (const momentum::ModelParameters ¶m, 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: | |
| 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. | |
| using momentum::AccelerationSequenceErrorFunction_p = ::std::shared_ptr<AccelerationSequenceErrorFunction> |
| using momentum::AccelerationSequenceErrorFunction_u = ::std::unique_ptr<AccelerationSequenceErrorFunction> |
| using momentum::AccelerationSequenceErrorFunction_w = ::std::weak_ptr<AccelerationSequenceErrorFunction> |
| using momentum::AccelerationSequenceErrorFunctiond_p = ::std::shared_ptr<AccelerationSequenceErrorFunctiond> |
| using momentum::AccelerationSequenceErrorFunctiond_u = ::std::unique_ptr<AccelerationSequenceErrorFunctiond> |
| using momentum::AccelerationSequenceErrorFunctiond_w = ::std::weak_ptr<AccelerationSequenceErrorFunctiond> |
| using momentum::Affine3 = Eigen::Transform<T, 3, Eigen::Affine> |
| using momentum::Affine3d = Affine3<double> |
| using momentum::Affine3f = Affine3<float> |
| using momentum::AimData = AimDataT<float> |
| using momentum::AimData_const_p = ::std::shared_ptr<const AimData> |
| using momentum::AimData_const_u = ::std::unique_ptr<const AimData> |
| using momentum::AimData_const_w = ::std::weak_ptr<const AimData> |
| using momentum::AimData_p = ::std::shared_ptr<AimData> |
| using momentum::AimData_u = ::std::unique_ptr<AimData> |
| using momentum::AimData_w = ::std::weak_ptr<AimData> |
| using momentum::AimDatad = AimDataT<double> |
| using momentum::AimDatad_const_p = ::std::shared_ptr<const AimDatad> |
| using momentum::AimDatad_const_u = ::std::unique_ptr<const AimDatad> |
| using momentum::AimDatad_const_w = ::std::weak_ptr<const AimDatad> |
| using momentum::AimDatad_p = ::std::shared_ptr<AimDatad> |
| using momentum::AimDatad_u = ::std::unique_ptr<AimDatad> |
| using momentum::AimDatad_w = ::std::weak_ptr<AimDatad> |
| using momentum::AimDirErrorFunction = AimDirErrorFunctionT<float> |
| using momentum::AimDirErrorFunction_const_p = ::std::shared_ptr<const AimDirErrorFunction> |
| using momentum::AimDirErrorFunction_const_u = ::std::unique_ptr<const AimDirErrorFunction> |
| using momentum::AimDirErrorFunction_const_w = ::std::weak_ptr<const AimDirErrorFunction> |
| using momentum::AimDirErrorFunction_p = ::std::shared_ptr<AimDirErrorFunction> |
| using momentum::AimDirErrorFunction_u = ::std::unique_ptr<AimDirErrorFunction> |
| using momentum::AimDirErrorFunction_w = ::std::weak_ptr<AimDirErrorFunction> |
| using momentum::AimDirErrorFunctiond = AimDirErrorFunctionT<double> |
| using momentum::AimDirErrorFunctiond_const_p = ::std::shared_ptr<const AimDirErrorFunctiond> |
| using momentum::AimDirErrorFunctiond_const_u = ::std::unique_ptr<const AimDirErrorFunctiond> |
| using momentum::AimDirErrorFunctiond_const_w = ::std::weak_ptr<const AimDirErrorFunctiond> |
| using momentum::AimDirErrorFunctiond_p = ::std::shared_ptr<AimDirErrorFunctiond> |
| using momentum::AimDirErrorFunctiond_u = ::std::unique_ptr<AimDirErrorFunctiond> |
| using momentum::AimDirErrorFunctiond_w = ::std::weak_ptr<AimDirErrorFunctiond> |
| using momentum::AimDistErrorFunction = AimDistErrorFunctionT<float> |
| using momentum::AimDistErrorFunction_const_p = ::std::shared_ptr<const AimDistErrorFunction> |
| using momentum::AimDistErrorFunction_const_u = ::std::unique_ptr<const AimDistErrorFunction> |
| using momentum::AimDistErrorFunction_const_w = ::std::weak_ptr<const AimDistErrorFunction> |
| using momentum::AimDistErrorFunction_p = ::std::shared_ptr<AimDistErrorFunction> |
| using momentum::AimDistErrorFunction_u = ::std::unique_ptr<AimDistErrorFunction> |
| using momentum::AimDistErrorFunction_w = ::std::weak_ptr<AimDistErrorFunction> |
| using momentum::AimDistErrorFunctiond = AimDistErrorFunctionT<double> |
| using momentum::AimDistErrorFunctiond_const_p = ::std::shared_ptr<const AimDistErrorFunctiond> |
| using momentum::AimDistErrorFunctiond_const_u = ::std::unique_ptr<const AimDistErrorFunctiond> |
| using momentum::AimDistErrorFunctiond_const_w = ::std::weak_ptr<const AimDistErrorFunctiond> |
| using momentum::AimDistErrorFunctiond_p = ::std::shared_ptr<AimDistErrorFunctiond> |
| using momentum::AimDistErrorFunctiond_u = ::std::unique_ptr<AimDistErrorFunctiond> |
| using momentum::AimDistErrorFunctiond_w = ::std::weak_ptr<AimDistErrorFunctiond> |
| using momentum::AngleAxis = Eigen::AngleAxis<T> |
| using momentum::AngleAxisd = AngleAxis<double> |
| using momentum::AngleAxisf = AngleAxis<float> |
| using momentum::BlendShape_const_p = ::std::shared_ptr<const BlendShape> |
| using momentum::BlendShape_const_u = ::std::unique_ptr<const BlendShape> |
| using momentum::BlendShape_const_w = ::std::weak_ptr<const BlendShape> |
| using momentum::BlendShape_p = ::std::shared_ptr<BlendShape> |
| using momentum::BlendShape_u = ::std::unique_ptr<BlendShape> |
| using momentum::BlendShape_w = ::std::weak_ptr<BlendShape> |
| using momentum::BlendShapeBase_const_p = ::std::shared_ptr<const BlendShapeBase> |
| using momentum::BlendShapeBase_const_u = ::std::unique_ptr<const BlendShapeBase> |
| using momentum::BlendShapeBase_const_w = ::std::weak_ptr<const BlendShapeBase> |
| using momentum::BlendShapeBase_p = ::std::shared_ptr<BlendShapeBase> |
| using momentum::BlendShapeBase_u = ::std::unique_ptr<BlendShapeBase> |
| using momentum::BlendShapeBase_w = ::std::weak_ptr<BlendShapeBase> |
| using momentum::BlendWeights = BlendWeightsT<float> |
| using momentum::BlendWeightsd = BlendWeightsT<double> |
| using momentum::Box = Eigen::AlignedBox<Scalar, Dim> |
| using momentum::Box2 = Eigen::AlignedBox<T, 2> |
| using momentum::Box2d = Box2<double> |
| using momentum::Box2f = Box2<float> |
| using momentum::Box2i = Box2<std::int32_t> |
| using momentum::Box3 = Eigen::AlignedBox<T, 3> |
| using momentum::Box3d = Box3<double> |
| using momentum::Box3f = Box3<float> |
| using momentum::Box3i = Box3<std::int32_t> |
| using momentum::Boxd = Eigen::AlignedBox<double, Dim> |
| using momentum::Boxf = Eigen::AlignedBox<float, Dim> |
| using momentum::Boxi = Eigen::AlignedBox<std::int32_t, Dim> |
| using momentum::ByteP = Packet<uint8_t> |
| using momentum::CameraProjectionErrorFunction_const_w = ::std::weak_ptr<const CameraProjectionErrorFunction> |
| using momentum::CameraProjectionErrorFunction_p = ::std::shared_ptr<CameraProjectionErrorFunction> |
| using momentum::CameraProjectionErrorFunction_u = ::std::unique_ptr<CameraProjectionErrorFunction> |
| using momentum::CameraProjectionErrorFunction_w = ::std::weak_ptr<CameraProjectionErrorFunction> |
| using momentum::CameraProjectionErrorFunctiond_p = ::std::shared_ptr<CameraProjectionErrorFunctiond> |
| using momentum::CameraProjectionErrorFunctiond_u = ::std::unique_ptr<CameraProjectionErrorFunctiond> |
| using momentum::CameraProjectionErrorFunctiond_w = ::std::weak_ptr<CameraProjectionErrorFunctiond> |
| using momentum::CameraVertexProjectionData = CameraVertexProjectionDataT<float> |
| using momentum::CameraVertexProjectionData_const_p = ::std::shared_ptr<const CameraVertexProjectionData> |
| using momentum::CameraVertexProjectionData_const_u = ::std::unique_ptr<const CameraVertexProjectionData> |
| using momentum::CameraVertexProjectionData_const_w = ::std::weak_ptr<const CameraVertexProjectionData> |
| using momentum::CameraVertexProjectionData_p = ::std::shared_ptr<CameraVertexProjectionData> |
| using momentum::CameraVertexProjectionData_u = ::std::unique_ptr<CameraVertexProjectionData> |
| using momentum::CameraVertexProjectionData_w = ::std::weak_ptr<CameraVertexProjectionData> |
| using momentum::CameraVertexProjectionDatad = CameraVertexProjectionDataT<double> |
| using momentum::CameraVertexProjectionDatad_const_p = ::std::shared_ptr<const CameraVertexProjectionDatad> |
| using momentum::CameraVertexProjectionDatad_const_u = ::std::unique_ptr<const CameraVertexProjectionDatad> |
| using momentum::CameraVertexProjectionDatad_const_w = ::std::weak_ptr<const CameraVertexProjectionDatad> |
| using momentum::CameraVertexProjectionDatad_p = ::std::shared_ptr<CameraVertexProjectionDatad> |
| using momentum::CameraVertexProjectionDatad_u = ::std::unique_ptr<CameraVertexProjectionDatad> |
| using momentum::CameraVertexProjectionDatad_w = ::std::weak_ptr<CameraVertexProjectionDatad> |
| using momentum::CameraVertexProjectionErrorFunction_w = ::std::weak_ptr<CameraVertexProjectionErrorFunction> |
| using momentum::CenterOfMassErrorFunction = CenterOfMassErrorFunctionT<float> |
| using momentum::CenterOfMassErrorFunction_const_p = ::std::shared_ptr<const CenterOfMassErrorFunction> |
| using momentum::CenterOfMassErrorFunction_const_u = ::std::unique_ptr<const CenterOfMassErrorFunction> |
| using momentum::CenterOfMassErrorFunction_const_w = ::std::weak_ptr<const CenterOfMassErrorFunction> |
| using momentum::CenterOfMassErrorFunction_p = ::std::shared_ptr<CenterOfMassErrorFunction> |
| using momentum::CenterOfMassErrorFunction_u = ::std::unique_ptr<CenterOfMassErrorFunction> |
| using momentum::CenterOfMassErrorFunction_w = ::std::weak_ptr<CenterOfMassErrorFunction> |
| using momentum::CenterOfMassErrorFunctiond = CenterOfMassErrorFunctionT<double> |
| using momentum::CenterOfMassErrorFunctiond_const_p = ::std::shared_ptr<const CenterOfMassErrorFunctiond> |
| using momentum::CenterOfMassErrorFunctiond_const_u = ::std::unique_ptr<const CenterOfMassErrorFunctiond> |
| using momentum::CenterOfMassErrorFunctiond_const_w = ::std::weak_ptr<const CenterOfMassErrorFunctiond> |
| using momentum::CenterOfMassErrorFunctiond_p = ::std::shared_ptr<CenterOfMassErrorFunctiond> |
| using momentum::CenterOfMassErrorFunctiond_u = ::std::unique_ptr<CenterOfMassErrorFunctiond> |
| using momentum::CenterOfMassErrorFunctiond_w = ::std::weak_ptr<CenterOfMassErrorFunctiond> |
| using momentum::Character_const_p = ::std::shared_ptr<const Character> |
| using momentum::Character_const_u = ::std::unique_ptr<const Character> |
| using momentum::Character_const_w = ::std::weak_ptr<const Character> |
| using momentum::Character_p = ::std::shared_ptr<Character> |
| using momentum::Character_u = ::std::unique_ptr<Character> |
| using momentum::Character_w = ::std::weak_ptr<Character> |
| using momentum::CharacterParameters = CharacterParametersT<float> |
| using momentum::CharacterParametersd = CharacterParametersT<double> |
| using momentum::CharacterState = CharacterStateT<float> |
| using momentum::CharacterState_const_p = ::std::shared_ptr<const CharacterState> |
| using momentum::CharacterState_const_u = ::std::unique_ptr<const CharacterState> |
| using momentum::CharacterState_const_w = ::std::weak_ptr<const CharacterState> |
| using momentum::CharacterState_p = ::std::shared_ptr<CharacterState> |
| using momentum::CharacterState_u = ::std::unique_ptr<CharacterState> |
| using momentum::CharacterState_w = ::std::weak_ptr<CharacterState> |
| using momentum::CharacterStated = CharacterStateT<double> |
| using momentum::CharacterStated_const_p = ::std::shared_ptr<const CharacterStated> |
| using momentum::CharacterStated_const_u = ::std::unique_ptr<const CharacterStated> |
| using momentum::CharacterStated_const_w = ::std::weak_ptr<const CharacterStated> |
| using momentum::CharacterStated_p = ::std::shared_ptr<CharacterStated> |
| using momentum::CharacterStated_u = ::std::unique_ptr<CharacterStated> |
| using momentum::CharacterStated_w = ::std::weak_ptr<CharacterStated> |
| using momentum::CollisionBox = CollisionBoxT<float> |
| using momentum::CollisionBox_const_p = ::std::shared_ptr<const CollisionBox> |
| using momentum::CollisionBox_const_u = ::std::unique_ptr<const CollisionBox> |
| using momentum::CollisionBox_const_w = ::std::weak_ptr<const CollisionBox> |
| using momentum::CollisionBox_p = ::std::shared_ptr<CollisionBox> |
| using momentum::CollisionBox_u = ::std::unique_ptr<CollisionBox> |
| using momentum::CollisionBox_w = ::std::weak_ptr<CollisionBox> |
| using momentum::CollisionBoxd = CollisionBoxT<double> |
| using momentum::CollisionBoxd_const_p = ::std::shared_ptr<const CollisionBoxd> |
| using momentum::CollisionBoxd_const_u = ::std::unique_ptr<const CollisionBoxd> |
| using momentum::CollisionBoxd_const_w = ::std::weak_ptr<const CollisionBoxd> |
| using momentum::CollisionBoxd_p = ::std::shared_ptr<CollisionBoxd> |
| using momentum::CollisionBoxd_u = ::std::unique_ptr<CollisionBoxd> |
| using momentum::CollisionBoxd_w = ::std::weak_ptr<CollisionBoxd> |
| using momentum::CollisionDebugEntry = CollisionDebugEntryT<float> |
Definition at line 32 of file collision_error_function.h.
| using momentum::CollisionDebugEntryd = CollisionDebugEntryT<double> |
Definition at line 33 of file collision_error_function.h.
| using momentum::CollisionEllipsoid = CollisionEllipsoidT<float> |
| using momentum::CollisionEllipsoid_const_p = ::std::shared_ptr<const CollisionEllipsoid> |
| using momentum::CollisionEllipsoid_const_u = ::std::unique_ptr<const CollisionEllipsoid> |
| using momentum::CollisionEllipsoid_const_w = ::std::weak_ptr<const CollisionEllipsoid> |
| using momentum::CollisionEllipsoid_p = ::std::shared_ptr<CollisionEllipsoid> |
| using momentum::CollisionEllipsoid_u = ::std::unique_ptr<CollisionEllipsoid> |
| using momentum::CollisionEllipsoid_w = ::std::weak_ptr<CollisionEllipsoid> |
| using momentum::CollisionEllipsoidd = CollisionEllipsoidT<double> |
| using momentum::CollisionEllipsoidd_const_p = ::std::shared_ptr<const CollisionEllipsoidd> |
| using momentum::CollisionEllipsoidd_const_u = ::std::unique_ptr<const CollisionEllipsoidd> |
| using momentum::CollisionEllipsoidd_const_w = ::std::weak_ptr<const CollisionEllipsoidd> |
| using momentum::CollisionEllipsoidd_p = ::std::shared_ptr<CollisionEllipsoidd> |
| using momentum::CollisionEllipsoidd_u = ::std::unique_ptr<CollisionEllipsoidd> |
| using momentum::CollisionEllipsoidd_w = ::std::weak_ptr<CollisionEllipsoidd> |
| using momentum::CollisionErrorFunction = CollisionErrorFunctionT<float> |
| using momentum::CollisionErrorFunction_const_p = ::std::shared_ptr<const CollisionErrorFunction> |
| using momentum::CollisionErrorFunction_const_u = ::std::unique_ptr<const CollisionErrorFunction> |
| using momentum::CollisionErrorFunction_const_w = ::std::weak_ptr<const CollisionErrorFunction> |
| using momentum::CollisionErrorFunction_p = ::std::shared_ptr<CollisionErrorFunction> |
| using momentum::CollisionErrorFunction_u = ::std::unique_ptr<CollisionErrorFunction> |
| using momentum::CollisionErrorFunction_w = ::std::weak_ptr<CollisionErrorFunction> |
| using momentum::CollisionErrorFunctiond = CollisionErrorFunctionT<double> |
| using momentum::CollisionErrorFunctiond_const_p = ::std::shared_ptr<const CollisionErrorFunctiond> |
| using momentum::CollisionErrorFunctiond_const_u = ::std::unique_ptr<const CollisionErrorFunctiond> |
| using momentum::CollisionErrorFunctiond_const_w = ::std::weak_ptr<const CollisionErrorFunctiond> |
| using momentum::CollisionErrorFunctiond_p = ::std::shared_ptr<CollisionErrorFunctiond> |
| using momentum::CollisionErrorFunctiond_u = ::std::unique_ptr<CollisionErrorFunctiond> |
| using momentum::CollisionErrorFunctiond_w = ::std::weak_ptr<CollisionErrorFunctiond> |
| using momentum::CollisionErrorFunctionStateless_p = ::std::shared_ptr<CollisionErrorFunctionStateless> |
| using momentum::CollisionErrorFunctionStateless_u = ::std::unique_ptr<CollisionErrorFunctionStateless> |
| using momentum::CollisionErrorFunctionStateless_w = ::std::weak_ptr<CollisionErrorFunctionStateless> |
| using momentum::CollisionErrorFunctionStatelessd_p = ::std::shared_ptr<CollisionErrorFunctionStatelessd> |
| using momentum::CollisionErrorFunctionStatelessd_u = ::std::unique_ptr<CollisionErrorFunctionStatelessd> |
| using momentum::CollisionErrorFunctionStatelessd_w = ::std::weak_ptr<CollisionErrorFunctionStatelessd> |
| using momentum::CollisionGeometry = CollisionGeometryT<float> |
Definition at line 354 of file collision_geometry.h.
| using momentum::CollisionGeometryd = CollisionGeometryT<double> |
Definition at line 355 of file collision_geometry.h.
| using momentum::CollisionGeometryState = CollisionGeometryStateT<float> |
| using momentum::CollisionGeometryState_const_p = ::std::shared_ptr<const CollisionGeometryState> |
| using momentum::CollisionGeometryState_const_u = ::std::unique_ptr<const CollisionGeometryState> |
| using momentum::CollisionGeometryState_const_w = ::std::weak_ptr<const CollisionGeometryState> |
| using momentum::CollisionGeometryState_p = ::std::shared_ptr<CollisionGeometryState> |
| using momentum::CollisionGeometryState_u = ::std::unique_ptr<CollisionGeometryState> |
| using momentum::CollisionGeometryState_w = ::std::weak_ptr<CollisionGeometryState> |
| using momentum::CollisionGeometryStated = CollisionGeometryStateT<double> |
| using momentum::CollisionGeometryStated_const_p = ::std::shared_ptr<const CollisionGeometryStated> |
| using momentum::CollisionGeometryStated_const_u = ::std::unique_ptr<const CollisionGeometryStated> |
| using momentum::CollisionGeometryStated_const_w = ::std::weak_ptr<const CollisionGeometryStated> |
| using momentum::CollisionGeometryStated_p = ::std::shared_ptr<CollisionGeometryStated> |
| using momentum::CollisionGeometryStated_u = ::std::unique_ptr<CollisionGeometryStated> |
| using momentum::CollisionGeometryStated_w = ::std::weak_ptr<CollisionGeometryStated> |
| 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.
| using momentum::CollisionOverlapResult = CollisionOverlapResultT<float> |
| using momentum::CollisionOverlapResult_const_p = ::std::shared_ptr<const CollisionOverlapResult> |
| using momentum::CollisionOverlapResult_const_u = ::std::unique_ptr<const CollisionOverlapResult> |
| using momentum::CollisionOverlapResult_const_w = ::std::weak_ptr<const CollisionOverlapResult> |
| using momentum::CollisionOverlapResult_p = ::std::shared_ptr<CollisionOverlapResult> |
| using momentum::CollisionOverlapResult_u = ::std::unique_ptr<CollisionOverlapResult> |
| using momentum::CollisionOverlapResult_w = ::std::weak_ptr<CollisionOverlapResult> |
| using momentum::CollisionOverlapResultd = CollisionOverlapResultT<double> |
| using momentum::CollisionOverlapResultd_const_p = ::std::shared_ptr<const CollisionOverlapResultd> |
| using momentum::CollisionOverlapResultd_const_u = ::std::unique_ptr<const CollisionOverlapResultd> |
| using momentum::CollisionOverlapResultd_const_w = ::std::weak_ptr<const CollisionOverlapResultd> |
| using momentum::CollisionOverlapResultd_p = ::std::shared_ptr<CollisionOverlapResultd> |
| using momentum::CollisionOverlapResultd_u = ::std::unique_ptr<CollisionOverlapResultd> |
| using momentum::CollisionOverlapResultd_w = ::std::weak_ptr<CollisionOverlapResultd> |
| using momentum::CollisionPrimitive = CollisionPrimitiveT<float> |
| using momentum::CollisionPrimitive_const_p = ::std::shared_ptr<const CollisionPrimitive> |
| using momentum::CollisionPrimitive_const_u = ::std::unique_ptr<const CollisionPrimitive> |
| using momentum::CollisionPrimitive_const_w = ::std::weak_ptr<const CollisionPrimitive> |
| using momentum::CollisionPrimitive_p = ::std::shared_ptr<CollisionPrimitive> |
| using momentum::CollisionPrimitive_u = ::std::unique_ptr<CollisionPrimitive> |
| using momentum::CollisionPrimitive_w = ::std::weak_ptr<CollisionPrimitive> |
| using momentum::CollisionPrimitived = CollisionPrimitiveT<double> |
| using momentum::CollisionPrimitived_const_p = ::std::shared_ptr<const CollisionPrimitived> |
| using momentum::CollisionPrimitived_const_u = ::std::unique_ptr<const CollisionPrimitived> |
| using momentum::CollisionPrimitived_const_w = ::std::weak_ptr<const CollisionPrimitived> |
| using momentum::CollisionPrimitived_p = ::std::shared_ptr<CollisionPrimitived> |
| using momentum::CollisionPrimitived_u = ::std::unique_ptr<CollisionPrimitived> |
| using momentum::CollisionPrimitived_w = ::std::weak_ptr<CollisionPrimitived> |
| using momentum::ColorArray = Matrix3Xb |
| using momentum::ConstraintData_const_p = ::std::shared_ptr<const ConstraintData> |
| using momentum::ConstraintData_const_u = ::std::unique_ptr<const ConstraintData> |
| using momentum::ConstraintData_const_w = ::std::weak_ptr<const ConstraintData> |
| using momentum::ConstraintData_p = ::std::shared_ptr<ConstraintData> |
| using momentum::ConstraintData_u = ::std::unique_ptr<ConstraintData> |
| using momentum::ConstraintData_w = ::std::weak_ptr<ConstraintData> |
| using momentum::ConstraintDataList = std::vector<ConstraintData> |
A list of ConstraintData.
Definition at line 47 of file error_function_types.h.
| using momentum::DistanceErrorFunction = DistanceErrorFunctionT<float> |
| using momentum::DistanceErrorFunction_const_p = ::std::shared_ptr<const DistanceErrorFunction> |
| using momentum::DistanceErrorFunction_const_u = ::std::unique_ptr<const DistanceErrorFunction> |
| using momentum::DistanceErrorFunction_const_w = ::std::weak_ptr<const DistanceErrorFunction> |
| using momentum::DistanceErrorFunction_p = ::std::shared_ptr<DistanceErrorFunction> |
| using momentum::DistanceErrorFunction_u = ::std::unique_ptr<DistanceErrorFunction> |
| using momentum::DistanceErrorFunction_w = ::std::weak_ptr<DistanceErrorFunction> |
| using momentum::DistanceErrorFunctiond = DistanceErrorFunctionT<double> |
| using momentum::DistanceErrorFunctiond_const_p = ::std::shared_ptr<const DistanceErrorFunctiond> |
| using momentum::DistanceErrorFunctiond_const_u = ::std::unique_ptr<const DistanceErrorFunctiond> |
| using momentum::DistanceErrorFunctiond_const_w = ::std::weak_ptr<const DistanceErrorFunctiond> |
| using momentum::DistanceErrorFunctiond_p = ::std::shared_ptr<DistanceErrorFunctiond> |
| using momentum::DistanceErrorFunctiond_u = ::std::unique_ptr<DistanceErrorFunctiond> |
| using momentum::DistanceErrorFunctiond_w = ::std::weak_ptr<DistanceErrorFunctiond> |
| using momentum::DoubleP = Packet<double> |
| using momentum::ErrorFunctionDerivatives = ErrorFunctionDerivativesT<float> |
| using momentum::ErrorFunctionDerivatives_const_p = ::std::shared_ptr<const ErrorFunctionDerivatives> |
| using momentum::ErrorFunctionDerivatives_const_u = ::std::unique_ptr<const ErrorFunctionDerivatives> |
| using momentum::ErrorFunctionDerivatives_const_w = ::std::weak_ptr<const ErrorFunctionDerivatives> |
| using momentum::ErrorFunctionDerivatives_p = ::std::shared_ptr<ErrorFunctionDerivatives> |
| using momentum::ErrorFunctionDerivatives_u = ::std::unique_ptr<ErrorFunctionDerivatives> |
| using momentum::ErrorFunctionDerivatives_w = ::std::weak_ptr<ErrorFunctionDerivatives> |
| using momentum::ErrorFunctionDerivativesd = ErrorFunctionDerivativesT<double> |
| using momentum::ErrorFunctionDerivativesd_const_p = ::std::shared_ptr<const ErrorFunctionDerivativesd> |
| using momentum::ErrorFunctionDerivativesd_const_u = ::std::unique_ptr<const ErrorFunctionDerivativesd> |
| using momentum::ErrorFunctionDerivativesd_const_w = ::std::weak_ptr<const ErrorFunctionDerivativesd> |
| using momentum::ErrorFunctionDerivativesd_p = ::std::shared_ptr<ErrorFunctionDerivativesd> |
| using momentum::ErrorFunctionDerivativesd_u = ::std::unique_ptr<ErrorFunctionDerivativesd> |
| using momentum::ErrorFunctionDerivativesd_w = ::std::weak_ptr<ErrorFunctionDerivativesd> |
| 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.
| 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.
| using momentum::FixedAxisAngleErrorFunction_const_p = ::std::shared_ptr<const FixedAxisAngleErrorFunction> |
| using momentum::FixedAxisAngleErrorFunction_const_u = ::std::unique_ptr<const FixedAxisAngleErrorFunction> |
| using momentum::FixedAxisAngleErrorFunction_const_w = ::std::weak_ptr<const FixedAxisAngleErrorFunction> |
| using momentum::FixedAxisAngleErrorFunction_p = ::std::shared_ptr<FixedAxisAngleErrorFunction> |
| using momentum::FixedAxisAngleErrorFunction_u = ::std::unique_ptr<FixedAxisAngleErrorFunction> |
| using momentum::FixedAxisAngleErrorFunction_w = ::std::weak_ptr<FixedAxisAngleErrorFunction> |
| using momentum::FixedAxisAngleErrorFunctiond = FixedAxisAngleErrorFunctionT<double> |
| using momentum::FixedAxisAngleErrorFunctiond_const_p = ::std::shared_ptr<const FixedAxisAngleErrorFunctiond> |
| using momentum::FixedAxisAngleErrorFunctiond_const_u = ::std::unique_ptr<const FixedAxisAngleErrorFunctiond> |
| using momentum::FixedAxisAngleErrorFunctiond_const_w = ::std::weak_ptr<const FixedAxisAngleErrorFunctiond> |
| using momentum::FixedAxisAngleErrorFunctiond_p = ::std::shared_ptr<FixedAxisAngleErrorFunctiond> |
| using momentum::FixedAxisAngleErrorFunctiond_u = ::std::unique_ptr<FixedAxisAngleErrorFunctiond> |
| using momentum::FixedAxisAngleErrorFunctiond_w = ::std::weak_ptr<FixedAxisAngleErrorFunctiond> |
| using momentum::FixedAxisCosErrorFunction = FixedAxisCosErrorFunctionT<float> |
| using momentum::FixedAxisCosErrorFunction_const_p = ::std::shared_ptr<const FixedAxisCosErrorFunction> |
| using momentum::FixedAxisCosErrorFunction_const_u = ::std::unique_ptr<const FixedAxisCosErrorFunction> |
| using momentum::FixedAxisCosErrorFunction_const_w = ::std::weak_ptr<const FixedAxisCosErrorFunction> |
| using momentum::FixedAxisCosErrorFunction_p = ::std::shared_ptr<FixedAxisCosErrorFunction> |
| using momentum::FixedAxisCosErrorFunction_u = ::std::unique_ptr<FixedAxisCosErrorFunction> |
| using momentum::FixedAxisCosErrorFunction_w = ::std::weak_ptr<FixedAxisCosErrorFunction> |
| using momentum::FixedAxisCosErrorFunctiond = FixedAxisCosErrorFunctionT<double> |
| using momentum::FixedAxisCosErrorFunctiond_const_p = ::std::shared_ptr<const FixedAxisCosErrorFunctiond> |
| using momentum::FixedAxisCosErrorFunctiond_const_u = ::std::unique_ptr<const FixedAxisCosErrorFunctiond> |
| using momentum::FixedAxisCosErrorFunctiond_const_w = ::std::weak_ptr<const FixedAxisCosErrorFunctiond> |
| using momentum::FixedAxisCosErrorFunctiond_p = ::std::shared_ptr<FixedAxisCosErrorFunctiond> |
| using momentum::FixedAxisCosErrorFunctiond_u = ::std::unique_ptr<FixedAxisCosErrorFunctiond> |
| using momentum::FixedAxisCosErrorFunctiond_w = ::std::weak_ptr<FixedAxisCosErrorFunctiond> |
| using momentum::FixedAxisData = FixedAxisDataT<float> |
| using momentum::FixedAxisData_const_p = ::std::shared_ptr<const FixedAxisData> |
| using momentum::FixedAxisData_const_u = ::std::unique_ptr<const FixedAxisData> |
| using momentum::FixedAxisData_const_w = ::std::weak_ptr<const FixedAxisData> |
| using momentum::FixedAxisData_p = ::std::shared_ptr<FixedAxisData> |
| using momentum::FixedAxisData_u = ::std::unique_ptr<FixedAxisData> |
| using momentum::FixedAxisData_w = ::std::weak_ptr<FixedAxisData> |
| using momentum::FixedAxisDatad = FixedAxisDataT<double> |
| using momentum::FixedAxisDatad_const_p = ::std::shared_ptr<const FixedAxisDatad> |
| using momentum::FixedAxisDatad_const_u = ::std::unique_ptr<const FixedAxisDatad> |
| using momentum::FixedAxisDatad_const_w = ::std::weak_ptr<const FixedAxisDatad> |
| using momentum::FixedAxisDatad_p = ::std::shared_ptr<FixedAxisDatad> |
| using momentum::FixedAxisDatad_u = ::std::unique_ptr<FixedAxisDatad> |
| using momentum::FixedAxisDatad_w = ::std::weak_ptr<FixedAxisDatad> |
| using momentum::FixedAxisDiffErrorFunction = FixedAxisDiffErrorFunctionT<float> |
| using momentum::FixedAxisDiffErrorFunction_const_p = ::std::shared_ptr<const FixedAxisDiffErrorFunction> |
| using momentum::FixedAxisDiffErrorFunction_const_u = ::std::unique_ptr<const FixedAxisDiffErrorFunction> |
| using momentum::FixedAxisDiffErrorFunction_const_w = ::std::weak_ptr<const FixedAxisDiffErrorFunction> |
| using momentum::FixedAxisDiffErrorFunction_p = ::std::shared_ptr<FixedAxisDiffErrorFunction> |
| using momentum::FixedAxisDiffErrorFunction_u = ::std::unique_ptr<FixedAxisDiffErrorFunction> |
| using momentum::FixedAxisDiffErrorFunction_w = ::std::weak_ptr<FixedAxisDiffErrorFunction> |
| using momentum::FixedAxisDiffErrorFunctiond = FixedAxisDiffErrorFunctionT<double> |
| using momentum::FixedAxisDiffErrorFunctiond_const_p = ::std::shared_ptr<const FixedAxisDiffErrorFunctiond> |
| using momentum::FixedAxisDiffErrorFunctiond_const_u = ::std::unique_ptr<const FixedAxisDiffErrorFunctiond> |
| using momentum::FixedAxisDiffErrorFunctiond_const_w = ::std::weak_ptr<const FixedAxisDiffErrorFunctiond> |
| using momentum::FixedAxisDiffErrorFunctiond_p = ::std::shared_ptr<FixedAxisDiffErrorFunctiond> |
| using momentum::FixedAxisDiffErrorFunctiond_u = ::std::unique_ptr<FixedAxisDiffErrorFunctiond> |
| using momentum::FixedAxisDiffErrorFunctiond_w = ::std::weak_ptr<FixedAxisDiffErrorFunctiond> |
| using momentum::FloatP = Packet<float> |
| using momentum::FloorErrorFunction = FloorErrorFunctionT<float> |
| using momentum::FloorErrorFunction_const_p = ::std::shared_ptr<const FloorErrorFunction> |
| using momentum::FloorErrorFunction_const_u = ::std::unique_ptr<const FloorErrorFunction> |
| using momentum::FloorErrorFunction_const_w = ::std::weak_ptr<const FloorErrorFunction> |
| using momentum::FloorErrorFunction_p = ::std::shared_ptr<FloorErrorFunction> |
| using momentum::FloorErrorFunction_u = ::std::unique_ptr<FloorErrorFunction> |
| using momentum::FloorErrorFunction_w = ::std::weak_ptr<FloorErrorFunction> |
| using momentum::FloorErrorFunctiond = FloorErrorFunctionT<double> |
| using momentum::FloorErrorFunctiond_const_p = ::std::shared_ptr<const FloorErrorFunctiond> |
| using momentum::FloorErrorFunctiond_const_u = ::std::unique_ptr<const FloorErrorFunctiond> |
| using momentum::FloorErrorFunctiond_const_w = ::std::weak_ptr<const FloorErrorFunctiond> |
| using momentum::FloorErrorFunctiond_p = ::std::shared_ptr<FloorErrorFunctiond> |
| using momentum::FloorErrorFunctiond_u = ::std::unique_ptr<FloorErrorFunctiond> |
| using momentum::FloorErrorFunctiond_w = ::std::weak_ptr<FloorErrorFunctiond> |
| using momentum::GapFillConfig_const_p = ::std::shared_ptr<const GapFillConfig> |
| using momentum::GapFillConfig_const_u = ::std::unique_ptr<const GapFillConfig> |
| using momentum::GapFillConfig_const_w = ::std::weak_ptr<const GapFillConfig> |
| using momentum::GapFillConfig_p = ::std::shared_ptr<GapFillConfig> |
| using momentum::GapFillConfig_u = ::std::unique_ptr<GapFillConfig> |
| using momentum::GapFillConfig_w = ::std::weak_ptr<GapFillConfig> |
| using momentum::GaussNewtonSolver = GaussNewtonSolverT<float> |
| using momentum::GaussNewtonSolver_const_p = ::std::shared_ptr<const GaussNewtonSolver> |
| using momentum::GaussNewtonSolver_const_u = ::std::unique_ptr<const GaussNewtonSolver> |
| using momentum::GaussNewtonSolver_const_w = ::std::weak_ptr<const GaussNewtonSolver> |
| using momentum::GaussNewtonSolver_p = ::std::shared_ptr<GaussNewtonSolver> |
| using momentum::GaussNewtonSolver_u = ::std::unique_ptr<GaussNewtonSolver> |
| using momentum::GaussNewtonSolver_w = ::std::weak_ptr<GaussNewtonSolver> |
| using momentum::GaussNewtonSolverd = GaussNewtonSolverT<double> |
| using momentum::GaussNewtonSolverd_const_p = ::std::shared_ptr<const GaussNewtonSolverd> |
| using momentum::GaussNewtonSolverd_const_u = ::std::unique_ptr<const GaussNewtonSolverd> |
| using momentum::GaussNewtonSolverd_const_w = ::std::weak_ptr<const GaussNewtonSolverd> |
| using momentum::GaussNewtonSolverd_p = ::std::shared_ptr<GaussNewtonSolverd> |
| using momentum::GaussNewtonSolverd_u = ::std::unique_ptr<GaussNewtonSolverd> |
| using momentum::GaussNewtonSolverd_w = ::std::weak_ptr<GaussNewtonSolverd> |
| using momentum::GaussNewtonSolverOptions_const_p = ::std::shared_ptr<const GaussNewtonSolverOptions> |
| using momentum::GaussNewtonSolverOptions_const_u = ::std::unique_ptr<const GaussNewtonSolverOptions> |
| using momentum::GaussNewtonSolverOptions_const_w = ::std::weak_ptr<const GaussNewtonSolverOptions> |
| using momentum::GaussNewtonSolverOptions_p = ::std::shared_ptr<GaussNewtonSolverOptions> |
| using momentum::GaussNewtonSolverOptions_u = ::std::unique_ptr<GaussNewtonSolverOptions> |
| using momentum::GaussNewtonSolverOptions_w = ::std::weak_ptr<GaussNewtonSolverOptions> |
| using momentum::GaussNewtonSolverQR = GaussNewtonSolverQRT<float> |
| using momentum::GaussNewtonSolverQR_const_p = ::std::shared_ptr<const GaussNewtonSolverQR> |
| using momentum::GaussNewtonSolverQR_const_u = ::std::unique_ptr<const GaussNewtonSolverQR> |
| using momentum::GaussNewtonSolverQR_const_w = ::std::weak_ptr<const GaussNewtonSolverQR> |
| using momentum::GaussNewtonSolverQR_p = ::std::shared_ptr<GaussNewtonSolverQR> |
| using momentum::GaussNewtonSolverQR_u = ::std::unique_ptr<GaussNewtonSolverQR> |
| using momentum::GaussNewtonSolverQR_w = ::std::weak_ptr<GaussNewtonSolverQR> |
| using momentum::GaussNewtonSolverQRd = GaussNewtonSolverQRT<double> |
| using momentum::GaussNewtonSolverQRd_const_p = ::std::shared_ptr<const GaussNewtonSolverQRd> |
| using momentum::GaussNewtonSolverQRd_const_u = ::std::unique_ptr<const GaussNewtonSolverQRd> |
| using momentum::GaussNewtonSolverQRd_const_w = ::std::weak_ptr<const GaussNewtonSolverQRd> |
| using momentum::GaussNewtonSolverQRd_p = ::std::shared_ptr<GaussNewtonSolverQRd> |
| using momentum::GaussNewtonSolverQRd_u = ::std::unique_ptr<GaussNewtonSolverQRd> |
| using momentum::GaussNewtonSolverQRd_w = ::std::weak_ptr<GaussNewtonSolverQRd> |
| using momentum::GaussNewtonSolverQROptions_const_p = ::std::shared_ptr<const GaussNewtonSolverQROptions> |
| using momentum::GaussNewtonSolverQROptions_const_u = ::std::unique_ptr<const GaussNewtonSolverQROptions> |
| using momentum::GaussNewtonSolverQROptions_const_w = ::std::weak_ptr<const GaussNewtonSolverQROptions> |
| using momentum::GaussNewtonSolverQROptions_p = ::std::shared_ptr<GaussNewtonSolverQROptions> |
| using momentum::GaussNewtonSolverQROptions_u = ::std::unique_ptr<GaussNewtonSolverQROptions> |
| using momentum::GaussNewtonSolverQROptions_w = ::std::weak_ptr<GaussNewtonSolverQROptions> |
| using momentum::GeneralizedLoss = GeneralizedLossT<float> |
| using momentum::GeneralizedLoss_const_p = ::std::shared_ptr<const GeneralizedLoss> |
| using momentum::GeneralizedLoss_const_u = ::std::unique_ptr<const GeneralizedLoss> |
| using momentum::GeneralizedLoss_const_w = ::std::weak_ptr<const GeneralizedLoss> |
| using momentum::GeneralizedLoss_p = ::std::shared_ptr<GeneralizedLoss> |
| using momentum::GeneralizedLoss_u = ::std::unique_ptr<GeneralizedLoss> |
| using momentum::GeneralizedLoss_w = ::std::weak_ptr<GeneralizedLoss> |
| using momentum::GeneralizedLossd = GeneralizedLossT<double> |
| using momentum::GeneralizedLossd_const_p = ::std::shared_ptr<const GeneralizedLossd> |
| using momentum::GeneralizedLossd_const_u = ::std::unique_ptr<const GeneralizedLossd> |
| using momentum::GeneralizedLossd_const_w = ::std::weak_ptr<const GeneralizedLossd> |
| using momentum::GeneralizedLossd_p = ::std::shared_ptr<GeneralizedLossd> |
| using momentum::GeneralizedLossd_u = ::std::unique_ptr<GeneralizedLossd> |
| using momentum::GeneralizedLossd_w = ::std::weak_ptr<GeneralizedLossd> |
| using momentum::GloveConfig_const_p = ::std::shared_ptr<const GloveConfig> |
| using momentum::GloveConfig_const_u = ::std::unique_ptr<const GloveConfig> |
| using momentum::GloveConfig_const_w = ::std::weak_ptr<const GloveConfig> |
| using momentum::GloveConfig_p = ::std::shared_ptr<GloveConfig> |
| using momentum::GloveConfig_u = ::std::unique_ptr<GloveConfig> |
| using momentum::GloveConfig_w = ::std::weak_ptr<GloveConfig> |
| using momentum::GloveFrameData = std::vector<GloveSensorObservation> |
Per-frame collection of glove sensor observations.
Definition at line 49 of file glove_utils.h.
| using momentum::GloveOffset_const_p = ::std::shared_ptr<const GloveOffset> |
| using momentum::GloveOffset_const_u = ::std::unique_ptr<const GloveOffset> |
| using momentum::GloveOffset_const_w = ::std::weak_ptr<const GloveOffset> |
| using momentum::GloveOffset_p = ::std::shared_ptr<GloveOffset> |
| using momentum::GloveOffset_u = ::std::unique_ptr<GloveOffset> |
| using momentum::GloveOffset_w = ::std::weak_ptr<GloveOffset> |
| using momentum::GloveSensorObservation_const_p = ::std::shared_ptr<const GloveSensorObservation> |
| using momentum::GloveSensorObservation_const_u = ::std::unique_ptr<const GloveSensorObservation> |
| using momentum::GloveSensorObservation_const_w = ::std::weak_ptr<const GloveSensorObservation> |
| using momentum::GloveSensorObservation_p = ::std::shared_ptr<GloveSensorObservation> |
| using momentum::GloveSensorObservation_u = ::std::unique_ptr<GloveSensorObservation> |
| using momentum::GloveSensorObservation_w = ::std::weak_ptr<GloveSensorObservation> |
| using momentum::GradientDescentSolver = GradientDescentSolverT<float> |
| using momentum::GradientDescentSolver_const_p = ::std::shared_ptr<const GradientDescentSolver> |
| using momentum::GradientDescentSolver_const_u = ::std::unique_ptr<const GradientDescentSolver> |
| using momentum::GradientDescentSolver_const_w = ::std::weak_ptr<const GradientDescentSolver> |
| using momentum::GradientDescentSolver_p = ::std::shared_ptr<GradientDescentSolver> |
| using momentum::GradientDescentSolver_u = ::std::unique_ptr<GradientDescentSolver> |
| using momentum::GradientDescentSolver_w = ::std::weak_ptr<GradientDescentSolver> |
| using momentum::GradientDescentSolverd = GradientDescentSolverT<double> |
| using momentum::GradientDescentSolverd_const_p = ::std::shared_ptr<const GradientDescentSolverd> |
| using momentum::GradientDescentSolverd_const_u = ::std::unique_ptr<const GradientDescentSolverd> |
| using momentum::GradientDescentSolverd_const_w = ::std::weak_ptr<const GradientDescentSolverd> |
| using momentum::GradientDescentSolverd_p = ::std::shared_ptr<GradientDescentSolverd> |
| using momentum::GradientDescentSolverd_u = ::std::unique_ptr<GradientDescentSolverd> |
| using momentum::GradientDescentSolverd_w = ::std::weak_ptr<GradientDescentSolverd> |
| using momentum::HeightErrorFunction = HeightErrorFunctionT<float> |
| using momentum::HeightErrorFunction_const_p = ::std::shared_ptr<const HeightErrorFunction> |
| using momentum::HeightErrorFunction_const_u = ::std::unique_ptr<const HeightErrorFunction> |
| using momentum::HeightErrorFunction_const_w = ::std::weak_ptr<const HeightErrorFunction> |
| using momentum::HeightErrorFunction_p = ::std::shared_ptr<HeightErrorFunction> |
| using momentum::HeightErrorFunction_u = ::std::unique_ptr<HeightErrorFunction> |
| using momentum::HeightErrorFunction_w = ::std::weak_ptr<HeightErrorFunction> |
| using momentum::HeightErrorFunctiond = HeightErrorFunctionT<double> |
| using momentum::HeightErrorFunctiond_const_p = ::std::shared_ptr<const HeightErrorFunctiond> |
| using momentum::HeightErrorFunctiond_const_u = ::std::unique_ptr<const HeightErrorFunctiond> |
| using momentum::HeightErrorFunctiond_const_w = ::std::weak_ptr<const HeightErrorFunctiond> |
| using momentum::HeightErrorFunctiond_p = ::std::shared_ptr<HeightErrorFunctiond> |
| using momentum::HeightErrorFunctiond_u = ::std::unique_ptr<HeightErrorFunctiond> |
| using momentum::HeightErrorFunctiond_w = ::std::weak_ptr<HeightErrorFunctiond> |
| 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.
| using momentum::IndexMatrix |
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.
| using momentum::IntP = Packet<int> |
| using momentum::InverseParameterTransform = InverseParameterTransformT<float> |
Definition at line 53 of file inverse_parameter_transform.h.
| using momentum::InverseParameterTransformd = InverseParameterTransformT<double> |
Definition at line 54 of file inverse_parameter_transform.h.
| using momentum::Isometry3 = Eigen::Transform<T, 3, Eigen::Isometry> |
| using momentum::Isometry3d = Isometry3<double> |
| using momentum::Isometry3f = Isometry3<float> |
| using momentum::JerkSequenceErrorFunction = JerkSequenceErrorFunctionT<float> |
| using momentum::JerkSequenceErrorFunction_const_p = ::std::shared_ptr<const JerkSequenceErrorFunction> |
| using momentum::JerkSequenceErrorFunction_const_u = ::std::unique_ptr<const JerkSequenceErrorFunction> |
| using momentum::JerkSequenceErrorFunction_const_w = ::std::weak_ptr<const JerkSequenceErrorFunction> |
| using momentum::JerkSequenceErrorFunction_p = ::std::shared_ptr<JerkSequenceErrorFunction> |
| using momentum::JerkSequenceErrorFunction_u = ::std::unique_ptr<JerkSequenceErrorFunction> |
| using momentum::JerkSequenceErrorFunction_w = ::std::weak_ptr<JerkSequenceErrorFunction> |
| using momentum::JerkSequenceErrorFunctiond = JerkSequenceErrorFunctionT<double> |
| using momentum::JerkSequenceErrorFunctiond_const_p = ::std::shared_ptr<const JerkSequenceErrorFunctiond> |
| using momentum::JerkSequenceErrorFunctiond_const_u = ::std::unique_ptr<const JerkSequenceErrorFunctiond> |
| using momentum::JerkSequenceErrorFunctiond_const_w = ::std::weak_ptr<const JerkSequenceErrorFunctiond> |
| using momentum::JerkSequenceErrorFunctiond_p = ::std::shared_ptr<JerkSequenceErrorFunctiond> |
| using momentum::JerkSequenceErrorFunctiond_u = ::std::unique_ptr<JerkSequenceErrorFunctiond> |
| using momentum::JerkSequenceErrorFunctiond_w = ::std::weak_ptr<JerkSequenceErrorFunctiond> |
| using momentum::Joint = JointT<float> |
| using momentum::Joint_const_p = ::std::shared_ptr<const Joint> |
| using momentum::Joint_const_u = ::std::unique_ptr<const Joint> |
| using momentum::Joint_const_w = ::std::weak_ptr<const Joint> |
| using momentum::Joint_p = ::std::shared_ptr<Joint> |
| using momentum::Joint_u = ::std::unique_ptr<Joint> |
| using momentum::Joint_w = ::std::weak_ptr<Joint> |
| using momentum::Jointd = JointT<double> |
| using momentum::Jointd_const_p = ::std::shared_ptr<const Jointd> |
| using momentum::Jointd_const_u = ::std::unique_ptr<const Jointd> |
| using momentum::Jointd_const_w = ::std::weak_ptr<const Jointd> |
| using momentum::Jointd_p = ::std::shared_ptr<Jointd> |
| using momentum::Jointd_u = ::std::unique_ptr<Jointd> |
| using momentum::Jointd_w = ::std::weak_ptr<Jointd> |
| using momentum::JointList = JointListT<float> |
| using momentum::JointListd = JointListT<double> |
| using momentum::JointListT = std::vector<JointT<T>> |
| using momentum::JointParameters = JointParametersT<float> |
| using momentum::JointParametersd = JointParametersT<double> |
| using momentum::JointPhysicalProperties_const_p = ::std::shared_ptr<const JointPhysicalProperties> |
| using momentum::JointPhysicalProperties_const_u = ::std::unique_ptr<const JointPhysicalProperties> |
| using momentum::JointPhysicalProperties_const_w = ::std::weak_ptr<const JointPhysicalProperties> |
| using momentum::JointPhysicalProperties_p = ::std::shared_ptr<JointPhysicalProperties> |
| using momentum::JointPhysicalProperties_u = ::std::unique_ptr<JointPhysicalProperties> |
| using momentum::JointPhysicalProperties_w = ::std::weak_ptr<JointPhysicalProperties> |
| typedef JointStateT< float > momentum::JointState = JointStateT<float> |
| using momentum::JointState_const_p = ::std::shared_ptr<const JointState> |
| using momentum::JointState_const_u = ::std::unique_ptr<const JointState> |
| using momentum::JointState_const_w = ::std::weak_ptr<const JointState> |
| using momentum::JointState_p = ::std::shared_ptr<JointState> |
| using momentum::JointState_u = ::std::unique_ptr<JointState> |
| using momentum::JointState_w = ::std::weak_ptr<JointState> |
| using momentum::JointStated = JointStateT<double> |
| using momentum::JointStated_const_p = ::std::shared_ptr<const JointStated> |
| using momentum::JointStated_const_u = ::std::unique_ptr<const JointStated> |
| using momentum::JointStated_const_w = ::std::weak_ptr<const JointStated> |
| using momentum::JointStated_p = ::std::shared_ptr<JointStated> |
| using momentum::JointStated_u = ::std::unique_ptr<JointStated> |
| using momentum::JointStated_w = ::std::weak_ptr<JointStated> |
| typedef JointStateListT< float > momentum::JointStateList = JointStateListT<float> |
Definition at line 276 of file joint_state.h.
| using momentum::JointStateListd = JointStateListT<double> |
| 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.
| using momentum::JointToJointDistanceErrorFunction_p = ::std::shared_ptr<JointToJointDistanceErrorFunction> |
| using momentum::JointToJointDistanceErrorFunction_u = ::std::unique_ptr<JointToJointDistanceErrorFunction> |
| using momentum::JointToJointDistanceErrorFunction_w = ::std::weak_ptr<JointToJointDistanceErrorFunction> |
| using momentum::JointToJointDistanceErrorFunctiond_p = ::std::shared_ptr<JointToJointDistanceErrorFunctiond> |
| using momentum::JointToJointDistanceErrorFunctiond_u = ::std::unique_ptr<JointToJointDistanceErrorFunctiond> |
| using momentum::JointToJointDistanceErrorFunctiond_w = ::std::weak_ptr<JointToJointDistanceErrorFunctiond> |
| using momentum::JointToJointOrientationData_const_p = ::std::shared_ptr<const JointToJointOrientationData> |
| using momentum::JointToJointOrientationData_const_u = ::std::unique_ptr<const JointToJointOrientationData> |
| using momentum::JointToJointOrientationData_const_w = ::std::weak_ptr<const JointToJointOrientationData> |
| using momentum::JointToJointOrientationData_p = ::std::shared_ptr<JointToJointOrientationData> |
| using momentum::JointToJointOrientationData_u = ::std::unique_ptr<JointToJointOrientationData> |
| using momentum::JointToJointOrientationData_w = ::std::weak_ptr<JointToJointOrientationData> |
| using momentum::JointToJointOrientationDatad = JointToJointOrientationDataT<double> |
| using momentum::JointToJointOrientationDatad_const_p = ::std::shared_ptr<const JointToJointOrientationDatad> |
| using momentum::JointToJointOrientationDatad_const_u = ::std::unique_ptr<const JointToJointOrientationDatad> |
| using momentum::JointToJointOrientationDatad_const_w = ::std::weak_ptr<const JointToJointOrientationDatad> |
| using momentum::JointToJointOrientationDatad_p = ::std::shared_ptr<JointToJointOrientationDatad> |
| using momentum::JointToJointOrientationDatad_u = ::std::unique_ptr<JointToJointOrientationDatad> |
| using momentum::JointToJointOrientationDatad_w = ::std::weak_ptr<JointToJointOrientationDatad> |
| using momentum::JointToJointPositionErrorFunction_p = ::std::shared_ptr<JointToJointPositionErrorFunction> |
| using momentum::JointToJointPositionErrorFunction_u = ::std::unique_ptr<JointToJointPositionErrorFunction> |
| using momentum::JointToJointPositionErrorFunction_w = ::std::weak_ptr<JointToJointPositionErrorFunction> |
| using momentum::JointToJointPositionErrorFunctiond_p = ::std::shared_ptr<JointToJointPositionErrorFunctiond> |
| using momentum::JointToJointPositionErrorFunctiond_u = ::std::unique_ptr<JointToJointPositionErrorFunctiond> |
| using momentum::JointToJointPositionErrorFunctiond_w = ::std::weak_ptr<JointToJointPositionErrorFunctiond> |
| using momentum::JointToJointSequenceConstraint_p = ::std::shared_ptr<JointToJointSequenceConstraint> |
| using momentum::JointToJointSequenceConstraint_u = ::std::unique_ptr<JointToJointSequenceConstraint> |
| using momentum::JointToJointSequenceConstraint_w = ::std::weak_ptr<JointToJointSequenceConstraint> |
| using momentum::JointToJointSequenceConstraintd_p = ::std::shared_ptr<JointToJointSequenceConstraintd> |
| using momentum::JointToJointSequenceConstraintd_u = ::std::unique_ptr<JointToJointSequenceConstraintd> |
| using momentum::JointToJointSequenceConstraintd_w = ::std::weak_ptr<JointToJointSequenceConstraintd> |
| using momentum::JointToJointSequenceErrorFunction_p = ::std::shared_ptr<JointToJointSequenceErrorFunction> |
| using momentum::JointToJointSequenceErrorFunction_u = ::std::unique_ptr<JointToJointSequenceErrorFunction> |
| using momentum::JointToJointSequenceErrorFunction_w = ::std::weak_ptr<JointToJointSequenceErrorFunction> |
| using momentum::JointToJointSequenceErrorFunctiond_p = ::std::shared_ptr<JointToJointSequenceErrorFunctiond> |
| using momentum::JointToJointSequenceErrorFunctiond_u = ::std::unique_ptr<JointToJointSequenceErrorFunctiond> |
| using momentum::JointToJointSequenceErrorFunctiond_w = ::std::weak_ptr<JointToJointSequenceErrorFunctiond> |
| using momentum::JointVector = JointVectorT<float> |
| using momentum::JointVectorT = Eigen::Matrix<T, kParametersPerJoint, 1> |
| using momentum::LimitErrorFunction = LimitErrorFunctionT<float> |
| using momentum::LimitErrorFunction_const_p = ::std::shared_ptr<const LimitErrorFunction> |
| using momentum::LimitErrorFunction_const_u = ::std::unique_ptr<const LimitErrorFunction> |
| using momentum::LimitErrorFunction_const_w = ::std::weak_ptr<const LimitErrorFunction> |
| using momentum::LimitErrorFunction_p = ::std::shared_ptr<LimitErrorFunction> |
| using momentum::LimitErrorFunction_u = ::std::unique_ptr<LimitErrorFunction> |
| using momentum::LimitErrorFunction_w = ::std::weak_ptr<LimitErrorFunction> |
| using momentum::LimitErrorFunctiond = LimitErrorFunctionT<double> |
| using momentum::LimitErrorFunctiond_const_p = ::std::shared_ptr<const LimitErrorFunctiond> |
| using momentum::LimitErrorFunctiond_const_u = ::std::unique_ptr<const LimitErrorFunctiond> |
| using momentum::LimitErrorFunctiond_const_w = ::std::weak_ptr<const LimitErrorFunctiond> |
| using momentum::LimitErrorFunctiond_p = ::std::shared_ptr<LimitErrorFunctiond> |
| using momentum::LimitErrorFunctiond_u = ::std::unique_ptr<LimitErrorFunctiond> |
| using momentum::LimitErrorFunctiond_w = ::std::weak_ptr<LimitErrorFunctiond> |
| using momentum::Line = Eigen::ParametrizedLine<Scalar, Dim> |
| using momentum::Locator_const_p = ::std::shared_ptr<const Locator> |
| using momentum::Locator_const_u = ::std::unique_ptr<const Locator> |
| using momentum::Locator_const_w = ::std::weak_ptr<const Locator> |
| using momentum::Locator_p = ::std::shared_ptr<Locator> |
| using momentum::Locator_u = ::std::unique_ptr<Locator> |
| using momentum::Locator_w = ::std::weak_ptr<Locator> |
| using momentum::LocatorList = std::vector<Locator> |
| using momentum::LowRankCovarianceMatrix = LowRankCovarianceMatrixT<float> |
| using momentum::LowRankCovarianceMatrix_const_p = ::std::shared_ptr<const LowRankCovarianceMatrix> |
| using momentum::LowRankCovarianceMatrix_const_u = ::std::unique_ptr<const LowRankCovarianceMatrix> |
| using momentum::LowRankCovarianceMatrix_const_w = ::std::weak_ptr<const LowRankCovarianceMatrix> |
| using momentum::LowRankCovarianceMatrix_p = ::std::shared_ptr<LowRankCovarianceMatrix> |
| using momentum::LowRankCovarianceMatrix_u = ::std::unique_ptr<LowRankCovarianceMatrix> |
| using momentum::LowRankCovarianceMatrix_w = ::std::weak_ptr<LowRankCovarianceMatrix> |
| using momentum::LowRankCovarianceMatrixd = LowRankCovarianceMatrixT<double> |
| using momentum::LowRankCovarianceMatrixd_const_p = ::std::shared_ptr<const LowRankCovarianceMatrixd> |
| using momentum::LowRankCovarianceMatrixd_const_u = ::std::unique_ptr<const LowRankCovarianceMatrixd> |
| using momentum::LowRankCovarianceMatrixd_const_w = ::std::weak_ptr<const LowRankCovarianceMatrixd> |
| using momentum::LowRankCovarianceMatrixd_p = ::std::shared_ptr<LowRankCovarianceMatrixd> |
| using momentum::LowRankCovarianceMatrixd_u = ::std::unique_ptr<LowRankCovarianceMatrixd> |
| using momentum::LowRankCovarianceMatrixd_w = ::std::weak_ptr<LowRankCovarianceMatrixd> |
| using momentum::Map = Eigen::Map<T> |
| using momentum::Matrix0 = Eigen::Matrix<T, 0, 0> |
| using momentum::Matrix0b = Matrix0<std::uint8_t> |
| using momentum::Matrix0d = Matrix0<double> |
| using momentum::Matrix0f = Matrix0<float> |
| using momentum::Matrix0i = Matrix0<std::int32_t> |
| using momentum::Matrix0s = Matrix0<std::uint16_t> |
| using momentum::Matrix0u = Matrix0<std::uint32_t> |
| using momentum::Matrix1 = Eigen::Matrix<T, 1, 1> |
| using momentum::Matrix1b = Matrix1<std::uint8_t> |
| using momentum::Matrix1d = Matrix1<double> |
| using momentum::Matrix1f = Matrix1<float> |
| using momentum::Matrix1i = Matrix1<std::int32_t> |
| using momentum::Matrix1s = Matrix1<std::uint16_t> |
| using momentum::Matrix1u = Matrix1<std::uint32_t> |
| using momentum::Matrix2 = Eigen::Matrix<T, 2, 2> |
| using momentum::Matrix2b = Matrix2<std::uint8_t> |
| using momentum::Matrix2d = Matrix2<double> |
| using momentum::Matrix2f = Matrix2<float> |
| using momentum::Matrix2i = Matrix2<std::int32_t> |
| using momentum::Matrix2s = Matrix2<std::uint16_t> |
| using momentum::Matrix2u = Matrix2<std::uint32_t> |
| using momentum::Matrix3 = Eigen::Matrix<T, 3, 3> |
| using momentum::Matrix3b = Matrix3<std::uint8_t> |
| using momentum::Matrix3d = Matrix3<double> |
| using momentum::Matrix3dP = Matrix3P<double> |
| using momentum::Matrix3f = Matrix3<float> |
| using momentum::Matrix3fP = Matrix3P<float> |
| using momentum::Matrix3i = Matrix3<std::int32_t> |
| using momentum::Matrix3P = MatrixP<T, 3> |
| using momentum::Matrix3s = Matrix3<std::uint16_t> |
| using momentum::Matrix3u = Matrix3<std::uint32_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.
| using momentum::Matrix3Xb = Matrix3X<std::uint8_t> |
| using momentum::Matrix3Xd = Matrix3X<double> |
| using momentum::Matrix3Xf = Matrix3X<float> |
| using momentum::Matrix3Xi = Matrix3X<std::int32_t> |
| using momentum::Matrix3Xs = Matrix3X<std::uint16_t> |
| using momentum::Matrix3Xu = Matrix3X<std::uint32_t> |
| using momentum::Matrix4 = Eigen::Matrix<T, 4, 4> |
| using momentum::Matrix4b = Matrix4<std::uint8_t> |
| using momentum::Matrix4d = Matrix4<double> |
| using momentum::Matrix4dP = Matrix4P<double> |
| using momentum::Matrix4f = Matrix4<float> |
| using momentum::Matrix4fP = Matrix4P<float> |
| using momentum::Matrix4i = Matrix4<std::int32_t> |
| using momentum::Matrix4P = MatrixP<T, 4> |
| using momentum::Matrix4s = Matrix4<std::uint16_t> |
| using momentum::Matrix4u = Matrix4<std::uint32_t> |
| using momentum::Matrix5 = Eigen::Matrix<T, 5, 5> |
| using momentum::Matrix5b = Matrix5<std::uint8_t> |
| using momentum::Matrix5d = Matrix5<double> |
| using momentum::Matrix5f = Matrix5<float> |
| using momentum::Matrix5i = Matrix5<std::int32_t> |
| using momentum::Matrix5s = Matrix5<std::uint16_t> |
| using momentum::Matrix5u = Matrix5<std::uint32_t> |
| using momentum::Matrix6 = Eigen::Matrix<T, 6, 6> |
| using momentum::Matrix6b = Matrix6<std::uint8_t> |
| using momentum::Matrix6d = Matrix6<double> |
| using momentum::Matrix6f = Matrix6<float> |
| using momentum::Matrix6i = Matrix6<std::int32_t> |
| using momentum::Matrix6s = Matrix6<std::uint16_t> |
| using momentum::Matrix6u = Matrix6<std::uint32_t> |
| using momentum::MatrixP = drjit::Matrix<Packet<T>, Dim> |
| using momentum::MatrixX = Eigen::Matrix<T, Dynamic, Dynamic> |
| using momentum::MatrixX3 = Eigen::Matrix<T, Dynamic, 3> |
| using momentum::MatrixX3b = MatrixX3<std::uint8_t> |
| using momentum::MatrixX3d = MatrixX3<double> |
| using momentum::MatrixX3f = MatrixX3<float> |
| using momentum::MatrixX3i = MatrixX3<std::int32_t> |
| using momentum::MatrixX3s = MatrixX3<std::uint16_t> |
| using momentum::MatrixX3u = MatrixX3<std::uint32_t> |
| using momentum::MatrixXb = MatrixX<std::uint8_t> |
| using momentum::MatrixXd = MatrixX<double> |
| using momentum::MatrixXf = MatrixX<float> |
| using momentum::MatrixXi = MatrixX<std::int32_t> |
| using momentum::MatrixXs = MatrixX<std::uint16_t> |
| using momentum::MatrixXu = MatrixX<std::uint32_t> |
| using momentum::Mesh = MeshT<float> |
| using momentum::Mesh_const_p = ::std::shared_ptr<const Mesh> |
| using momentum::Mesh_const_u = ::std::unique_ptr<const Mesh> |
| using momentum::Mesh_const_w = ::std::weak_ptr<const Mesh> |
| using momentum::Mesh_p = ::std::shared_ptr<Mesh> |
| using momentum::Mesh_u = ::std::unique_ptr<Mesh> |
| using momentum::Mesh_w = ::std::weak_ptr<Mesh> |
| using momentum::Meshd = MeshT<double> |
| using momentum::Meshd_const_p = ::std::shared_ptr<const Meshd> |
| using momentum::Meshd_const_u = ::std::unique_ptr<const Meshd> |
| using momentum::Meshd_const_w = ::std::weak_ptr<const Meshd> |
| using momentum::Meshd_p = ::std::shared_ptr<Meshd> |
| using momentum::Meshd_u = ::std::unique_ptr<Meshd> |
| using momentum::Meshd_w = ::std::weak_ptr<Meshd> |
| using momentum::MeshState = MeshStateT<float> |
| using momentum::MeshState_const_p = ::std::shared_ptr<const MeshState> |
| using momentum::MeshState_const_u = ::std::unique_ptr<const MeshState> |
| using momentum::MeshState_const_w = ::std::weak_ptr<const MeshState> |
| using momentum::MeshState_p = ::std::shared_ptr<MeshState> |
| using momentum::MeshState_u = ::std::unique_ptr<MeshState> |
| using momentum::MeshState_w = ::std::weak_ptr<MeshState> |
| using momentum::MeshStated = MeshStateT<double> |
| using momentum::MeshStated_const_p = ::std::shared_ptr<const MeshStated> |
| using momentum::MeshStated_const_u = ::std::unique_ptr<const MeshStated> |
| using momentum::MeshStated_const_w = ::std::weak_ptr<const MeshStated> |
| using momentum::MeshStated_p = ::std::shared_ptr<MeshStated> |
| using momentum::MeshStated_u = ::std::unique_ptr<MeshStated> |
| using momentum::MeshStated_w = ::std::weak_ptr<MeshStated> |
| using momentum::ModelParameters = ModelParametersT<float> |
| using momentum::ModelParametersd = ModelParametersT<double> |
| using momentum::ModelParametersErrorFunction_const_p = ::std::shared_ptr<const ModelParametersErrorFunction> |
| using momentum::ModelParametersErrorFunction_const_u = ::std::unique_ptr<const ModelParametersErrorFunction> |
| using momentum::ModelParametersErrorFunction_const_w = ::std::weak_ptr<const ModelParametersErrorFunction> |
| using momentum::ModelParametersErrorFunction_p = ::std::shared_ptr<ModelParametersErrorFunction> |
| using momentum::ModelParametersErrorFunction_u = ::std::unique_ptr<ModelParametersErrorFunction> |
| using momentum::ModelParametersErrorFunction_w = ::std::weak_ptr<ModelParametersErrorFunction> |
| using momentum::ModelParametersErrorFunctiond = ModelParametersErrorFunctionT<double> |
| using momentum::ModelParametersErrorFunctiond_const_w = ::std::weak_ptr<const ModelParametersErrorFunctiond> |
| using momentum::ModelParametersErrorFunctiond_p = ::std::shared_ptr<ModelParametersErrorFunctiond> |
| using momentum::ModelParametersErrorFunctiond_u = ::std::unique_ptr<ModelParametersErrorFunctiond> |
| using momentum::ModelParametersErrorFunctiond_w = ::std::weak_ptr<ModelParametersErrorFunctiond> |
| typedef std::tuple< std::vector< std::string >, MatrixXf > momentum::MotionParameters = std::tuple<std::vector<std::string>, Eigen::MatrixXf> |
| using momentum::Mppca = MppcaT<float> |
| using momentum::Mppca_const_p = ::std::shared_ptr<const Mppca> |
| using momentum::Mppca_const_u = ::std::unique_ptr<const Mppca> |
| using momentum::Mppca_const_w = ::std::weak_ptr<const Mppca> |
| using momentum::Mppca_p = ::std::shared_ptr<Mppca> |
| using momentum::Mppca_u = ::std::unique_ptr<Mppca> |
| using momentum::Mppca_w = ::std::weak_ptr<Mppca> |
| using momentum::Mppcad = MppcaT<double> |
| using momentum::Mppcad_const_p = ::std::shared_ptr<const Mppcad> |
| using momentum::Mppcad_const_u = ::std::unique_ptr<const Mppcad> |
| using momentum::Mppcad_const_w = ::std::weak_ptr<const Mppcad> |
| using momentum::Mppcad_p = ::std::shared_ptr<Mppcad> |
| using momentum::Mppcad_u = ::std::unique_ptr<Mppcad> |
| using momentum::Mppcad_w = ::std::weak_ptr<Mppcad> |
| using momentum::MultiposeSolver = MultiposeSolverT<float> |
| using momentum::MultiposeSolver_const_p = ::std::shared_ptr<const MultiposeSolver> |
| using momentum::MultiposeSolver_const_u = ::std::unique_ptr<const MultiposeSolver> |
| using momentum::MultiposeSolver_const_w = ::std::weak_ptr<const MultiposeSolver> |
| using momentum::MultiposeSolver_p = ::std::shared_ptr<MultiposeSolver> |
| using momentum::MultiposeSolver_u = ::std::unique_ptr<MultiposeSolver> |
| using momentum::MultiposeSolver_w = ::std::weak_ptr<MultiposeSolver> |
| using momentum::MultiposeSolverd = MultiposeSolverT<double> |
| using momentum::MultiposeSolverd_const_p = ::std::shared_ptr<const MultiposeSolverd> |
| using momentum::MultiposeSolverd_const_u = ::std::unique_ptr<const MultiposeSolverd> |
| using momentum::MultiposeSolverd_const_w = ::std::weak_ptr<const MultiposeSolverd> |
| using momentum::MultiposeSolverd_p = ::std::shared_ptr<MultiposeSolverd> |
| using momentum::MultiposeSolverd_u = ::std::unique_ptr<MultiposeSolverd> |
| using momentum::MultiposeSolverd_w = ::std::weak_ptr<MultiposeSolverd> |
| using momentum::MultiposeSolverFunction = MultiposeSolverFunctionT<float> |
| using momentum::MultiposeSolverFunction_const_p = ::std::shared_ptr<const MultiposeSolverFunction> |
| using momentum::MultiposeSolverFunction_const_u = ::std::unique_ptr<const MultiposeSolverFunction> |
| using momentum::MultiposeSolverFunction_const_w = ::std::weak_ptr<const MultiposeSolverFunction> |
| using momentum::MultiposeSolverFunction_p = ::std::shared_ptr<MultiposeSolverFunction> |
| using momentum::MultiposeSolverFunction_u = ::std::unique_ptr<MultiposeSolverFunction> |
| using momentum::MultiposeSolverFunction_w = ::std::weak_ptr<MultiposeSolverFunction> |
| using momentum::MultiposeSolverFunctiond = MultiposeSolverFunctionT<double> |
| using momentum::MultiposeSolverFunctiond_const_p = ::std::shared_ptr<const MultiposeSolverFunctiond> |
| using momentum::MultiposeSolverFunctiond_const_u = ::std::unique_ptr<const MultiposeSolverFunctiond> |
| using momentum::MultiposeSolverFunctiond_const_w = ::std::weak_ptr<const MultiposeSolverFunctiond> |
| using momentum::MultiposeSolverFunctiond_p = ::std::shared_ptr<MultiposeSolverFunctiond> |
| using momentum::MultiposeSolverFunctiond_u = ::std::unique_ptr<MultiposeSolverFunctiond> |
| using momentum::MultiposeSolverFunctiond_w = ::std::weak_ptr<MultiposeSolverFunctiond> |
| using momentum::MultiposeSolverOptions_const_p = ::std::shared_ptr<const MultiposeSolverOptions> |
| using momentum::MultiposeSolverOptions_const_u = ::std::unique_ptr<const MultiposeSolverOptions> |
| using momentum::MultiposeSolverOptions_const_w = ::std::weak_ptr<const MultiposeSolverOptions> |
| using momentum::MultiposeSolverOptions_p = ::std::shared_ptr<MultiposeSolverOptions> |
| using momentum::MultiposeSolverOptions_u = ::std::unique_ptr<MultiposeSolverOptions> |
| using momentum::MultiposeSolverOptions_w = ::std::weak_ptr<MultiposeSolverOptions> |
| using momentum::NormalArray = Matrix3Xf |
Per-vertex normals matching the layout of VertexArray (size: 3 x numVertices).
| using momentum::NormalData = NormalDataT<float> |
| using momentum::NormalData_const_p = ::std::shared_ptr<const NormalData> |
| using momentum::NormalData_const_u = ::std::unique_ptr<const NormalData> |
| using momentum::NormalData_const_w = ::std::weak_ptr<const NormalData> |
| using momentum::NormalData_p = ::std::shared_ptr<NormalData> |
| using momentum::NormalData_u = ::std::unique_ptr<NormalData> |
| using momentum::NormalData_w = ::std::weak_ptr<NormalData> |
| using momentum::NormalDatad = NormalDataT<double> |
| using momentum::NormalDatad_const_p = ::std::shared_ptr<const NormalDatad> |
| using momentum::NormalDatad_const_u = ::std::unique_ptr<const NormalDatad> |
| using momentum::NormalDatad_const_w = ::std::weak_ptr<const NormalDatad> |
| using momentum::NormalDatad_p = ::std::shared_ptr<NormalDatad> |
| using momentum::NormalDatad_u = ::std::unique_ptr<NormalDatad> |
| using momentum::NormalDatad_w = ::std::weak_ptr<NormalDatad> |
| using momentum::NormalErrorFunction = NormalErrorFunctionT<float> |
| using momentum::NormalErrorFunction_const_p = ::std::shared_ptr<const NormalErrorFunction> |
| using momentum::NormalErrorFunction_const_u = ::std::unique_ptr<const NormalErrorFunction> |
| using momentum::NormalErrorFunction_const_w = ::std::weak_ptr<const NormalErrorFunction> |
| using momentum::NormalErrorFunction_p = ::std::shared_ptr<NormalErrorFunction> |
| using momentum::NormalErrorFunction_u = ::std::unique_ptr<NormalErrorFunction> |
| using momentum::NormalErrorFunction_w = ::std::weak_ptr<NormalErrorFunction> |
| using momentum::NormalErrorFunctiond = NormalErrorFunctionT<double> |
| using momentum::NormalErrorFunctiond_const_p = ::std::shared_ptr<const NormalErrorFunctiond> |
| using momentum::NormalErrorFunctiond_const_u = ::std::unique_ptr<const NormalErrorFunctiond> |
| using momentum::NormalErrorFunctiond_const_w = ::std::weak_ptr<const NormalErrorFunctiond> |
| using momentum::NormalErrorFunctiond_p = ::std::shared_ptr<NormalErrorFunctiond> |
| using momentum::NormalErrorFunctiond_u = ::std::unique_ptr<NormalErrorFunctiond> |
| using momentum::NormalErrorFunctiond_w = ::std::weak_ptr<NormalErrorFunctiond> |
| 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.
| using momentum::OrientationConstraint = OrientationConstraintT<float> |
| using momentum::OrientationConstraint_const_p = ::std::shared_ptr<const OrientationConstraint> |
| using momentum::OrientationConstraint_const_u = ::std::unique_ptr<const OrientationConstraint> |
| using momentum::OrientationConstraint_const_w = ::std::weak_ptr<const OrientationConstraint> |
| using momentum::OrientationConstraint_p = ::std::shared_ptr<OrientationConstraint> |
| using momentum::OrientationConstraint_u = ::std::unique_ptr<OrientationConstraint> |
| using momentum::OrientationConstraint_w = ::std::weak_ptr<OrientationConstraint> |
| using momentum::OrientationConstraintd = OrientationConstraintT<double> |
| using momentum::OrientationConstraintd_const_p = ::std::shared_ptr<const OrientationConstraintd> |
| using momentum::OrientationConstraintd_const_u = ::std::unique_ptr<const OrientationConstraintd> |
| using momentum::OrientationConstraintd_const_w = ::std::weak_ptr<const OrientationConstraintd> |
| using momentum::OrientationConstraintd_p = ::std::shared_ptr<OrientationConstraintd> |
| using momentum::OrientationConstraintd_u = ::std::unique_ptr<OrientationConstraintd> |
| using momentum::OrientationConstraintd_w = ::std::weak_ptr<OrientationConstraintd> |
| using momentum::OrientationConstraintState = OrientationConstraintStateT<float> |
| using momentum::OrientationConstraintState_const_p = ::std::shared_ptr<const OrientationConstraintState> |
| using momentum::OrientationConstraintState_const_u = ::std::unique_ptr<const OrientationConstraintState> |
| using momentum::OrientationConstraintState_const_w = ::std::weak_ptr<const OrientationConstraintState> |
| using momentum::OrientationConstraintState_p = ::std::shared_ptr<OrientationConstraintState> |
| using momentum::OrientationConstraintState_u = ::std::unique_ptr<OrientationConstraintState> |
| using momentum::OrientationConstraintState_w = ::std::weak_ptr<OrientationConstraintState> |
| using momentum::OrientationConstraintStated = OrientationConstraintStateT<double> |
| using momentum::OrientationConstraintStated_const_p = ::std::shared_ptr<const OrientationConstraintStated> |
| using momentum::OrientationConstraintStated_const_u = ::std::unique_ptr<const OrientationConstraintStated> |
| using momentum::OrientationConstraintStated_const_w = ::std::weak_ptr<const OrientationConstraintStated> |
| using momentum::OrientationConstraintStated_p = ::std::shared_ptr<OrientationConstraintStated> |
| using momentum::OrientationConstraintStated_u = ::std::unique_ptr<OrientationConstraintStated> |
| using momentum::OrientationConstraintStated_w = ::std::weak_ptr<OrientationConstraintStated> |
| using momentum::OrientationData = OrientationDataT<float> |
| using momentum::OrientationData_const_p = ::std::shared_ptr<const OrientationData> |
| using momentum::OrientationData_const_u = ::std::unique_ptr<const OrientationData> |
| using momentum::OrientationData_const_w = ::std::weak_ptr<const OrientationData> |
| using momentum::OrientationData_p = ::std::shared_ptr<OrientationData> |
| using momentum::OrientationData_u = ::std::unique_ptr<OrientationData> |
| using momentum::OrientationData_w = ::std::weak_ptr<OrientationData> |
| using momentum::OrientationDatad = OrientationDataT<double> |
| using momentum::OrientationDatad_const_p = ::std::shared_ptr<const OrientationDatad> |
| using momentum::OrientationDatad_const_u = ::std::unique_ptr<const OrientationDatad> |
| using momentum::OrientationDatad_const_w = ::std::weak_ptr<const OrientationDatad> |
| using momentum::OrientationDatad_p = ::std::shared_ptr<OrientationDatad> |
| using momentum::OrientationDatad_u = ::std::unique_ptr<OrientationDatad> |
| using momentum::OrientationDatad_w = ::std::weak_ptr<OrientationDatad> |
| using momentum::OrientationErrorFunction = OrientationErrorFunctionT<float> |
| using momentum::OrientationErrorFunction_const_p = ::std::shared_ptr<const OrientationErrorFunction> |
| using momentum::OrientationErrorFunction_const_u = ::std::unique_ptr<const OrientationErrorFunction> |
| using momentum::OrientationErrorFunction_const_w = ::std::weak_ptr<const OrientationErrorFunction> |
| using momentum::OrientationErrorFunction_p = ::std::shared_ptr<OrientationErrorFunction> |
| using momentum::OrientationErrorFunction_u = ::std::unique_ptr<OrientationErrorFunction> |
| using momentum::OrientationErrorFunction_w = ::std::weak_ptr<OrientationErrorFunction> |
| using momentum::OrientationErrorFunctiond = OrientationErrorFunctionT<double> |
| using momentum::OrientationErrorFunctiond_const_p = ::std::shared_ptr<const OrientationErrorFunctiond> |
| using momentum::OrientationErrorFunctiond_const_u = ::std::unique_ptr<const OrientationErrorFunctiond> |
| using momentum::OrientationErrorFunctiond_const_w = ::std::weak_ptr<const OrientationErrorFunctiond> |
| using momentum::OrientationErrorFunctiond_p = ::std::shared_ptr<OrientationErrorFunctiond> |
| using momentum::OrientationErrorFunctiond_u = ::std::unique_ptr<OrientationErrorFunctiond> |
| using momentum::OrientationErrorFunctiond_w = ::std::weak_ptr<OrientationErrorFunctiond> |
| using momentum::OrientationRotDiffErrorFunction_p = ::std::shared_ptr<OrientationRotDiffErrorFunction> |
| using momentum::OrientationRotDiffErrorFunction_u = ::std::unique_ptr<OrientationRotDiffErrorFunction> |
| using momentum::OrientationRotDiffErrorFunction_w = ::std::weak_ptr<OrientationRotDiffErrorFunction> |
| using momentum::OrientationRotDiffErrorFunctiond_p = ::std::shared_ptr<OrientationRotDiffErrorFunctiond> |
| using momentum::OrientationRotDiffErrorFunctiond_u = ::std::unique_ptr<OrientationRotDiffErrorFunctiond> |
| using momentum::OrientationRotDiffErrorFunctiond_w = ::std::weak_ptr<OrientationRotDiffErrorFunctiond> |
| using momentum::Packet = drjit::Packet<T, kSimdPacketSize> |
| using momentum::ParameterLimits = std::vector<ParameterLimit> |
Definition at line 138 of file parameter_limits.h.
| using momentum::ParameterSet = std::bitset<kMaxModelParams> |
| using momentum::ParameterSets = std::unordered_map<std::string, ParameterSet> |
Definition at line 31 of file parameter_transform.h.
| typedef ParameterTransformT< float > momentum::ParameterTransform = ParameterTransformT<float> |
| using momentum::ParameterTransform_const_p = ::std::shared_ptr<const ParameterTransform> |
| using momentum::ParameterTransform_const_u = ::std::unique_ptr<const ParameterTransform> |
| using momentum::ParameterTransform_const_w = ::std::weak_ptr<const ParameterTransform> |
| using momentum::ParameterTransform_p = ::std::shared_ptr<ParameterTransform> |
| using momentum::ParameterTransform_u = ::std::unique_ptr<ParameterTransform> |
| using momentum::ParameterTransform_w = ::std::weak_ptr<ParameterTransform> |
| typedef ParameterTransformT< double > momentum::ParameterTransformd = ParameterTransformT<double> |
| using momentum::ParameterTransformd_const_p = ::std::shared_ptr<const ParameterTransformd> |
| using momentum::ParameterTransformd_const_u = ::std::unique_ptr<const ParameterTransformd> |
| using momentum::ParameterTransformd_const_w = ::std::weak_ptr<const ParameterTransformd> |
| using momentum::ParameterTransformd_p = ::std::shared_ptr<ParameterTransformd> |
| using momentum::ParameterTransformd_u = ::std::unique_ptr<ParameterTransformd> |
| using momentum::ParameterTransformd_w = ::std::weak_ptr<ParameterTransformd> |
| using momentum::PhysicalProperties = std::vector<JointPhysicalProperties> |
| using momentum::Plane = Eigen::Hyperplane<Scalar, Dim> |
| typedef PlaneCollisionContactPointT< float > momentum::PlaneCollisionContactPoint = PlaneCollisionContactPointT<float> |
| using momentum::PlaneCollisionContactPoint_const_p = ::std::shared_ptr<const PlaneCollisionContactPoint> |
| using momentum::PlaneCollisionContactPoint_const_u = ::std::unique_ptr<const PlaneCollisionContactPoint> |
| using momentum::PlaneCollisionContactPoint_const_w = ::std::weak_ptr<const PlaneCollisionContactPoint> |
| using momentum::PlaneCollisionContactPoint_p = ::std::shared_ptr<PlaneCollisionContactPoint> |
| using momentum::PlaneCollisionContactPoint_u = ::std::unique_ptr<PlaneCollisionContactPoint> |
| using momentum::PlaneCollisionContactPoint_w = ::std::weak_ptr<PlaneCollisionContactPoint> |
| typedef PlaneCollisionContactPointT< double > momentum::PlaneCollisionContactPointd = PlaneCollisionContactPointT<double> |
| using momentum::PlaneCollisionContactPointd_const_p = ::std::shared_ptr<const PlaneCollisionContactPointd> |
| using momentum::PlaneCollisionContactPointd_const_u = ::std::unique_ptr<const PlaneCollisionContactPointd> |
| using momentum::PlaneCollisionContactPointd_const_w = ::std::weak_ptr<const PlaneCollisionContactPointd> |
| using momentum::PlaneCollisionContactPointd_p = ::std::shared_ptr<PlaneCollisionContactPointd> |
| using momentum::PlaneCollisionContactPointd_u = ::std::unique_ptr<PlaneCollisionContactPointd> |
| using momentum::PlaneCollisionContactPointd_w = ::std::weak_ptr<PlaneCollisionContactPointd> |
| typedef PlaneCollisionDebugEntryT< float > momentum::PlaneCollisionDebugEntry = PlaneCollisionDebugEntryT<float> |
| using momentum::PlaneCollisionDebugEntry_const_p = ::std::shared_ptr<const PlaneCollisionDebugEntry> |
| using momentum::PlaneCollisionDebugEntry_const_u = ::std::unique_ptr<const PlaneCollisionDebugEntry> |
| using momentum::PlaneCollisionDebugEntry_const_w = ::std::weak_ptr<const PlaneCollisionDebugEntry> |
| using momentum::PlaneCollisionDebugEntry_p = ::std::shared_ptr<PlaneCollisionDebugEntry> |
| using momentum::PlaneCollisionDebugEntry_u = ::std::unique_ptr<PlaneCollisionDebugEntry> |
| using momentum::PlaneCollisionDebugEntry_w = ::std::weak_ptr<PlaneCollisionDebugEntry> |
| typedef PlaneCollisionDebugEntryT< double > momentum::PlaneCollisionDebugEntryd = PlaneCollisionDebugEntryT<double> |
| using momentum::PlaneCollisionDebugEntryd_const_p = ::std::shared_ptr<const PlaneCollisionDebugEntryd> |
| using momentum::PlaneCollisionDebugEntryd_const_u = ::std::unique_ptr<const PlaneCollisionDebugEntryd> |
| using momentum::PlaneCollisionDebugEntryd_const_w = ::std::weak_ptr<const PlaneCollisionDebugEntryd> |
| using momentum::PlaneCollisionDebugEntryd_p = ::std::shared_ptr<PlaneCollisionDebugEntryd> |
| using momentum::PlaneCollisionDebugEntryd_u = ::std::unique_ptr<PlaneCollisionDebugEntryd> |
| using momentum::PlaneCollisionDebugEntryd_w = ::std::weak_ptr<PlaneCollisionDebugEntryd> |
| using momentum::PlaneCollisionErrorFunction_const_p = ::std::shared_ptr<const PlaneCollisionErrorFunction> |
| using momentum::PlaneCollisionErrorFunction_const_u = ::std::unique_ptr<const PlaneCollisionErrorFunction> |
| using momentum::PlaneCollisionErrorFunction_const_w = ::std::weak_ptr<const PlaneCollisionErrorFunction> |
| using momentum::PlaneCollisionErrorFunction_p = ::std::shared_ptr<PlaneCollisionErrorFunction> |
| using momentum::PlaneCollisionErrorFunction_u = ::std::unique_ptr<PlaneCollisionErrorFunction> |
| using momentum::PlaneCollisionErrorFunction_w = ::std::weak_ptr<PlaneCollisionErrorFunction> |
| using momentum::PlaneCollisionErrorFunctiond = PlaneCollisionErrorFunctionT<double> |
| using momentum::PlaneCollisionErrorFunctiond_const_p = ::std::shared_ptr<const PlaneCollisionErrorFunctiond> |
| using momentum::PlaneCollisionErrorFunctiond_const_u = ::std::unique_ptr<const PlaneCollisionErrorFunctiond> |
| using momentum::PlaneCollisionErrorFunctiond_const_w = ::std::weak_ptr<const PlaneCollisionErrorFunctiond> |
| using momentum::PlaneCollisionErrorFunctiond_p = ::std::shared_ptr<PlaneCollisionErrorFunctiond> |
| using momentum::PlaneCollisionErrorFunctiond_u = ::std::unique_ptr<PlaneCollisionErrorFunctiond> |
| using momentum::PlaneCollisionErrorFunctiond_w = ::std::weak_ptr<PlaneCollisionErrorFunctiond> |
| using momentum::PlaneCollisionQuery = PlaneCollisionQueryT<float> |
| using momentum::PlaneCollisionQuery_const_p = ::std::shared_ptr<const PlaneCollisionQuery> |
| using momentum::PlaneCollisionQuery_const_u = ::std::unique_ptr<const PlaneCollisionQuery> |
| using momentum::PlaneCollisionQuery_const_w = ::std::weak_ptr<const PlaneCollisionQuery> |
| using momentum::PlaneCollisionQuery_p = ::std::shared_ptr<PlaneCollisionQuery> |
| using momentum::PlaneCollisionQuery_u = ::std::unique_ptr<PlaneCollisionQuery> |
| using momentum::PlaneCollisionQuery_w = ::std::weak_ptr<PlaneCollisionQuery> |
| using momentum::PlaneCollisionQueryd = PlaneCollisionQueryT<double> |
| using momentum::PlaneCollisionQueryd_const_p = ::std::shared_ptr<const PlaneCollisionQueryd> |
| using momentum::PlaneCollisionQueryd_const_u = ::std::unique_ptr<const PlaneCollisionQueryd> |
| using momentum::PlaneCollisionQueryd_const_w = ::std::weak_ptr<const PlaneCollisionQueryd> |
| using momentum::PlaneCollisionQueryd_p = ::std::shared_ptr<PlaneCollisionQueryd> |
| using momentum::PlaneCollisionQueryd_u = ::std::unique_ptr<PlaneCollisionQueryd> |
| using momentum::PlaneCollisionQueryd_w = ::std::weak_ptr<PlaneCollisionQueryd> |
| using momentum::PlaneData = PlaneDataT<float> |
| using momentum::PlaneData_const_p = ::std::shared_ptr<const PlaneData> |
| using momentum::PlaneData_const_u = ::std::unique_ptr<const PlaneData> |
| using momentum::PlaneData_const_w = ::std::weak_ptr<const PlaneData> |
| using momentum::PlaneData_p = ::std::shared_ptr<PlaneData> |
| using momentum::PlaneData_u = ::std::unique_ptr<PlaneData> |
| using momentum::PlaneData_w = ::std::weak_ptr<PlaneData> |
| using momentum::PlaneDatad = PlaneDataT<double> |
| using momentum::PlaneDatad_const_p = ::std::shared_ptr<const PlaneDatad> |
| using momentum::PlaneDatad_const_u = ::std::unique_ptr<const PlaneDatad> |
| using momentum::PlaneDatad_const_w = ::std::weak_ptr<const PlaneDatad> |
| using momentum::PlaneDatad_p = ::std::shared_ptr<PlaneDatad> |
| using momentum::PlaneDatad_u = ::std::unique_ptr<PlaneDatad> |
| using momentum::PlaneDatad_w = ::std::weak_ptr<PlaneDatad> |
| using momentum::PlaneErrorFunction = PlaneErrorFunctionT<float> |
| using momentum::PlaneErrorFunction_const_p = ::std::shared_ptr<const PlaneErrorFunction> |
| using momentum::PlaneErrorFunction_const_u = ::std::unique_ptr<const PlaneErrorFunction> |
| using momentum::PlaneErrorFunction_const_w = ::std::weak_ptr<const PlaneErrorFunction> |
| using momentum::PlaneErrorFunction_p = ::std::shared_ptr<PlaneErrorFunction> |
| using momentum::PlaneErrorFunction_u = ::std::unique_ptr<PlaneErrorFunction> |
| using momentum::PlaneErrorFunction_w = ::std::weak_ptr<PlaneErrorFunction> |
| using momentum::PlaneErrorFunctiond = PlaneErrorFunctionT<double> |
| using momentum::PlaneErrorFunctiond_const_p = ::std::shared_ptr<const PlaneErrorFunctiond> |
| using momentum::PlaneErrorFunctiond_const_u = ::std::unique_ptr<const PlaneErrorFunctiond> |
| using momentum::PlaneErrorFunctiond_const_w = ::std::weak_ptr<const PlaneErrorFunctiond> |
| using momentum::PlaneErrorFunctiond_p = ::std::shared_ptr<PlaneErrorFunctiond> |
| using momentum::PlaneErrorFunctiond_u = ::std::unique_ptr<PlaneErrorFunctiond> |
| using momentum::PlaneErrorFunctiond_w = ::std::weak_ptr<PlaneErrorFunctiond> |
| using momentum::PointTriangleVertexConstraint_const_w = ::std::weak_ptr<const PointTriangleVertexConstraint> |
| using momentum::PointTriangleVertexConstraint_p = ::std::shared_ptr<PointTriangleVertexConstraint> |
| using momentum::PointTriangleVertexConstraint_u = ::std::unique_ptr<PointTriangleVertexConstraint> |
| using momentum::PointTriangleVertexConstraint_w = ::std::weak_ptr<PointTriangleVertexConstraint> |
| using momentum::PointTriangleVertexConstraintd_p = ::std::shared_ptr<PointTriangleVertexConstraintd> |
| using momentum::PointTriangleVertexConstraintd_u = ::std::unique_ptr<PointTriangleVertexConstraintd> |
| using momentum::PointTriangleVertexConstraintd_w = ::std::weak_ptr<PointTriangleVertexConstraintd> |
| using momentum::PointTriangleVertexErrorFunction_p = ::std::shared_ptr<PointTriangleVertexErrorFunction> |
| using momentum::PointTriangleVertexErrorFunction_u = ::std::unique_ptr<PointTriangleVertexErrorFunction> |
| using momentum::PointTriangleVertexErrorFunction_w = ::std::weak_ptr<PointTriangleVertexErrorFunction> |
| using momentum::PointTriangleVertexErrorFunctiond_p = ::std::shared_ptr<PointTriangleVertexErrorFunctiond> |
| using momentum::PointTriangleVertexErrorFunctiond_u = ::std::unique_ptr<PointTriangleVertexErrorFunctiond> |
| using momentum::PointTriangleVertexErrorFunctiond_w = ::std::weak_ptr<PointTriangleVertexErrorFunctiond> |
| using momentum::PoseConstraints = std::unordered_map<std::string, PoseConstraint> |
Definition at line 32 of file parameter_transform.h.
| using momentum::PosePriorErrorFunction = PosePriorErrorFunctionT<float> |
| using momentum::PosePriorErrorFunction_const_p = ::std::shared_ptr<const PosePriorErrorFunction> |
| using momentum::PosePriorErrorFunction_const_u = ::std::unique_ptr<const PosePriorErrorFunction> |
| using momentum::PosePriorErrorFunction_const_w = ::std::weak_ptr<const PosePriorErrorFunction> |
| using momentum::PosePriorErrorFunction_p = ::std::shared_ptr<PosePriorErrorFunction> |
| using momentum::PosePriorErrorFunction_u = ::std::unique_ptr<PosePriorErrorFunction> |
| using momentum::PosePriorErrorFunction_w = ::std::weak_ptr<PosePriorErrorFunction> |
| using momentum::PosePriorErrorFunctiond = PosePriorErrorFunctionT<double> |
| using momentum::PosePriorErrorFunctiond_const_p = ::std::shared_ptr<const PosePriorErrorFunctiond> |
| using momentum::PosePriorErrorFunctiond_const_u = ::std::unique_ptr<const PosePriorErrorFunctiond> |
| using momentum::PosePriorErrorFunctiond_const_w = ::std::weak_ptr<const PosePriorErrorFunctiond> |
| using momentum::PosePriorErrorFunctiond_p = ::std::shared_ptr<PosePriorErrorFunctiond> |
| using momentum::PosePriorErrorFunctiond_u = ::std::unique_ptr<PosePriorErrorFunctiond> |
| using momentum::PosePriorErrorFunctiond_w = ::std::weak_ptr<PosePriorErrorFunctiond> |
| using momentum::PoseShape_const_p = ::std::shared_ptr<const PoseShape> |
| using momentum::PoseShape_const_u = ::std::unique_ptr<const PoseShape> |
| using momentum::PoseShape_const_w = ::std::weak_ptr<const PoseShape> |
| using momentum::PoseShape_p = ::std::shared_ptr<PoseShape> |
| using momentum::PoseShape_u = ::std::unique_ptr<PoseShape> |
| using momentum::PoseShape_w = ::std::weak_ptr<PoseShape> |
| using momentum::PoseTransformSolver = PoseTransformSolverT<float> |
| using momentum::PoseTransformSolver_const_p = ::std::shared_ptr<const PoseTransformSolver> |
| using momentum::PoseTransformSolver_const_u = ::std::unique_ptr<const PoseTransformSolver> |
| using momentum::PoseTransformSolver_const_w = ::std::weak_ptr<const PoseTransformSolver> |
| using momentum::PoseTransformSolver_p = ::std::shared_ptr<PoseTransformSolver> |
| using momentum::PoseTransformSolver_u = ::std::unique_ptr<PoseTransformSolver> |
| using momentum::PoseTransformSolver_w = ::std::weak_ptr<PoseTransformSolver> |
| using momentum::PoseTransformSolverd = PoseTransformSolverT<double> |
| using momentum::PoseTransformSolverd_const_p = ::std::shared_ptr<const PoseTransformSolverd> |
| using momentum::PoseTransformSolverd_const_u = ::std::unique_ptr<const PoseTransformSolverd> |
| using momentum::PoseTransformSolverd_const_w = ::std::weak_ptr<const PoseTransformSolverd> |
| using momentum::PoseTransformSolverd_p = ::std::shared_ptr<PoseTransformSolverd> |
| using momentum::PoseTransformSolverd_u = ::std::unique_ptr<PoseTransformSolverd> |
| using momentum::PoseTransformSolverd_w = ::std::weak_ptr<PoseTransformSolverd> |
| using momentum::PositionConstraint = PositionConstraintT<float> |
| using momentum::PositionConstraint_const_p = ::std::shared_ptr<const PositionConstraint> |
| using momentum::PositionConstraint_const_u = ::std::unique_ptr<const PositionConstraint> |
| using momentum::PositionConstraint_const_w = ::std::weak_ptr<const PositionConstraint> |
| using momentum::PositionConstraint_p = ::std::shared_ptr<PositionConstraint> |
| using momentum::PositionConstraint_u = ::std::unique_ptr<PositionConstraint> |
| using momentum::PositionConstraint_w = ::std::weak_ptr<PositionConstraint> |
| using momentum::PositionConstraintd = PositionConstraintT<double> |
| using momentum::PositionConstraintd_const_p = ::std::shared_ptr<const PositionConstraintd> |
| using momentum::PositionConstraintd_const_u = ::std::unique_ptr<const PositionConstraintd> |
| using momentum::PositionConstraintd_const_w = ::std::weak_ptr<const PositionConstraintd> |
| using momentum::PositionConstraintd_p = ::std::shared_ptr<PositionConstraintd> |
| using momentum::PositionConstraintd_u = ::std::unique_ptr<PositionConstraintd> |
| using momentum::PositionConstraintd_w = ::std::weak_ptr<PositionConstraintd> |
| using momentum::PositionConstraintState = PositionConstraintStateT<float> |
| using momentum::PositionConstraintState_const_p = ::std::shared_ptr<const PositionConstraintState> |
| using momentum::PositionConstraintState_const_u = ::std::unique_ptr<const PositionConstraintState> |
| using momentum::PositionConstraintState_const_w = ::std::weak_ptr<const PositionConstraintState> |
| using momentum::PositionConstraintState_p = ::std::shared_ptr<PositionConstraintState> |
| using momentum::PositionConstraintState_u = ::std::unique_ptr<PositionConstraintState> |
| using momentum::PositionConstraintState_w = ::std::weak_ptr<PositionConstraintState> |
| using momentum::PositionConstraintStated = PositionConstraintStateT<double> |
| using momentum::PositionConstraintStated_const_p = ::std::shared_ptr<const PositionConstraintStated> |
| using momentum::PositionConstraintStated_const_u = ::std::unique_ptr<const PositionConstraintStated> |
| using momentum::PositionConstraintStated_const_w = ::std::weak_ptr<const PositionConstraintStated> |
| using momentum::PositionConstraintStated_p = ::std::shared_ptr<PositionConstraintStated> |
| using momentum::PositionConstraintStated_u = ::std::unique_ptr<PositionConstraintStated> |
| using momentum::PositionConstraintStated_w = ::std::weak_ptr<PositionConstraintStated> |
| using momentum::PositionData = PositionDataT<float> |
| using momentum::PositionData_const_p = ::std::shared_ptr<const PositionData> |
| using momentum::PositionData_const_u = ::std::unique_ptr<const PositionData> |
| using momentum::PositionData_const_w = ::std::weak_ptr<const PositionData> |
| using momentum::PositionData_p = ::std::shared_ptr<PositionData> |
| using momentum::PositionData_u = ::std::unique_ptr<PositionData> |
| using momentum::PositionData_w = ::std::weak_ptr<PositionData> |
| using momentum::PositionDatad = PositionDataT<double> |
| using momentum::PositionDatad_const_p = ::std::shared_ptr<const PositionDatad> |
| using momentum::PositionDatad_const_u = ::std::unique_ptr<const PositionDatad> |
| using momentum::PositionDatad_const_w = ::std::weak_ptr<const PositionDatad> |
| using momentum::PositionDatad_p = ::std::shared_ptr<PositionDatad> |
| using momentum::PositionDatad_u = ::std::unique_ptr<PositionDatad> |
| using momentum::PositionDatad_w = ::std::weak_ptr<PositionDatad> |
| using momentum::PositionErrorFunction = PositionErrorFunctionT<float> |
| using momentum::PositionErrorFunction_const_p = ::std::shared_ptr<const PositionErrorFunction> |
| using momentum::PositionErrorFunction_const_u = ::std::unique_ptr<const PositionErrorFunction> |
| using momentum::PositionErrorFunction_const_w = ::std::weak_ptr<const PositionErrorFunction> |
| using momentum::PositionErrorFunction_p = ::std::shared_ptr<PositionErrorFunction> |
| using momentum::PositionErrorFunction_u = ::std::unique_ptr<PositionErrorFunction> |
| using momentum::PositionErrorFunction_w = ::std::weak_ptr<PositionErrorFunction> |
| using momentum::PositionErrorFunctiond = PositionErrorFunctionT<double> |
| using momentum::PositionErrorFunctiond_const_p = ::std::shared_ptr<const PositionErrorFunctiond> |
| using momentum::PositionErrorFunctiond_const_u = ::std::unique_ptr<const PositionErrorFunctiond> |
| using momentum::PositionErrorFunctiond_const_w = ::std::weak_ptr<const PositionErrorFunctiond> |
| using momentum::PositionErrorFunctiond_p = ::std::shared_ptr<PositionErrorFunctiond> |
| using momentum::PositionErrorFunctiond_u = ::std::unique_ptr<PositionErrorFunctiond> |
| using momentum::PositionErrorFunctiond_w = ::std::weak_ptr<PositionErrorFunctiond> |
| using momentum::ProgressBar_const_p = ::std::shared_ptr<const ProgressBar> |
| using momentum::ProgressBar_const_u = ::std::unique_ptr<const ProgressBar> |
| using momentum::ProgressBar_const_w = ::std::weak_ptr<const ProgressBar> |
| using momentum::ProgressBar_p = ::std::shared_ptr<ProgressBar> |
| using momentum::ProgressBar_u = ::std::unique_ptr<ProgressBar> |
| using momentum::ProgressBar_w = ::std::weak_ptr<ProgressBar> |
| using momentum::ProjectionConstraint = ProjectionConstraintT<float> |
| using momentum::ProjectionConstraint_const_p = ::std::shared_ptr<const ProjectionConstraint> |
| using momentum::ProjectionConstraint_const_u = ::std::unique_ptr<const ProjectionConstraint> |
| using momentum::ProjectionConstraint_const_w = ::std::weak_ptr<const ProjectionConstraint> |
| using momentum::ProjectionConstraint_p = ::std::shared_ptr<ProjectionConstraint> |
| using momentum::ProjectionConstraint_u = ::std::unique_ptr<ProjectionConstraint> |
| using momentum::ProjectionConstraint_w = ::std::weak_ptr<ProjectionConstraint> |
| using momentum::ProjectionConstraintd = ProjectionConstraintT<double> |
| using momentum::ProjectionConstraintd_const_p = ::std::shared_ptr<const ProjectionConstraintd> |
| using momentum::ProjectionConstraintd_const_u = ::std::unique_ptr<const ProjectionConstraintd> |
| using momentum::ProjectionConstraintd_const_w = ::std::weak_ptr<const ProjectionConstraintd> |
| using momentum::ProjectionConstraintd_p = ::std::shared_ptr<ProjectionConstraintd> |
| using momentum::ProjectionConstraintd_u = ::std::unique_ptr<ProjectionConstraintd> |
| using momentum::ProjectionConstraintd_w = ::std::weak_ptr<ProjectionConstraintd> |
| using momentum::ProjectionErrorFunction = ProjectionErrorFunctionT<float> |
| using momentum::ProjectionErrorFunction_const_p = ::std::shared_ptr<const ProjectionErrorFunction> |
| using momentum::ProjectionErrorFunction_const_u = ::std::unique_ptr<const ProjectionErrorFunction> |
| using momentum::ProjectionErrorFunction_const_w = ::std::weak_ptr<const ProjectionErrorFunction> |
| using momentum::ProjectionErrorFunction_p = ::std::shared_ptr<ProjectionErrorFunction> |
| using momentum::ProjectionErrorFunction_u = ::std::unique_ptr<ProjectionErrorFunction> |
| using momentum::ProjectionErrorFunction_w = ::std::weak_ptr<ProjectionErrorFunction> |
| using momentum::ProjectionErrorFunctiond = ProjectionErrorFunctionT<double> |
| using momentum::ProjectionErrorFunctiond_const_p = ::std::shared_ptr<const ProjectionErrorFunctiond> |
| using momentum::ProjectionErrorFunctiond_const_u = ::std::unique_ptr<const ProjectionErrorFunctiond> |
| using momentum::ProjectionErrorFunctiond_const_w = ::std::weak_ptr<const ProjectionErrorFunctiond> |
| using momentum::ProjectionErrorFunctiond_p = ::std::shared_ptr<ProjectionErrorFunctiond> |
| using momentum::ProjectionErrorFunctiond_u = ::std::unique_ptr<ProjectionErrorFunctiond> |
| using momentum::ProjectionErrorFunctiond_w = ::std::weak_ptr<ProjectionErrorFunctiond> |
| using momentum::Quaternion = Eigen::Quaternion<T> |
Unit quaternion representing a 3D rotation.
| using momentum::Quaterniond = Quaternion<double> |
| using momentum::Quaternionf = Quaternion<float> |
| using momentum::Ref = Eigen::Ref<T> |
| using momentum::RowMatrix = Eigen::Matrix<T, N, M, Eigen::RowMajor> |
| using momentum::RowMatrixX = RowMatrix<T, Dynamic> |
| using momentum::RowVector = Eigen::Matrix<T, 1, Dim> |
| using momentum::RowVector0 = RowVector<T, 0> |
| using momentum::RowVector0b = RowVector0<std::uint8_t> |
| using momentum::RowVector0d = RowVector0<double> |
| using momentum::RowVector0f = RowVector0<float> |
| using momentum::RowVector0i = RowVector0<std::int32_t> |
| using momentum::RowVector0s = RowVector0<std::uint16_t> |
| using momentum::RowVector0u = RowVector0<std::uint32_t> |
| using momentum::RowVector1 = RowVector<T, 1> |
| using momentum::RowVector1b = RowVector1<std::uint8_t> |
| using momentum::RowVector1d = RowVector1<double> |
| using momentum::RowVector1f = RowVector1<float> |
| using momentum::RowVector1i = RowVector1<std::int32_t> |
| using momentum::RowVector1s = RowVector1<std::uint16_t> |
| using momentum::RowVector1u = RowVector1<std::uint32_t> |
| using momentum::RowVector2 = RowVector<T, 2> |
| using momentum::RowVector2b = RowVector2<std::uint8_t> |
| using momentum::RowVector2d = RowVector2<double> |
| using momentum::RowVector2f = RowVector2<float> |
| using momentum::RowVector2i = RowVector2<std::int32_t> |
| using momentum::RowVector2s = RowVector2<std::uint16_t> |
| using momentum::RowVector2u = RowVector2<std::uint32_t> |
| using momentum::RowVector3 = RowVector<T, 3> |
| using momentum::RowVector3b = RowVector3<std::uint8_t> |
| using momentum::RowVector3d = RowVector3<double> |
| using momentum::RowVector3f = RowVector3<float> |
| using momentum::RowVector3i = RowVector3<std::int32_t> |
| using momentum::RowVector3s = RowVector3<std::uint16_t> |
| using momentum::RowVector3u = RowVector3<std::uint32_t> |
| using momentum::RowVector4 = RowVector<T, 4> |
| using momentum::RowVector4b = RowVector4<std::uint8_t> |
| using momentum::RowVector4d = RowVector4<double> |
| using momentum::RowVector4f = RowVector4<float> |
| using momentum::RowVector4i = RowVector4<std::int32_t> |
| using momentum::RowVector4s = RowVector4<std::uint16_t> |
| using momentum::RowVector4u = RowVector4<std::uint32_t> |
| using momentum::RowVector5 = RowVector<T, 5> |
| using momentum::RowVector5b = RowVector5<std::uint8_t> |
| using momentum::RowVector5d = RowVector5<double> |
| using momentum::RowVector5f = RowVector5<float> |
| using momentum::RowVector5i = RowVector5<std::int32_t> |
| using momentum::RowVector5s = RowVector5<std::uint16_t> |
| using momentum::RowVector5u = RowVector5<std::uint32_t> |
| using momentum::RowVector6 = RowVector<T, 6> |
| using momentum::RowVector6b = RowVector6<std::uint8_t> |
| using momentum::RowVector6d = RowVector6<double> |
| using momentum::RowVector6f = RowVector6<float> |
| using momentum::RowVector6i = RowVector6<std::int32_t> |
| using momentum::RowVector6s = RowVector6<std::uint16_t> |
| using momentum::RowVector6u = RowVector6<std::uint32_t> |
| using momentum::RowVectorX = RowVector<T, Dynamic> |
| using momentum::RowVectorXb = RowVectorX<std::uint8_t> |
| using momentum::RowVectorXd = RowVectorX<double> |
| using momentum::RowVectorXf = RowVectorX<float> |
| using momentum::RowVectorXi = RowVectorX<std::int32_t> |
| using momentum::RowVectorXs = RowVectorX<std::uint16_t> |
| using momentum::RowVectorXu = RowVectorX<std::uint32_t> |
| using momentum::SDFCollider = SDFColliderT<float> |
| using momentum::SDFCollider_const_p = ::std::shared_ptr<const SDFCollider> |
| using momentum::SDFCollider_const_u = ::std::unique_ptr<const SDFCollider> |
| using momentum::SDFCollider_const_w = ::std::weak_ptr<const SDFCollider> |
| using momentum::SDFCollider_p = ::std::shared_ptr<SDFCollider> |
| using momentum::SDFCollider_u = ::std::unique_ptr<SDFCollider> |
| using momentum::SDFCollider_w = ::std::weak_ptr<SDFCollider> |
| using momentum::SDFColliderd = SDFColliderT<double> |
| using momentum::SDFColliderd_const_p = ::std::shared_ptr<const SDFColliderd> |
| using momentum::SDFColliderd_const_u = ::std::unique_ptr<const SDFColliderd> |
| using momentum::SDFColliderd_const_w = ::std::weak_ptr<const SDFColliderd> |
| using momentum::SDFColliderd_p = ::std::shared_ptr<SDFColliderd> |
| using momentum::SDFColliderd_u = ::std::unique_ptr<SDFColliderd> |
| using momentum::SDFColliderd_w = ::std::weak_ptr<SDFColliderd> |
| using momentum::SDFCollisionErrorFunction = SDFCollisionErrorFunctionT<float> |
Definition at line 214 of file sdf_collision_error_function.h.
| using momentum::SDFCollisionErrorFunctiond = SDFCollisionErrorFunctionT<double> |
Definition at line 215 of file sdf_collision_error_function.h.
| using momentum::SDFCollisionGeometry = SDFCollisionGeometryT<float> |
Definition at line 127 of file sdf_collision_geometry.h.
| using momentum::SDFCollisionGeometryd = SDFCollisionGeometryT<double> |
Definition at line 128 of file sdf_collision_geometry.h.
| 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.
Definition at line 198 of file sdf_collision_sequence_error_function.h.
Definition at line 199 of file sdf_collision_sequence_error_function.h.
| using momentum::SequenceCholeskySolver = SequenceCholeskySolverT<float> |
| using momentum::SequenceCholeskySolver_const_p = ::std::shared_ptr<const SequenceCholeskySolver> |
| using momentum::SequenceCholeskySolver_const_u = ::std::unique_ptr<const SequenceCholeskySolver> |
| using momentum::SequenceCholeskySolver_const_w = ::std::weak_ptr<const SequenceCholeskySolver> |
| using momentum::SequenceCholeskySolver_p = ::std::shared_ptr<SequenceCholeskySolver> |
| using momentum::SequenceCholeskySolver_u = ::std::unique_ptr<SequenceCholeskySolver> |
| using momentum::SequenceCholeskySolver_w = ::std::weak_ptr<SequenceCholeskySolver> |
| using momentum::SequenceCholeskySolverd = SequenceCholeskySolverT<double> |
| using momentum::SequenceCholeskySolverd_const_p = ::std::shared_ptr<const SequenceCholeskySolverd> |
| using momentum::SequenceCholeskySolverd_const_u = ::std::unique_ptr<const SequenceCholeskySolverd> |
| using momentum::SequenceCholeskySolverd_const_w = ::std::weak_ptr<const SequenceCholeskySolverd> |
| using momentum::SequenceCholeskySolverd_p = ::std::shared_ptr<SequenceCholeskySolverd> |
| using momentum::SequenceCholeskySolverd_u = ::std::unique_ptr<SequenceCholeskySolverd> |
| using momentum::SequenceCholeskySolverd_w = ::std::weak_ptr<SequenceCholeskySolverd> |
| using momentum::SequenceCholeskySolverOptions_const_w = ::std::weak_ptr<const SequenceCholeskySolverOptions> |
| using momentum::SequenceCholeskySolverOptions_p = ::std::shared_ptr<SequenceCholeskySolverOptions> |
| using momentum::SequenceCholeskySolverOptions_u = ::std::unique_ptr<SequenceCholeskySolverOptions> |
| using momentum::SequenceCholeskySolverOptions_w = ::std::weak_ptr<SequenceCholeskySolverOptions> |
| using momentum::SequenceErrorFunction = SequenceErrorFunctionT<float> |
| using momentum::SequenceErrorFunction_const_p = ::std::shared_ptr<const SequenceErrorFunction> |
| using momentum::SequenceErrorFunction_const_u = ::std::unique_ptr<const SequenceErrorFunction> |
| using momentum::SequenceErrorFunction_const_w = ::std::weak_ptr<const SequenceErrorFunction> |
| using momentum::SequenceErrorFunction_p = ::std::shared_ptr<SequenceErrorFunction> |
| using momentum::SequenceErrorFunction_u = ::std::unique_ptr<SequenceErrorFunction> |
| using momentum::SequenceErrorFunction_w = ::std::weak_ptr<SequenceErrorFunction> |
| using momentum::SequenceErrorFunctiond = SequenceErrorFunctionT<double> |
| using momentum::SequenceErrorFunctiond_const_p = ::std::shared_ptr<const SequenceErrorFunctiond> |
| using momentum::SequenceErrorFunctiond_const_u = ::std::unique_ptr<const SequenceErrorFunctiond> |
| using momentum::SequenceErrorFunctiond_const_w = ::std::weak_ptr<const SequenceErrorFunctiond> |
| using momentum::SequenceErrorFunctiond_p = ::std::shared_ptr<SequenceErrorFunctiond> |
| using momentum::SequenceErrorFunctiond_u = ::std::unique_ptr<SequenceErrorFunctiond> |
| using momentum::SequenceErrorFunctiond_w = ::std::weak_ptr<SequenceErrorFunctiond> |
| using momentum::SequenceSolver = SequenceSolverT<float> |
| using momentum::SequenceSolver_const_p = ::std::shared_ptr<const SequenceSolver> |
| using momentum::SequenceSolver_const_u = ::std::unique_ptr<const SequenceSolver> |
| using momentum::SequenceSolver_const_w = ::std::weak_ptr<const SequenceSolver> |
| using momentum::SequenceSolver_p = ::std::shared_ptr<SequenceSolver> |
| using momentum::SequenceSolver_u = ::std::unique_ptr<SequenceSolver> |
| using momentum::SequenceSolver_w = ::std::weak_ptr<SequenceSolver> |
| typedef SequenceSolverBaseT< float > momentum::SequenceSolverBase = SequenceSolverBaseT<float> |
| using momentum::SequenceSolverBase_const_p = ::std::shared_ptr<const SequenceSolverBase> |
| using momentum::SequenceSolverBase_const_u = ::std::unique_ptr<const SequenceSolverBase> |
| using momentum::SequenceSolverBase_const_w = ::std::weak_ptr<const SequenceSolverBase> |
| using momentum::SequenceSolverBase_p = ::std::shared_ptr<SequenceSolverBase> |
| using momentum::SequenceSolverBase_u = ::std::unique_ptr<SequenceSolverBase> |
| using momentum::SequenceSolverBase_w = ::std::weak_ptr<SequenceSolverBase> |
| typedef SequenceSolverBaseT< double > momentum::SequenceSolverBased = SequenceSolverBaseT<double> |
| using momentum::SequenceSolverBased_const_p = ::std::shared_ptr<const SequenceSolverBased> |
| using momentum::SequenceSolverBased_const_u = ::std::unique_ptr<const SequenceSolverBased> |
| using momentum::SequenceSolverBased_const_w = ::std::weak_ptr<const SequenceSolverBased> |
| using momentum::SequenceSolverBased_p = ::std::shared_ptr<SequenceSolverBased> |
| using momentum::SequenceSolverBased_u = ::std::unique_ptr<SequenceSolverBased> |
| using momentum::SequenceSolverBased_w = ::std::weak_ptr<SequenceSolverBased> |
| using momentum::SequenceSolverd = SequenceSolverT<double> |
| using momentum::SequenceSolverd_const_p = ::std::shared_ptr<const SequenceSolverd> |
| using momentum::SequenceSolverd_const_u = ::std::unique_ptr<const SequenceSolverd> |
| using momentum::SequenceSolverd_const_w = ::std::weak_ptr<const SequenceSolverd> |
| using momentum::SequenceSolverd_p = ::std::shared_ptr<SequenceSolverd> |
| using momentum::SequenceSolverd_u = ::std::unique_ptr<SequenceSolverd> |
| using momentum::SequenceSolverd_w = ::std::weak_ptr<SequenceSolverd> |
| using momentum::SequenceSolverFunction = SequenceSolverFunctionT<float> |
| using momentum::SequenceSolverFunction_const_p = ::std::shared_ptr<const SequenceSolverFunction> |
| using momentum::SequenceSolverFunction_const_u = ::std::unique_ptr<const SequenceSolverFunction> |
| using momentum::SequenceSolverFunction_const_w = ::std::weak_ptr<const SequenceSolverFunction> |
| using momentum::SequenceSolverFunction_p = ::std::shared_ptr<SequenceSolverFunction> |
| using momentum::SequenceSolverFunction_u = ::std::unique_ptr<SequenceSolverFunction> |
| using momentum::SequenceSolverFunction_w = ::std::weak_ptr<SequenceSolverFunction> |
| using momentum::SequenceSolverFunctiond = SequenceSolverFunctionT<double> |
| using momentum::SequenceSolverFunctiond_const_p = ::std::shared_ptr<const SequenceSolverFunctiond> |
| using momentum::SequenceSolverFunctiond_const_u = ::std::unique_ptr<const SequenceSolverFunctiond> |
| using momentum::SequenceSolverFunctiond_const_w = ::std::weak_ptr<const SequenceSolverFunctiond> |
| using momentum::SequenceSolverFunctiond_p = ::std::shared_ptr<SequenceSolverFunctiond> |
| using momentum::SequenceSolverFunctiond_u = ::std::unique_ptr<SequenceSolverFunctiond> |
| using momentum::SequenceSolverFunctiond_w = ::std::weak_ptr<SequenceSolverFunctiond> |
| using momentum::SequenceSolverOptions_const_p = ::std::shared_ptr<const SequenceSolverOptions> |
| using momentum::SequenceSolverOptions_const_u = ::std::unique_ptr<const SequenceSolverOptions> |
| using momentum::SequenceSolverOptions_const_w = ::std::weak_ptr<const SequenceSolverOptions> |
| using momentum::SequenceSolverOptions_p = ::std::shared_ptr<SequenceSolverOptions> |
| using momentum::SequenceSolverOptions_u = ::std::unique_ptr<SequenceSolverOptions> |
| using momentum::SequenceSolverOptions_w = ::std::weak_ptr<SequenceSolverOptions> |
| using momentum::SequenceSolverOptionsBase_const_p = ::std::shared_ptr<const SequenceSolverOptionsBase> |
| using momentum::SequenceSolverOptionsBase_const_u = ::std::unique_ptr<const SequenceSolverOptionsBase> |
| using momentum::SequenceSolverOptionsBase_const_w = ::std::weak_ptr<const SequenceSolverOptionsBase> |
| using momentum::SequenceSolverOptionsBase_p = ::std::shared_ptr<SequenceSolverOptionsBase> |
| using momentum::SequenceSolverOptionsBase_u = ::std::unique_ptr<SequenceSolverOptionsBase> |
| using momentum::SequenceSolverOptionsBase_w = ::std::weak_ptr<SequenceSolverOptionsBase> |
| using momentum::SimdGeneralizedLoss = SimdGeneralizedLossT<float> |
| using momentum::SimdGeneralizedLoss_const_p = ::std::shared_ptr<const SimdGeneralizedLoss> |
| using momentum::SimdGeneralizedLoss_const_u = ::std::unique_ptr<const SimdGeneralizedLoss> |
| using momentum::SimdGeneralizedLoss_const_w = ::std::weak_ptr<const SimdGeneralizedLoss> |
| using momentum::SimdGeneralizedLoss_p = ::std::shared_ptr<SimdGeneralizedLoss> |
| using momentum::SimdGeneralizedLoss_u = ::std::unique_ptr<SimdGeneralizedLoss> |
| using momentum::SimdGeneralizedLoss_w = ::std::weak_ptr<SimdGeneralizedLoss> |
| using momentum::SimdGeneralizedLossd = SimdGeneralizedLossT<double> |
| using momentum::SimdGeneralizedLossd_const_p = ::std::shared_ptr<const SimdGeneralizedLossd> |
| using momentum::SimdGeneralizedLossd_const_u = ::std::unique_ptr<const SimdGeneralizedLossd> |
| using momentum::SimdGeneralizedLossd_const_w = ::std::weak_ptr<const SimdGeneralizedLossd> |
| using momentum::SimdGeneralizedLossd_p = ::std::shared_ptr<SimdGeneralizedLossd> |
| using momentum::SimdGeneralizedLossd_u = ::std::unique_ptr<SimdGeneralizedLossd> |
| using momentum::SimdGeneralizedLossd_w = ::std::weak_ptr<SimdGeneralizedLossd> |
| using momentum::SimdNormalConstraints_const_p = ::std::shared_ptr<const SimdNormalConstraints> |
| using momentum::SimdNormalConstraints_const_u = ::std::unique_ptr<const SimdNormalConstraints> |
| using momentum::SimdNormalConstraints_const_w = ::std::weak_ptr<const SimdNormalConstraints> |
| using momentum::SimdNormalConstraints_p = ::std::shared_ptr<SimdNormalConstraints> |
| using momentum::SimdNormalConstraints_u = ::std::unique_ptr<SimdNormalConstraints> |
| using momentum::SimdNormalConstraints_w = ::std::weak_ptr<SimdNormalConstraints> |
| using momentum::SimdNormalErrorFunction_const_p = ::std::shared_ptr<const SimdNormalErrorFunction> |
| using momentum::SimdNormalErrorFunction_const_u = ::std::unique_ptr<const SimdNormalErrorFunction> |
| using momentum::SimdNormalErrorFunction_const_w = ::std::weak_ptr<const SimdNormalErrorFunction> |
| using momentum::SimdNormalErrorFunction_p = ::std::shared_ptr<SimdNormalErrorFunction> |
| using momentum::SimdNormalErrorFunction_u = ::std::unique_ptr<SimdNormalErrorFunction> |
| using momentum::SimdNormalErrorFunction_w = ::std::weak_ptr<SimdNormalErrorFunction> |
| using momentum::SimdPlaneConstraints_const_p = ::std::shared_ptr<const SimdPlaneConstraints> |
| using momentum::SimdPlaneConstraints_const_u = ::std::unique_ptr<const SimdPlaneConstraints> |
| using momentum::SimdPlaneConstraints_const_w = ::std::weak_ptr<const SimdPlaneConstraints> |
| using momentum::SimdPlaneConstraints_p = ::std::shared_ptr<SimdPlaneConstraints> |
| using momentum::SimdPlaneConstraints_u = ::std::unique_ptr<SimdPlaneConstraints> |
| using momentum::SimdPlaneConstraints_w = ::std::weak_ptr<SimdPlaneConstraints> |
| using momentum::SimdPlaneErrorFunction_const_p = ::std::shared_ptr<const SimdPlaneErrorFunction> |
| using momentum::SimdPlaneErrorFunction_const_u = ::std::unique_ptr<const SimdPlaneErrorFunction> |
| using momentum::SimdPlaneErrorFunction_const_w = ::std::weak_ptr<const SimdPlaneErrorFunction> |
| using momentum::SimdPlaneErrorFunction_p = ::std::shared_ptr<SimdPlaneErrorFunction> |
| using momentum::SimdPlaneErrorFunction_u = ::std::unique_ptr<SimdPlaneErrorFunction> |
| using momentum::SimdPlaneErrorFunction_w = ::std::weak_ptr<SimdPlaneErrorFunction> |
| using momentum::SimdPositionConstraints_const_p = ::std::shared_ptr<const SimdPositionConstraints> |
| using momentum::SimdPositionConstraints_const_u = ::std::unique_ptr<const SimdPositionConstraints> |
| using momentum::SimdPositionConstraints_const_w = ::std::weak_ptr<const SimdPositionConstraints> |
| using momentum::SimdPositionConstraints_p = ::std::shared_ptr<SimdPositionConstraints> |
| using momentum::SimdPositionConstraints_u = ::std::unique_ptr<SimdPositionConstraints> |
| using momentum::SimdPositionConstraints_w = ::std::weak_ptr<SimdPositionConstraints> |
| using momentum::SimdPositionErrorFunction_const_p = ::std::shared_ptr<const SimdPositionErrorFunction> |
| using momentum::SimdPositionErrorFunction_const_u = ::std::unique_ptr<const SimdPositionErrorFunction> |
| using momentum::SimdPositionErrorFunction_const_w = ::std::weak_ptr<const SimdPositionErrorFunction> |
| using momentum::SimdPositionErrorFunction_p = ::std::shared_ptr<SimdPositionErrorFunction> |
| using momentum::SimdPositionErrorFunction_u = ::std::unique_ptr<SimdPositionErrorFunction> |
| using momentum::SimdPositionErrorFunction_w = ::std::weak_ptr<SimdPositionErrorFunction> |
| using momentum::Skeleton = SkeletonT<float> |
| using momentum::Skeleton_const_p = ::std::shared_ptr<const Skeleton> |
| using momentum::Skeleton_const_u = ::std::unique_ptr<const Skeleton> |
| using momentum::Skeleton_const_w = ::std::weak_ptr<const Skeleton> |
| using momentum::Skeleton_p = ::std::shared_ptr<Skeleton> |
| using momentum::Skeleton_u = ::std::unique_ptr<Skeleton> |
| using momentum::Skeleton_w = ::std::weak_ptr<Skeleton> |
| using momentum::Skeletond = SkeletonT<double> |
| using momentum::Skeletond_const_p = ::std::shared_ptr<const Skeletond> |
| using momentum::Skeletond_const_u = ::std::unique_ptr<const Skeletond> |
| using momentum::Skeletond_const_w = ::std::weak_ptr<const Skeletond> |
| using momentum::Skeletond_p = ::std::shared_ptr<Skeletond> |
| using momentum::Skeletond_u = ::std::unique_ptr<Skeletond> |
| using momentum::Skeletond_w = ::std::weak_ptr<Skeletond> |
| using momentum::SkeletonDerivative = SkeletonDerivativeT<float> |
| using momentum::SkeletonDerivative_const_p = ::std::shared_ptr<const SkeletonDerivative> |
| using momentum::SkeletonDerivative_const_u = ::std::unique_ptr<const SkeletonDerivative> |
| using momentum::SkeletonDerivative_const_w = ::std::weak_ptr<const SkeletonDerivative> |
| using momentum::SkeletonDerivative_p = ::std::shared_ptr<SkeletonDerivative> |
| using momentum::SkeletonDerivative_u = ::std::unique_ptr<SkeletonDerivative> |
| using momentum::SkeletonDerivative_w = ::std::weak_ptr<SkeletonDerivative> |
| using momentum::SkeletonDerivatived = SkeletonDerivativeT<double> |
| using momentum::SkeletonDerivatived_const_p = ::std::shared_ptr<const SkeletonDerivatived> |
| using momentum::SkeletonDerivatived_const_u = ::std::unique_ptr<const SkeletonDerivatived> |
| using momentum::SkeletonDerivatived_const_w = ::std::weak_ptr<const SkeletonDerivatived> |
| using momentum::SkeletonDerivatived_p = ::std::shared_ptr<SkeletonDerivatived> |
| using momentum::SkeletonDerivatived_u = ::std::unique_ptr<SkeletonDerivatived> |
| using momentum::SkeletonDerivatived_w = ::std::weak_ptr<SkeletonDerivatived> |
| using momentum::SkeletonErrorFunction = SkeletonErrorFunctionT<float> |
| using momentum::SkeletonErrorFunction_const_p = ::std::shared_ptr<const SkeletonErrorFunction> |
| using momentum::SkeletonErrorFunction_const_u = ::std::unique_ptr<const SkeletonErrorFunction> |
| using momentum::SkeletonErrorFunction_const_w = ::std::weak_ptr<const SkeletonErrorFunction> |
| using momentum::SkeletonErrorFunction_p = ::std::shared_ptr<SkeletonErrorFunction> |
| using momentum::SkeletonErrorFunction_u = ::std::unique_ptr<SkeletonErrorFunction> |
| using momentum::SkeletonErrorFunction_w = ::std::weak_ptr<SkeletonErrorFunction> |
| using momentum::SkeletonErrorFunctiond = SkeletonErrorFunctionT<double> |
| using momentum::SkeletonErrorFunctiond_const_p = ::std::shared_ptr<const SkeletonErrorFunctiond> |
| using momentum::SkeletonErrorFunctiond_const_u = ::std::unique_ptr<const SkeletonErrorFunctiond> |
| using momentum::SkeletonErrorFunctiond_const_w = ::std::weak_ptr<const SkeletonErrorFunctiond> |
| using momentum::SkeletonErrorFunctiond_p = ::std::shared_ptr<SkeletonErrorFunctiond> |
| using momentum::SkeletonErrorFunctiond_u = ::std::unique_ptr<SkeletonErrorFunctiond> |
| using momentum::SkeletonErrorFunctiond_w = ::std::weak_ptr<SkeletonErrorFunctiond> |
| using momentum::SkeletonSolverFunction = SkeletonSolverFunctionT<float> |
| using momentum::SkeletonSolverFunction_const_p = ::std::shared_ptr<const SkeletonSolverFunction> |
| using momentum::SkeletonSolverFunction_const_u = ::std::unique_ptr<const SkeletonSolverFunction> |
| using momentum::SkeletonSolverFunction_const_w = ::std::weak_ptr<const SkeletonSolverFunction> |
| using momentum::SkeletonSolverFunction_p = ::std::shared_ptr<SkeletonSolverFunction> |
| using momentum::SkeletonSolverFunction_u = ::std::unique_ptr<SkeletonSolverFunction> |
| using momentum::SkeletonSolverFunction_w = ::std::weak_ptr<SkeletonSolverFunction> |
| using momentum::SkeletonSolverFunctiond = SkeletonSolverFunctionT<double> |
| using momentum::SkeletonSolverFunctiond_const_p = ::std::shared_ptr<const SkeletonSolverFunctiond> |
| using momentum::SkeletonSolverFunctiond_const_u = ::std::unique_ptr<const SkeletonSolverFunctiond> |
| using momentum::SkeletonSolverFunctiond_const_w = ::std::weak_ptr<const SkeletonSolverFunctiond> |
| using momentum::SkeletonSolverFunctiond_p = ::std::shared_ptr<SkeletonSolverFunctiond> |
| using momentum::SkeletonSolverFunctiond_u = ::std::unique_ptr<SkeletonSolverFunctiond> |
| using momentum::SkeletonSolverFunctiond_w = ::std::weak_ptr<SkeletonSolverFunctiond> |
| using momentum::SkeletonState = SkeletonStateT<float> |
| using momentum::SkeletonState_const_p = ::std::shared_ptr<const SkeletonState> |
| using momentum::SkeletonState_const_u = ::std::unique_ptr<const SkeletonState> |
| using momentum::SkeletonState_const_w = ::std::weak_ptr<const SkeletonState> |
| using momentum::SkeletonState_p = ::std::shared_ptr<SkeletonState> |
| using momentum::SkeletonState_u = ::std::unique_ptr<SkeletonState> |
| using momentum::SkeletonState_w = ::std::weak_ptr<SkeletonState> |
| using momentum::SkeletonStated = SkeletonStateT<double> |
| using momentum::SkeletonStated_const_p = ::std::shared_ptr<const SkeletonStated> |
| using momentum::SkeletonStated_const_u = ::std::unique_ptr<const SkeletonStated> |
| using momentum::SkeletonStated_const_w = ::std::weak_ptr<const SkeletonStated> |
| using momentum::SkeletonStated_p = ::std::shared_ptr<SkeletonStated> |
| using momentum::SkeletonStated_u = ::std::unique_ptr<SkeletonStated> |
| using momentum::SkeletonStated_w = ::std::weak_ptr<SkeletonStated> |
| using momentum::SkinnedLocator_const_p = ::std::shared_ptr<const SkinnedLocator> |
| using momentum::SkinnedLocator_const_u = ::std::unique_ptr<const SkinnedLocator> |
| using momentum::SkinnedLocator_const_w = ::std::weak_ptr<const SkinnedLocator> |
| using momentum::SkinnedLocator_p = ::std::shared_ptr<SkinnedLocator> |
| using momentum::SkinnedLocator_u = ::std::unique_ptr<SkinnedLocator> |
| using momentum::SkinnedLocator_w = ::std::weak_ptr<SkinnedLocator> |
| using momentum::SkinnedLocatorConstraint = SkinnedLocatorConstraintT<float> |
| using momentum::SkinnedLocatorConstraint_const_p = ::std::shared_ptr<const SkinnedLocatorConstraint> |
| using momentum::SkinnedLocatorConstraint_const_u = ::std::unique_ptr<const SkinnedLocatorConstraint> |
| using momentum::SkinnedLocatorConstraint_const_w = ::std::weak_ptr<const SkinnedLocatorConstraint> |
| using momentum::SkinnedLocatorConstraint_p = ::std::shared_ptr<SkinnedLocatorConstraint> |
| using momentum::SkinnedLocatorConstraint_u = ::std::unique_ptr<SkinnedLocatorConstraint> |
| using momentum::SkinnedLocatorConstraint_w = ::std::weak_ptr<SkinnedLocatorConstraint> |
| using momentum::SkinnedLocatorConstraintd = SkinnedLocatorConstraintT<double> |
| using momentum::SkinnedLocatorConstraintd_const_p = ::std::shared_ptr<const SkinnedLocatorConstraintd> |
| using momentum::SkinnedLocatorConstraintd_const_u = ::std::unique_ptr<const SkinnedLocatorConstraintd> |
| using momentum::SkinnedLocatorConstraintd_const_w = ::std::weak_ptr<const SkinnedLocatorConstraintd> |
| using momentum::SkinnedLocatorConstraintd_p = ::std::shared_ptr<SkinnedLocatorConstraintd> |
| using momentum::SkinnedLocatorConstraintd_u = ::std::unique_ptr<SkinnedLocatorConstraintd> |
| using momentum::SkinnedLocatorConstraintd_w = ::std::weak_ptr<SkinnedLocatorConstraintd> |
| using momentum::SkinnedLocatorErrorFunction_const_p = ::std::shared_ptr<const SkinnedLocatorErrorFunction> |
| using momentum::SkinnedLocatorErrorFunction_const_u = ::std::unique_ptr<const SkinnedLocatorErrorFunction> |
| using momentum::SkinnedLocatorErrorFunction_const_w = ::std::weak_ptr<const SkinnedLocatorErrorFunction> |
| using momentum::SkinnedLocatorErrorFunction_p = ::std::shared_ptr<SkinnedLocatorErrorFunction> |
| using momentum::SkinnedLocatorErrorFunction_u = ::std::unique_ptr<SkinnedLocatorErrorFunction> |
| using momentum::SkinnedLocatorErrorFunction_w = ::std::weak_ptr<SkinnedLocatorErrorFunction> |
| using momentum::SkinnedLocatorErrorFunctiond = SkinnedLocatorErrorFunctionT<double> |
| using momentum::SkinnedLocatorErrorFunctiond_const_p = ::std::shared_ptr<const SkinnedLocatorErrorFunctiond> |
| using momentum::SkinnedLocatorErrorFunctiond_const_u = ::std::unique_ptr<const SkinnedLocatorErrorFunctiond> |
| using momentum::SkinnedLocatorErrorFunctiond_const_w = ::std::weak_ptr<const SkinnedLocatorErrorFunctiond> |
| using momentum::SkinnedLocatorErrorFunctiond_p = ::std::shared_ptr<SkinnedLocatorErrorFunctiond> |
| using momentum::SkinnedLocatorErrorFunctiond_u = ::std::unique_ptr<SkinnedLocatorErrorFunctiond> |
| using momentum::SkinnedLocatorErrorFunctiond_w = ::std::weak_ptr<SkinnedLocatorErrorFunctiond> |
| using momentum::SkinnedLocatorList = std::vector<SkinnedLocator> |
A collection of locators attached to a skeleton.
Definition at line 71 of file skinned_locator.h.
| using momentum::SkinnedLocatorTriangleConstraint_p = ::std::shared_ptr<SkinnedLocatorTriangleConstraint> |
| using momentum::SkinnedLocatorTriangleConstraint_u = ::std::unique_ptr<SkinnedLocatorTriangleConstraint> |
| using momentum::SkinnedLocatorTriangleConstraint_w = ::std::weak_ptr<SkinnedLocatorTriangleConstraint> |
| using momentum::SkinnedLocatorTriangleConstraintd_p = ::std::shared_ptr<SkinnedLocatorTriangleConstraintd> |
| using momentum::SkinnedLocatorTriangleConstraintd_u = ::std::unique_ptr<SkinnedLocatorTriangleConstraintd> |
| using momentum::SkinnedLocatorTriangleConstraintd_w = ::std::weak_ptr<SkinnedLocatorTriangleConstraintd> |
| using momentum::SkinnedLocatorTriangleErrorFunction_w = ::std::weak_ptr<SkinnedLocatorTriangleErrorFunction> |
| using momentum::SkinWeights_const_p = ::std::shared_ptr<const SkinWeights> |
| using momentum::SkinWeights_const_u = ::std::unique_ptr<const SkinWeights> |
| using momentum::SkinWeights_const_w = ::std::weak_ptr<const SkinWeights> |
| using momentum::SkinWeights_p = ::std::shared_ptr<SkinWeights> |
| using momentum::SkinWeights_u = ::std::unique_ptr<SkinWeights> |
| using momentum::SkinWeights_w = ::std::weak_ptr<SkinWeights> |
| using momentum::Solver = SolverT<float> |
| using momentum::Solver_const_p = ::std::shared_ptr<const Solver> |
| using momentum::Solver_const_u = ::std::unique_ptr<const Solver> |
| using momentum::Solver_const_w = ::std::weak_ptr<const Solver> |
| using momentum::Solver_p = ::std::shared_ptr<Solver> |
| using momentum::Solver_u = ::std::unique_ptr<Solver> |
| using momentum::Solver_w = ::std::weak_ptr<Solver> |
| using momentum::Solverd = SolverT<double> |
| using momentum::Solverd_const_p = ::std::shared_ptr<const Solverd> |
| using momentum::Solverd_const_u = ::std::unique_ptr<const Solverd> |
| using momentum::Solverd_const_w = ::std::weak_ptr<const Solverd> |
| using momentum::Solverd_p = ::std::shared_ptr<Solverd> |
| using momentum::Solverd_u = ::std::unique_ptr<Solverd> |
| using momentum::Solverd_w = ::std::weak_ptr<Solverd> |
| using momentum::SolverFunction = SolverFunctionT<float> |
| using momentum::SolverFunction_const_p = ::std::shared_ptr<const SolverFunction> |
| using momentum::SolverFunction_const_u = ::std::unique_ptr<const SolverFunction> |
| using momentum::SolverFunction_const_w = ::std::weak_ptr<const SolverFunction> |
| using momentum::SolverFunction_p = ::std::shared_ptr<SolverFunction> |
| using momentum::SolverFunction_u = ::std::unique_ptr<SolverFunction> |
| using momentum::SolverFunction_w = ::std::weak_ptr<SolverFunction> |
| using momentum::SolverFunctiond = SolverFunctionT<double> |
| using momentum::SolverFunctiond_const_p = ::std::shared_ptr<const SolverFunctiond> |
| using momentum::SolverFunctiond_const_u = ::std::unique_ptr<const SolverFunctiond> |
| using momentum::SolverFunctiond_const_w = ::std::weak_ptr<const SolverFunctiond> |
| using momentum::SolverFunctiond_p = ::std::shared_ptr<SolverFunctiond> |
| using momentum::SolverFunctiond_u = ::std::unique_ptr<SolverFunctiond> |
| using momentum::SolverFunctiond_w = ::std::weak_ptr<SolverFunctiond> |
| using momentum::SolverOptions_const_p = ::std::shared_ptr<const SolverOptions> |
| using momentum::SolverOptions_const_u = ::std::unique_ptr<const SolverOptions> |
| using momentum::SolverOptions_const_w = ::std::weak_ptr<const SolverOptions> |
| using momentum::SolverOptions_p = ::std::shared_ptr<SolverOptions> |
| using momentum::SolverOptions_u = ::std::unique_ptr<SolverOptions> |
| using momentum::SolverOptions_w = ::std::weak_ptr<SolverOptions> |
| using momentum::span = gsl::span<T> |
Span type alias using gsl::span (C++17 fallback).
Definition at line 54 of file span_compat.h.
| using momentum::SparseGaussNewtonSolver = SparseGaussNewtonSolverT<float> |
| using momentum::SparseGaussNewtonSolver_const_p = ::std::shared_ptr<const SparseGaussNewtonSolver> |
| using momentum::SparseGaussNewtonSolver_const_u = ::std::unique_ptr<const SparseGaussNewtonSolver> |
| using momentum::SparseGaussNewtonSolver_const_w = ::std::weak_ptr<const SparseGaussNewtonSolver> |
| using momentum::SparseGaussNewtonSolver_p = ::std::shared_ptr<SparseGaussNewtonSolver> |
| using momentum::SparseGaussNewtonSolver_u = ::std::unique_ptr<SparseGaussNewtonSolver> |
| using momentum::SparseGaussNewtonSolver_w = ::std::weak_ptr<SparseGaussNewtonSolver> |
| using momentum::SparseGaussNewtonSolverd = SparseGaussNewtonSolverT<double> |
| using momentum::SparseGaussNewtonSolverd_const_p = ::std::shared_ptr<const SparseGaussNewtonSolverd> |
| using momentum::SparseGaussNewtonSolverd_const_u = ::std::unique_ptr<const SparseGaussNewtonSolverd> |
| using momentum::SparseGaussNewtonSolverd_const_w = ::std::weak_ptr<const SparseGaussNewtonSolverd> |
| using momentum::SparseGaussNewtonSolverd_p = ::std::shared_ptr<SparseGaussNewtonSolverd> |
| using momentum::SparseGaussNewtonSolverd_u = ::std::unique_ptr<SparseGaussNewtonSolverd> |
| using momentum::SparseGaussNewtonSolverd_w = ::std::weak_ptr<SparseGaussNewtonSolverd> |
| using momentum::SparseGaussNewtonSolverOptions_p = ::std::shared_ptr<SparseGaussNewtonSolverOptions> |
| using momentum::SparseGaussNewtonSolverOptions_u = ::std::unique_ptr<SparseGaussNewtonSolverOptions> |
| using momentum::SparseGaussNewtonSolverOptions_w = ::std::weak_ptr<SparseGaussNewtonSolverOptions> |
| using momentum::SparseMatrix = Eigen::SparseMatrix<T> |
| using momentum::SparseMatrixb = SparseMatrix<std::uint8_t> |
| using momentum::SparseMatrixd = SparseMatrix<double> |
| using momentum::SparseMatrixf = SparseMatrix<float> |
| using momentum::SparseMatrixi = SparseMatrix<std::int32_t> |
| using momentum::SparseMatrixs = SparseMatrix<std::uint16_t> |
| using momentum::SparseMatrixu = SparseMatrix<std::uint32_t> |
| using momentum::SparseRowMatrix = Eigen::SparseMatrix<T, Eigen::RowMajor> |
| using momentum::SparseRowMatrixb = SparseRowMatrix<std::uint8_t> |
| using momentum::SparseRowMatrixd = SparseRowMatrix<double> |
| using momentum::SparseRowMatrixf = SparseRowMatrix<float> |
| using momentum::SparseRowMatrixi = SparseRowMatrix<std::int32_t> |
| using momentum::SparseRowMatrixs = SparseRowMatrix<std::uint16_t> |
| using momentum::SparseRowMatrixu = SparseRowMatrix<std::uint32_t> |
| using momentum::StateErrorFunction = StateErrorFunctionT<float> |
| using momentum::StateErrorFunction_const_p = ::std::shared_ptr<const StateErrorFunction> |
| using momentum::StateErrorFunction_const_u = ::std::unique_ptr<const StateErrorFunction> |
| using momentum::StateErrorFunction_const_w = ::std::weak_ptr<const StateErrorFunction> |
| using momentum::StateErrorFunction_p = ::std::shared_ptr<StateErrorFunction> |
| using momentum::StateErrorFunction_u = ::std::unique_ptr<StateErrorFunction> |
| using momentum::StateErrorFunction_w = ::std::weak_ptr<StateErrorFunction> |
| using momentum::StateErrorFunctiond = StateErrorFunctionT<double> |
| using momentum::StateErrorFunctiond_const_p = ::std::shared_ptr<const StateErrorFunctiond> |
| using momentum::StateErrorFunctiond_const_u = ::std::unique_ptr<const StateErrorFunctiond> |
| using momentum::StateErrorFunctiond_const_w = ::std::weak_ptr<const StateErrorFunctiond> |
| using momentum::StateErrorFunctiond_p = ::std::shared_ptr<StateErrorFunctiond> |
| using momentum::StateErrorFunctiond_u = ::std::unique_ptr<StateErrorFunctiond> |
| using momentum::StateErrorFunctiond_w = ::std::weak_ptr<StateErrorFunctiond> |
| using momentum::StateSequenceErrorFunction = StateSequenceErrorFunctionT<float> |
| using momentum::StateSequenceErrorFunction_const_p = ::std::shared_ptr<const StateSequenceErrorFunction> |
| using momentum::StateSequenceErrorFunction_const_u = ::std::unique_ptr<const StateSequenceErrorFunction> |
| using momentum::StateSequenceErrorFunction_const_w = ::std::weak_ptr<const StateSequenceErrorFunction> |
| using momentum::StateSequenceErrorFunction_p = ::std::shared_ptr<StateSequenceErrorFunction> |
| using momentum::StateSequenceErrorFunction_u = ::std::unique_ptr<StateSequenceErrorFunction> |
| using momentum::StateSequenceErrorFunction_w = ::std::weak_ptr<StateSequenceErrorFunction> |
| using momentum::StateSequenceErrorFunctiond = StateSequenceErrorFunctionT<double> |
| using momentum::StateSequenceErrorFunctiond_const_p = ::std::shared_ptr<const StateSequenceErrorFunctiond> |
| using momentum::StateSequenceErrorFunctiond_const_u = ::std::unique_ptr<const StateSequenceErrorFunctiond> |
| using momentum::StateSequenceErrorFunctiond_const_w = ::std::weak_ptr<const StateSequenceErrorFunctiond> |
| using momentum::StateSequenceErrorFunctiond_p = ::std::shared_ptr<StateSequenceErrorFunctiond> |
| using momentum::StateSequenceErrorFunctiond_u = ::std::unique_ptr<StateSequenceErrorFunctiond> |
| using momentum::StateSequenceErrorFunctiond_w = ::std::weak_ptr<StateSequenceErrorFunctiond> |
| using momentum::SubsetGaussNewtonSolver = SubsetGaussNewtonSolverT<float> |
| using momentum::SubsetGaussNewtonSolver_const_p = ::std::shared_ptr<const SubsetGaussNewtonSolver> |
| using momentum::SubsetGaussNewtonSolver_const_u = ::std::unique_ptr<const SubsetGaussNewtonSolver> |
| using momentum::SubsetGaussNewtonSolver_const_w = ::std::weak_ptr<const SubsetGaussNewtonSolver> |
| using momentum::SubsetGaussNewtonSolver_p = ::std::shared_ptr<SubsetGaussNewtonSolver> |
| using momentum::SubsetGaussNewtonSolver_u = ::std::unique_ptr<SubsetGaussNewtonSolver> |
| using momentum::SubsetGaussNewtonSolver_w = ::std::weak_ptr<SubsetGaussNewtonSolver> |
| using momentum::SubsetGaussNewtonSolverd = SubsetGaussNewtonSolverT<double> |
| using momentum::SubsetGaussNewtonSolverd_const_p = ::std::shared_ptr<const SubsetGaussNewtonSolverd> |
| using momentum::SubsetGaussNewtonSolverd_const_u = ::std::unique_ptr<const SubsetGaussNewtonSolverd> |
| using momentum::SubsetGaussNewtonSolverd_const_w = ::std::weak_ptr<const SubsetGaussNewtonSolverd> |
| using momentum::SubsetGaussNewtonSolverd_p = ::std::shared_ptr<SubsetGaussNewtonSolverd> |
| using momentum::SubsetGaussNewtonSolverd_u = ::std::unique_ptr<SubsetGaussNewtonSolverd> |
| using momentum::SubsetGaussNewtonSolverd_w = ::std::weak_ptr<SubsetGaussNewtonSolverd> |
| typedef SupportContactT< float > momentum::SupportContact = SupportContactT<float> |
| using momentum::SupportContact_const_p = ::std::shared_ptr<const SupportContact> |
| using momentum::SupportContact_const_u = ::std::unique_ptr<const SupportContact> |
| using momentum::SupportContact_const_w = ::std::weak_ptr<const SupportContact> |
| using momentum::SupportContact_p = ::std::shared_ptr<SupportContact> |
| using momentum::SupportContact_u = ::std::unique_ptr<SupportContact> |
| using momentum::SupportContact_w = ::std::weak_ptr<SupportContact> |
| typedef SupportContactT< double > momentum::SupportContactd = SupportContactT<double> |
| using momentum::SupportContactd_const_p = ::std::shared_ptr<const SupportContactd> |
| using momentum::SupportContactd_const_u = ::std::unique_ptr<const SupportContactd> |
| using momentum::SupportContactd_const_w = ::std::weak_ptr<const SupportContactd> |
| using momentum::SupportContactd_p = ::std::shared_ptr<SupportContactd> |
| using momentum::SupportContactd_u = ::std::unique_ptr<SupportContactd> |
| using momentum::SupportContactd_w = ::std::weak_ptr<SupportContactd> |
| typedef SupportContactListT< float > momentum::SupportContactList = SupportContactListT<float> |
| using momentum::SupportContactList_const_p = ::std::shared_ptr<const SupportContactList> |
| using momentum::SupportContactList_const_u = ::std::unique_ptr<const SupportContactList> |
| using momentum::SupportContactList_const_w = ::std::weak_ptr<const SupportContactList> |
| using momentum::SupportContactList_p = ::std::shared_ptr<SupportContactList> |
| using momentum::SupportContactList_u = ::std::unique_ptr<SupportContactList> |
| using momentum::SupportContactList_w = ::std::weak_ptr<SupportContactList> |
| typedef SupportContactListT< double > momentum::SupportContactListd = SupportContactListT<double> |
| using momentum::SupportContactListd_const_p = ::std::shared_ptr<const SupportContactListd> |
| using momentum::SupportContactListd_const_u = ::std::unique_ptr<const SupportContactListd> |
| using momentum::SupportContactListd_const_w = ::std::weak_ptr<const SupportContactListd> |
| using momentum::SupportContactListd_p = ::std::shared_ptr<SupportContactListd> |
| using momentum::SupportContactListd_u = ::std::unique_ptr<SupportContactListd> |
| using momentum::SupportContactListd_w = ::std::weak_ptr<SupportContactListd> |
| typedef SupportPlaneT< float > momentum::SupportPlane = SupportPlaneT<float> |
| using momentum::SupportPlane_const_p = ::std::shared_ptr<const SupportPlane> |
| using momentum::SupportPlane_const_u = ::std::unique_ptr<const SupportPlane> |
| using momentum::SupportPlane_const_w = ::std::weak_ptr<const SupportPlane> |
| using momentum::SupportPlane_p = ::std::shared_ptr<SupportPlane> |
| using momentum::SupportPlane_u = ::std::unique_ptr<SupportPlane> |
| using momentum::SupportPlane_w = ::std::weak_ptr<SupportPlane> |
| typedef SupportPlaneT< double > momentum::SupportPlaned = SupportPlaneT<double> |
| using momentum::SupportPlaned_const_p = ::std::shared_ptr<const SupportPlaned> |
| using momentum::SupportPlaned_const_u = ::std::unique_ptr<const SupportPlaned> |
| using momentum::SupportPlaned_const_w = ::std::weak_ptr<const SupportPlaned> |
| using momentum::SupportPlaned_p = ::std::shared_ptr<SupportPlaned> |
| using momentum::SupportPlaned_u = ::std::unique_ptr<SupportPlaned> |
| using momentum::SupportPlaned_w = ::std::weak_ptr<SupportPlaned> |
| using momentum::TaperedCapsule = TaperedCapsuleT<float> |
| using momentum::TaperedCapsule_const_p = ::std::shared_ptr<const TaperedCapsule> |
| using momentum::TaperedCapsule_const_u = ::std::unique_ptr<const TaperedCapsule> |
| using momentum::TaperedCapsule_const_w = ::std::weak_ptr<const TaperedCapsule> |
| using momentum::TaperedCapsule_p = ::std::shared_ptr<TaperedCapsule> |
| using momentum::TaperedCapsule_u = ::std::unique_ptr<TaperedCapsule> |
| using momentum::TaperedCapsule_w = ::std::weak_ptr<TaperedCapsule> |
| using momentum::TaperedCapsuled = TaperedCapsuleT<double> |
| using momentum::TaperedCapsuled_const_p = ::std::shared_ptr<const TaperedCapsuled> |
| using momentum::TaperedCapsuled_const_u = ::std::unique_ptr<const TaperedCapsuled> |
| using momentum::TaperedCapsuled_const_w = ::std::weak_ptr<const TaperedCapsuled> |
| using momentum::TaperedCapsuled_p = ::std::shared_ptr<TaperedCapsuled> |
| using momentum::TaperedCapsuled_u = ::std::unique_ptr<TaperedCapsuled> |
| using momentum::TaperedCapsuled_w = ::std::weak_ptr<TaperedCapsuled> |
| typedef TransformT< float > momentum::Transform = TransformT<float> |
| using momentum::Transform_const_p = ::std::shared_ptr<const Transform> |
| using momentum::Transform_const_u = ::std::unique_ptr<const Transform> |
| using momentum::Transform_const_w = ::std::weak_ptr<const Transform> |
| using momentum::Transform_p = ::std::shared_ptr<Transform> |
| using momentum::Transform_u = ::std::unique_ptr<Transform> |
| using momentum::Transform_w = ::std::weak_ptr<Transform> |
| using momentum::TransformationList = std::vector<Affine3f> |
| using momentum::TransformationListT = std::vector<Affine3<T>> |
Scalar-templated counterpart of TransformationList.
| using momentum::Transformd = TransformT<double> |
| using momentum::Transformd_const_p = ::std::shared_ptr<const Transformd> |
| using momentum::Transformd_const_u = ::std::unique_ptr<const Transformd> |
| using momentum::Transformd_const_w = ::std::weak_ptr<const Transformd> |
| using momentum::Transformd_p = ::std::shared_ptr<Transformd> |
| using momentum::Transformd_u = ::std::unique_ptr<Transformd> |
| using momentum::Transformd_w = ::std::weak_ptr<Transformd> |
| using momentum::TransformList = TransformListT<float> |
Definition at line 243 of file transform.h.
| 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.
| using momentum::Translation3 = Eigen::Translation<T, 3> |
| using momentum::Translation3d = Translation3<double> |
| using momentum::Translation3f = Translation3<float> |
| using momentum::TriangleArray = Matrix3Xi |
| using momentum::TrustRegionQR = TrustRegionQRT<float> |
| using momentum::TrustRegionQR_const_p = ::std::shared_ptr<const TrustRegionQR> |
| using momentum::TrustRegionQR_const_u = ::std::unique_ptr<const TrustRegionQR> |
| using momentum::TrustRegionQR_const_w = ::std::weak_ptr<const TrustRegionQR> |
| using momentum::TrustRegionQR_p = ::std::shared_ptr<TrustRegionQR> |
| using momentum::TrustRegionQR_u = ::std::unique_ptr<TrustRegionQR> |
| using momentum::TrustRegionQR_w = ::std::weak_ptr<TrustRegionQR> |
| using momentum::TrustRegionQRd = TrustRegionQRT<double> |
| using momentum::TrustRegionQRd_const_p = ::std::shared_ptr<const TrustRegionQRd> |
| using momentum::TrustRegionQRd_const_u = ::std::unique_ptr<const TrustRegionQRd> |
| using momentum::TrustRegionQRd_const_w = ::std::weak_ptr<const TrustRegionQRd> |
| using momentum::TrustRegionQRd_p = ::std::shared_ptr<TrustRegionQRd> |
| using momentum::TrustRegionQRd_u = ::std::unique_ptr<TrustRegionQRd> |
| using momentum::TrustRegionQRd_w = ::std::weak_ptr<TrustRegionQRd> |
| using momentum::UintP = Packet<uint32_t> |
| using momentum::UnionErrorFunction = UnionErrorFunctionT<float> |
| using momentum::UnionErrorFunction_const_p = ::std::shared_ptr<const UnionErrorFunction> |
| using momentum::UnionErrorFunction_const_u = ::std::unique_ptr<const UnionErrorFunction> |
| using momentum::UnionErrorFunction_const_w = ::std::weak_ptr<const UnionErrorFunction> |
| using momentum::UnionErrorFunction_p = ::std::shared_ptr<UnionErrorFunction> |
| using momentum::UnionErrorFunction_u = ::std::unique_ptr<UnionErrorFunction> |
| using momentum::UnionErrorFunction_w = ::std::weak_ptr<UnionErrorFunction> |
| using momentum::UnionErrorFunctiond = UnionErrorFunctionT<double> |
| using momentum::UnionErrorFunctiond_const_p = ::std::shared_ptr<const UnionErrorFunctiond> |
| using momentum::UnionErrorFunctiond_const_u = ::std::unique_ptr<const UnionErrorFunctiond> |
| using momentum::UnionErrorFunctiond_const_w = ::std::weak_ptr<const UnionErrorFunctiond> |
| using momentum::UnionErrorFunctiond_p = ::std::shared_ptr<UnionErrorFunctiond> |
| using momentum::UnionErrorFunctiond_u = ::std::unique_ptr<UnionErrorFunctiond> |
| using momentum::UnionErrorFunctiond_w = ::std::weak_ptr<UnionErrorFunctiond> |
| using momentum::Vector = Eigen::Matrix<T, Dim, 1, Options> |
| using momentum::Vector0 = Vector<T, 0> |
| using momentum::Vector0b = Vector0<std::uint8_t> |
| using momentum::Vector0d = Vector0<double> |
| using momentum::Vector0f = Vector0<float> |
| using momentum::Vector0i = Vector0<std::int32_t> |
| using momentum::Vector0s = Vector0<std::uint16_t> |
| using momentum::Vector0u = Vector0<std::uint32_t> |
| using momentum::Vector1 = Vector<T, 1> |
| using momentum::Vector1b = Vector1<std::uint8_t> |
| using momentum::Vector1d = Vector1<double> |
| using momentum::Vector1f = Vector1<float> |
| using momentum::Vector1i = Vector1<std::int32_t> |
| using momentum::Vector1s = Vector1<std::uint16_t> |
| using momentum::Vector1u = Vector1<std::uint32_t> |
| using momentum::Vector2 = Vector<T, 2> |
| using momentum::Vector2b = Vector2<std::uint8_t> |
| using momentum::Vector2d = Vector2<double> |
| using momentum::Vector2dP = Vector2P<double> |
| using momentum::Vector2f = Vector2<float> |
| using momentum::Vector2fP = Vector2P<float> |
| using momentum::Vector2i = Vector2<std::int32_t> |
| using momentum::Vector2iP = drjit::Array<IntP, 2> |
| using momentum::Vector2P = VectorP<T, 2> |
| using momentum::Vector2s = Vector2<std::uint16_t> |
| using momentum::Vector2u = Vector2<std::uint32_t> |
| using momentum::Vector3 = Vector<T, 3> |
| using momentum::Vector3b = Vector3<std::uint8_t> |
| using momentum::Vector3bP = drjit::Array<ByteP, 3> |
| using momentum::Vector3d = Vector3<double> |
| using momentum::Vector3dP = Vector3P<double> |
| using momentum::Vector3f = Vector3<float> |
| using momentum::Vector3fP = Vector3P<float> |
| using momentum::Vector3i = Vector3<std::int32_t> |
| using momentum::Vector3iP = drjit::Array<IntP, 3> |
| using momentum::Vector3P = VectorP<T, 3> |
| using momentum::Vector3s = Vector3<std::uint16_t> |
| using momentum::Vector3u = Vector3<std::uint32_t> |
| using momentum::Vector4 = Vector<T, 4> |
| using momentum::Vector4b = Vector4<std::uint8_t> |
| using momentum::Vector4d = Vector4<double> |
| using momentum::Vector4dP = Vector4P<double> |
| using momentum::Vector4f = Vector4<float> |
| using momentum::Vector4fP = Vector4P<float> |
| using momentum::Vector4i = Vector4<std::int32_t> |
| using momentum::Vector4P = VectorP<T, 4> |
| using momentum::Vector4s = Vector4<std::uint16_t> |
| using momentum::Vector4u = Vector4<std::uint32_t> |
| using momentum::Vector5 = Vector<T, 5> |
| using momentum::Vector5b = Vector5<std::uint8_t> |
| using momentum::Vector5d = Vector5<double> |
| using momentum::Vector5f = Vector5<float> |
| using momentum::Vector5i = Vector5<std::int32_t> |
| using momentum::Vector5s = Vector5<std::uint16_t> |
| using momentum::Vector5u = Vector5<std::uint32_t> |
| using momentum::Vector6 = Vector<T, 6> |
| using momentum::Vector6b = Vector6<std::uint8_t> |
| using momentum::Vector6d = Vector6<double> |
| using momentum::Vector6f = Vector6<float> |
| using momentum::Vector6i = Vector6<std::int32_t> |
| using momentum::Vector6s = Vector6<std::uint16_t> |
| using momentum::Vector6u = Vector6<std::uint32_t> |
| using momentum::Vector7 = Vector<T, 7> |
| using momentum::Vector7f = Vector7<float> |
| using momentum::Vector8 = Vector<T, 8> |
| using momentum::Vector8f = Vector8<float> |
| using momentum::Vectorb = Vector<std::uint8_t, Dim> |
| using momentum::Vectord = Vector<double, Dim> |
| using momentum::Vectorf = Vector<float, Dim> |
| using momentum::Vectori = Vector<std::int32_t, Dim> |
| using momentum::VectorP = drjit::Array<Packet<T>, Dim> |
| using momentum::Vectors = Vector<std::uint16_t, Dim> |
| using momentum::Vectoru = Vector<std::uint32_t, Dim> |
| using momentum::VectorX = Vector<T, Dynamic> |
| using momentum::VectorXb = VectorX<std::uint8_t> |
| using momentum::VectorXd = VectorX<double> |
| using momentum::VectorXf = VectorX<float> |
| using momentum::VectorXi = VectorX<std::int32_t> |
| using momentum::VectorXs = VectorX<std::uint16_t> |
| using momentum::VectorXu = VectorX<std::uint32_t> |
| using momentum::VertexArray = Matrix3Xf |
| using momentum::VertexConstraintData_const_p = ::std::shared_ptr<const VertexConstraintData> |
| using momentum::VertexConstraintData_const_u = ::std::unique_ptr<const VertexConstraintData> |
| using momentum::VertexConstraintData_const_w = ::std::weak_ptr<const VertexConstraintData> |
| using momentum::VertexConstraintData_p = ::std::shared_ptr<VertexConstraintData> |
| using momentum::VertexConstraintData_u = ::std::unique_ptr<VertexConstraintData> |
| using momentum::VertexConstraintData_w = ::std::weak_ptr<VertexConstraintData> |
| using momentum::VertexNormalErrorFunction = VertexNormalErrorFunctionT<float> |
| using momentum::VertexNormalErrorFunction_const_p = ::std::shared_ptr<const VertexNormalErrorFunction> |
| using momentum::VertexNormalErrorFunction_const_u = ::std::unique_ptr<const VertexNormalErrorFunction> |
| using momentum::VertexNormalErrorFunction_const_w = ::std::weak_ptr<const VertexNormalErrorFunction> |
| using momentum::VertexNormalErrorFunction_p = ::std::shared_ptr<VertexNormalErrorFunction> |
| using momentum::VertexNormalErrorFunction_u = ::std::unique_ptr<VertexNormalErrorFunction> |
| using momentum::VertexNormalErrorFunction_w = ::std::weak_ptr<VertexNormalErrorFunction> |
| using momentum::VertexNormalErrorFunctiond = VertexNormalErrorFunctionT<double> |
| using momentum::VertexNormalErrorFunctiond_const_p = ::std::shared_ptr<const VertexNormalErrorFunctiond> |
| using momentum::VertexNormalErrorFunctiond_const_u = ::std::unique_ptr<const VertexNormalErrorFunctiond> |
| using momentum::VertexNormalErrorFunctiond_const_w = ::std::weak_ptr<const VertexNormalErrorFunctiond> |
| using momentum::VertexNormalErrorFunctiond_p = ::std::shared_ptr<VertexNormalErrorFunctiond> |
| using momentum::VertexNormalErrorFunctiond_u = ::std::unique_ptr<VertexNormalErrorFunctiond> |
| using momentum::VertexNormalErrorFunctiond_w = ::std::weak_ptr<VertexNormalErrorFunctiond> |
| using momentum::VertexPlaneErrorFunction = VertexPlaneErrorFunctionT<float> |
| using momentum::VertexPlaneErrorFunction_const_p = ::std::shared_ptr<const VertexPlaneErrorFunction> |
| using momentum::VertexPlaneErrorFunction_const_u = ::std::unique_ptr<const VertexPlaneErrorFunction> |
| using momentum::VertexPlaneErrorFunction_const_w = ::std::weak_ptr<const VertexPlaneErrorFunction> |
| using momentum::VertexPlaneErrorFunction_p = ::std::shared_ptr<VertexPlaneErrorFunction> |
| using momentum::VertexPlaneErrorFunction_u = ::std::unique_ptr<VertexPlaneErrorFunction> |
| using momentum::VertexPlaneErrorFunction_w = ::std::weak_ptr<VertexPlaneErrorFunction> |
| using momentum::VertexPlaneErrorFunctiond = VertexPlaneErrorFunctionT<double> |
| using momentum::VertexPlaneErrorFunctiond_const_p = ::std::shared_ptr<const VertexPlaneErrorFunctiond> |
| using momentum::VertexPlaneErrorFunctiond_const_u = ::std::unique_ptr<const VertexPlaneErrorFunctiond> |
| using momentum::VertexPlaneErrorFunctiond_const_w = ::std::weak_ptr<const VertexPlaneErrorFunctiond> |
| using momentum::VertexPlaneErrorFunctiond_p = ::std::shared_ptr<VertexPlaneErrorFunctiond> |
| using momentum::VertexPlaneErrorFunctiond_u = ::std::unique_ptr<VertexPlaneErrorFunctiond> |
| using momentum::VertexPlaneErrorFunctiond_w = ::std::weak_ptr<VertexPlaneErrorFunctiond> |
| using momentum::VertexPositionErrorFunction_const_p = ::std::shared_ptr<const VertexPositionErrorFunction> |
| using momentum::VertexPositionErrorFunction_const_u = ::std::unique_ptr<const VertexPositionErrorFunction> |
| using momentum::VertexPositionErrorFunction_const_w = ::std::weak_ptr<const VertexPositionErrorFunction> |
| using momentum::VertexPositionErrorFunction_p = ::std::shared_ptr<VertexPositionErrorFunction> |
| using momentum::VertexPositionErrorFunction_u = ::std::unique_ptr<VertexPositionErrorFunction> |
| using momentum::VertexPositionErrorFunction_w = ::std::weak_ptr<VertexPositionErrorFunction> |
| using momentum::VertexPositionErrorFunctiond = VertexPositionErrorFunctionT<double> |
| using momentum::VertexPositionErrorFunctiond_const_p = ::std::shared_ptr<const VertexPositionErrorFunctiond> |
| using momentum::VertexPositionErrorFunctiond_const_u = ::std::unique_ptr<const VertexPositionErrorFunctiond> |
| using momentum::VertexPositionErrorFunctiond_const_w = ::std::weak_ptr<const VertexPositionErrorFunctiond> |
| using momentum::VertexPositionErrorFunctiond_p = ::std::shared_ptr<VertexPositionErrorFunctiond> |
| using momentum::VertexPositionErrorFunctiond_u = ::std::unique_ptr<VertexPositionErrorFunctiond> |
| using momentum::VertexPositionErrorFunctiond_w = ::std::weak_ptr<VertexPositionErrorFunctiond> |
| using momentum::VertexProjectionErrorFunction_const_w = ::std::weak_ptr<const VertexProjectionErrorFunction> |
| using momentum::VertexProjectionErrorFunction_p = ::std::shared_ptr<VertexProjectionErrorFunction> |
| using momentum::VertexProjectionErrorFunction_u = ::std::unique_ptr<VertexProjectionErrorFunction> |
| using momentum::VertexProjectionErrorFunction_w = ::std::weak_ptr<VertexProjectionErrorFunction> |
| using momentum::VertexProjectionErrorFunctiond_p = ::std::shared_ptr<VertexProjectionErrorFunctiond> |
| using momentum::VertexProjectionErrorFunctiond_u = ::std::unique_ptr<VertexProjectionErrorFunctiond> |
| using momentum::VertexProjectionErrorFunctiond_w = ::std::weak_ptr<VertexProjectionErrorFunctiond> |
| using momentum::VertexSDFConstraint = VertexSDFConstraintT<float> |
| using momentum::VertexSDFConstraint_const_p = ::std::shared_ptr<const VertexSDFConstraint> |
| using momentum::VertexSDFConstraint_const_u = ::std::unique_ptr<const VertexSDFConstraint> |
| using momentum::VertexSDFConstraint_const_w = ::std::weak_ptr<const VertexSDFConstraint> |
| using momentum::VertexSDFConstraint_p = ::std::shared_ptr<VertexSDFConstraint> |
| using momentum::VertexSDFConstraint_u = ::std::unique_ptr<VertexSDFConstraint> |
| using momentum::VertexSDFConstraint_w = ::std::weak_ptr<VertexSDFConstraint> |
| using momentum::VertexSDFConstraintd = VertexSDFConstraintT<double> |
| using momentum::VertexSDFConstraintd_const_p = ::std::shared_ptr<const VertexSDFConstraintd> |
| using momentum::VertexSDFConstraintd_const_u = ::std::unique_ptr<const VertexSDFConstraintd> |
| using momentum::VertexSDFConstraintd_const_w = ::std::weak_ptr<const VertexSDFConstraintd> |
| using momentum::VertexSDFConstraintd_p = ::std::shared_ptr<VertexSDFConstraintd> |
| using momentum::VertexSDFConstraintd_u = ::std::unique_ptr<VertexSDFConstraintd> |
| using momentum::VertexSDFConstraintd_w = ::std::weak_ptr<VertexSDFConstraintd> |
| typedef VertexSDFErrorFunctionT< float > momentum::VertexSDFErrorFunction = VertexSDFErrorFunctionT<float> |
| using momentum::VertexSDFErrorFunction_const_p = ::std::shared_ptr<const VertexSDFErrorFunction> |
| using momentum::VertexSDFErrorFunction_const_u = ::std::unique_ptr<const VertexSDFErrorFunction> |
| using momentum::VertexSDFErrorFunction_const_w = ::std::weak_ptr<const VertexSDFErrorFunction> |
| using momentum::VertexSDFErrorFunction_p = ::std::shared_ptr<VertexSDFErrorFunction> |
| using momentum::VertexSDFErrorFunction_u = ::std::unique_ptr<VertexSDFErrorFunction> |
| using momentum::VertexSDFErrorFunction_w = ::std::weak_ptr<VertexSDFErrorFunction> |
| typedef VertexSDFErrorFunctionT< double > momentum::VertexSDFErrorFunctiond = VertexSDFErrorFunctionT<double> |
| using momentum::VertexSDFErrorFunctiond_const_p = ::std::shared_ptr<const VertexSDFErrorFunctiond> |
| using momentum::VertexSDFErrorFunctiond_const_u = ::std::unique_ptr<const VertexSDFErrorFunctiond> |
| using momentum::VertexSDFErrorFunctiond_const_w = ::std::weak_ptr<const VertexSDFErrorFunctiond> |
| using momentum::VertexSDFErrorFunctiond_p = ::std::shared_ptr<VertexSDFErrorFunctiond> |
| using momentum::VertexSDFErrorFunctiond_u = ::std::unique_ptr<VertexSDFErrorFunctiond> |
| using momentum::VertexSDFErrorFunctiond_w = ::std::weak_ptr<VertexSDFErrorFunctiond> |
| using momentum::VertexSequenceErrorFunction_const_p = ::std::shared_ptr<const VertexSequenceErrorFunction> |
| using momentum::VertexSequenceErrorFunction_const_u = ::std::unique_ptr<const VertexSequenceErrorFunction> |
| using momentum::VertexSequenceErrorFunction_const_w = ::std::weak_ptr<const VertexSequenceErrorFunction> |
| using momentum::VertexSequenceErrorFunction_p = ::std::shared_ptr<VertexSequenceErrorFunction> |
| using momentum::VertexSequenceErrorFunction_u = ::std::unique_ptr<VertexSequenceErrorFunction> |
| using momentum::VertexSequenceErrorFunction_w = ::std::weak_ptr<VertexSequenceErrorFunction> |
| using momentum::VertexSequenceErrorFunctiond = VertexSequenceErrorFunctionT<double> |
| using momentum::VertexSequenceErrorFunctiond_const_p = ::std::shared_ptr<const VertexSequenceErrorFunctiond> |
| using momentum::VertexSequenceErrorFunctiond_const_u = ::std::unique_ptr<const VertexSequenceErrorFunctiond> |
| using momentum::VertexSequenceErrorFunctiond_const_w = ::std::weak_ptr<const VertexSequenceErrorFunctiond> |
| using momentum::VertexSequenceErrorFunctiond_p = ::std::shared_ptr<VertexSequenceErrorFunctiond> |
| using momentum::VertexSequenceErrorFunctiond_u = ::std::unique_ptr<VertexSequenceErrorFunctiond> |
| using momentum::VertexSequenceErrorFunctiond_w = ::std::weak_ptr<VertexSequenceErrorFunctiond> |
| using momentum::VertexVertexDistanceErrorFunction_p = ::std::shared_ptr<VertexVertexDistanceErrorFunction> |
| using momentum::VertexVertexDistanceErrorFunction_u = ::std::unique_ptr<VertexVertexDistanceErrorFunction> |
| using momentum::VertexVertexDistanceErrorFunction_w = ::std::weak_ptr<VertexVertexDistanceErrorFunction> |
| using momentum::VertexVertexDistanceErrorFunctiond_p = ::std::shared_ptr<VertexVertexDistanceErrorFunctiond> |
| using momentum::VertexVertexDistanceErrorFunctiond_u = ::std::unique_ptr<VertexVertexDistanceErrorFunctiond> |
| using momentum::VertexVertexDistanceErrorFunctiond_w = ::std::weak_ptr<VertexVertexDistanceErrorFunctiond> |
| using momentum::WeightMatrix |
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.
|
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.
|
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.
|
strong |
Collision primitive kinds supported by character collision geometry.
| Enumerator | |
|---|---|
| TaperedCapsule | |
| Ellipsoid | |
| Box | |
Definition at line 22 of file collision_geometry.h.
|
strong |
The Euler angles convention.
|
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.
|
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.
|
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.
|
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.
|
strong |
File format in which the character is saved.
| Enumerator | |
|---|---|
| Auto | |
| Binary | |
| Ascii | |
Definition at line 28 of file file_save_options.h.
|
strong |
Specifies the handedness (chirality) of a coordinate system.
| Enumerator | |
|---|---|
| Left | |
| Right | |
Definition at line 22 of file coordinate_system.h.
|
strong |
|
strong |
Specifies the unit of length measurement.
| Enumerator | |
|---|---|
| Meter | |
| Decimeter | |
| Centimeter | |
| Millimeter | |
Definition at line 28 of file coordinate_system.h.
| enum momentum::LimitType |
| Enumerator | |
|---|---|
| MinMax | |
| MinMaxJoint | |
| MinMaxJointPassive | |
| Linear | |
| LinearJoint | |
| Ellipsoid | |
| HalfPlane | |
| LimitTypeCount | |
Definition at line 20 of file parameter_limits.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| Local | |
| Global | |
Definition at line 18 of file locator_io.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| No | |
| Yes | |
Definition at line 21 of file file_save_options.h.
|
strong |
Defines different methods for computing rotation error between two quaternions.
Definition at line 17 of file state_error_function.h.
|
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.
|
strong |
Specifies which axis points "up" in a 3D coordinate system.
| Enumerator | |
|---|---|
| X | |
| Y | |
| Z | |
Definition at line 15 of file coordinate_system.h.
|
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.
|
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.
| 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().
|
nodiscard |
Definition at line 562 of file parameter_transform.cpp.
References momentum::ParameterTransformT< T >::blendShapeParameters, momentum::ParameterTransformT< T >::getBlendShapeParameters(), momentum::ParameterTransformT< T >::name, subsetParameterTransform(), and momentum::ParameterTransformT< T >::transform.
Referenced by momentum::Character::addBlendShape().
| void momentum::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.
Only added for the first solver frame.
Definition at line 286 of file marker_tracker.cpp.
References momentum::SequenceSolverFunctionT< T >::addErrorFunction(), momentum::ParameterTransformT< T >::blendShapeParameters, momentum::ParameterTransformT< T >::getBlendShapeParameters(), momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, and momentum::EigenStrongType< Derived, EigenType >::Zero().
| size_t momentum::addBlendShapes | ( | const fx::gltf::Document & | model, |
| const fx::gltf::Primitive & | primitive, | ||
| BlendShape_u & | blendShape ) |
Add blend shapes from a glTF primitive.
| [in] | model | The glTF document. |
| [in] | primitive | The primitive to load blend shapes from. |
| [in,out] | blendShape | The blend shape to append data to (may be nullptr, will be created if needed). |
Definition at line 242 of file gltf_mesh_io.cpp.
References copyAccessorBuffer(), MT_CHECK, MT_LOGW, and toMomentumVec3f().
Referenced by loadSkinnedMesh().
| void momentum::addCalibrationOptions | ( | CLI::App & | app, |
| std::shared_ptr< CalibrationConfig > | config ) |
Definition at line 44 of file app_utils.cpp.
|
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).
| paramTransform | The parameter transform to augment |
| paramLimits | The parameter limits to augment |
| intrinsicsModel | The intrinsics model whose parameters to add (must have a non-empty name) |
| tieFocalLength | If 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. |
| if | intrinsicsModel.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.
|
nodiscard |
Definition at line 587 of file parameter_transform.cpp.
References momentum::ParameterTransformT< T >::faceExpressionParameters, momentum::ParameterTransformT< T >::getFaceExpressionParameters(), momentum::ParameterTransformT< T >::name, subsetParameterTransform(), and momentum::ParameterTransformT< T >::transform.
Referenced by momentum::Character::addFaceExpressionBlendShape().
| 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.
| [in] | character | Source character to extend (taken by value for move semantics). |
| [in] | cfg | Glove configuration specifying wrist joint names. |
| [in] | offsets | Per-hand translation and rotation offsets to bake into the joints. |
| [in] | prefix | Name prefix for the added glove joints. |
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().
| 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.
| [in] | character | Character with glove bones already in the skeleton (taken by value for move semantics). |
| [in] | cfg | Glove configuration specifying wrist joint names. |
| [in] | prefix | Name prefix used when adding glove joints. |
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().
| 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().
| [in,out] | solverFunc | Sequence solver to add error functions to. |
| [in] | solverFrame | Frame index within the solver. |
| [in] | character | Character with glove bones. |
| [in] | posData | Pre-built per-frame position constraint data. |
| [in] | oriData | Pre-built per-frame orientation constraint data. |
| [in] | iFrame | Index into the constraint data arrays (source frame). |
| [in] | posWeight | Position constraint weight. |
| [in] | oriWeight | Orientation 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.
| void momentum::addIOOptions | ( | CLI::App & | app, |
| std::shared_ptr< IOOptions > | ioOptions ) |
Definition at line 26 of file app_utils.cpp.
| 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.
| size_t momentum::addMesh | ( | const fx::gltf::Document & | model, |
| const fx::gltf::Primitive & | primitive, | ||
| Mesh_u & | mesh ) |
Add mesh data from a glTF primitive.
| [in] | model | The glTF document. |
| [in] | primitive | The primitive to load mesh data from. |
| [in,out] | mesh | The mesh to append data to. |
Definition at line 224 of file gltf_mesh_io.cpp.
References MT_LOGW.
Referenced by loadSkinnedMesh().
| void momentum::addModelOptions | ( | CLI::App & | app, |
| std::shared_ptr< ModelOptions > | modelOptions ) |
Definition at line 35 of file app_utils.cpp.
| void momentum::addRefineOptions | ( | CLI::App & | app, |
| std::shared_ptr< RefineConfig > | config ) |
Definition at line 137 of file app_utils.cpp.
References addTrackingOptions().
|
nodiscard |
Adds a new root-level joint with 6 rigid DOF parameters (tx/ty/tz/rx/ry/rz) to a character.
The new joint is parented to kInvalidIndex (root-level) and gets 6 new model parameters that map directly to the joint's translation and rotation parameters.
| [in] | name | Name for the new joint (also used as prefix for parameter names). |
Definition at line 862 of file character_utility.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::Character::blendShape, momentum::Character::collision, momentum::ParameterTransformT< T >::computeActiveJointParams(), momentum::Character::faceExpressionBlendShape, momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, momentum::Character::locators, momentum::Character::mesh, momentum::Character::metadata, momentum::Character::name, momentum::JointT< T >::name, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::offsets, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::JointT< T >::parent, momentum::Character::physicalProperties, momentum::Character::poseShapes, momentum::JointT< T >::preRotation, RX, RY, RZ, momentum::Character::skeleton, momentum::Character::skinnedLocators, momentum::Character::skinWeights, momentum::ParameterTransformT< T >::transform, momentum::JointT< T >::translationOffset, TX, TY, and TZ.
| 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().
|
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().
Definition at line 1158 of file marker_tracker.cpp.
References addSkinnedLocatorParameters(), momentum::Character::parameterLimits, momentum::Character::parameterTransform, and momentum::Character::skinnedLocators.
Referenced by calibrateModel().
| 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.
| [in] | model | The glTF document. |
| [in] | skin | The skin containing joint indices. |
| [in] | primitive | The primitive to load skin weights from. |
| [in] | nodeToObjectMap | Mapping from node indices to joint indices. |
| [in] | kNumVertices | The number of vertices to load weights for. |
| [in,out] | skinWeights | The 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().
| void momentum::addTrackingOptions | ( | CLI::App & | app, |
| std::shared_ptr< TrackingConfig > | config ) |
Definition at line 106 of file app_utils.cpp.
Referenced by addRefineOptions().
|
inline |
Definition at line 95 of file aligned.h.
Referenced by momentum::AlignedAllocator< U, Alignment >::deallocate(), and momentum::AlignedDeleter::operator()().
|
inlinenodiscard |
Definition at line 91 of file aligned.h.
Referenced by alignedAlloc().
|
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.
| std::bad_array_new_length | if n * sizeof(T) would overflow. |
| std::bad_alloc | if 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().
|
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().
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform (in skinned space) |
| state | Current skeleton state containing joint transformations |
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.
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform (in skinned space) |
| state | Current skeleton state containing joint transformations |
| mesh | Output 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().
|
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.
| [in] | parameterTransform | The character's parameter transform. |
| [in,out] | motion | The motion matrix (numModelParams x numFrames, column-major). Scale parameters are added to each frame in-place. |
| [in] | jointIdentity | Joint-level identity parameters (bone scales). |
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().
| 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().
| 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.
| skin | Skin weights defining influence of each joint on vertices |
| mesh | Input mesh to transform |
| skinningTransforms | Precomputed skinning transformation matrices |
| outputMesh | Output 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.
| 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.
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform |
| skinningTransforms | Precomputed skinning transformation matrices |
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().
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| mesh | Input mesh to transform |
| state | Current skeleton state containing joint transformations |
| outputMesh | Output mesh to store the transformed result |
Definition at line 260 of file linear_skinning.cpp.
References applySSD(), and momentum::SkeletonStateT< T >::jointState.
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| mesh | Input mesh to transform |
| worldTransforms | World-space transforms for each joint |
| outputMesh | Output mesh to store the transformed result |
Definition at line 270 of file linear_skinning.cpp.
References applySSD(), and MT_CHECK.
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| mesh | Input mesh to transform |
| jointState | Span of joint states containing transformations |
| outputMesh | Output mesh to store the transformed result |
Definition at line 249 of file linear_skinning.cpp.
References applySSD(), and computeSkinningTransforms().
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| mesh | Input mesh to transform |
| worldTransforms | Span of world-space transforms for each joint |
| outputMesh | Output mesh to store the transformed result |
Definition at line 290 of file linear_skinning.cpp.
References applySSD(), and MT_CHECK.
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform |
| state | Current skeleton state containing joint transformations |
Definition at line 115 of file linear_skinning.cpp.
References applySSD(), and momentum::SkeletonStateT< T >::jointState.
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform |
| worldTransforms | World-space transforms for each joint |
Definition at line 124 of file linear_skinning.cpp.
References applySSD(), and MT_CHECK.
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform |
| jointState | Span of joint states containing current transformations |
Definition at line 105 of file linear_skinning.cpp.
References applySSD(), and computeSkinningTransforms().
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| points | Input points to transform |
| worldTransforms | Span of world-space transforms for each joint |
Definition at line 143 of file linear_skinning.cpp.
References applySSD(), and MT_CHECK.
| template void momentum::applySSD< double > | ( | const SkinWeights & | skin, |
| const MeshT< double > & | mesh, | ||
| momentum::span< const Eigen::Matrix4d > | skinningTransforms, | ||
| MeshT< double > & | outputMesh ) |
References applySSD().
| template std::vector< Vector3d > momentum::applySSD< double > | ( | const SkinWeights & | skin, |
| momentum::span< const Vector3d > | points, | ||
| momentum::span< const Eigen::Matrix4d > | skinningTransforms ) |
References applySSD().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| template void momentum::applySSD< float > | ( | const SkinWeights & | skin, |
| const MeshT< float > & | mesh, | ||
| momentum::span< const Eigen::Matrix4f > | skinningTransforms, | ||
| MeshT< float > & | outputMesh ) |
References applySSD().
| template std::vector< Vector3f > momentum::applySSD< float > | ( | const SkinWeights & | skin, |
| momentum::span< const Vector3f > | points, | ||
| momentum::span< const Eigen::Matrix4f > | skinningTransforms ) |
References applySSD().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| std::pair< Eigen::Vector< uint32_t, kMaxSkinJoints >, Eigen::Vector< float, kMaxSkinJoints > > momentum::averageTriangleSkinWeights | ( | const Character & | character, |
| int | triangleIndex, | ||
| const Eigen::Vector3f & | barycentric ) |
Definition at line 113 of file tracker_utils.cpp.
References momentum::SkeletonT< T >::joints, kMaxSkinJoints, momentum::Character::mesh, momentum::Character::skeleton, and momentum::Character::skinWeights.
Referenced by locatorsToSkinnedLocators().
| 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.
| [in,out] | character | Character to add/update glove bones on. |
| [in] | solvedParams | Model parameters from the calibration solve. |
| [in] | solvingCharacter | Character with glove calibration parameters. |
| [in] | cfg | Glove 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().
| SkinWeights_u momentum::bindMeshToJoint | ( | const Mesh_u & | mesh, |
| size_t | jointId ) |
Bind a mesh to a single joint.
| [in] | mesh | The mesh to bind. |
| [in] | jointId | The joint index to bind to. |
Definition at line 540 of file gltf_mesh_io.cpp.
| template TransformT< double > momentum::blendTransforms | ( | momentum::span< const TransformT< double > > | transforms, |
| momentum::span< const double > | weights ) |
| template TransformT< float > momentum::blendTransforms | ( | momentum::span< const TransformT< float > > | transforms, |
| momentum::span< const float > | weights ) |
| 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.
|
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().
| std::pair< ParameterSet, ParameterSet > momentum::buildCalibBodySets | ( | const CalibrationConfig & | config, |
| const ParameterTransform & | transform, | ||
| const ParameterTransform & | transformExtended ) |
Definition at line 1336 of file marker_tracker.cpp.
References momentum::CalibrationConfig::calibShape, momentum::ParameterTransformT< T >::getBlendShapeParameters(), momentum::ParameterTransformT< T >::getParameterIdByName(), momentum::ParameterTransformT< T >::getScalingParameters(), momentum::CalibrationConfig::globalScaleOnly, kInvalidIndex, and MT_THROW_IF.
Referenced by calibrateModel().
| 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().
| Eigen::Matrix< ceres::Jet< T, Cols *Rows >, Rows, Cols > momentum::buildJetMat | ( | const Eigen::Matrix< T, Rows, Cols > & | m | ) |
Definition at line 43 of file ceres_utility.h.
Referenced by momentum::FullyDifferentiableProjectionErrorFunctionT< T >::d_gradient_d_input_dot().
| Eigen::Matrix< ceres::Jet< T, N >, N, 1 > momentum::buildJetVec | ( | const Eigen::Matrix< T, N, 1 > & | v | ) |
Definition at line 31 of file ceres_utility.h.
Referenced by 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(), and momentum::FullyDifferentiableStateErrorFunctionT< T >::d_gradient_d_input_dot().
| std::vector< std::vector< size_t > > momentum::buildTriangleAdjacency | ( | const momentum::Mesh & | mesh | ) |
Build triangle adjacency: for each triangle, find triangles that share an edge.
| mesh | The mesh to build adjacency for |
Definition at line 407 of file tracker_utils.cpp.
References momentum::MeshT< T >::faces.
Referenced by createSkinnedLocatorMeshConstraints().
| Eigen::Vector3< T > momentum::calculateDWorldPos | ( | const momentum::Character & | character, |
| const SkeletonStateT< T > & | state, | ||
| const int | vertexIndex, | ||
| const Eigen::Vector3< T > & | d_restPos ) |
Definition at line 178 of file point_triangle_vertex_error_function.cpp.
References cast(), momentum::Character::inverseBindPose, momentum::SkeletonStateT< T >::jointState, kMaxSkinJoints, MT_THROW_IF, and momentum::Character::skinWeights.
| float momentum::calculateFpsFromAnimationData | ( | const fx::gltf::Document & | model | ) |
Calculate FPS from glTF animation data.
| [in] | model | The glTF document containing animation data. |
Definition at line 115 of file gltf_animation_io.cpp.
Referenced by loadMotionFromModel().
| 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.
| markerData | Marker observations for each frame |
| config | Calibration configuration settings |
| identity | Fixed identity parameters (scaling, blend shapes) |
| character | Character 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().
| 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.
| [in] | markerData | Input marker data. |
| [in] | config | Solving options. |
| [in] | identity | Identity parameters of the input character. |
| [in,out] | character | Character 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. |
| 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.
| [in,out] | character | The input character definition with locators. It also holds the output locators if locators are to be calibrated from the calibrationConfig. |
| [in,out] | identity | The input identity used for calibration. It also holds the solved identity if identity is to be calibrated from the calibrationConfig. |
| [in] | markerData | The per-frame position targets used for calibration. |
| [in] | calibrationConfig | The config for running calibration. |
| [in] | firstFrame | The first frame to start calibration. We pass in the first frame instead of trimming markerData to avoid data copy. |
| [in] | maxFrames | The maximum number of frames to use for calibration starting from firstFrame. |
| [out] | selectedFrameIndices | If 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.
| 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().
| 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.
| [in] | markerData | Input marker data. |
| [in] | config | Solving options. |
| [in,out] | character | Character definition. It provides input locators offsets which will get updated in return. |
| [in,out] | identity | Initial identity parameters that get updated in return. It could also hold the pose of the first frame for better initialization for tracking later. |
| [in] | regularizerWeights | Regularizer 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] | selectedFrameIndices | If non-null, receives the frame indices selected by greedy sampling for calibration. |
| [out] | selectedFrameMotion | If non-null, receives the solved motion parameters for the selected calibration frames. Each column corresponds to an entry in selectedFrameIndices. |
|
nodiscard |
Casts the scalar type of objects in a container that support the cast<>() method.
| OtherScalar | The target scalar type for the cast. |
| ContainerType | The type of the container. |
| ObjectType | The type of the objects in the original container. |
| originalContainer | A container of objects. |
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().
|
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.
| T | The type to cast the span to |
| bs | The original span of const bytes to cast |
Definition at line 44 of file gsl_utils.h.
|
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.
| T | The type to cast the span to |
| bs | The original span of bytes to cast |
Definition at line 26 of file gsl_utils.h.
Referenced by loadOpenFbxMarkerSequence().
| 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().
| 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().
|
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().
| template Quaternion< double > momentum::changeQuaternion | ( | const Quaternion< double > & | , |
| const CoordinateSystem & | , | ||
| const CoordinateSystem & | ) |
| template Quaternion< float > momentum::changeQuaternion | ( | const Quaternion< float > & | , |
| const CoordinateSystem & | , | ||
| const CoordinateSystem & | ) |
|
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().
| template Matrix3< double > momentum::changeRotationMatrix | ( | const Matrix3< double > & | , |
| const CoordinateSystem & | , | ||
| const CoordinateSystem & | ) |
| template Matrix3< float > momentum::changeRotationMatrix | ( | const Matrix3< float > & | , |
| const CoordinateSystem & | , | ||
| const CoordinateSystem & | ) |
|
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.
Definition at line 119 of file coordinate_system.cpp.
Referenced by changeQuaternion(), fromMomentumRotationMatrix(), and toMomentumRotationMatrix().
| template Vector3< double > momentum::changeVector | ( | const Vector3< double > & | , |
| const CoordinateSystem & | , | ||
| const CoordinateSystem & | ) |
| template Vector3< float > momentum::changeVector | ( | const Vector3< float > & | , |
| const CoordinateSystem & | , | ||
| const CoordinateSystem & | ) |
|
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().
|
nodiscard |
Converts a Character to legacy JSON object.
| [in] | character | The Character to convert |
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().
|
nodiscard |
Converts a Character to legacy JSON string.
| [in] | character | The Character to convert |
Definition at line 647 of file legacy_json_io.cpp.
References characterToLegacyJson().
| void momentum::checkAlignment | ( | const Eigen::Ref< Eigen::MatrixXf > & | mat, |
| size_t | offset = 0 ) |
Checks if the data of the matrix is aligned correctly.
| mat | The matrix to check for alignment. |
| offset | Offset into the matrix data in elements. |
| if | mat.data() + offset is not aligned to Alignment bytes. |
Definition at line 156 of file simd.h.
References MT_THROW_IF.
| 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.
| mesh | The mesh with texcoords and texcoord_faces. |
| texture | RGB texture image data. |
| regionColors | RGB colors defining each region. |
| threshold | Fraction of samples that must match for a triangle to be assigned to a region. 0.0 means at least one sample must match. |
| numSamples | Number of barycentric sample points per triangle (1, 3, 4, 6, 7, or 10). |
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.
| 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 ) |
Definition at line 187 of file tracker_utils.cpp.
References momentum::MeshT< T >::faces, momentum::SkinWeights::index, isRelatedJoint(), MT_THROW_IF, momentum::MeshT< T >::vertices, and momentum::SkinWeights::weight.
Referenced by computeSkinnedLocatorMeshDistances(), createSkinnedLocatorMeshConstraints(), and locatorsToSkinnedLocators().
|
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.
Referenced by overlapsCapsuleCenteredPrimitive().
|
nodiscard |
Returns the closest points on two line segments where the line segments are represented in origin and direction.
| T | Scalar type |
| o1 | Origin of the first line segment |
| d1 | Direction of the first line segment |
| o2 | Origin of the second line segment |
| d2 | Direction of the second line segment |
| maxDist | Maximum distance to check |
Definition at line 449 of file utility.cpp.
References Eps().
Referenced by overlaps().
| 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 ) |
| 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 ) |
| std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetNormal_d_vertexPos | ( | const PointTriangleVertexConstraintT< T > & | cons, |
| const MeshT< T > & | mesh ) |
Definition at line 206 of file point_triangle_vertex_error_function.cpp.
References cross(), momentum::PointTriangleVertexConstraintT< T >::tgtTriangleIndices, and momentum::MeshT< T >::vertices.
Referenced by compute_d_targetPos_d_vertexPos(), and compute_d_targetPos_d_vertexPos().
| std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetNormal_d_vertexPos | ( | const SkinnedLocatorTriangleConstraintT< T > & | cons, |
| const MeshT< T > & | mesh ) |
Definition at line 201 of file skinned_locator_triangle_error_function.cpp.
References cross(), momentum::SkinnedLocatorTriangleConstraintT< T >::tgtTriangleIndices, and momentum::MeshT< T >::vertices.
| std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetPos_d_vertexPos | ( | const PointTriangleVertexConstraintT< T > & | cons, |
| const MeshT< T > & | mesh ) |
Definition at line 241 of file point_triangle_vertex_error_function.cpp.
References compute_d_targetNormal_d_vertexPos(), momentum::PointTriangleVertexConstraintT< T >::depth, and momentum::PointTriangleVertexConstraintT< T >::tgtTriangleBaryCoords.
| std::array< Eigen::Matrix3< T >, 3 > momentum::compute_d_targetPos_d_vertexPos | ( | const SkinnedLocatorTriangleConstraintT< T > & | cons, |
| const MeshT< T > & | mesh ) |
|
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.
| points | Support points in the floor plane. |
Definition at line 124 of file support_polygon.cpp.
References MT_THROW_IF.
Referenced by computeSupportPolygonFromWorldPoints().
| 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 ) |
Definition at line 944 of file tracker_utils.cpp.
References momentum::SkeletonStateT< T >::jointState, MT_LOGI, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::SkeletonStateT< T >::set(), and momentum::Character::skeleton.
Referenced by calibrateModel().
| 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.
| character | Character with skeleton and floor locators |
| motion | Solved motion matrix (numAllModelParams x numFrames) |
| floorConstraints | Floor constraint data (from createFloorConstraints) |
| frameIndices | Which frames in the motion matrix to evaluate |
| percentile | Percentile threshold for contact detection (0-1, e.g. 0.25) |
|
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().
| template SupportContactListT< double > momentum::computeFloorLocatorSupportContacts< double > | ( | std::span< const JointStateT< double > > | states, |
| std::span< const Locator > | locators, | ||
| double | contactHeight, | ||
| const SupportPlaneT< double > & | supportPlane ) |
References computeFloorLocatorSupportContacts().
| template SupportContactListT< float > momentum::computeFloorLocatorSupportContacts< float > | ( | std::span< const JointStateT< float > > | states, |
| std::span< const Locator > | locators, | ||
| float | contactHeight, | ||
| const SupportPlaneT< float > & | supportPlane ) |
References computeFloorLocatorSupportContacts().
|
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.
| mat | The matrix whose alignment offset to compute. |
|
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().
| template std::vector< SupportContactT< double > > momentum::computePlaneCollisionSupportContacts< double > | ( | PlaneCollisionQueryT< double > & | collisionQuery, |
| std::span< const JointStateT< double > > | states, | ||
| double | contactMargin ) |
References computePlaneCollisionSupportContacts().
| template std::vector< SupportContactT< float > > momentum::computePlaneCollisionSupportContacts< float > | ( | PlaneCollisionQueryT< float > & | collisionQuery, |
| std::span< const JointStateT< float > > | states, | ||
| float | contactMargin ) |
References computePlaneCollisionSupportContacts().
| 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.
| 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.
| 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.
| jointState | Span of joint states containing current transformations |
| inverseBindPose | Inverse bind pose transformations for each joint |
Definition at line 23 of file linear_skinning.cpp.
References MT_CHECK.
Referenced by applySSD(), applySSD(), computeSkinningTransforms< double >(), and computeSkinningTransforms< float >().
| template std::vector< Eigen::Matrix4d > momentum::computeSkinningTransforms< double > | ( | momentum::span< const JointStateT< double > > | jointState, |
| const TransformationListT< double > & | inverseBindPose ) |
References computeSkinningTransforms().
| template std::vector< Eigen::Matrix4f > momentum::computeSkinningTransforms< float > | ( | momentum::span< const JointStateT< float > > | jointState, |
| const TransformationListT< float > & | inverseBindPose ) |
References computeSkinningTransforms().
| std::vector< Eigen::Index > momentum::computeSubsetParameterIndices | ( | const ParameterTransformT< T > & | parameterTransform, |
| const ParameterSet & | activeParams ) |
Definition at line 21 of file fully_differentiable_body_ik.cpp.
References momentum::ParameterTransformT< T >::numAllModelParameters().
Referenced by d_modelParams_d_inputs().
|
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 >().
| 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 ) |
References computeSupportContactPositions().
| 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 ) |
References computeSupportContactPositions().
|
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 >().
| template SupportContactListT< double > momentum::computeSupportContacts< double > | ( | const Character & | character, |
| std::span< const JointStateT< double > > | states, | ||
| double | contactHeight, | ||
| PlaneCollisionQueryT< double > * | collisionQuery, | ||
| const SupportPlaneT< double > & | supportPlane ) |
References computeSupportContacts().
| template SupportContactListT< float > momentum::computeSupportContacts< float > | ( | const Character & | character, |
| std::span< const JointStateT< float > > | states, | ||
| float | contactHeight, | ||
| PlaneCollisionQueryT< float > * | collisionQuery, | ||
| const SupportPlaneT< float > & | supportPlane ) |
References computeSupportContacts().
|
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().
|
nodiscard |
Compute the 2D support polygon from world-space support points.
Support points are projected onto supportPlane before hull construction.
| points | World-space contact/support points. |
| supportPlane | Plane and in-plane basis used for projection. |
Definition at line 162 of file support_polygon.cpp.
References computeConvexHull2d(), momentum::SupportPlaneT< T >::coordinates(), and MT_THROW_IF.
| Eigen::Vector3< T > momentum::computeTargetBaryPosition | ( | const MeshT< T > & | mesh, |
| const PointTriangleVertexConstraintT< T > & | c ) |
Definition at line 72 of file point_triangle_vertex_error_function.cpp.
References momentum::PointTriangleVertexConstraintT< T >::tgtTriangleBaryCoords, momentum::PointTriangleVertexConstraintT< T >::tgtTriangleIndices, and momentum::MeshT< T >::vertices.
Referenced by computeTargetPosition(), computeTargetPosition(), momentum::PointTriangleVertexErrorFunctionT< T >::getError(), and momentum::SkinnedLocatorTriangleErrorFunctionT< T >::getError().
| Eigen::Vector3< T > momentum::computeTargetBaryPosition | ( | const MeshT< T > & | mesh, |
| const SkinnedLocatorTriangleConstraintT< T > & | c ) |
| Eigen::Vector3< T > momentum::computeTargetPosition | ( | const MeshT< T > & | mesh, |
| const PointTriangleVertexConstraintT< T > & | c ) |
Definition at line 90 of file point_triangle_vertex_error_function.cpp.
References computeTargetBaryPosition(), computeTargetTriangleNormal(), and momentum::PointTriangleVertexConstraintT< T >::depth.
Referenced by momentum::PointTriangleVertexErrorFunctionT< T >::getError(), and momentum::SkinnedLocatorTriangleErrorFunctionT< T >::getError().
| Eigen::Vector3< T > momentum::computeTargetPosition | ( | const MeshT< T > & | mesh, |
| const SkinnedLocatorTriangleConstraintT< T > & | c ) |
Definition at line 88 of file skinned_locator_triangle_error_function.cpp.
References computeTargetBaryPosition(), computeTargetTriangleNormal(), and momentum::SkinnedLocatorTriangleConstraintT< T >::depth.
| Eigen::Vector3< T > momentum::computeTargetTriangleNormal | ( | const MeshT< T > & | mesh, |
| const PointTriangleVertexConstraintT< T > & | c ) |
Definition at line 81 of file point_triangle_vertex_error_function.cpp.
References momentum::PointTriangleVertexConstraintT< T >::tgtTriangleIndices, and momentum::MeshT< T >::vertices.
Referenced by computeTargetPosition(), computeTargetPosition(), momentum::PointTriangleVertexErrorFunctionT< T >::getError(), and momentum::SkinnedLocatorTriangleErrorFunctionT< T >::getError().
| Eigen::Vector3< T > momentum::computeTargetTriangleNormal | ( | const MeshT< T > & | mesh, |
| const SkinnedLocatorTriangleConstraintT< T > & | c ) |
Definition at line 79 of file skinned_locator_triangle_error_function.cpp.
References momentum::SkinnedLocatorTriangleConstraintT< T >::tgtTriangleIndices, and momentum::MeshT< T >::vertices.
| std::vector< T > momentum::copyAccessorBuffer | ( | const fx::gltf::Document & | model, |
| int32_t | id ) |
Definition at line 56 of file accessor_utils.h.
References getComponentSize(), getTypeSize(), and MT_LOGW.
Referenced by addBlendShapes(), addSkinWeights(), getMotionFromModel(), and loadWeightsFromAccessor().
| 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().
| 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().
| CollisionBox momentum::createCollisionBox | ( | const fx::gltf::Node & | node, |
| const nlohmann::json & | extension ) |
Create a collision box from a glTF node.
| [in] | node | The glTF node containing the collision box data. |
| [in] | extension | The FB_momentum extension JSON data. |
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.
| TaperedCapsule momentum::createCollisionCapsule | ( | const fx::gltf::Node & | node, |
| const nlohmann::json & | extension ) |
Create a collision capsule from a glTF node.
| [in] | node | The glTF node containing the collision capsule data. |
| [in] | extension | The FB_momentum extension JSON data. |
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.
| CollisionEllipsoid momentum::createCollisionEllipsoid | ( | const fx::gltf::Node & | node, |
| const nlohmann::json & | extension ) |
Create a collision ellipsoid from a glTF node.
| [in] | node | The glTF node containing the collision ellipsoid data. |
| [in] | extension | The FB_momentum extension JSON data. |
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.
| 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().
| std::vector< std::vector< momentum::PositionData > > momentum::createConstraintData | ( | std::span< const std::vector< momentum::Marker > > | markerData, |
| const momentum::LocatorList & | locators ) |
| 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.
| template std::vector< PlaneDataT< double > > momentum::createFloorConstraints< double > | ( | const std::string & | prefix, |
| const LocatorList & | locators, | ||
| const Vector3d & | floorNormal, | ||
| const double & | floorOffset, | ||
| const float | weight ) |
| template std::vector< PlaneDataT< float > > momentum::createFloorConstraints< float > | ( | const std::string & | prefix, |
| const LocatorList & | locators, | ||
| const Vector3f & | floorNormal, | ||
| const float & | floorOffset, | ||
| const float | weight ) |
Referenced by calibrateModel(), trackPosesForFrames(), and trackSequence().
| 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.
| [in] | src | Source character to extend. |
| [in] | cfg | Glove configuration specifying wrist joint names. |
| [in] | prefix | Name prefix for the added glove joints. |
Definition at line 152 of file glove_utils.cpp.
References addGloveBones(), and addGloveCalibrationParameters().
Referenced by calibrateModel().
| 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.
| [in] | gloveData | Per-frame glove sensor observations. |
| [in] | character | Character with glove bones (from createGloveCharacter()). |
| [in] | cfg | Glove configuration. |
| [in] | handIndex | Hand index (0=left, 1=right). |
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().
| 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.
| [in] | gloveData | Per-frame glove sensor observations. |
| [in] | character | Character with glove bones (from createGloveCharacter()). |
| [in] | cfg | Glove configuration. |
| [in] | handIndex | Hand index (0=left, 1=right). |
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().
| Joint momentum::createJoint | ( | const fx::gltf::Node & | node | ) |
Create a joint from a glTF node.
| [in] | node | The glTF node containing the joint data. |
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.
| Locator momentum::createLocator | ( | const fx::gltf::Node & | node, |
| const nlohmann::json & | extension ) |
Create a locator from a glTF node.
| [in] | node | The glTF node containing the locator data. |
| [in] | extension | The FB_momentum extension JSON data. |
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.
| momentum::Character momentum::createLocatorCharacter | ( | const Character & | sourceCharacter, |
| const std::string & | prefix ) |
Definition at line 636 of file tracker_utils.cpp.
References momentum::ParameterLimit::data, momentum::Character::inverseBindPose, momentum::LimitMinMaxJoint::jointIndex, momentum::LimitMinMaxJoint::jointParameter, kMaxModelParams, kParametersPerJoint, momentum::LimitMinMaxJoint::limits, momentum::Character::locators, MinMaxJoint, momentum::LimitData::minMaxJoint, MT_CHECK, momentum::JointT< T >::name, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::JointT< T >::parent, momentum::Character::skeleton, momentum::JointT< T >::translationOffset, momentum::ParameterLimit::type, and momentum::ParameterLimit::weight.
Referenced by calibrateLocators(), calibrateModel(), and refineMotion().
| 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().
| 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().
| JointList momentum::createSkeletonWithOnlyRoot | ( | ) |
Create a skeleton with only a root joint.
Definition at line 441 of file gltf_skeleton_io.cpp.
References createSkeletonWithOnlyRoot(), and MT_CHECK.
Referenced by createSkeletonWithOnlyRoot().
| std::vector< std::vector< SkinnedLocatorConstraint > > momentum::createSkinnedConstraintData | ( | const std::span< const std::vector< Marker > > | markerData, |
| const SkinnedLocatorList & | locators ) |
Definition at line 72 of file tracker_utils.cpp.
References momentum::SkinnedLocatorConstraintT< T >::locatorIndex, MT_THROW_IF, momentum::SkinnedLocatorConstraintT< T >::targetPosition, and momentum::SkinnedLocatorConstraintT< T >::weight.
Referenced by trackPosesForFrames(), and trackSequence().
| std::vector< std::vector< momentum::SkinnedLocatorConstraint > > momentum::createSkinnedConstraintData | ( | std::span< const std::vector< momentum::Marker > > | markerData, |
| const momentum::SkinnedLocatorList & | locators ) |
| std::vector< momentum::SkinnedLocatorTriangleConstraintT< float > > momentum::createSkinnedLocatorMeshConstraints | ( | const momentum::Character & | character, |
| float | cutoffWeight, | ||
| float | maxSearchDistanceCm, | ||
| float | maxNormalAngleDeg ) |
Definition at line 553 of file tracker_utils.cpp.
References buildTriangleAdjacency(), momentum::SkinnedLocatorTriangleConstraintT< T >::candidateTriangles, closestPointOnMeshMatchingParent(), cross(), momentum::SkinnedLocatorTriangleConstraintT< T >::depth, momentum::MeshT< T >::faces, findCandidateTrianglesDfs(), momentum::SkinnedLocatorTriangleConstraintT< T >::locatorIndex, momentum::Character::mesh, MT_LOGW, momentum::Character::skeleton, momentum::Character::skinnedLocators, momentum::Character::skinWeights, momentum::SkinnedLocatorTriangleConstraintT< T >::tgtTriangleBaryCoords, momentum::SkinnedLocatorTriangleConstraintT< T >::tgtTriangleIndices, and momentum::MeshT< T >::vertices.
Referenced by trackSequence().
| Vector3P< S > momentum::cross | ( | const Eigen::MatrixBase< Derived > & | v1, |
| const Vector3P< S > & | v2 ) |
Computes cross product of Eigen::Vector3f and Vector3P.
| Derived | A derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f. |
| v1 | A 3D vector of Eigen. |
| v2 | A 3-vector of packets. |
Definition at line 309 of file simd.h.
Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionJacobian(), compute_d_targetNormal_d_vertexPos(), compute_d_targetNormal_d_vertexPos(), createSkinnedLocatorMeshConstraints(), findCandidateTrianglesDfs(), intersectMesh(), intersectMeshBruteForce(), and momentum::MeshT< T >::updateNormals().
| Vector3P< S > momentum::cross | ( | const Vector3P< S > & | v1, |
| const Eigen::MatrixBase< Derived > & | v2 ) |
|
nodiscard |
Compute the signed 2D cross product of vectors from an origin.
| origin | Shared origin for both vectors. |
| a | End point of the first vector. |
| b | End point of the second vector. |
Definition at line 118 of file support_polygon.cpp.
| Eigen::Matrix< T, 3, 3 > momentum::crossProductMatrix | ( | const Eigen::Vector3< T > & | v | ) |
| std::vector< ErrorFunctionDerivativesT< T > > momentum::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 ) |
Definition at line 112 of file fully_differentiable_body_ik.cpp.
References momentum::ParameterTransformT< T >::apply(), computeSubsetParameterIndices(), extractSubsetMat(), extractSubsetVec(), momentum::SkeletonSolverFunctionT< T >::getCharacter(), momentum::SkeletonSolverFunctionT< T >::getErrorFunctions(), momentum::SolverFunctionT< T >::getJacobian(), hessianInverseTimes(), MT_LOGD, momentum::SkeletonSolverFunctionT< T >::needsMeshState(), momentum::ParameterTransformT< T >::numAllModelParameters(), subsetVecToFullVec(), momentum::MeshStateT< T >::update(), and momentum::EigenStrongType< Derived, EigenType >::v.
| 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 ) |
| 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 ) |
| FloatP momentum::dot | ( | const Eigen::MatrixBase< Derived > & | v1, |
| const Vector3P< S > & | v2 ) |
Computes dot product of Eigen::Vector3f and 3-vector of packets.
| Derived | A derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f. |
| v1 | A 3D vector of Eigen. |
| v2 | A 3-vector of packets. |
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*().
| FloatP momentum::dot | ( | const Vector3P< S > & | v1, |
| const Eigen::MatrixBase< Derived > & | v2 ) |
|
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().
|
nodiscardconstexpr |
Returns a type-appropriate tolerance/epsilon value.
| FloatEps | Tolerance returned when T is float (default: 1e-7). |
| DoubleEps | Tolerance returned when T is double (default: 1e-16). |
Definition at line 30 of file constants.h.
Referenced by closestPointOnSegmentParameter(), closestPointsOnSegments(), momentum::TransformT< S >::fromAffine3(), momentum::JointToJointDistanceErrorFunctionT< T >::getGradient(), momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getJacobian(), momentum::JointToJointDistanceErrorFunctionT< T >::getJacobian(), intersectFace(), momentum::CollisionBoxT< float >::isApprox(), momentum::CollisionEllipsoidT< float >::isApprox(), momentum::CollisionPrimitiveT< float >::isApprox(), isApprox(), momentum::JointT< float >::isApprox(), momentum::SDFColliderT< float >::isApprox(), momentum::TaperedCapsuleT< float >::isApprox(), overlaps(), overlaps(), overlapsCapsuleCenteredPrimitive(), quaternionExpMap(), quaternionLogMap(), quaternionLogMapDerivative(), momentum::PlaneCollisionQueryT< T >::setPlane(), and momentum::SupportPlaneT< T >::SupportPlaneT().
| template Quaternion< double > momentum::eulerToQuaternion | ( | const Vector3< double > & | angles, |
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| EulerConvention | convention ) |
| template Quaternion< float > momentum::eulerToQuaternion | ( | const Vector3< float > & | angles, |
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| EulerConvention | convention ) |
|
nodiscard |
Converts Euler angles to quaternion.
| T | The scalar type. |
| [in] | angles | The 3-dimensional vector of Euler angles in order. |
| [in] | axis0 | The index of the first rotation's axis, one of {0, 1, 2}. |
| [in] | axis1 | The index of the second rotation's axis, one of {0, 1, 2}. |
| [in] | axis2 | The index of the third rotation's axis, one of {0, 1, 2}. |
| [in] | convention | The Euler angles convention. |
Definition at line 289 of file utility.cpp.
References eulerToQuaternion(), Extrinsic, and Intrinsic.
Referenced by addGloveBones(), eulerToQuaternion(), and eulerToRotationMatrix().
| template Matrix3< double > momentum::eulerToRotationMatrix | ( | const Vector3< double > & | angles, |
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| EulerConvention | convention ) |
| template Matrix3< float > momentum::eulerToRotationMatrix | ( | const Vector3< float > & | angles, |
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| EulerConvention | convention ) |
|
nodiscard |
Converts Euler angles to rotation matrix.
| T | The scalar type. |
| [in] | angles | The 3-dimensional vector of Euler angles in order. |
| [in] | axis0 | The index of the first rotation's axis, one of {0, 1, 2}. |
| [in] | axis1 | The index of the second rotation's axis, one of {0, 1, 2}. |
| [in] | axis2 | The index of the third rotation's axis, one of {0, 1, 2}. |
| [in] | convention | The Euler angles convention. |
Definition at line 307 of file utility.cpp.
References eulerToQuaternion().
| template Matrix3< double > momentum::eulerXYZToRotationMatrix | ( | const Vector3< double > & | angles, |
| EulerConvention | convention ) |
| template Matrix3< float > momentum::eulerXYZToRotationMatrix | ( | const Vector3< float > & | 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().
| template Matrix3< double > momentum::eulerZYXToRotationMatrix | ( | const Vector3< double > & | angles, |
| EulerConvention | convention ) |
| template Matrix3< float > momentum::eulerZYXToRotationMatrix | ( | const Vector3< float > & | 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().
| Mesh momentum::extractBlendShapeFromParams | ( | const momentum::ModelParameters & | param, |
| const momentum::Character & | sourceCharacter ) |
Definition at line 838 of file tracker_utils.cpp.
References momentum::Character::blendShape, extractBlendWeights(), momentum::Character::mesh, MT_CHECK, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::EigenStrongType< Derived, EigenType >::size(), and momentum::MeshT< T >::vertices.
| 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).
| paramTransform | Mapping between model parameters and blend shape parameters |
| modelParams | Current model parameters |
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().
| template BlendWeightsT< double > momentum::extractBlendWeights< double > | ( | const ParameterTransform & | paramTransform, |
| const ModelParametersT< double > & | modelParams ) |
References extractBlendWeights().
| template BlendWeightsT< float > momentum::extractBlendWeights< float > | ( | const ParameterTransform & | paramTransform, |
| const ModelParametersT< float > & | modelParams ) |
References extractBlendWeights().
|
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.
| paramTransform | The parameter transform with camera intrinsics parameters |
| modelParams | The model parameters to read from |
| intrinsicsModel | The intrinsics model (provides name, parameter names, and default values) |
Definition at line 93 of file camera_intrinsics_parameters.cpp.
References kTiedFocalLengthSuffix, and momentum::EigenStrongType< Derived, EigenType >::size().
| 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.
| paramTransform | Mapping between model parameters and face expression parameters |
| modelParams | Current model parameters |
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().
| template BlendWeightsT< double > momentum::extractFaceExpressionBlendWeights< double > | ( | const ParameterTransform & | paramTransform, |
| const ModelParametersT< double > & | modelParams ) |
References extractFaceExpressionBlendWeights().
| template BlendWeightsT< float > momentum::extractFaceExpressionBlendWeights< float > | ( | const ParameterTransform & | paramTransform, |
| const ModelParametersT< float > & | modelParams ) |
References extractFaceExpressionBlendWeights().
| 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.
| [in] | gloveChar | Character with glove bones (from createGloveCharacter()). |
| [in] | params | Solved character parameters containing glove offsets. |
| [in] | cfg | Glove configuration used when creating the character. |
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().
| std::tuple< Eigen::VectorXf, momentum::LocatorList, momentum::SkinnedLocatorList > momentum::extractIdAndLocatorsFromParams | ( | const ModelParameters & | param, |
| const Character & | sourceCharacter, | ||
| const Character & | targetCharacter ) |
Definition at line 820 of file tracker_utils.cpp.
References extractLocatorsFromCharacter(), extractParameters(), extractSkinnedLocatorsFromCharacter(), momentum::ParameterTransformT< T >::getScalingParameters(), momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::CharacterParametersT< T >::pose, and momentum::EigenStrongType< Derived, EigenType >::v.
Referenced by calibrateModel(), and refineMotion().
| momentum::LocatorList momentum::extractLocatorsFromCharacter | ( | const Character & | locatorCharacter, |
| const CharacterParameters & | calibParams ) |
Definition at line 730 of file tracker_utils.cpp.
References momentum::ParameterTransformT< T >::apply(), momentum::SkeletonStateT< T >::jointState, momentum::Character::locators, MT_THROW_IF, momentum::Character::parameterTransform, and momentum::Character::skeleton.
Referenced by calibrateLocators(), and extractIdAndLocatorsFromParams().
| std::vector< std::vector< momentum::Marker > > momentum::extractMarkersFromMotion | ( | const Character & | character, |
| const Eigen::MatrixXf & | motion ) |
Definition at line 905 of file tracker_utils.cpp.
References momentum::SkeletonStateT< T >::jointState, momentum::Character::locators, and momentum::Character::skeleton.
| momentum::ModelParameters momentum::extractParameters | ( | const ModelParameters & | params, |
| const ParameterSet & | parameterSet ) |
Definition at line 809 of file tracker_utils.cpp.
References momentum::EigenStrongType< Derived, EigenType >::size().
Referenced by extractIdAndLocatorsFromParams(), and saveMotion().
| SkinnedLocatorList momentum::extractSkinnedLocatorsFromCharacter | ( | const Character & | locatorCharacter, |
| const CharacterParameters & | calibParams ) |
Definition at line 786 of file tracker_utils.cpp.
References momentum::ParameterTransformT< T >::apply(), momentum::Character::parameterTransform, momentum::CharacterParametersT< T >::pose, momentum::Character::skeleton, and momentum::Character::skinnedLocators.
Referenced by extractIdAndLocatorsFromParams().
| 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().
| 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().
|
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().
|
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.
|
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().
| template std::vector< bool > momentum::facesToVertices< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activeFaces ) |
| template std::vector< bool > momentum::facesToVertices< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< bool > & | activeFaces ) |
| void momentum::fillIdentity | ( | const ParameterSet & | idSet, |
| const ModelParameters & | identity, | ||
| Eigen::MatrixXf & | motionNoId ) |
Definition at line 848 of file tracker_utils.cpp.
References MT_CHECK, and momentum::EigenStrongType< Derived, EigenType >::v.
| 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.
| mesh | The mesh to search |
| skin | The skin weights |
| skeleton | The skeleton for joint hierarchy |
| adjacency | Pre-computed triangle adjacency (from buildTriangleAdjacency) |
| startTriangleIdx | Index of the starting triangle |
| initialPoint | The initial locator position (for distance calculations) |
| referenceNormal | The normal of the starting triangle (for angle filtering) |
| parentJointIdx | The parent joint index for skin weight filtering |
| maxSearchDistanceCm | Maximum distance from initialPoint to include triangles |
| maxNormalAngleDeg | Maximum angle (in degrees) between triangle normal and reference normal |
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().
|
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.
| [in] | markerSequences | A vector of MarkerSequences to search for the main subject. |
Definition at line 114 of file marker_io.cpp.
Referenced by loadMarkersForMainSubject(), loadMarkersForMainSubject(), and processMarkerFile().
| T momentum::fromJson | ( | const nlohmann::json & | j | ) |
Definition at line 45 of file json_utils.h.
Referenced by createCollisionBox(), createCollisionCapsule(), createCollisionEllipsoid(), and createLocator().
| template Quaternion< double > momentum::fromMomentumQuaternion | ( | const Quaternion< double > & | , |
| const CoordinateSystem & | ) |
| template Quaternion< float > momentum::fromMomentumQuaternion | ( | const Quaternion< float > & | , |
| const CoordinateSystem & | ) |
|
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.
|
inlinenodiscardnoexcept |
Definition at line 62 of file coordinate_utils.h.
Referenced by momentum::GltfBuilder::addCharacter().
| template Matrix3< double > momentum::fromMomentumRotationMatrix | ( | const Matrix3< double > & | , |
| const CoordinateSystem & | ) |
| template Matrix3< float > momentum::fromMomentumRotationMatrix | ( | const Matrix3< float > & | , |
| const CoordinateSystem & | ) |
|
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.
Definition at line 26 of file coordinate_utils.h.
References fromMomentumVector(), and kGltfCoordinateSystem.
Referenced by momentum::GltfBuilder::addCharacter().
|
inline |
Definition at line 38 of file coordinate_utils.h.
References kGltfCoordinateSystem, kMomentumCoordinateSystem, and scaleFactor< float >().
|
inline |
Definition at line 46 of file coordinate_utils.h.
References kGltfCoordinateSystem, kMomentumCoordinateSystem, and scaleFactor< float >().
| template Vector3< double > momentum::fromMomentumVector | ( | const Vector3< double > & | , |
| const CoordinateSystem & | ) |
| template Vector3< float > momentum::fromMomentumVector | ( | const Vector3< float > & | , |
| const CoordinateSystem & | ) |
|
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().
|
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.
| [in] | model | The glTF document. |
Definition at line 280 of file gltf_skeleton_io.cpp.
References MT_CHECK.
Referenced by loadHierarchy().
| Mesh momentum::generateBoxMesh | ( | float | dimX, |
| float | dimY, | ||
| float | dimZ ) |
Generates a box mesh with the given dimensions centered at the origin.
| dimX | Full extent along the X axis (in the caller's units). |
| dimY | Full extent along the Y axis. |
| dimZ | Full extent along the Z axis. |
Definition at line 185 of file urdf_mesh_io.cpp.
References momentum::MeshT< T >::faces, momentum::MeshT< T >::updateNormals(), and momentum::MeshT< T >::vertices.
| 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.
| radius | Cylinder radius. |
| length | Cylinder length along the Z axis. |
| segments | Number of segments around the circumference. |
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.
| Mesh momentum::generateSphereMesh | ( | float | radius, |
| int | latSegments = 16, | ||
| int | lonSegments = 32 ) |
Generates a UV sphere mesh centered at the origin.
| radius | Sphere radius. |
| latSegments | Number of latitude bands (stacks). |
| lonSegments | Number of longitude segments (slices). |
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.
|
nodiscard |
Get ParameterSet for ALL camera intrinsics parameters.
| paramTransform | The parameter transform to search |
Definition at line 148 of file camera_intrinsics_parameters.cpp.
References kIntrinsicsParamPrefix, and momentum::ParameterTransformT< T >::name.
| 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__")
| poses | Motion poses matrix |
| parameterNames | Names of all parameters |
Definition at line 229 of file mmo_io.cpp.
|
nodiscard |
Get ParameterSet for a specific camera's intrinsics parameters.
| paramTransform | The parameter transform to search |
| cameraName | The camera name to look up |
Definition at line 135 of file camera_intrinsics_parameters.cpp.
References momentum::ParameterTransformT< T >::name.
Referenced by addCameraIntrinsicsParameters().
|
inline |
Definition at line 18 of file accessor_utils.h.
Referenced by copyAccessorBuffer(), and copyAlignedAccessorBuffer().
| 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.
| inverseBindPose | Inverse bind pose transformations for each joint |
| skin | Skin weights defining influence of each joint on vertices |
| state | Current skeleton state containing joint transformations |
| index | Index of the vertex to compute inverse transformation for |
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().
| 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).
| [in,out] | is | Reference to the input stream from which the line should be read. |
| [in,out] | line | Reference to the string variable where the line will be stored. |
Definition at line 80 of file stream_utils.cpp.
Referenced by loadTrc().
| 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.
| [in] | markerData | Input marker data. |
| [in] | motion | Motion to compare against. |
| [in] | character | Character definition |
| 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.
| markerData | Marker observations for each frame |
| motion | Solved motion parameters matrix (parameters x frames) |
| character | Character model with locators |
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().
|
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.
| std::tuple< MotionParameters, IdentityParameters > momentum::getMotionFromModel | ( | fx::gltf::Document & | model | ) |
Get motion parameters from a glTF model.
| [in] | model | The glTF document containing motion data. |
Definition at line 73 of file gltf_animation_io.cpp.
References copyAccessorBuffer(), and kParametersPerJoint.
Referenced by loadMotionFromModel().
| ParameterLimits momentum::getPoseConstraintParameterLimits | ( | const std::string & | name, |
| const ParameterTransform & | pt, | ||
| const float | weight ) |
Creates MinMax limits from a pose constraint.
Definition at line 66 of file parameter_limits.cpp.
References momentum::ParameterLimit::data, momentum::LimitMinMax::limits, MinMax, momentum::LimitData::minMax, momentum::LimitMinMax::parameterIndex, momentum::ParameterTransformT< T >::poseConstraints, momentum::ParameterLimit::type, and momentum::ParameterLimit::weight.
| Eigen::Vector3< T > momentum::getRotationDerivative | ( | const JointStateT< T2 > & | js, |
| const size_t | index, | ||
| const Eigen::Vector3< T > & | ref ) |
Definition at line 20 of file ceres_utility.h.
References momentum::JointStateT< T >::rotationAxis.
Referenced by momentum::FullyDifferentiableProjectionErrorFunctionT< T >::constraintGradient_dot().
| Eigen::Vector3< T > momentum::getScaleDerivative | ( | const JointStateT< T2 > & | js, |
| const Eigen::Vector3< T > & | ref ) |
Definition at line 25 of file ceres_utility.h.
References ln2().
Referenced by momentum::FullyDifferentiableProjectionErrorFunctionT< T >::constraintGradient_dot().
| 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.
| locator | The skinned locator containing parent joints, weights, and rest position |
| inverseBindPose | Inverse bind pose transformations for each joint |
| state | Current skeleton state containing joint transformations |
Definition at line 585 of file linear_skinning.cpp.
References cast(), getSkinnedLocatorPosition(), and momentum::SkinnedLocator::position.
| 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.
| locator | The skinned locator containing parent joints and weights |
| restPosition | The locator's position in rest pose (bind pose) |
| inverseBindPose | Inverse bind pose transformations for each joint |
| state | Current skeleton state containing joint transformations |
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 >().
| template Vector3< double > momentum::getSkinnedLocatorPosition< double > | ( | const SkinnedLocator & | locator, |
| const TransformationList & | inverseBindPose, | ||
| const SkeletonStateT< double > & | state ) |
References getSkinnedLocatorPosition().
| template Vector3< double > momentum::getSkinnedLocatorPosition< double > | ( | const SkinnedLocator & | locator, |
| const Vector3< double > & | restPosition, | ||
| const TransformationList & | inverseBindPose, | ||
| const SkeletonStateT< double > & | state ) |
References getSkinnedLocatorPosition().
| template Vector3< float > momentum::getSkinnedLocatorPosition< float > | ( | const SkinnedLocator & | locator, |
| const TransformationList & | inverseBindPose, | ||
| const SkeletonStateT< float > & | state ) |
References getSkinnedLocatorPosition().
| template Vector3< float > momentum::getSkinnedLocatorPosition< float > | ( | const SkinnedLocator & | locator, |
| const Vector3< float > & | restPosition, | ||
| const TransformationList & | inverseBindPose, | ||
| const SkeletonStateT< float > & | state ) |
References getSkinnedLocatorPosition().
|
inline |
Definition at line 35 of file accessor_utils.h.
Referenced by copyAccessorBuffer(), and copyAlignedAccessorBuffer().
| void momentum::gradient_jointParams_to_modelParams | ( | const T & | grad_jointParams, |
| const Eigen::Index | iJointParam, | ||
| const ParameterTransform & | parameterTransform, | ||
| Eigen::Ref< Eigen::VectorX< T > > | gradient ) |
Definition at line 18 of file error_function_utils.h.
References momentum::ParameterTransformT< T >::transform.
Referenced by momentum::CollisionErrorFunctionStatelessT< T >::accumulateGradientAlongChain(), momentum::CollisionErrorFunctionT< T >::accumulateGradientAlongChain(), momentum::PlaneCollisionErrorFunctionT< T >::accumulateGradientAlongChain(), momentum::detail_sdf_collision::accumulateJointGradient(), momentum::CollisionErrorFunctionStatelessT< T >::getGradient(), momentum::CollisionErrorFunctionT< T >::getGradient(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getGradient(), momentum::StateErrorFunctionT< T >::getGradient(), and momentum::VelocityMagnitudeSequenceErrorFunctionT< T >::getGradient().
| void momentum::gradient_jointParams_to_modelParams | ( | const T | grad_jointParams, |
| const Eigen::Index | iJointParam, | ||
| const ParameterTransform & | parameterTransform, | ||
| Eigen::Ref< Eigen::VectorX< T > > | gradient ) |
Definition at line 148 of file point_triangle_vertex_error_function.cpp.
References momentum::ParameterTransformT< T >::transform.
|
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.
| 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().
| 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.
| mesh | Source mesh providing vertex positions and triangle face indices. |
| faceNormals | Per-face normals, indexed by face id; must be sized to match mesh.faces and computed from the same vertex positions as mesh. |
| face0 | Index of the first face into mesh.faces. |
| face1 | Index of the second face into mesh.faces. |
Definition at line 36 of file intersection.cpp.
References Eps(), momentum::MeshT< T >::faces, and momentum::MeshT< T >::vertices.
Referenced by intersectMesh(), and intersectMeshBruteForce().
| template bool momentum::intersectFace< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< Vector3< double > > & | faceNormals, | ||
| const int32_t | face0, | ||
| const int32_t | face1 ) |
| template bool momentum::intersectFace< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< Vector3< float > > & | faceNormals, | ||
| const int32_t | face0, | ||
| const int32_t | face1 ) |
| 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.
| mesh | Source mesh to test for self-intersection. |
Definition at line 153 of file intersection.cpp.
References cross(), momentum::MeshT< T >::faces, intersectFace(), and momentum::MeshT< T >::vertices.
| template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMesh< double > | ( | const MeshT< double > & | mesh | ) |
| template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMesh< float > | ( | const MeshT< float > & | mesh | ) |
| 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.
| mesh | Source mesh to test for self-intersection. |
Definition at line 123 of file intersection.cpp.
References cross(), momentum::MeshT< T >::faces, intersectFace(), and momentum::MeshT< T >::vertices.
| template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMeshBruteForce< double > | ( | const MeshT< double > & | mesh | ) |
| template std::vector< std::pair< int32_t, int32_t > > momentum::intersectMeshBruteForce< float > | ( | const MeshT< float > & | mesh | ) |
|
nodiscardnoexcept |
Determines if two values are approximately equal within a given tolerance.
Definition at line 53 of file utility.h.
References Eps().
Referenced by momentum::JointErrorFunctionT< T, Data, FuncDim, NumVec, NumPos >::getJacobian(), momentum::CollisionPrimitiveT< float >::isApprox(), momentum::MppcaT< T >::isApprox(), momentum::TaperedCapsuleT< float >::isApprox(), momentum::Locator::operator==(), momentum::ParameterLimit::operator==(), momentum::PoseConstraint::operator==(), and momentum::SkinnedLocator::operator==().
|
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().
|
nodiscard |
Return true when name uses Momentum's floor-locator prefix.
Definition at line 22 of file support_contacts.cpp.
| 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.
| dof | The parameter vector to check |
| rigidParams | Parameter set defining which parameters are rigid/global |
Definition at line 732 of file marker_tracker.cpp.
Referenced by trackPosesForFrames().
|
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.
| [in] | node | The glTF node to check. |
Definition at line 276 of file gltf_skeleton_io.cpp.
| 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.
| 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.
|
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().
| 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).
| skeleton | The skeleton containing the joint hierarchy |
| jointA | First joint index |
| jointB | Second joint index |
Definition at line 172 of file tracker_utils.cpp.
References momentum::SkeletonT< T >::joints.
Referenced by closestPointOnMeshMatchingParent(), and findCandidateTrianglesDfs().
|
nodiscard |
Determines whether a pair of collision geometry primitives should be included as a valid collision pair.
A pair is excluded if:
filterRestPoseOverlaps is false| collisionState | The collision geometry state in rest pose |
| collisionGeometry | The collision geometry definition |
| skeleton | The skeleton used for adjacency checks |
| i | Index of the first primitive |
| j | Index of the second primitive |
| filterRestPoseOverlaps | When true, exclude pairs that overlap in rest pose |
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().
| void momentum::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 ) |
Definition at line 33 of file error_function_utils.h.
References momentum::ParameterTransformT< T >::transform.
Referenced by momentum::CollisionErrorFunctionStatelessT< T >::accumulateJacobianAlongChain(), momentum::CollisionErrorFunctionT< T >::accumulateJacobianAlongChain(), momentum::PlaneCollisionErrorFunctionT< T >::accumulateJacobianAlongChain(), momentum::detail_sdf_collision::accumulateJointJacobian(), momentum::CollisionErrorFunctionStatelessT< T >::getJacobian(), momentum::CollisionErrorFunctionT< T >::getJacobian(), momentum::FiniteDifferenceSequenceErrorFunctionT< T >::getJacobian(), and momentum::StateErrorFunctionT< T >::getJacobian().
| 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 ) |
Definition at line 78 of file error_function_utils.h.
References momentum::ParameterTransformT< T >::transform.
| 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.
| void momentum::jacobian_jointParams_to_modelParams | ( | const T & | jacobian_jointParams, |
| const Eigen::Index | iJointParam, | ||
| const ParameterTransform & | parameterTransform, | ||
| Eigen::Ref< Eigen::MatrixX< T > > | jacobian ) |
Definition at line 48 of file error_function_utils.h.
References momentum::ParameterTransformT< T >::transform.
| void momentum::jacobian_jointParams_to_modelParams | ( | const T | jacobian_jointParams, |
| const Eigen::Index | iJointParam, | ||
| const ParameterTransform & | parameterTransform, | ||
| Eigen::Ref< Eigen::MatrixX< T > > | jacobian ) |
Definition at line 163 of file point_triangle_vertex_error_function.cpp.
References momentum::ParameterTransformT< T >::transform.
| ModelParameters momentum::jointIdentityToModelIdentity | ( | const Character & | c, |
| const ParameterSet & | idSet, | ||
| const JointParameters & | jointIdentity ) |
Definition at line 884 of file tracker_utils.cpp.
References momentum::InverseParameterTransformT< T >::apply(), momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::Character::parameterTransform, momentum::CharacterParametersT< T >::pose, momentum::ParameterTransformT< T >::simplify(), and momentum::EigenStrongType< Derived, EigenType >::Zero().
Referenced by loadCalibratedModel(), and loadCharacterWithIdentity().
| 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().
|
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.
| 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().
|
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().
|
nodiscardconstexprnoexcept |
Returns the natural logarithm of 2 (log_e 2).
Definition at line 40 of file constants.h.
Referenced by momentum::CollisionErrorFunctionStatelessT< T >::getGradient(), momentum::CollisionErrorFunctionT< T >::getGradient(), momentum::CollisionErrorFunctionStatelessT< T >::getJacobian(), momentum::CollisionErrorFunctionT< T >::getJacobian(), getScaleDerivative(), and momentum::JointStateT< T >::getScaleDerivative().
| 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.
| filename | Path to the blend shape data file |
| expectedShapes | Limits number of shape vectors loaded if > 0, otherwise loads all |
| expectedVertices | Limits number of vertices loaded if > 0, otherwise loads all |
Definition at line 104 of file blend_shape_io.cpp.
References loadBlendShape().
Referenced by loadBlendShape().
| 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.
| data | Input stream containing blend shape data |
| expectedShapes | Limits number of shape vectors loaded if > 0, otherwise loads all |
| expectedVertices | Limits number of vertices loaded if > 0, otherwise loads all |
Definition at line 109 of file blend_shape_io.cpp.
References MT_THROW_IF, and momentum::BlendShapeBase::setShapeVectors().
| BlendShapeBase momentum::loadBlendShapeBase | ( | const filesystem::path & | filename, |
| int | expectedShapes = -1, | ||
| int | expectedVertices = -1 ) |
Loads blend shape vectors from a file without base shape.
| filename | Path to the blend shape base data file |
| expectedShapes | Limits number of shape vectors loaded if > 0, otherwise loads all |
| expectedVertices | Limits number of vertices loaded if > 0, otherwise loads all |
Definition at line 73 of file blend_shape_io.cpp.
References loadBlendShapeBase().
Referenced by loadBlendShapeBase().
| BlendShapeBase momentum::loadBlendShapeBase | ( | std::istream & | data, |
| int | expectedShapes = -1, | ||
| int | expectedVertices = -1 ) |
Loads blend shape vectors from a stream without base shape.
| data | Input stream containing blend shape base data |
| expectedShapes | Limits number of shape vectors loaded if > 0, otherwise loads all |
| expectedVertices | Limits number of vertices loaded if > 0, otherwise loads all |
Definition at line 78 of file blend_shape_io.cpp.
References MT_THROW_IF, and momentum::BlendShapeBase::setShapeVectors().
| 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.
| [in] | stage | The USD stage to read from. |
| [in] | numVertices | The expected number of vertices. |
Definition at line 449 of file usd_mesh_io.cpp.
|
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).
| [in] | filepath | The path to the BVH file. |
Definition at line 629 of file bvh_io.cpp.
References MT_THROW_IF.
|
nodiscard |
Loads a character from a BVH file buffer.
| [in] | bytes | The buffer containing the BVH file data. |
Definition at line 636 of file bvh_io.cpp.
|
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.
| [in] | filepath | The path to the BVH file. |
Definition at line 642 of file bvh_io.cpp.
References MT_THROW_IF.
|
nodiscard |
Loads a character with motion data from a BVH file buffer.
| [in] | bytes | The buffer containing the BVH file data. |
Definition at line 649 of file bvh_io.cpp.
|
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.
| [in] | filename | The C3D file to load marker data from. |
| [in] | up | (Optional) The up-vector convention of the input marker file (default: UpVector::Y). |
Definition at line 292 of file c3d_io.cpp.
References MT_LOGE.
Referenced by loadMarkers(), and loadMarkers().
| 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().
|
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:
| [in] | jsonPath | Path to the legacy JSON file |
| std::runtime_error | if the file cannot be loaded or parsed |
Definition at line 572 of file legacy_json_io.cpp.
References loadCharacterFromLegacyJsonString(), and MT_THROW_IF.
|
nodiscard |
Loads a Character from a legacy JSON buffer.
| [in] | jsonBuffer | Buffer containing the legacy JSON data |
| std::runtime_error | if the buffer cannot be parsed |
Definition at line 582 of file legacy_json_io.cpp.
References loadCharacterFromLegacyJsonString().
|
nodiscard |
Loads a Character from a legacy JSON string.
| [in] | jsonString | String containing the legacy JSON data |
| std::runtime_error | if 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().
| std::tuple< momentum::Character, momentum::ModelParameters > momentum::loadCharacterWithIdentity | ( | const ModelOptions & | modelFiles | ) |
Definition at line 166 of file app_utils.cpp.
References jointIdentityToModelIdentity(), loadCharacterWithMotion(), loadFullCharacter(), loadLocators(), momentum::Character::locators, momentum::ModelOptions::locators, momentum::ModelOptions::model, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::ModelOptions::parameters, momentum::Character::parameterTransform, momentum::Character::skeleton, and momentum::EigenStrongType< Derived, EigenType >::Zero().
Referenced by processMarkerFile().
| 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.
| [in] | gltfFilename | The path to the glTF file. |
Definition at line 309 of file gltf_io.cpp.
References loadCharacterWithMotionCommon().
Referenced by loadCalibratedModel(), and loadCharacterWithIdentity().
| std::tuple< Character, MatrixXf, momentum::JointParameters, float > momentum::loadCharacterWithMotion | ( | std::span< const std::byte > | byteSpan | ) |
Load a glTF character from a buffer.
| [in] | byteSpan | The buffer containing the glTF character data. |
Definition at line 314 of file gltf_io.cpp.
References 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).
| [in] | input | Either a filesystem path or a byte span containing glTF data. |
| [in] | mapParameters | Whether to map parameters to the character (default: false). |
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().
| 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.
| [in] | gltfFilename | The path to the glTF file. |
Definition at line 319 of file gltf_io.cpp.
References loadCharacterWithMotionModelParameterScales(), MT_THROW, and MT_THROW_IF.
Referenced by loadCharacterWithMotionModelParameterScales().
| 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.
| [in] | byteSpan | The buffer containing the glTF character data. |
Definition at line 337 of file gltf_io.cpp.
References applyModelParameterScales(), loadCharacterWithMotionCommon(), MT_THROW_IF, momentum::ParameterTransformT< T >::numAllModelParameters(), and momentum::Character::parameterTransform.
| 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.
| [in] | gltfFilename | The path to the glTF file. |
Definition at line 357 of file gltf_io.cpp.
References loadCharacterWithSkeletonStatesCommon().
| 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.
| [in] | byteSpan | The buffer containing the glTF character data. |
Definition at line 352 of file gltf_io.cpp.
References 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).
| [in] | input | Either a filesystem path or a byte span containing glTF data. |
Definition at line 369 of file gltf_animation_io.cpp.
References kInvalidIndex, loadGltfCharacterInternal(), MT_LOGW, and momentum::Character::skeleton.
Referenced by loadCharacterWithSkeletonStates(), and loadCharacterWithSkeletonStates().
| CollisionGeometry momentum::loadCollisionGeometryFromUsd | ( | const UsdStageRefPtr & | stage, |
| const Skeleton & | skeleton ) |
Load collision geometry from child prims.
Definition at line 314 of file usd_skeleton_io.cpp.
References Box, momentum::CollisionPrimitiveT< S >::boxHalfExtents, Ellipsoid, momentum::CollisionPrimitiveT< S >::ellipsoidRadii, momentum::SkeletonT< T >::getJointIdByName(), momentum::CollisionPrimitiveT< S >::length, momentum::CollisionPrimitiveT< S >::parent, momentum::CollisionPrimitiveT< S >::radius, momentum::TransformT< T >::rotation, TaperedCapsule, momentum::CollisionPrimitiveT< S >::transformation, momentum::TransformT< T >::translation, and momentum::CollisionPrimitiveT< S >::type.
| 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.
| filename | Path to the FBX file containing blend shape animation. |
Definition at line 466 of file fbx_io.cpp.
References MT_THROW.
| 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().
| 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().
| 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().
| 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().
| 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.
| [in] | filename | Path to the FBX file containing marker data. |
| stripNamespaces | Removes namespace from joints when true. True by default |
Definition at line 218 of file fbx_io.cpp.
References loadOpenFbxMarkerSequence().
Referenced by loadMarkers(), and loadMarkers().
| 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.
| [in] | inputSpan | Buffer holding the FBX file contents. |
| stripNamespaces | Removes namespace from joints when true. True by default. |
Definition at line 222 of file fbx_io.cpp.
References loadOpenFbxMarkerSequence().
|
nodiscard |
High level function to load a character of any type, with a local path.
| [in] | characterPath | The path to the character file. |
| [in] | parametersPath | The optional path to the file containing additional parameters for the character. |
| [in] | locatorsPath | The optional path to the file containing additional locators for the character. |
| [in] | loadBlendShapes | Whether to load blendshapes from the file (default: No). |
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().
|
nodiscard |
Buffer version of loadFullCharacter function, supports .glb and .fbx file formats.
| [in] | format | The character file format. |
| [in] | characterBuffer | The buffer containing the character data. |
| [in] | paramBuffer | The optional buffer containing additional parameters for the character. |
| [in] | locBuffer | The optional buffer containing additional locators for the character. |
| [in] | loadBlendShapes | Whether to load blendshapes from the file (default: No). |
Definition at line 132 of file character_io.cpp.
References loadLocatorsFromBuffer(), loadMomentumModelFromBuffer(), loadParameters(), and MT_THROW_IF.
| 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.
| [in] | gltfFilename | The path to the glTF file. |
Definition at line 261 of file gltf_io.cpp.
| Character momentum::loadGltfCharacter | ( | const fx::gltf::Document & | model | ) |
Load a glTF character from a document.
| [in] | model | The glTF document to load from. |
Definition at line 256 of file gltf_io.cpp.
References loadGltfCharacterInternal().
Referenced by loadCharacterWithMotionCommon().
| Character momentum::loadGltfCharacter | ( | std::span< const std::byte > | byteSpan | ) |
Load a glTF character from a byte buffer.
| [in] | byteSpan | The buffer containing the glTF character data. |
Definition at line 265 of file gltf_io.cpp.
| 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.
| [in] | model | The glTF document to load from. |
| [out] | nodeToObjectMap | Output mapping from glTF node indices to momentum object indices. |
Definition at line 240 of file gltf_io.cpp.
References MT_THROW.
Referenced by loadCharacterWithSkeletonStatesCommon(), and loadGltfCharacter().
| 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.
| [in] | model | The glTF document. |
Definition at line 389 of file gltf_skeleton_io.cpp.
References gatherSkeletonRoots(), kInvalidIndex, MT_CHECK, and MT_THROW_IF.
| 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().
| LocatorList momentum::loadLocatorsFromBuffer | ( | std::span< const std::byte > | rawData, |
| const Skeleton & | skeleton, | ||
| const ParameterTransform & | parameterTransform ) |
Definition at line 78 of file locator_io.cpp.
References momentum::Locator::attachedToSkin, momentum::ParameterTransformT< T >::bindPose(), momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, kInvalidIndex, momentum::Locator::limitOrigin, momentum::Locator::limitWeight, momentum::Locator::locked, MT_LOGW, MT_THROW, MT_THROW_IF, momentum::Locator::name, momentum::Locator::offset, momentum::Locator::parent, momentum::Locator::skinOffset, and momentum::Locator::weight.
Referenced by loadFullCharacterFromBuffer(), and loadLocators().
| LocatorList momentum::loadLocatorsFromUsd | ( | const UsdStageRefPtr & | stage, |
| const Skeleton & | skeleton ) |
Load locators from child prims.
Definition at line 444 of file usd_skeleton_io.cpp.
References momentum::Locator::attachedToSkin, momentum::SkeletonT< T >::getJointIdByName(), momentum::Locator::limitOrigin, momentum::Locator::limitWeight, momentum::Locator::locked, momentum::Locator::name, momentum::Locator::offset, momentum::Locator::parent, momentum::Locator::skinOffset, and momentum::Locator::weight.
|
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).
| [in] | filename | The marker file to load data from. |
| [in] | up | (Optional) The up-vector convention of the input marker file (default: UpVector::Y). |
Definition at line 32 of file marker_io.cpp.
References loadC3d(), loadFbxMarkerSequence(), loadMarkerSequence(), loadTrc(), and MT_LOGE.
Referenced by loadMarkersForMainSubject(), loadMarkersForMainSubject(), and processMarkerFile().
|
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.
| [in] | bytes | Marker file contents. |
| [in] | format | File 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). |
Definition at line 69 of file marker_io.cpp.
References loadC3d(), loadFbxMarkerSequence(), loadMarkerSequence(), loadTrc(), and MT_LOGE.
| 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.
| [in] | filename | Path to the glTF file containing the marker sequence data. |
Definition at line 485 of file gltf_io.cpp.
Referenced by loadMarkers(), and loadMarkers().
| 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.
| [in] | byteSpan | Buffer holding the glTF (.glb) file contents. |
Definition at line 489 of file gltf_io.cpp.
| 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.
| [in] | stage | The USD stage to read from. |
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().
|
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.
| [in] | filename | The marker file to load data from. |
| [in] | up | (Optional) The up-vector convention of the input marker file (default: UpVector::Y). |
Definition at line 56 of file marker_io.cpp.
References findMainSubjectIndex(), and loadMarkers().
|
nodiscard |
Loads the main subject's marker data from an in-memory marker file buffer.
Convenience wrapper around the buffer-based loadMarkers + findMainSubjectIndex.
| [in] | bytes | Marker file contents. |
| [in] | format | File 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). |
Definition at line 99 of file marker_io.cpp.
References findMainSubjectIndex(), and loadMarkers().
| 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.
| [in] | stage | The USD stage to read from. |
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.
| std::tuple< MatrixXf, VectorXf, std::vector< std::string >, std::vector< std::string > > momentum::loadMmo | ( | const std::string & | filename | ) |
Load motion data from file.
| filename | Input file path |
Definition at line 254 of file mmo_io.cpp.
References kParametersPerJoint, and MT_LOGW.
| std::tuple< MatrixXf, VectorXf > momentum::loadMmo | ( | const std::string & | filename, |
| const Character & | character ) |
Load motion data and map to character parameter space.
| filename | Input file path |
| character | Target character for parameter mapping |
Definition at line 223 of file mmo_io.cpp.
References loadMmo(), and mapMotionToCharacter().
Referenced by loadMmo().
| 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.
| 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.
| 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().
| 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().
| std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotion | ( | const filesystem::path & | gltfFilename | ) |
Load motion data from a glTF file.
| [in] | gltfFilename | The path to the glTF file. |
Definition at line 269 of file gltf_io.cpp.
References loadMotionFromModel(), and MT_THROW.
| std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotionFromModel | ( | fx::gltf::Document & | model | ) |
Load motion data from a glTF model.
| [in,out] | model | The glTF document containing motion data. |
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().
| 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.
| 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.
| [in] | gltfFilename | The path to the glTF motion file. |
| [in] | character | The Character object to map the motion onto. |
Definition at line 361 of file gltf_io.cpp.
References loadMotionOnCharacterCommon().
| 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.
| [in] | byteSpan | The buffer containing the glTF motion data. |
| [in] | character | The Character object to map the motion onto. |
Definition at line 367 of file gltf_io.cpp.
References 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).
| [in] | input | Either a filesystem path or a byte span containing glTF data. |
| [in] | character | The character to map motion onto. |
Definition at line 221 of file gltf_animation_io.cpp.
References loadCharacterWithMotionCommon(), mapIdentityToCharacter(), and mapMotionToCharacter().
Referenced by loadMotionOnCharacter(), and loadMotionOnCharacter().
| 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.
| [in] | gltfFilename | The path to the glTF file. |
Definition at line 282 of file gltf_io.cpp.
| 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().
| 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.
| 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.
|
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.
| [in] | filepath | Path to the OBJ file. |
| std::runtime_error | if 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.
|
nodiscard |
Loads a mesh from an in-memory OBJ file.
| [in] | bytes | Buffer holding the OBJ file contents. |
| std::runtime_error | under the same conditions as the path overload. |
Definition at line 226 of file obj_io.cpp.
| 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.
| filepath | Path to the OBJ file. |
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.
| 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().
| 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().
| 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().
| std::tuple< Character, std::vector< MatrixXf >, float > momentum::loadOpenFbxCharacterWithMotion | ( | std::span< const std::byte > | inputData, |
| KeepLocators | keepLocators, | ||
| Permissive | permissive, | ||
| LoadBlendShapes | loadBlendShapes, | ||
| bool | stripNamespaces ) |
Definition at line 1550 of file openfbx_loader.cpp.
Referenced by loadFbxCharacterWithMotion(), loadFbxCharacterWithMotion(), and loadOpenFbxCharacterWithMotion().
| MarkerSequence momentum::loadOpenFbxMarkerSequence | ( | const filesystem::path & | filename, |
| bool | stripNamespaces ) |
Definition at line 1607 of file openfbx_loader.cpp.
References loadOpenFbxMarkerSequence().
| 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.
| [in] | inputData | Buffer holding the FBX file contents. |
| [in] | stripNamespaces | Removes namespace from joints when true. True by default. |
Definition at line 1574 of file openfbx_loader.cpp.
References cast_span(), and MT_THROW_IF.
Referenced by loadFbxMarkerSequence(), loadFbxMarkerSequence(), and loadOpenFbxMarkerSequence().
| void momentum::loadParameters | ( | std::unordered_map< std::string, std::string > & | param, |
| Character & | character ) |
Definition at line 16 of file parameters_io.cpp.
References momentum::Character::initParameterTransform(), momentum::Character::parameterLimits, momentum::ParameterTransformT< T >::parameterSets, momentum::Character::parameterTransform, parseParameterLimits(), parseParameterSets(), parseParameterTransform(), parsePoseConstraints(), momentum::ParameterTransformT< T >::poseConstraints, and momentum::Character::skeleton.
Referenced by loadFullCharacter(), and loadFullCharacterFromBuffer().
Loads pose shape data from a binary file.
| filename | Path to the pose shape data file |
| character | Character containing skeleton and mesh for validation and joint mapping |
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.
| Skeleton momentum::loadSkeletonFromUsd | ( | const UsdStageRefPtr & | stage | ) |
Load a skeleton from a USD stage.
Definition at line 127 of file usd_skeleton_io.cpp.
References momentum::SkeletonT< T >::joints, kInvalidIndex, MT_CHECK, MT_THROW_IF, momentum::JointT< T >::name, momentum::JointT< T >::parent, momentum::JointT< T >::preRotation, and momentum::JointT< T >::translationOffset.
| 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.
| [in] | stage | The USD stage to read from. |
| [in] | skeleton | The skeleton definition. |
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().
| 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.
| [in] | model | The glTF document. |
| [in] | meshNodes | The node indices containing meshes. |
| [in] | nodeToObjectMap | Mapping from node indices to joint indices. |
Definition at line 474 of file gltf_mesh_io.cpp.
References addBlendShapes(), addMesh(), addSkinWeights(), MT_CHECK, and MT_LOGW_IF.
| 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.
| [in] | stage | The USD stage to read from. |
| [in] | numVertices | The expected number of vertices. |
Definition at line 217 of file usd_mesh_io.cpp.
References momentum::SkinWeights::index, kMaxSkinJoints, and momentum::SkinWeights::weight.
| 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.
| filepath | Path to the STL file. |
Definition at line 336 of file urdf_mesh_io.cpp.
References MT_LOGW.
|
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.
| [in] | filename | The TRC file to load marker data from. |
| [in] | up | (Optional) The up-vector convention of the input marker file (default: UpVector::Y). |
Definition at line 97 of file trc_io.cpp.
References loadTrc().
|
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.
| [in,out] | stream | Open input stream positioned at the start of the TRC content. |
| [in] | up | (Optional) The up-vector convention of the input marker file. |
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().
|
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.
| [in] | bytes | Buffer holding the TRC file contents. |
| [in] | up | (Optional) The up-vector convention of the input marker file. |
Definition at line 105 of file trc_io.cpp.
References loadTrc().
| 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.
| filepath | Path to the URDF file. |
Definition at line 948 of file urdf_io.cpp.
References MT_THROW.
|
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.
|
nodiscard |
Loads a character from a URDF file using the provided byte data, with a base path for resolving mesh file references.
| bytes | The raw URDF file contents. |
| meshBasePath | The directory to use for resolving relative mesh file paths. |
Definition at line 992 of file urdf_io.cpp.
References MT_THROW.
| Character momentum::loadUsdCharacter | ( | const filesystem::path & | inputPath | ) |
Load a USD character from a local file path.
| [in] | inputPath | The path to the USD character file. |
Definition at line 595 of file usd_io.cpp.
References MT_THROW_IF.
| Character momentum::loadUsdCharacter | ( | std::span< const std::byte > | inputSpan | ) |
Load a USD character from a buffer.
| [in] | inputSpan | The buffer containing the USD character data. |
Definition at line 605 of file usd_io.cpp.
| 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.
| [in] | inputPath | The path to the USD character file. |
Definition at line 711 of file usd_io.cpp.
References MT_THROW_IF.
Referenced by loadUsdCharacterWithMotionModelParameterScales(), and loadUsdCharacterWithMotionModelParameterScales().
| 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.
| [in] | inputSpan | The buffer containing the USD character data. |
Definition at line 722 of file usd_io.cpp.
| 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.
| [in] | inputPath | The path to the USD character file. |
Definition at line 754 of file usd_io.cpp.
References loadUsdCharacterWithMotion().
| 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.
| [in] | inputSpan | The buffer containing the USD character data. |
Definition at line 759 of file usd_io.cpp.
References loadUsdCharacterWithMotion().
| 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.
| [in] | inputPath | The path to the USD character file. |
Definition at line 625 of file usd_io.cpp.
References loadSkeletonStatesFromUsd(), and MT_THROW_IF.
| 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.
| [in] | inputSpan | The buffer containing the USD character data. |
Definition at line 639 of file usd_io.cpp.
References loadSkeletonStatesFromUsd().
| MarkerSequence momentum::loadUsdMarkerSequence | ( | const filesystem::path & | inputPath | ) |
Load a marker sequence from a USD file.
| [in] | inputPath | The path to the USD file. |
Definition at line 763 of file usd_io.cpp.
References loadMarkerSequenceFromUsd(), and MT_THROW_IF.
| std::vector< Vector4f > momentum::loadWeightsFromAccessor | ( | const fx::gltf::Document & | model, |
| int32_t | accessorIdx ) |
Load skin weights from a glTF accessor.
| [in] | model | The glTF document. |
| [in] | accessorIdx | The accessor index containing weight data. |
Definition at line 362 of file gltf_mesh_io.cpp.
References copyAccessorBuffer(), and copyAlignedAccessorBuffer().
Referenced by addSkinWeights().
| 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.
| sourceCharacter | Character with locators to convert |
| maxDistance | Maximum distance to search for the closest point on the mesh surface. If the locator is further than this distance, it will not be converted. |
| minSkinWeight | Minimum skin weight threshold for considering a mesh triangle as belonging to the same bone as the locator. |
| verbose | If true, print diagnostic messages about locators that could not be converted. |
| markerDiameter | Marker 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().
|
inline |
Definition at line 91 of file rerun_compat.h.
| void momentum::logBvh | ( | const rerun::RecordingStream & | rec, |
| const std::string & | streamName, | ||
| const CollisionGeometry & | collisionGeometry, | ||
| const SkeletonState & | skeletonState ) |
Definition at line 456 of file logger.cpp.
References safeLog(), momentum::CollisionGeometryStateT< T >::update(), and updateAabb().
Referenced by logCollisionGeometry().
| void momentum::logCharacter | ( | const rerun::RecordingStream & | rec, |
| const std::string & | charStreamName, | ||
| const Character & | character, | ||
| const CharacterState & | characterState, | ||
| const rerun::Color & | color ) |
Definition at line 599 of file logger.cpp.
References momentum::Character::collision, momentum::SkeletonStateT< T >::jointState, momentum::Character::locators, momentum::CharacterStateT< T >::locatorState, logCollisionGeometry(), logJoints(), logLocators(), logMesh(), momentum::CharacterStateT< T >::meshState, momentum::Character::skeleton, and momentum::CharacterStateT< T >::skeletonState.
| void momentum::logCollisionGeometry | ( | const rerun::RecordingStream & | rec, |
| const std::string & | streamName, | ||
| const CollisionGeometry & | collisionGeometry, | ||
| const SkeletonState & | skeletonState ) |
Definition at line 499 of file logger.cpp.
References momentum::SkeletonStateT< T >::jointState, kInvalidIndex, logBvh(), momentum::detail::makeCollisionBoxLogData(), momentum::detail::makeCollisionEllipsoidLogData(), pi(), momentum::TransformT< T >::rotation, safeLog(), momentum::TransformT< T >::scale, TaperedCapsule, and momentum::TransformT< T >::translation.
Referenced by logCharacter().
| 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().
| 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().
| 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.
| rec | The recording stream. |
| worldPrefix | The stream prefix for world/root joint parameters. |
| posePrefix | The stream prefix for pose joint parameters. |
| names | The joint names. |
| allJointParams | Matrix where each column is a frame's joint parameter vector (nJoints * kParametersPerJoint x nFrames). |
| frameIndices | The frame index for each column. |
| times | The time in seconds for each column. |
Definition at line 404 of file logger.cpp.
References kJointParameterNames, kParametersPerJoint, makeDurationSecondsTimeColumn(), makeScalarColumns(), and makeSequenceTimeColumn().
| void momentum::logJoints | ( | const rerun::RecordingStream & | rec, |
| const std::string & | streamName, | ||
| const Skeleton & | skeleton, | ||
| const JointStateList & | jointStates ) |
Definition at line 125 of file logger.cpp.
References momentum::SkeletonT< T >::getJointNames(), momentum::SkeletonT< T >::joints, kInvalidIndex, and safeLog().
Referenced by logCharacter().
| 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 ) |
Definition at line 1226 of file marker_tracker.cpp.
References momentum::KeypointObservation::locatorIndex, momentum::Character::locators, M, MT_LOGI, momentum::CalibrationConfig::projectionWeight, and momentum::KeypointObservation::target.
Referenced by calibrateModel().
|
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.
| 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().
| 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().
| 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().
| void momentum::logMesh | ( | const rerun::RecordingStream & | rec, |
| const std::string & | streamName, | ||
| const Mesh & | mesh, | ||
| std::optional< rerun::Color > | color = std::nullopt ) |
| [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().
| 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().
| 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().
| 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.
| rec | The recording stream. |
| worldPrefix | The stream prefix for world (root) parameters. |
| posePrefix | The stream prefix for pose parameters. |
| names | The parameter names. |
| allParams | Matrix where each column is a frame's parameter vector (nParams x nFrames). |
| frameIndices | The frame index for each column. |
| times | The time in seconds for each column. |
Definition at line 360 of file logger.cpp.
References allParams(), makeDurationSecondsTimeColumn(), makeScalarColumns(), and makeSequenceTimeColumn().
|
nodiscard |
Creates a std::shared_ptr for aligned memory.
Definition at line 151 of file aligned.h.
References alignedAlloc().
|
nodiscard |
Creates a std::unique_ptr for aligned memory.
Definition at line 143 of file aligned.h.
References alignedAlloc().
| 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.
| [in] | character | The Character object to save. |
| [in] | fps | Frame rate of the motion in frames per second (default: 120.0f). |
| [in] | motion | Optional motion parameters to include in the document. |
| [in] | offsets | Optional identity parameters (joint offsets) to include in the document. |
| [in] | markerSequence | Optional marker sequence data to include in the document. |
| [in] | embedResource | Whether to embed resources in the document (default: true). |
| [in] | options | Optional file save options for controlling output. |
| [in] | timestamps | Optional per-frame timestamps. Size should match motion columns. |
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().
|
inline |
Definition at line 117 of file rerun_compat.h.
Referenced by logJointParamsColumns(), and logModelParamsColumns().
|
inline |
Definition at line 38 of file rerun_compat.h.
Referenced by logJointParams(), and logModelParams().
|
inline |
Definition at line 131 of file rerun_compat.h.
Referenced by logJointParamsColumns(), and logModelParamsColumns().
|
inline |
Definition at line 107 of file rerun_compat.h.
Referenced by logJointParamsColumns(), and logModelParamsColumns().
|
inline |
Definition at line 50 of file rerun_compat.h.
|
inline |
Definition at line 59 of file rerun_compat.h.
Referenced by logJointParamNames(), and logModelParamNames().
|
inline |
Definition at line 84 of file rerun_compat.h.
| 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.
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().
| 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.
| poses | Source motion poses |
| offsets | Source joint offsets |
| parameterNames | Source parameter names |
| jointNames | Source joint names |
| character | Target character definition |
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.
| 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).
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().
| Eigen::VectorX< T > momentum::mapParameters | ( | const ModelParametersT< T > & | in, |
| const std::vector< size_t > & | mp ) |
Definition at line 57 of file pose_prior_error_function.cpp.
References kInvalidIndex.
Referenced by momentum::FullyDifferentiablePosePriorErrorFunctionT< T >::d_gradient_d_input_dot(), momentum::PosePriorErrorFunctionT< T >::getBestFitMode(), momentum::PosePriorErrorFunctionT< T >::getMeanShape(), and loadCharacterWithMotionCommon().
| template ParameterTransformT< double > momentum::mapParameterTransformJoints | ( | const ParameterTransformT< double > & | paramTransform, |
| size_t | numTargetJoints, | ||
| const std::vector< size_t > & | jointMapping ) |
| template ParameterTransformT< float > momentum::mapParameterTransformJoints | ( | const ParameterTransformT< float > & | paramTransform, |
| 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::MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS | ( | DistanceErrorFunction | ) |
| momentum::MOMENTUM_FWD_DECLARE_TEMPLATE_CLASS | ( | FullyDifferentiableProjectionErrorFunction | ) |
| momentum::MOMENTUM_FWD_DECLARE_TEMPLATE_STRUCT | ( | DistanceConstraintData | ) |
|
nodiscardconstexprnoexcept |
Returns a quiet NaN value of type T.
Definition at line 17 of file constants.h.
|
nodiscard |
Normally distributed value via the global Random singleton.
See Random::normal.
Definition at line 382 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< float >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< float >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::fbx_internal::createMeshNode(), momentum::VertexNormalErrorFunctionT< T >::evalFunction(), momentum::VertexPlaneErrorFunctionT< T >::evalFunction(), findCandidateTrianglesDfs(), momentum::PointTriangleVertexErrorFunctionT< T >::getError(), momentum::VertexNormalErrorFunctionT< T >::getGradient(), momentum::VertexNormalErrorFunctionT< T >::getJacobian(), overlaps(), overlapsCapsuleCenteredPrimitive(), saveMeshToUsd(), and momentum::MeshT< T >::updateNormals().
|
nodiscard |
Normally distributed dynamic-size matrix via the global Random singleton.
See Random::normal.
Definition at line 403 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
|
nodiscard |
Normally distributed dynamic-size vector via the global Random singleton.
See Random::normal.
Definition at line 394 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
|
nodiscard |
Normally distributed fixed-size vector/matrix via the global Random singleton.
See Random::normal.
Definition at line 388 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
|
nodiscard |
| Vector3P< S > momentum::operator* | ( | const Eigen::MatrixBase< Derived > & | xf, |
| const Vector3P< S > & | vec ) |
Applies 3x3 matrix transformation to each 3x1 vector in packet.
| Derived | A derived class of Eigen::MatrixBase, which should be compatible with Eigen::Matrix3f. |
| xf | A 3x3 matrix. |
| vec | A 3-vector of packets. |
Definition at line 276 of file simd.h.
References dot().
| 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.
| xf | An affine transformation matrix. |
| vec | A 3-vector of packets. |
Definition at line 287 of file simd.h.
References operator+().
| Vector3P< S > momentum::operator* | ( | const TransformT< S > & | xf, |
| const Vector3P< S > & | vec ) |
Applies momentum::Transform to each 3x1 vector in packet.
| xf | A momentum transform. |
| vec | A 3-vector of packets. |
Definition at line 297 of file simd.h.
References operator+(), momentum::TransformT< T >::toLinear(), and momentum::TransformT< T >::translation.
| Vector3P< S > momentum::operator+ | ( | const Eigen::MatrixBase< Derived > & | v1, |
| const Vector3P< S > & | v2 ) |
Adds Eigen::Vector3f and Vector3P element-wise.
| Derived | A derived class of Eigen::MatrixBase, which should be compatible with Eigen::Vector3f. |
| v1 | A 3D vector of Eigen. |
| v2 | A 3-vector of packets. |
Definition at line 215 of file simd.h.
Referenced by operator*(), and operator*().
| Vector3P< S > momentum::operator+ | ( | const Vector3P< S > & | v1, |
| const Eigen::MatrixBase< Derived > & | v2 ) |
| Vector3P< S > momentum::operator- | ( | const Eigen::MatrixBase< Derived > & | v1, |
| const Vector3P< S > & | v2 ) |
| Vector3P< S > momentum::operator- | ( | const Vector3P< S > & | v1, |
| const Eigen::MatrixBase< Derived > & | v2 ) |
|
nodiscard |
|
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.
| collisionState | World-space collision state for collisionGeometry. |
| collisionGeometry | Collision primitives corresponding to collisionState. |
| indexA | First primitive index. |
| indexB | Second primitive index. |
| result | Output: closest points, contact positions, support radii, distance, and overlap. |
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.
| 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.
| originA | Origin of the first capsule |
| directionA | Direction vector of the first capsule (length encodes the segment length) |
| radiiA | Radii at the endpoints of the first capsule |
| deltaA | Signed difference between radii of the first capsule (radiiA[1] - radiiA[0]) |
| originB | Origin of the second capsule |
| directionB | Direction vector of the second capsule (length encodes the segment length) |
| radiiB | Radii at the endpoints of the second capsule |
| deltaB | Signed difference between radii of the second capsule (radiiB[1] - radiiB[0]) |
| outDistance | Output: 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. |
| outClosestPoints | Output: parametric positions in [0, 1] along each segment of the closest points (outClosestPoints[0] for capsule A, outClosestPoints[1] for B). |
| outOverlap | Output: amount of overlap (positive if overlapping). Only written when the closest-point computation succeeds. |
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().
|
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.
| capsuleOrigin | Origin of the capsule segment in world space. |
| capsuleDirection | Direction vector from capsule start to end in world space. |
| capsuleRadii | Radii at the capsule start and end points. |
| capsuleDelta | Signed difference between capsule radii (capsuleRadii[1] - capsuleRadii[0]). |
| primitiveType | Centered primitive type; must be ellipsoid or box. |
| primitiveCenter | Primitive center in world space. |
| primitiveOrientation | Primitive orientation in world space. |
| ellipsoidRadii | Ellipsoid radii along its local axes; ignored for boxes. |
| boxHalfExtents | Box half extents along its local axes; ignored for ellipsoids. |
| outDistance | Output: distance between the capsule centerline point and primitive center. |
| outCapsuleParam | Output: parametric position in [0, 1] along the capsule segment. |
| outOverlap | Output: signed overlap amount, positive when overlapping. |
| outCapsuleRadius | Output: capsule support radius at outCapsuleParam. |
| outPrimitiveRadius | Output: primitive support radius along the contact direction. |
Definition at line 239 of file collision_geometry_state.h.
References centeredPrimitiveRadiusAlongDirection(), closestPointOnSegmentParameter(), Eps(), and normal().
Referenced by overlaps().
|
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.
| [in] | size | The original row count. |
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().
| ParameterLimits momentum::parameterLimitsFromJson | ( | const Character & | character, |
| const nlohmann::json & | j ) |
Definition at line 640 of file json_utils.cpp.
References MinMaxJoint, MinMaxJointPassive, MT_LOGW_ONCE, MT_THROW, momentum::Character::name, and momentum::ParameterLimit::weight.
| void momentum::parameterLimitsToJson | ( | const Character & | character, |
| nlohmann::json & | j ) |
Definition at line 600 of file json_utils.cpp.
References Ellipsoid, HalfPlane, LimitTypeCount, Linear, LinearJoint, MinMax, MinMaxJoint, MinMaxJointPassive, MT_LOGE, momentum::Character::name, momentum::Character::parameterLimits, and toString().
Referenced by momentum::GltfBuilder::addCharacter().
| ParameterSets momentum::parameterSetsFromJson | ( | const Character & | character, |
| const nlohmann::json & | j ) |
Definition at line 120 of file json_utils.cpp.
References momentum::ParameterTransformT< T >::getParameterIdByName(), kInvalidIndex, and momentum::Character::parameterTransform.
| void momentum::parameterSetsToJson | ( | const Character & | character, |
| nlohmann::json & | j ) |
Definition at line 108 of file json_utils.cpp.
References momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::parameterSets, and momentum::Character::parameterTransform.
Referenced by momentum::GltfBuilder::addCharacter().
| ParameterTransform momentum::parameterTransformFromJson | ( | const Character & | character, |
| const nlohmann::json & | j ) |
Definition at line 204 of file json_utils.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::ParameterTransformT< T >::blendShapeParameters, momentum::ParameterTransformT< T >::faceExpressionParameters, momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::getJointNames(), momentum::ParameterTransformT< T >::getParameterIdByName(), momentum::ParameterTransformT< float >::identity(), momentum::SkeletonT< T >::joints, kInvalidIndex, kJointParameterNames, kParametersPerJoint, MT_THROW_IF, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::offsets, momentum::Character::skeleton, and momentum::ParameterTransformT< T >::transform.
| void momentum::parameterTransformToJson | ( | const Character & | character, |
| nlohmann::json & | j ) |
Definition at line 169 of file json_utils.cpp.
References momentum::ParameterTransformT< T >::blendShapeParameters, momentum::ParameterTransformT< T >::faceExpressionParameters, momentum::SkeletonT< T >::joints, kJointParameterNames, kParametersPerJoint, momentum::ParameterTransformT< T >::name, momentum::Character::parameterTransform, momentum::Character::skeleton, and momentum::ParameterTransformT< T >::transform.
Referenced by momentum::GltfBuilder::addCharacter().
| ParameterLimits momentum::parseParameterLimits | ( | const io_detail::SectionContent & | content, |
| const Skeleton & | skeleton, | ||
| const ParameterTransform & | parameterTransform ) |
Definition at line 615 of file parameter_limits_io.cpp.
References momentum::io_detail::SectionContent::begin(), MT_LOGW, MT_LOGW_ONCE, MT_THROW, MT_THROW_IF, and trim().
Referenced by loadParameters(), and parseParameterLimits().
| ParameterLimits momentum::parseParameterLimits | ( | const std::string & | data, |
| const Skeleton & | skeleton, | ||
| const ParameterTransform & | parameterTransform, | ||
| size_t | lineOffset ) |
Definition at line 685 of file parameter_limits_io.cpp.
References momentum::io_detail::SectionContent::addSegment(), and parseParameterLimits().
| ParameterSets momentum::parseParameterSets | ( | const io_detail::SectionContent & | content, |
| const ParameterTransform & | pt ) |
| ParameterSets momentum::parseParameterSets | ( | const SectionContent & | content, |
| const ParameterTransform & | pt ) |
Definition at line 389 of file parameter_transform_io.cpp.
References momentum::SectionContent::begin(), kInvalidIndex, MT_LOGW, MT_THROW_IF, momentum::ParameterTransformT< T >::name, tokenize(), and trim().
Referenced by loadParameters(), and parseParameterSets().
| ParameterSets momentum::parseParameterSets | ( | const std::string & | data, |
| const ParameterTransform & | pt, | ||
| size_t | lineOffset ) |
Definition at line 449 of file parameter_transform_io.cpp.
References momentum::SectionContent::addSegment(), and parseParameterSets().
| ParameterTransform momentum::parseParameterTransform | ( | const io_detail::SectionContent & | content, |
| const Skeleton & | skeleton ) |
| ParameterTransform momentum::parseParameterTransform | ( | const SectionContent & | content, |
| const Skeleton & | skeleton ) |
Definition at line 288 of file parameter_transform_io.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::SectionContent::begin(), momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::joints, kInvalidIndex, kJointParameterNames, kParametersPerJoint, MT_LOGW, MT_THROW_IF, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::offsets, tokenize(), momentum::ParameterTransformT< T >::transform, and trim().
Referenced by loadParameters(), and parseParameterTransform().
| ParameterTransform momentum::parseParameterTransform | ( | const std::string & | data, |
| const Skeleton & | skeleton, | ||
| size_t | lineOffset ) |
Definition at line 380 of file parameter_transform_io.cpp.
References momentum::SectionContent::addSegment(), and parseParameterTransform().
| PoseConstraints momentum::parsePoseConstraints | ( | const io_detail::SectionContent & | content, |
| const ParameterTransform & | pt ) |
| PoseConstraints momentum::parsePoseConstraints | ( | const SectionContent & | content, |
| const ParameterTransform & | pt ) |
Definition at line 458 of file parameter_transform_io.cpp.
References momentum::SectionContent::begin(), kInvalidIndex, MT_LOGW, MT_THROW_IF, momentum::ParameterTransformT< T >::name, momentum::PoseConstraint::parameterIdValue, tokenize(), and trim().
Referenced by loadParameters(), and parsePoseConstraints().
| PoseConstraints momentum::parsePoseConstraints | ( | const std::string & | data, |
| const ParameterTransform & | pt, | ||
| size_t | lineOffset ) |
Definition at line 523 of file parameter_transform_io.cpp.
References momentum::SectionContent::addSegment(), and parsePoseConstraints().
|
nodiscardconstexprnoexcept |
Returns the mathematical constant pi.
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().
|
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().
| template std::vector< bool > momentum::polysToVertices< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activePolys ) |
| template std::vector< bool > momentum::polysToVertices< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< bool > & | activePolys ) |
| PoseConstraints momentum::poseConstraintsFromJson | ( | const Character & | character, |
| const nlohmann::json & | j ) |
Definition at line 150 of file json_utils.cpp.
References momentum::ParameterTransformT< T >::getParameterIdByName(), kInvalidIndex, and momentum::Character::parameterTransform.
| void momentum::poseConstraintsToJson | ( | const Character & | character, |
| nlohmann::json & | j ) |
Definition at line 138 of file json_utils.cpp.
References momentum::ParameterTransformT< T >::name, momentum::Character::parameterTransform, and momentum::ParameterTransformT< T >::poseConstraints.
Referenced by momentum::GltfBuilder::addCharacter().
| 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.
| [in,out] | markerData | Marker data to process in-place. Each frame must have the same markers in the same order. |
| [in] | config | Gap 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().
| 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.
| 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.
| [in,out] | character | The input character definition with locators. It also holds the output locators if locators are to be calibrated from the calibrationConfig. |
| [in,out] | identity | The input identity used for tracking. It also holds the solved identify if identity is to be calibrated from the calibrationConfig. |
| [in] | markerData | The per-frame position targets to be tracked. |
| [in] | trackingConfig | The config for per-frame tracking after the correct identity and locators are solved for (or from input). |
| [in] | calibrationConfig | The config for running calibration if calibrate is set to true. |
| [in] | calibrate | True to run calibration according to calibrationConfig. |
| [in] | firstFrame | The first frame to start solving. We pass in the first frame instead of triming markerData to avoid data copy. |
| [in] | maxFrames | The maximum number of frames to process starting from firstFrame. |
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().
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.
| T | The scalar type |
| mat | Input matrix |
Definition at line 422 of file utility.cpp.
Referenced by momentum::InverseParameterTransformT< T >::InverseParameterTransformT(), and pseudoInverse().
| template MatrixX< double > momentum::pseudoInverse | ( | const SparseMatrix< double > & | mat | ) |
| template MatrixX< float > momentum::pseudoInverse | ( | const SparseMatrix< float > & | mat | ) |
| 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
| T | The scalar type |
| mat | Input sparse matrix |
Definition at line 444 of file utility.cpp.
References pseudoInverse().
| 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.
| q | Array of quaternions to average |
| w | Optional weights for each quaternion (defaults to equal weights) |
Definition at line 397 of file utility.cpp.
| template Quaternion< double > momentum::quaternionExpMap | ( | const Vector3< double > & | v | ) |
| template Quaternion< float > momentum::quaternionExpMap | ( | const Vector3< float > & | v | ) |
| 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.
| T | The scalar type |
| v | The rotation vector (axis-angle representation) |
Definition at line 34 of file utility.cpp.
References Eps().
| template Vector3< double > momentum::quaternionLogMap | ( | const Quaternion< double > & | q | ) |
| template Vector3< float > momentum::quaternionLogMap | ( | const Quaternion< float > & | q | ) |
| 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.
| T | The scalar type |
| q | The input quaternion (should be normalized) |
Definition at line 74 of file utility.cpp.
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().
| template Eigen::Matrix< double, 3, 4 > momentum::quaternionLogMapDerivative | ( | const Quaternion< double > & | q | ) |
| template Eigen::Matrix< float, 3, 4 > momentum::quaternionLogMapDerivative | ( | const Quaternion< float > & | q | ) |
| 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.
| T | The scalar type |
| q | The input quaternion (should be normalized) |
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().
| 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.
| T | The scalar type |
| q | Input quaternion |
Definition at line 385 of file utility.cpp.
References sqr().
Referenced by loadSkeletonStatesFromUsd().
| template Vector3d momentum::quaternionToEuler | ( | const Quaterniond & | q | ) |
| template Vector3f momentum::quaternionToEuler | ( | const Quaternionf & | q | ) |
| 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.
| [in] | rec | The recording stream to which to write the logs. You should make sure the lifetime of this is longer than the loggings from momentum libraries. |
Definition at line 72 of file logging_redirect.cpp.
References MT_LOGW.
|
nodiscard |
Reduces the character's mesh to only include the specified faces and associated vertices.
Definition at line 1469 of file character_utility.cpp.
References facesToVertices(), momentum::Character::mesh, and MT_CHECK.
|
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.
Definition at line 1496 of file character_utility.cpp.
References momentum::MeshT< T >::faces, facesToVertices(), and MT_CHECK.
| template MeshT< double > momentum::reduceMeshByFaces< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activeFaces ) |
| template MeshT< float > momentum::reduceMeshByFaces< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< bool > & | activeFaces ) |
Referenced by splitMeshByTextureRegion().
|
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.
Definition at line 1566 of file character_utility.cpp.
References momentum::Character::mesh, MT_CHECK, polysToVertices(), and verticesToFaces().
|
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.
Definition at line 1553 of file character_utility.cpp.
References MT_CHECK, momentum::MeshT< T >::polyFaceSizes, polysToVertices(), and verticesToFaces().
| template MeshT< double > momentum::reduceMeshByPolys< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activePolys ) |
| template MeshT< float > momentum::reduceMeshByPolys< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< bool > & | activePolys ) |
|
nodiscard |
Reduces the character's mesh to only include the specified vertices and associated faces.
Definition at line 1454 of file character_utility.cpp.
References momentum::Character::mesh, MT_CHECK, and verticesToFaces().
|
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.
Definition at line 1483 of file character_utility.cpp.
References MT_CHECK, momentum::MeshT< T >::vertices, and verticesToFaces().
| template MeshT< double > momentum::reduceMeshByVertices< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activeVertices ) |
| template MeshT< float > momentum::reduceMeshByVertices< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< bool > & | activeVertices ) |
| Eigen::MatrixXf momentum::refineMotion | ( | std::span< const std::vector< momentum::Marker > > | markerData, |
| const Eigen::MatrixXf & | motion, | ||
| const RefineConfig & | config, | ||
| momentum::Character & | character ) |
| 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.
| markerData | Marker observations for each frame |
| motion | Initial motion to refine (parameters x frames) |
| config | Refinement configuration settings |
| character | Character model (may be modified if calibration is enabled) |
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().
| 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().
|
nodiscard |
Removes the specified joints and any joints parented beneath them from the character.
Currently, it is necessary to remove child joints to prevent dangling joints. Mesh points skinned to the removed joints are re-skinned to their parent joint in the hierarchy.
Definition at line 758 of file character_utility.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::Character::blendShape, momentum::Character::collision, momentum::ParameterTransformT< T >::computeActiveJointParams(), momentum::ParameterTransformT< float >::empty(), momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, momentum::Character::locators, momentum::Character::mesh, MT_THROW_IF, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::Character::physicalProperties, momentum::Character::poseShapes, momentum::Character::skeleton, and momentum::Character::skinWeights.
|
nodiscard |
Replaces the subtree of tgtCharacter's skeleton rooted at tgtRootJoint with the subtree of srcCharacter's skeleton rooted at srcRootJoint.
This function is typically used to swap one character's hand skeleton with another, for example.
Definition at line 572 of file character_utility.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::Character::blendShape, momentum::Character::collision, momentum::ParameterTransformT< T >::computeActiveJointParams(), momentum::SkeletonT< T >::getJointIdByName(), momentum::SkeletonT< T >::isAncestor(), momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, momentum::Character::locators, momentum::Character::mesh, MT_CHECK, MT_LOGW_IF, MT_THROW_IF, momentum::JointT< T >::name, momentum::ParameterTransformT< T >::offsets, momentum::Character::parameterLimits, momentum::Character::parameterTransform, momentum::JointT< T >::parent, momentum::Character::physicalProperties, momentum::Character::poseShapes, momentum::Character::skeleton, momentum::Character::skinWeights, and momentum::ParameterTransformT< T >::transform.
| 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.
| filename | The mesh filename string from the URDF (e.g., "meshes/part.stl" or "package://robot/meshes/part.stl"). |
| urdfDir | The directory containing the URDF file, used as the base for relative path resolution. |
Definition at line 415 of file urdf_mesh_io.cpp.
References MT_LOGW.
|
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().
| template Vector3< double > momentum::rotationMatrixToEuler | ( | const Matrix3< double > & | m, |
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| EulerConvention | convention ) |
| template Vector3< float > momentum::rotationMatrixToEuler | ( | const Matrix3< float > & | m, |
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| EulerConvention | convention ) |
|
nodiscard |
Converts rotation matrix to Euler angles.
| T | The scalar type. |
| [in] | m | The rotation matrix to convert. |
| [in] | axis0 | The index of the first rotation's axis, one of {0, 1, 2}. |
| [in] | axis1 | The index of the second rotation's axis, one of {0, 1, 2}. |
| [in] | axis2 | The index of the third rotation's axis, one of {0, 1, 2}. |
| [in] | convention | The Euler angles convention. |
Definition at line 187 of file utility.cpp.
References Extrinsic, Intrinsic, and rotationMatrixToEuler().
Referenced by rotationMatrixToEuler().
| template Vector3< double > momentum::rotationMatrixToEulerXYZ | ( | const Matrix3< double > & | m, |
| EulerConvention | convention ) |
| template Vector3< float > momentum::rotationMatrixToEulerXYZ | ( | const Matrix3< float > & | 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().
| template Vector3< double > momentum::rotationMatrixToEulerZYX | ( | const Matrix3< double > & | m, |
| EulerConvention | convention ) |
| template Vector3< float > momentum::rotationMatrixToEulerZYX | ( | const Matrix3< float > & | 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().
| template double momentum::rotationMatrixToOneAxisEuler | ( | const Matrix3< double > & | m, |
| int | axis0 ) |
| template float momentum::rotationMatrixToOneAxisEuler | ( | const Matrix3< float > & | 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.
| T | The scalar type. |
| [in] | m | The target rotation matrix. |
| [in] | axis0 | The rotation axis index, one of {0, 1, 2} (X, Y, Z). |
Definition at line 819 of file utility.cpp.
References MT_CHECK.
Referenced by rotationMatrixToTwoAxisEuler().
| template Vector2< double > momentum::rotationMatrixToTwoAxisEuler | ( | const Matrix3< double > & | m, |
| int | axis0, | ||
| int | axis1 ) |
| template Vector2< float > momentum::rotationMatrixToTwoAxisEuler | ( | const Matrix3< float > & | 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.
| T | The scalar type. |
| [in] | m | The target rotation matrix. |
| [in] | axis0 | The index of the first rotation axis, one of {0, 1, 2}. |
| [in] | axis1 | The index of the second rotation axis, one of {0, 1, 2}. |
Definition at line 840 of file utility.cpp.
References MT_CHECK, and rotationMatrixToOneAxisEuler().
|
inlineconstexpr |
Rounds value up to the nearest multiple of alignment (in bytes).
Definition at line 105 of file aligned.h.
References MT_THROW_IF_T.
Referenced by alignedAlloc().
|
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().
|
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().
| 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.
| character | The character model used for computing marker errors |
| initialMotion | Initial motion parameters matrix (parameters x frames) |
| markerData | Marker observations for each frame |
| parameters | Set of parameters to consider for variance calculation |
| frameStride | Only consider every frameStride-th frame as candidates |
| numSamples | Maximum number of frames to sample |
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().
| 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 "_".
| [in] | name | The original name to sanitize. |
Definition at line 14 of file usd_utils.cpp.
Referenced by saveBlendShapesToUsd(), saveCollisionGeometryToUsd(), and saveLocatorsToUsd().
| void momentum::saveBlendShape | ( | const filesystem::path & | filename, |
| const BlendShape & | blendShape ) |
Saves a blend shape to a file.
| filename | Output file path for the blend shape data |
| blendShape | BlendShape object to save |
Definition at line 153 of file blend_shape_io.cpp.
References MT_LOGW, and saveBlendShape().
Referenced by saveBlendShape().
| void momentum::saveBlendShape | ( | std::ostream & | os, |
| const BlendShape & | blendShape ) |
Saves a blend shape to a stream.
| os | Output stream to write blend shape data |
| blendShape | BlendShape object to save |
Definition at line 174 of file blend_shape_io.cpp.
References momentum::BlendShape::getBaseShape(), momentum::BlendShapeBase::getShapeVectors(), and MT_CHECK.
| void momentum::saveBlendShapeBase | ( | const filesystem::path & | filename, |
| const BlendShapeBase & | blendShapeBase ) |
Saves a blend shape base (shape vectors) to a file.
| filename | Output file path for the blend shape data |
| blendShapeBase | BlendShapeBase object to save |
Definition at line 144 of file blend_shape_io.cpp.
References MT_LOGW, and saveBlendShapeBase().
Referenced by saveBlendShapeBase().
| void momentum::saveBlendShapeBase | ( | std::ostream & | os, |
| const BlendShapeBase & | blendShapeBase ) |
Saves a blend shape base (shape vectors) to a stream.
| os | Output stream to write blend shape data |
| blendShapeBase | BlendShapeBase object to save |
Definition at line 162 of file blend_shape_io.cpp.
References momentum::BlendShapeBase::getShapeVectors().
| 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.
| [in] | blendShape | The BlendShape to save. |
| [in] | meshPrim | The 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().
| 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).
| [in] | filepath | The output BVH file path. |
| [in] | character | The 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.
|
nodiscard |
Saves a character with motion data to a byte buffer in BVH format.
| [in] | character | The character to save. |
| [in] | motionParams | The motion parameters (parameter names + motion matrix). |
| [in] | fps | The frame rate for the BVH file. |
Definition at line 678 of file bvh_io.cpp.
| 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.
| [in] | filepath | The output BVH file path. |
| [in] | character | The character to save. |
| [in] | motionParams | The motion parameters (parameter names + motion matrix). |
| [in] | fps | The frame rate for the BVH file. |
Definition at line 666 of file bvh_io.cpp.
References MT_THROW_IF.
| 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.
| [in] | filename | The path where the character file will be saved. |
| [in] | character | The Character object to save. |
| [in] | fps | Frame rate for the animation. |
| [in] | skeletonStates | The motion represented in skeleton states (ie. JointStates). |
| [in] | markerSequence | Optional marker sequence data to save with the character. |
| [in] | options | Optional 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.
| 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.
| [in] | filename | The path where the character file will be saved. |
| [in] | character | The Character object to save. |
| [in] | fps | Frame rate for the animation (default: 120.0f). |
| [in] | motion | The motion represented in model parameters (numModelParams, numFrames). |
| [in] | markerSequence | Optional marker sequence data to save with the character. |
| [in] | options | Optional 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.
| 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.
| [in] | character | The Character object to save. |
| [in] | fps | Frame rate of the motion in frames per second (default: 120.0f). |
| [in] | motion | Optional motion parameters to save (default: empty). |
| [in] | offsets | Optional identity parameters capturing skeleton bone lengths (default: empty). |
| [in] | markerSequence | Optional marker sequence data to save (default: empty). |
| [in] | options | Optional file save options for controlling output (default: FileSaveOptions{}). |
| [in] | timestamps | Optional per-frame timestamps. Size should match motion columns. |
Definition at line 523 of file gltf_io.cpp.
References makeCharacterDocument().
| 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.
| [in] | character | The Character to save |
| [in] | jsonPath | Path where to save the legacy JSON file |
| std::runtime_error | if the file cannot be written |
Definition at line 638 of file legacy_json_io.cpp.
References characterToLegacyJson(), and MT_THROW_IF.
| 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.
| 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.
| filename | Path to the output FBX file |
| character | The character to save |
| poses | Model parameters for each frame (empty for bind pose only) |
| identity | Identity pose parameters (empty to use bind pose) |
| framerate | Animation framerate in frames per second |
| markerSequence | Optional marker sequence data to save with the character |
| options | Optional 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().
| void momentum::saveFbxModel | ( | const filesystem::path & | filename, |
| const Character & | character, | ||
| const FileSaveOptions & | options = FileSaveOptions() ) |
Save a character model (skeleton and mesh) without animation.
| filename | Path to the output FBX file |
| character | The character to save |
| options | Optional file save options for controlling output (default: FileSaveOptions{}) |
Definition at line 458 of file fbx_io.cpp.
References MT_THROW.
| 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.
| filename | Path to the output FBX file |
| character | The character to save |
| jointParams | Joint parameters for each frame (empty for bind pose only) |
| framerate | Animation framerate in frames per second |
| markerSequence | Optional marker sequence data to save with the character |
| options | Optional file save options for controlling output (default: FileSaveOptions{}) |
Definition at line 436 of file fbx_io.cpp.
References MT_THROW.
| 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.
| filename | Path to the output FBX file |
| character | The character to save |
| skeletonStates | SkeletonState for each frame (empty for bind pose only) |
| framerate | Animation framerate in frames per second |
| markerSequence | Optional marker sequence data to save with the character |
| options | Optional file save options for controlling output (default: FileSaveOptions{}) |
Definition at line 447 of file fbx_io.cpp.
References MT_THROW.
Referenced by saveCharacter().
| 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.
| [in] | filename | The path where the glTF file will be saved. |
| [in] | character | The Character object to save. |
| [in] | fps | Frame rate of the motion in frames per second. |
| [in] | skeletonStates | The skeleton states for each frame of the motion sequence. |
| [in] | markerSequence | Optional marker sequence data to save (default: empty). |
| [in] | options | Optional 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().
| 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.
| [in] | filename | The path where the glTF file will be saved. |
| [in] | character | The Character object to save. |
| [in] | fps | Frame rate of the motion in frames per second (default: 120.0f). |
| [in] | motion | Optional motion parameters to save (default: empty). |
| [in] | offsets | Optional identity parameters capturing skeleton bone lengths (default: empty). |
| [in] | markerSequence | Optional marker sequence data to save (default: empty). |
| [in] | options | Optional file save options for controlling output (default: FileSaveOptions{}). |
| [in] | timestamps | Optional 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().
| void momentum::saveLocators | ( | const filesystem::path & | filename, |
| const LocatorList & | locators, | ||
| const Skeleton & | skeleton, | ||
| const LocatorSpace | space ) |
Definition at line 210 of file locator_io.cpp.
References Global, momentum::SkeletonT< T >::joints, kParametersPerJoint, Local, MT_CHECK, and momentum::LocatorState::position.
| 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().
| 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.
| [in] | stage | The USD stage to write to. |
| [in] | skelRootPath | The path to the SkelRoot prim under which to create the Markers scope. |
| [in] | fps | Frames per second for the animation. |
| [in] | markerSequence | The 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().
| void momentum::saveMeshToUsd | ( | const Mesh & | mesh, |
| UsdGeomMesh & | meshPrim ) |
Save a mesh to a USD stage.
Writes vertices and faces to the given UsdGeomMesh prim.
| [in] | mesh | The Mesh to save. |
| [in] | meshPrim | The 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.
| 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.
| filename | Output file path |
| poses | Motion poses matrix (parameters x frames) |
| scale | Joint scale parameters |
| character | Character definition for parameter mapping |
| additionalParameters | Extra parameters to store alongside poses |
| additionalParameterNames | Names 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.
| 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.
| filename | Output file path |
| poses | Motion poses matrix (parameters x frames) |
| scale | Joint scale parameters |
| parameterNames | Names of motion parameters |
| jointNames | Names of skeleton joints |
Definition at line 114 of file mmo_io.cpp.
References kParametersPerJoint, and MT_LOGW.
| 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.
| filename | Output file path |
| poses | Motion poses as span of vectors, each vector represents one frame |
| scale | Joint scale parameters |
| character | Character 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().
| 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.
| [in] | outFile | The GLB/FBX file to save to |
| [in] | character | The GLB/FBX file to save to |
| [in] | identity | The identity parameters used for the character |
| [in] | finalMotion | The motion save to the file. (Note: this may be modified to remove scaling parameters if saveScaleToMotion is false) |
| [in] | markerData | Marker data to save to the file |
| [in] | fps | Framerate 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] | timestamps | Per-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().
| 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().
| void momentum::saveMppca | ( | const Mppca & | mppca, |
| const std::string & | name ) |
Definition at line 112 of file mppca_io.cpp.
References momentum::MppcaT< T >::Cinv, momentum::MppcaT< T >::d, MT_CHECK, momentum::MppcaT< T >::mu, momentum::MppcaT< T >::names, momentum::MppcaT< T >::p, and momentum::MppcaT< T >::Rpre.
| 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.
| [in] | stage | The USD stage to write to. |
| [in] | skelPrim | The skeleton prim to bind the animation to. |
| [in] | skeleton | The skeleton definition (for joint names). |
| [in] | skeletonStates | The skeleton states to save (one per frame). |
| [in] | fps | Frames 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().
| 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.
| 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.
| [in] | skinWeights | The SkinWeights to save. |
| [in] | meshPrim | The UsdGeomMesh prim to write skinning data to. |
| [in] | skelPrim | The UsdSkelSkeleton prim to bind to. |
Definition at line 337 of file usd_mesh_io.cpp.
References momentum::SkinWeights::index, and momentum::SkinWeights::weight.
| void momentum::saveUsd | ( | const filesystem::path & | filename, |
| const Character & | character, | ||
| const FileSaveOptions & | options = FileSaveOptions() ) |
Save a character to a USD file.
| [in] | filename | The path to save the USD file. |
| [in] | character | The Character object to save. |
| [in] | options | Optional file save options for controlling output. |
Definition at line 613 of file usd_io.cpp.
| 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.
| [in] | filename | The path to save the USD file. |
| [in] | character | The Character object to save. |
| [in] | fps | Frames per second for the animation. |
| [in] | skeletonStates | The skeleton states to save (one per frame). |
| [in] | markerSequence | Optional marker sequence to save. |
| [in] | options | Optional 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().
| 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.
| [in] | filename | The path to save the USD file. |
| [in] | character | The Character object to save. |
| [in] | fps | Frames per second for the animation. |
| [in] | motion | The motion data (parameter names, poses matrix). |
| [in] | offsets | The identity parameters (joint names, offset values). |
| [in] | markerSequence | Optional marker sequence to save. |
| [in] | options | Optional 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().
|
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.
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.
|
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().
| template double momentum::scaleFactor< double > | ( | const CoordinateSystem & | , |
| const CoordinateSystem & | ) |
| template float momentum::scaleFactor< float > | ( | const CoordinateSystem & | , |
| const CoordinateSystem & | ) |
Referenced by fromMomentumVec3f(), fromMomentumVec3f(), and toMomentumVec3f().
| void momentum::setAccessorType | ( | fx::gltf::Accessor & | ) |
Definition at line 129 of file accessor_utils.h.
References MT_THROW.
Referenced by createAccessorBuffer().
|
inline |
Definition at line 213 of file accessor_utils.h.
|
inline |
Definition at line 207 of file accessor_utils.h.
|
inline |
Definition at line 261 of file accessor_utils.h.
|
inline |
Definition at line 219 of file accessor_utils.h.
|
inline |
Definition at line 237 of file accessor_utils.h.
|
inline |
Definition at line 225 of file accessor_utils.h.
|
inline |
Definition at line 243 of file accessor_utils.h.
|
inline |
Definition at line 255 of file accessor_utils.h.
|
inline |
Definition at line 231 of file accessor_utils.h.
|
inline |
Definition at line 249 of file accessor_utils.h.
| 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.
| paramTransform | The parameter transform with camera intrinsics parameters | |
| intrinsicsModel | The intrinsics model to read values from | |
| [in,out] | modelParams | The model parameters to write into |
Definition at line 115 of file camera_intrinsics_parameters.cpp.
References kTiedFocalLengthSuffix, and momentum::EigenStrongType< Derived, EigenType >::size().
| void momentum::setLogLevel | ( | const std::string & | levelStr | ) |
Parses levelStr (case-insensitive: "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "DISABLED") and forwards to setLogLevel(LogLevel).
| std::invalid_argument | if levelStr is not one of the recognized names. |
Definition at line 125 of file log.cpp.
References setLogLevel().
| 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().
|
inline |
Definition at line 70 of file rerun_compat.h.
| 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.
| [in,out] | solverFunc | Skeleton solver to register error functions with. |
| [in] | character | Character with glove bones. |
| [in] | gloveData | Per-frame glove sensor observations. |
| [in] | cfg | Glove configuration. |
| [in] | handIndex | Hand index (0=left, 1=right). |
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().
| template JointParametersT< double > momentum::skeletonStateToJointParameters | ( | const SkeletonStateT< double > & | state, |
| const Skeleton & | skeleton ) |
| template JointParametersT< float > momentum::skeletonStateToJointParameters | ( | const SkeletonStateT< float > & | 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.
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().
| template JointParametersT< double > momentum::skeletonStateToJointParameters | ( | const TransformListT< double > & | state, |
| const Skeleton & | skeleton ) |
| template JointParametersT< float > momentum::skeletonStateToJointParameters | ( | const TransformListT< float > & | state, |
| const Skeleton & | skeleton ) |
|
nodiscard |
Definition at line 261 of file skeleton_state.cpp.
References momentum::TransformT< T >::inverse(), momentum::SkeletonT< T >::joints, kInvalidIndex, kParametersPerJoint, momentum::EigenStrongType< Derived, EigenType >::v, and momentum::EigenStrongType< JointParametersT, ::Eigen::VectorX< T > >::Zero().
| template JointParametersT< double > momentum::skeletonStateToJointParametersRespectingActiveParameters | ( | const SkeletonStateT< double > & | state, |
| const Skeleton & | skeleton, | ||
| const VectorX< bool > & | activeJointParams ) |
| template JointParametersT< float > momentum::skeletonStateToJointParametersRespectingActiveParameters | ( | const SkeletonStateT< float > & | 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:
| T | The scalar type (float or double) |
| [in] | state | The skeleton state to convert |
| [in] | skeleton | The skeleton defining joint hierarchy and properties |
| [in] | activeJointParams | Boolean array indicating which joint parameters are active. Size should be skeleton.joints.size() * kParametersPerJoint |
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().
| template JointParametersT< double > momentum::skeletonStateToJointParametersRespectingActiveParameters | ( | const TransformListT< double > & | state, |
| const Skeleton & | skeleton, | ||
| const VectorX< bool > & | activeJointParams ) |
| template JointParametersT< float > momentum::skeletonStateToJointParametersRespectingActiveParameters | ( | const TransformListT< float > & | 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:
| T | The scalar type (float or double) |
| [in] | state | The transform list to convert |
| [in] | skeleton | The skeleton defining joint hierarchy and properties |
| [in] | activeJointParams | Boolean array indicating which joint parameters are active. Size should be skeleton.joints.size() * kParametersPerJoint |
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().
| 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.
| sourceCharacter | Character with skinned locators to convert |
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().
| template void momentum::skinWithBlendShapes | ( | const Character & | character, |
| const SkeletonStateT< double > & | state, | ||
| const BlendWeightsT< double > & | modelParams, | ||
| MeshT< double > & | outputMesh ) |
References skinWithBlendShapes().
| template void momentum::skinWithBlendShapes | ( | const Character & | character, |
| const SkeletonStateT< double > & | state, | ||
| const ModelParametersT< double > & | modelParams, | ||
| MeshT< double > & | outputMesh ) |
References skinWithBlendShapes().
| template void momentum::skinWithBlendShapes | ( | const Character & | character, |
| const SkeletonStateT< float > & | state, | ||
| const BlendWeightsT< float > & | modelParams, | ||
| MeshT< float > & | outputMesh ) |
References skinWithBlendShapes().
| template void momentum::skinWithBlendShapes | ( | const Character & | character, |
| const SkeletonStateT< float > & | state, | ||
| const ModelParametersT< float > & | modelParams, | ||
| MeshT< float > & | outputMesh ) |
References skinWithBlendShapes().
| 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.
| character | Character containing mesh, blend shapes, and skinning data | |
| state | Current pose of the skeleton | |
| blendWeights | Weights for each blend shape | |
| [out] | outputMesh | Resulting 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.
| 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.
| character | Character containing mesh, blend shapes, and skinning data | |
| state | Current pose of the skeleton | |
| modelParams | Model parameters; blend shape weights are extracted from these | |
| [out] | outputMesh | Resulting 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().
| template TransformT< double > momentum::slerp | ( | const TransformT< double > & | , |
| const TransformT< double > & | , | ||
| double | ) |
| template TransformT< float > momentum::slerp | ( | const TransformT< float > & | , |
| const TransformT< float > & | , | ||
| float | ) |
| TransformT< T > momentum::slerp | ( | const TransformT< T > & | t1, |
| const TransformT< T > & | t2, | ||
| T | weight ) |
Spherical linear interpolation between two transforms.
| weight | Interpolation 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.
| 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.
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().
| 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.
| mesh | The mesh with vertices, faces, texcoords, and texcoord_faces. |
| texture | RGB texture image data. |
| regionColors | RGB colors defining the "inside" region. |
| numBinarySearchSteps | Number of binary search iterations for edge crossing precision (8 gives 1/256 sub-pixel accuracy). |
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.
|
inline |
Computes the square of a value.
Convenience function for x * x
Definition at line 47 of file utility.h.
Referenced by momentum::CollisionErrorFunctionStatelessT< T >::getError(), momentum::CollisionErrorFunctionT< T >::getError(), momentum::DistanceErrorFunctionT< T >::getError(), momentum::JointToJointDistanceErrorFunctionT< T >::getError(), momentum::PlaneCollisionErrorFunctionT< T >::getError(), momentum::CollisionErrorFunctionStatelessT< T >::getGradient(), momentum::CollisionErrorFunctionT< T >::getGradient(), momentum::DistanceErrorFunctionT< T >::getGradient(), momentum::JointToJointDistanceErrorFunctionT< T >::getGradient(), momentum::PlaneCollisionErrorFunctionT< T >::getGradient(), momentum::ProjectionErrorFunctionT< T >::getGradient(), momentum::CollisionErrorFunctionStatelessT< T >::getJacobian(), momentum::CollisionErrorFunctionT< T >::getJacobian(), momentum::DistanceErrorFunctionT< T >::getJacobian(), momentum::JointToJointDistanceErrorFunctionT< T >::getJacobian(), momentum::PlaneCollisionErrorFunctionT< T >::getJacobian(), momentum::ProjectionErrorFunctionT< T >::getJacobian(), hessianInverseTimes(), and quaternionToEuler().
| float momentum::sqr | ( | float | val | ) |
Definition at line 70 of file fully_differentiable_body_ik.cpp.
| template std::tuple< ParameterTransformT< double >, ParameterLimits > momentum::subsetParameterTransform | ( | const ParameterTransformT< double > & | paramTransform, |
| const ParameterLimits & | parameterLimits, | ||
| const ParameterSet & | paramSet ) |
| template std::tuple< ParameterTransformT< float >, ParameterLimits > momentum::subsetParameterTransform | ( | const ParameterTransformT< float > & | paramTransform, |
| const ParameterLimits & | parameterLimits, | ||
| const ParameterSet & | paramSet ) |
|
nodiscard |
Return a parameter mapping that only includes the listed parameters.
Definition at line 294 of file parameter_transform.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::ParameterTransformT< T >::blendShapeParameters, Ellipsoid, momentum::ParameterTransformT< T >::faceExpressionParameters, HalfPlane, kInvalidIndex, LimitTypeCount, Linear, LinearJoint, MinMax, MinMaxJoint, MinMaxJointPassive, MT_THROW, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::numAllModelParameters(), momentum::ParameterTransformT< T >::numJointParameters(), momentum::ParameterTransformT< T >::offsets, momentum::PoseConstraint::parameterIdValue, momentum::ParameterTransformT< T >::parameterSets, momentum::ParameterTransformT< T >::poseConstraints, momentum::ParameterTransformT< T >::skinnedLocatorParameters, and momentum::ParameterTransformT< T >::transform.
Referenced by addBlendShapeParameters(), addCameraIntrinsicsParameters(), addFaceExpressionParameters(), addSkinnedLocatorParameters(), momentum::Character::bake(), momentum::Character::bakeBlendShape(), momentum::ParameterTransformT< T >::simplify(), and momentum::Character::simplifyParameterTransform().
| 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().
| T momentum::times_parameterTransform_times_v | ( | const T & | value, |
| const size_t | jointParamIdx, | ||
| const ParameterTransform & | parameterTransform, | ||
| Eigen::Ref< const Eigen::VectorX< T2 > > | v ) |
Definition at line 57 of file ceres_utility.h.
References momentum::ParameterTransformT< T >::transform.
Referenced by momentum::FullyDifferentiableProjectionErrorFunctionT< T >::constraintGradient_dot().
|
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.
|
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().
|
inline |
Converts the save option to the GLTF sampler interpolation type.
Definition at line 268 of file accessor_utils.h.
Referenced by createSampler(), and createSampler().
| void momentum::toJson | ( | const Eigen::MatrixBase< Derived > & | mat, |
| nlohmann::json & | j ) |
Definition at line 30 of file json_utils.h.
| 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.
| inputString | The string to tokenize. |
| delimiters | The set of single-byte delimiter characters. |
| trim | When 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. |
Definition at line 42 of file string.cpp.
References trim().
Referenced by loadTrc(), parseParameterSets(), parseParameterTransform(), and parsePoseConstraints().
| 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.
| inputString | The string_view to tokenize. |
| delimiters | The set of single-byte delimiter characters. |
| trim | When 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. |
inputString. Definition at line 69 of file string.cpp.
References trim().
|
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.
| template Quaternion< double > momentum::toMomentumQuaternion | ( | const Quaternion< double > & | , |
| const CoordinateSystem & | ) |
| template Quaternion< float > momentum::toMomentumQuaternion | ( | const Quaternion< float > & | , |
| const CoordinateSystem & | ) |
|
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.
|
inlinenodiscardnoexcept |
Definition at line 57 of file coordinate_utils.h.
Referenced by createCollisionBox(), createCollisionCapsule(), createCollisionEllipsoid(), and createJoint().
| template Matrix3< double > momentum::toMomentumRotationMatrix | ( | const Matrix3< double > & | , |
| const CoordinateSystem & | ) |
| template Matrix3< float > momentum::toMomentumRotationMatrix | ( | const Matrix3< float > & | , |
| const CoordinateSystem & | ) |
|
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.
|
inlinenodiscardnoexcept |
Definition at line 22 of file coordinate_utils.h.
References kGltfCoordinateSystem, and toMomentumVector().
Referenced by addBlendShapes(), createCollisionBox(), createCollisionCapsule(), createCollisionEllipsoid(), createJoint(), and createLocator().
|
inline |
Definition at line 30 of file coordinate_utils.h.
References kGltfCoordinateSystem, kMomentumCoordinateSystem, and scaleFactor< float >().
| template Vector3< double > momentum::toMomentumVector | ( | const Vector3< double > & | , |
| const CoordinateSystem & | ) |
| template Vector3< float > momentum::toMomentumVector | ( | const Vector3< float > & | , |
| const CoordinateSystem & | ) |
|
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().
| template Vector3< double > momentum::toMomentumVector3 | ( | const Vector3< double > & | vec, |
| UpVector | up, | ||
| const std::string & | unitStr ) |
| template Vector3< double > momentum::toMomentumVector3 | ( | const Vector3< double > & | vec, |
| UpVector | up, | ||
| Unit | unit ) |
| template Vector3< float > momentum::toMomentumVector3 | ( | const Vector3< float > & | vec, |
| UpVector | up, | ||
| const std::string & | unitStr ) |
| template Vector3< float > momentum::toMomentumVector3 | ( | const Vector3< float > & | vec, |
| UpVector | up, | ||
| Unit | unit ) |
|
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.
| T | The numeric type of the input and output 3D vectors. |
| [in] | vec | The 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] | unitStr | The string representation of the units of measurement used in the input marker coordinate system. |
Definition at line 100 of file conversions.cpp.
References toMomentumVector3().
|
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.
| T | The numeric type of the input and output 3D vectors. |
| [in] | vec | The 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). |
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().
|
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().
|
nodiscard |
Definition at line 16 of file parameter_limits.cpp.
References Ellipsoid, HalfPlane, LimitTypeCount, Linear, LinearJoint, MinMax, MinMaxJoint, and MinMaxJointPassive.
Referenced by parameterLimitsToJson(), momentum::PointTriangleVertexErrorFunctionT< T >::PointTriangleVertexErrorFunctionT(), and toMomentumVector3().
|
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.
| 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.
| markerData | Marker observations for each frame |
| character | The character model with fixed identity parameters |
| initialMotion | Initial parameter values (parameters x frames) |
| config | Tracking configuration settings |
| frameIndices | Vector of specific frame indices to solve |
| isContinuous | Whether to use temporal coherence between 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().
| 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.
| [in] | markerData | Input marker data. |
| [in] | character | Character definition. |
| [in] | globalParams | Calibrated identity info; could be repurposed to pass in an initial pose too. |
| [in] | config | Solving options. |
| [in] | frameIndices | Frame indices of the frames to be solved. |
| [in] | isContinuous | Whether to use temporal coherence between frames. |
| 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.
| markerData | Marker observations for each frame |
| character | The character model with calibrated identity parameters |
| globalParams | Fixed global parameters (scaling, locators, etc.) from calibration |
| config | Tracking configuration settings |
| frameStride | Process every frameStride-th frame (1 = all frames) |
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().
| 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.
| [in] | markerData | Input marker data. |
| [in] | character | Character definition. |
| [in] | globalParams | Calibrated identity info; could be repurposed to pass in an initial pose too. |
| [in] | config | Solving options. |
| [in] | frameStride | Frame stride to select solver frames (ie. uniform sample). |
| 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.
| markerData | Marker observations for each frame |
| character | The character model with skeleton, locators, and parameter transform |
| globalParams | Set of global parameters to solve (scaling, locators, etc.) |
| initialMotion | Initial parameter values (parameters x frames) |
| config | Tracking configuration settings |
| frames | Vector of specific frame indices to solve |
| regularizer | Weight for regularizing changes to global parameters |
| firstFramePoseConstraintSet | Name of pose constraint set for first frame |
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.
| 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.
| markerData | Marker observations for each frame |
| character | The character model with skeleton, locators, and parameter transform |
| globalParams | Set of global parameters to solve (scaling, locators, etc.) |
| initialMotion | Initial parameter values (parameters x frames) |
| config | Tracking configuration settings |
| regularizer | Weight for regularizing changes to global parameters |
| frameStride | Process every frameStride-th frame (1 = all frames) |
| firstFramePoseConstraintSet | Name of pose constraint set for first frame |
Definition at line 228 of file marker_tracker.cpp.
References MT_CHECK, and trackSequence().
Referenced by calibrateLocators(), calibrateModel(), refineMotion(), and trackSequence().
| 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.
| [in] | markerData | Marker data. |
| [in] | character | Character definition. |
| [in] | globalParams | Bitset to indicate global parameters to solve for; could be all zeros for post-process a motion. |
| [in] | initialMotion | Initial 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] | config | Solving options. |
| [in] | frames | List of frames to solve for. |
| [in] | firstFramePoseConstraintSet | Name of a pose constraint set to use for the first frame |
| 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.
| [in] | markerData | Marker data. |
| [in] | character | Character definition. |
| [in] | globalParams | Bitset to indicate global parameters to solve for; could be all zeros for post-process a motion. |
| [in] | initialMotion | Initial 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] | config | Solving options. |
| [in] | frameStride | Frame stride to select solver frames (ie. uniform sample). |
| [in] | firstFramePoseConstraintSet | Name of a pose constraint set to use for the first frame |
| template TransformT< double > momentum::transformAtoB | ( | size_t | jointA, |
| size_t | jointB, | ||
| const Skeleton & | referenceSkeleton, | ||
| const SkeletonStateT< double > & | skelState ) |
| template TransformT< float > momentum::transformAtoB | ( | size_t | jointA, |
| size_t | jointB, | ||
| const Skeleton & | referenceSkeleton, | ||
| const SkeletonStateT< float > & | skelState ) |
| 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.
| jointA | Source joint index |
| jointB | Target joint index |
| referenceSkeleton | The skeleton structure defining joint hierarchy |
| skelState | Current state of the skeleton |
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.
|
nodiscard |
Transforms the character (mesh and skeleton) by the desired transformation matrix.
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.
| template std::vector< ModelParametersT< double > > momentum::transformPose | ( | const Character & | character, |
| const std::vector< ModelParametersT< double > > & | modelParameters, | ||
| const TransformT< double > & | transform ) |
| template std::vector< ModelParametersT< float > > momentum::transformPose | ( | const Character & | character, |
| const std::vector< ModelParametersT< float > > & | modelParameters, | ||
| const TransformT< float > & | transform ) |
| 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.
| [in] | ensureContinuousOutput | If 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().
| 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().
| template std::vector< ModelParametersT< double > > momentum::transformPose | ( | const Character & | characterFull, |
| const std::vector< ModelParametersT< double > > & | modelParametersFull, | ||
| const std::vector< TransformT< double > > & | transforms, | ||
| bool | ensureContinuousOutput ) |
| template std::vector< ModelParametersT< float > > momentum::transformPose | ( | const Character & | characterFull, |
| const std::vector< ModelParametersT< float > > & | modelParametersFull, | ||
| const std::vector< TransformT< float > > & | transforms, | ||
| bool | ensureContinuousOutput ) |
| 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.
|
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.
| text | The string to trim (must be null-terminated, must not be null). |
| whiteChars | Null-terminated set of single-byte characters to strip from both ends. |
Definition at line 37 of file string.cpp.
References trim().
| template std::string momentum::trim | ( | const std::string & | text, |
| const char * | whiteChars ) |
| template std::string_view momentum::trim | ( | const std::string_view & | text, |
| const char * | whiteChars ) |
|
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.
| StringType | The 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. |
| text | The string to trim. |
| whiteChars | Null-terminated set of single-byte characters to strip from both ends. |
Definition at line 16 of file string.cpp.
Referenced by parseParameterLimits(), parseParameterSets(), parseParameterTransform(), parsePoseConstraints(), tokenize(), tokenize(), and trim().
|
nodiscardconstexprnoexcept |
Returns 2 * pi.
Definition at line 60 of file constants.h.
References pi().
Referenced by generateCylinderMesh(), generateSphereMesh(), and momentum::MppcaT< T >::set().
|
nodiscard |
Convenience wrappers that forward to Random<>::GetSingleton().
Definition at line 326 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
Referenced by momentum::Random< Generator_ >::uniformAffine3().
|
nodiscard |
Uniformly distributed dynamic-size matrix via the global Random singleton.
See Random::uniform.
Definition at line 345 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
|
nodiscard |
Uniformly distributed dynamic-size vector via the global Random singleton.
See Random::uniform.
Definition at line 339 of file random-inl.h.
References momentum::Random< Generator_ >::GetSingleton().
|
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().
|
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().
|
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().
|
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().
|
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().
| void momentum::updateAabb | ( | axel::BoundingBox< T > & | aabb, |
| const CollisionGeometryStateT< T > & | collisionState, | ||
| size_t | index ) |
Updates an axis-aligned bounding box to encompass a collision primitive.
Definition at line 479 of file collision_geometry_state.h.
References Box, momentum::CollisionGeometryStateT< T >::boxHalfExtents, momentum::CollisionGeometryStateT< T >::direction, Ellipsoid, momentum::CollisionGeometryStateT< T >::ellipsoidRadii, momentum::CollisionGeometryStateT< T >::orientation, momentum::CollisionGeometryStateT< T >::origin, momentum::CollisionGeometryStateT< T >::radius, TaperedCapsule, momentum::CollisionGeometryStateT< T >::type, updateAabb(), updateBoxAabb(), and updateEllipsoidAabb().
| 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.
| aabb | The bounding box to update |
| originA | Origin of the capsule |
| direction | Direction vector of the capsule |
| radii | Radii 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().
| 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.
| aabb | The bounding box to update |
| center | Center of the box |
| orientation | Orientation of the box |
| halfExtents | Half extents along the box's local axes |
Definition at line 466 of file collision_geometry_state.h.
Referenced by updateAabb().
| 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).
| aabb | The bounding box to update |
| center | Center of the ellipsoid |
| orientation | Orientation of the ellipsoid |
| radii | Radii along the ellipsoid's local axes |
Definition at line 440 of file collision_geometry_state.h.
Referenced by updateAabb().
| 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().
| 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().
| [in,out] | funcs | Error functions to update. |
| [in] | iFrame | Frame 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().
| void momentum::validateColumnIndices | ( | momentum::span< const Eigen::Index > | colIndices, |
| Eigen::Index | maxEntry ) |
Validates that every entry in colIndices is in [0, maxEntry); throws otherwise.
| colIndices | Column indices to validate. |
| maxEntry | Exclusive 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().
|
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().
| template std::vector< bool > momentum::verticesToFaces< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activeVertices ) |
| template std::vector< bool > momentum::verticesToFaces< float > | ( | const MeshT< float > & | 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().
| template std::vector< bool > momentum::verticesToPolys< double > | ( | const MeshT< double > & | mesh, |
| const std::vector< bool > & | activeVertices ) |
| template std::vector< bool > momentum::verticesToPolys< float > | ( | const MeshT< float > & | mesh, |
| const std::vector< bool > & | activeVertices ) |
| std::string momentum::writeModelDefinition | ( | const Skeleton & | skeleton, |
| const ParameterTransform & | parameterTransform, | ||
| const ParameterLimits & | parameterLimits ) |
Write complete model definition file.
| skeleton | The character's skeletal structure |
| parameterTransform | Maps model parameters to joint parameters |
| parameterLimits | Constraints on model parameters (can be empty) |
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().
| std::string momentum::writeParameterLimits | ( | const ParameterLimits & | parameterLimits, |
| const Skeleton & | skeleton, | ||
| const ParameterTransform & | parameterTransform ) |
Definition at line 715 of file parameter_limits_io.cpp.
References Ellipsoid, Extrinsic, HalfPlane, momentum::SkeletonT< T >::joints, kJointParameterNames, kParametersPerJoint, LimitTypeCount, Linear, LinearJoint, MinMax, MinMaxJoint, MinMaxJointPassive, MT_CHECK_LT, momentum::ParameterTransformT< T >::name, rotationMatrixToEulerXYZ(), and toDeg().
Referenced by writeModelDefinition().
| std::string momentum::writeParameterSets | ( | const ParameterSets & | parameterSets | ) |
Definition at line 622 of file parameter_transform_io.cpp.
| std::string momentum::writeParameterTransform | ( | const ParameterTransform & | parameterTransform, |
| const Skeleton & | skeleton ) |
Definition at line 557 of file parameter_transform_io.cpp.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::SkeletonT< T >::joints, kJointParameterNames, kParametersPerJoint, MT_THROW_IF, momentum::ParameterTransformT< T >::name, momentum::ParameterTransformT< T >::offsets, and momentum::ParameterTransformT< T >::transform.
Referenced by writeModelDefinition().
| std::string momentum::writePoseConstraints | ( | const PoseConstraints & | poseConstraints | ) |
Definition at line 642 of file parameter_transform_io.cpp.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 28 of file sequence_solver_function.h.
Referenced by momentum::SequenceSolverFunctionT< T >::addErrorFunction(), momentum::SequenceSolverFunctionT< T >::addSequenceErrorFunction(), and trackSequence().
|
inlineconstexpr |
Definition at line 15 of file skeleton_utility.h.
|
inlineconstexpr |
Definition at line 16 of file skeleton_utility.h.
|
inlineconstexpr |
The glTF coordinate system: Y-up, right-handed, meters.
Definition at line 15 of file coordinate_utils.h.
Referenced by fromMomentumVec3f(), fromMomentumVec3f(), fromMomentumVec3f(), toMomentumVec3f(), and toMomentumVec3f().
|
inlineconstexpr |
Definition at line 20 of file camera_intrinsics_parameters.h.
Referenced by addCameraIntrinsicsParameters(), and getAllCameraIntrinsicsParameterSet().
|
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().
|
inlineconstexpr |
Definition at line 15 of file polygon_data.cpp.
Referenced by momentum::PolygonData::warnMessage().
|
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().
|
inlineconstexpr |
Definition at line 24 of file types.h.
Referenced by momentum::ParameterTransformT< T >::identity(), logJointParamNames(), logJointParams(), logJointParamsColumns(), parameterTransformFromJson(), parameterTransformToJson(), parseParameterTransform(), writeParameterLimits(), and writeParameterTransform().
|
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().
|
inlineconstexpr |
Maximum number of joints that can influence a single vertex.
Definition at line 19 of file skin_weights.h.
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(), applyInverseSSD(), averageTriangleSkinWeights(), calculateDWorldPos(), momentum::detail_sdf_collision::findCommonAncestorForVertex(), getInverseSSDTransformation(), loadSkinWeightsFromUsd(), momentum::Character::remapSkinnedLocators(), momentum::Character::remapSkinWeights(), momentum::SkinWeights::set(), skinnedLocatorsToLocators(), momentum::SkinningWeightIteratorT< T >::SkinningWeightIteratorT(), and momentum::SkinningWeightIteratorT< T >::SkinningWeightIteratorT().
|
inlineconstexpr |
Momentum's canonical coordinate system: Y-up, right-handed, centimeters.
Definition at line 44 of file coordinate_system.h.
Referenced by fromMomentumQuaternion(), fromMomentumRotationMatrix(), fromMomentumVec3f(), fromMomentumVec3f(), fromMomentumVector(), toMomentumQuaternion(), toMomentumRotationMatrix(), toMomentumVec3f(), and toMomentumVector().
|
constexpr |
Definition at line 22 of file openfbx_loader.h.
|
constexpr |
Definition at line 21 of file openfbx_loader.h.
|
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().
|
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.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 21 of file camera_intrinsics_parameters.h.
Referenced by addCameraIntrinsicsParameters(), momentum::CameraIntrinsicsMapping< T >::CameraIntrinsicsMapping(), extractCameraIntrinsics(), and setCameraIntrinsics().
|
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().
| const std::array<Vector3<T>, 3> momentum::RotationAxis |
Definition at line 16 of file joint_state.cpp.
Referenced by momentum::JointStateT< T >::set().