16#include <pxr/usd/usd/prim.h>
17#include <pxr/usd/usd/stage.h>
18#include <pxr/usd/usdSkel/skeleton.h>
25PXR_NAMESPACE_USING_DIRECTIVE
40 const UsdStageRefPtr& stage,
41 UsdSkelSkeleton& skelPrim,
43 std::span<const SkeletonState> skeletonStates,
55 const UsdStageRefPtr& stage,
66std::tuple<MotionParameters, IdentityParameters, float>
loadMotionFromUsd(
const UsdPrim& prim);
78 const UsdStageRefPtr& stage,
79 const SdfPath& skelRootPath,
81 std::span<
const std::vector<Marker>> markerSequence);
SkeletonT< float > Skeleton
std::tuple< std::vector< std::string >, JointParameters > IdentityParameters
A tuple of skeleton joint names and identity parameters.
std::tuple< std::vector< std::string >, Eigen::MatrixXf > MotionParameters
A tuple of model parameter names and a matrix of poses across a sequence of frames.
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.
void saveMotionToUsd(const UsdPrim &prim, float fps, const MotionParameters &motion, const IdentityParameters &offsets)
Save model-parameter motion as 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.
std::tuple< MotionParameters, IdentityParameters, float > loadMotionFromUsd(const UsdPrim &prim)
Load model-parameter motion from custom attributes on a USD prim.
MarkerSequence loadMarkerSequenceFromUsd(const UsdStageRefPtr &stage)
Load marker sequence from animated Xform prims.
std::tuple< std::vector< SkeletonState >, std::vector< float > > loadSkeletonStatesFromUsd(const UsdStageRefPtr &stage, const Skeleton &skeleton)
Load skeleton states from a USD stage.
All frames from a single motion capture sequence for one subject (actor).