mjtConstraintState — constraint state. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
Summary
Functions
mjCNSTRSTATE_CONE is 4 — squared distance to cone cost (elliptic contact).
mjCNSTRSTATE_LINEARNEG is 2 — linear cost, negative side (friction).
mjCNSTRSTATE_LINEARPOS is 3 — linear cost, positive side (friction).
mjCNSTRSTATE_QUADRATIC is 1 — quadratic cost (equality, friction, limit, contact).
mjCNSTRSTATE_SATISFIED is 0 — constraint satisfied, zero cost (limit, contact).
The name behind an integer. An atom is already one.
The integer behind a name. An integer is already one.
Every value, as {name, integer}, in the order the header lists them.
Types
@type t() :: integer()
Functions
@spec cone() :: 4
mjCNSTRSTATE_CONE is 4 — squared distance to cone cost (elliptic contact).
@spec linearneg() :: 2
mjCNSTRSTATE_LINEARNEG is 2 — linear cost, negative side (friction).
@spec linearpos() :: 3
mjCNSTRSTATE_LINEARPOS is 3 — linear cost, positive side (friction).
@spec quadratic() :: 1
mjCNSTRSTATE_QUADRATIC is 1 — quadratic cost (equality, friction, limit, contact).
@spec satisfied() :: 0
mjCNSTRSTATE_SATISFIED is 0 — constraint satisfied, zero cost (limit, contact).
The name behind an integer. An atom is already one.
The integer behind a name. An integer is already one.
Every value, as {name, integer}, in the order the header lists them.