Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
parameter_limits.h File Reference
#include <momentum/character/fwd.h>
#include <momentum/character/types.h>
#include <momentum/common/memory.h>
#include <momentum/math/utility.h>
#include <array>
#include <cstring>

Go to the source code of this file.

Classes

struct  momentum::LimitMinMax
struct  momentum::LimitMinMaxJoint
struct  momentum::LimitLinear
 Linear relationship between parameters: p_0 = s * p_1 - o. More...
struct  momentum::LimitLinearJoint
struct  momentum::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  momentum::LimitHalfPlane
 Constraint: (p1, p2) ยท (normal) - offset >= 0. More...
union  momentum::LimitData
struct  momentum::ParameterLimit

Namespaces

namespace  momentum

Typedefs

using momentum::ParameterLimits = std::vector<ParameterLimit>

Enumerations

enum  momentum::LimitType {
  momentum::MinMax , momentum::MinMaxJoint , momentum::MinMaxJointPassive , momentum::Linear ,
  momentum::LinearJoint , momentum::Ellipsoid , momentum::HalfPlane , momentum::LimitTypeCount
}

Functions

std::string_view momentum::toString (const LimitType type)
JointParameters momentum::applyPassiveJointParameterLimits (const ParameterLimits &limits, const JointParameters &jointParams)
 Only processes MinMaxJointPassive limits, clamping parameters to their ranges.
ParameterLimits momentum::getPoseConstraintParameterLimits (const std::string &name, const ParameterTransform &pt, float weight=1.0f)
 Creates MinMax limits from a pose constraint.
bool momentum::isInRange (const LimitLinear &limit, float value)
 If rangeMin and rangeMax are both 0, the limit applies to all values.
bool momentum::isInRange (const LimitLinearJoint &limit, float value)
 If rangeMin and rangeMax are both 0, the limit applies to all values.