ExMujoco.Types.LRMode (ExMujoco v0.2.2)

Copy Markdown View Source

mjtLRMode — mode for actuator length range computation. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjLRMODE_ALL is 3 — process all actuators.

mjLRMODE_MUSCLE is 1 — process muscle actuators.

mjLRMODE_MUSCLEUSER is 2 — process muscle and user actuators.

mjLRMODE_NONE is 0 — do not process any actuators.

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

all()

@spec all() :: 3

mjLRMODE_ALL is 3 — process all actuators.

muscle()

@spec muscle() :: 1

mjLRMODE_MUSCLE is 1 — process muscle actuators.

muscleuser()

@spec muscleuser() :: 2

mjLRMODE_MUSCLEUSER is 2 — process muscle and user actuators.

none()

@spec none() :: 0

mjLRMODE_NONE is 0 — do not process any actuators.

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.