Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
bvh_io.cpp File Reference
#include "momentum/io/bvh/bvh_io.h"
#include "momentum/character/character.h"
#include "momentum/character/parameter_transform.h"
#include "momentum/character/skeleton.h"
#include "momentum/common/exception.h"
#include "momentum/io/common/stream_utils.h"
#include "momentum/math/constants.h"
#include "momentum/math/utility.h"
#include <Eigen/Geometry>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

Character momentum::loadBvhCharacter (const filesystem::path &filepath)
 Loads a character from a BVH (BioVision Hierarchy) file.
Character momentum::loadBvhCharacter (std::span< const std::byte > bytes)
 Loads a character from a BVH file buffer.
std::tuple< Character, MotionParameters, float > momentum::loadBvhCharacterWithMotion (const filesystem::path &filepath)
 Loads a character with motion data from a BVH (BioVision Hierarchy) file.
std::tuple< Character, MotionParameters, float > momentum::loadBvhCharacterWithMotion (std::span< const std::byte > bytes)
 Loads a character with motion data from a BVH file buffer.
void momentum::saveBvhCharacter (const filesystem::path &filepath, const Character &character)
 Saves a character to a BVH file with a single rest-pose frame.
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.
std::vector< std::byte > momentum::saveBvhCharacterWithMotion (const Character &character, const MotionParameters &motionParams, float fps)
 Saves a character with motion data to a byte buffer in BVH format.