Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
usd_io.h File Reference
#include <momentum/character/fwd.h>
#include <momentum/character/marker.h>
#include <momentum/character/skeleton_state.h>
#include <momentum/character/types.h>
#include <momentum/common/filesystem.h>
#include <momentum/io/file_save_options.h>
#include <momentum/math/types.h>
#include <cstddef>
#include <span>
#include <string>
#include <tuple>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

Character momentum::loadUsdCharacter (const filesystem::path &inputPath)
 Load a USD character from a local file path.
Character momentum::loadUsdCharacter (std::span< const std::byte > inputSpan)
 Load a USD character from a buffer.
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.
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.
void momentum::saveUsd (const filesystem::path &filename, const Character &character, const FileSaveOptions &options=FileSaveOptions())
 Save a character to a USD file.
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.
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.
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.
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.
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.
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.
MarkerSequence momentum::loadUsdMarkerSequence (const filesystem::path &inputPath)
 Load a marker sequence from a USD file.