ExMujoco.Types.Stage (ExMujoco v0.2.2)

Copy Markdown View Source

mjtStage — computation stage. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjSTAGE_ACC is 3 — acceleration/force-dependent computations.

mjSTAGE_NONE is 0 — no computations.

mjSTAGE_POS is 1 — position-dependent computations.

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.

mjSTAGE_VEL is 2 — velocity-dependent computations.

Types

t()

@type t() :: integer()

Functions

acc()

@spec acc() :: 3

mjSTAGE_ACC is 3 — acceleration/force-dependent computations.

none()

@spec none() :: 0

mjSTAGE_NONE is 0 — no computations.

pos()

@spec pos() :: 1

mjSTAGE_POS is 1 — position-dependent computations.

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.

vel()

@spec vel() :: 2

mjSTAGE_VEL is 2 — velocity-dependent computations.