ExMujoco.Types.CatBit (ExMujoco v0.2.3)

Copy Markdown View Source

mjtCatBit_ — bitflags for mjvGeom category. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjCAT_ALL is 7 — select all categories.

mjCAT_DECOR is 4 — decorative geoms.

mjCAT_DYNAMIC is 2 — model elements in all other bodies.

mjCAT_STATIC is 1 — model elements in body 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

all()

@spec all() :: 7

mjCAT_ALL is 7 — select all categories.

decor()

@spec decor() :: 4

mjCAT_DECOR is 4 — decorative geoms.

dynamic()

@spec dynamic() :: 2

mjCAT_DYNAMIC is 2 — model elements in all other bodies.

static()

@spec static() :: 1

mjCAT_STATIC is 1 — model elements in body 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.