Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
json_utils.cpp File Reference
#include "momentum/io/common/json_utils.h"
#include "momentum/character/character.h"
#include "momentum/common/log.h"
#include "momentum/math/constants.h"
#include "momentum/math/utility.h"
#include <nlohmann/json.hpp>
#include <cmath>
#include <exception>
#include <optional>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

void momentum::parameterSetsToJson (const Character &character, nlohmann::json &j)
ParameterSets momentum::parameterSetsFromJson (const Character &character, const nlohmann::json &j)
void momentum::poseConstraintsToJson (const Character &character, nlohmann::json &j)
PoseConstraints momentum::poseConstraintsFromJson (const Character &character, const nlohmann::json &j)
void momentum::parameterTransformToJson (const Character &character, nlohmann::json &j)
ParameterTransform momentum::parameterTransformFromJson (const Character &character, const nlohmann::json &j)
void momentum::jointPhysicalPropertiesToJson (const JointPhysicalProperties &jointProperties, nlohmann::json &j)
 Serializes one joint's physical mass properties.
JointPhysicalProperties momentum::jointPhysicalPropertiesFromJson (const nlohmann::json &j, const std::string &jointName, size_t jointIndex)
 Parses one joint's physical mass properties from JSON.
std::string momentum::jointPhysicalPropertiesToJsonString (const JointPhysicalProperties &jointProperties)
 Serializes one joint's physical mass properties to its canonical on-disk JSON string.
std::optional< JointPhysicalProperties > momentum::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 momentum::parameterLimitsToJson (const Character &character, nlohmann::json &j)
ParameterLimits momentum::parameterLimitsFromJson (const Character &character, const nlohmann::json &j)