ExMujoco.Types.ConstraintState (ExMujoco v0.1.1)

Copy Markdown View Source

mjtConstraintState, from MuJoCo's headers, as numbers. All 5 values carry a number in the header.

Summary

Functions

mjCNSTRSTATE_CONE is 4.

mjCNSTRSTATE_LINEARNEG is 2.

mjCNSTRSTATE_LINEARPOS is 3.

mjCNSTRSTATE_QUADRATIC is 1.

mjCNSTRSTATE_SATISFIED is 0.

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

t()

@type t() :: integer()

Functions

cone()

@spec cone() :: 4

mjCNSTRSTATE_CONE is 4.

linearneg()

@spec linearneg() :: 2

mjCNSTRSTATE_LINEARNEG is 2.

linearpos()

@spec linearpos() :: 3

mjCNSTRSTATE_LINEARPOS is 3.

quadratic()

@spec quadratic() :: 1

mjCNSTRSTATE_QUADRATIC is 1.

satisfied()

@spec satisfied() :: 0

mjCNSTRSTATE_SATISFIED is 0.

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.