ExMujoco.Types.SleepState (ExMujoco v0.1.1)

Copy Markdown View Source

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

Summary

Functions

mjS_ASLEEP is 0.

mjS_AWAKE is 1.

mjS_STATIC is -1.

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

asleep()

@spec asleep() :: 0

mjS_ASLEEP is 0.

awake()

@spec awake() :: 1

mjS_AWAKE is 1.

static()

@spec static() :: -1

mjS_STATIC is -1.

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.