147 const std::string& name,
149 float weight = 1.0f);
#define MOMENTUM_DEFINE_POINTERS(x)
Define the standard set of smart-pointer type aliases for type x.
Vector2< float > Vector2f
Affine3< float > Affine3f
std::vector< ParameterLimit > ParameterLimits
JointParameters applyPassiveJointParameterLimits(const ParameterLimits &limits, const JointParameters &jointParams)
Only processes MinMaxJointPassive limits, clamping parameters to their ranges.
ParameterTransformT< float > ParameterTransform
bool isApprox(T l, T r, T eps=Eps< T >(1e-4, 1e-6)) noexcept
Determines if two values are approximately equal within a given tolerance.
JointParametersT< float > JointParameters
bool isInRange(const LimitLinear &limit, float value)
If rangeMin and rangeMax are both 0, the limit applies to all values.
Vector3< float > Vector3f
ParameterLimits getPoseConstraintParameterLimits(const std::string &name, const ParameterTransform &pt, const float weight)
Creates MinMax limits from a pose constraint.
std::string_view toString(const LimitType type)
Constrains a point (offset in parent joint's frame) to lie on the surface of an ellipsoid defined in ...
size_t parent
Joint whose frame the constrained point is defined in.
Affine3f ellipsoidInv
Cached inverse of ellipsoid.
Vector3f offset
Constrained point's offset in parent joint's local frame.
Affine3f ellipsoid
Maps the unit sphere to the constraint ellipsoid (in ellipsoidParent's frame).
size_t ellipsoidParent
Joint whose frame the ellipsoid is defined in.
Constraint: (p1, p2) ยท (normal) - offset >= 0.
float rangeMax
Non-inclusive.
float rangeMin
Range where limit applies (in target parameter values).
size_t referenceJointParameter
size_t referenceJointIndex
size_t targetJointParameter
Linear relationship between parameters: p_0 = s * p_1 - o.
float rangeMin
Range where limit applies (in target parameter values).
float rangeMax
Non-inclusive.
size_t jointParameter
One of [tx, ty, tz, rx, ry, rz, sc].
Vector2f limits
[min, max]
Vector2f limits
[min, max]
bool operator==(const ParameterLimit ¶meterLimit) const
bool operator==(const LimitData &limitData) const
Compares raw memory.
LimitData & operator=(LimitData &&rhs) noexcept
LimitData(LimitData &&rhs) noexcept
LimitMinMaxJoint minMaxJoint
LimitData & operator=(const LimitData &rhs)
LimitData()
Initializes all data to zero.
LimitLinearJoint linearJoint
std::array< unsigned char, 512 > rawData
For memory operations.