ExMujoco.Types.CamOutBit (ExMujoco v0.2.2)

Copy Markdown View Source

mjtCamOutBit — camera output type bitflags. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.

Summary

Functions

mjCAMOUT_DEPTH is 2 — depth image (distance from camera plane).

mjCAMOUT_DIST is 4 — distance image (distance from camera origin).

mjNCAMOUT is 5 — number of camera output types.

mjCAMOUT_NORMAL is 8 — normal image.

mjCAMOUT_RGB is 1 — RGB image.

mjCAMOUT_SEG is 16 — segmentation image.

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

depth()

@spec depth() :: 2

mjCAMOUT_DEPTH is 2 — depth image (distance from camera plane).

dist()

@spec dist() :: 4

mjCAMOUT_DIST is 4 — distance image (distance from camera origin).

mjncamout()

@spec mjncamout() :: 5

mjNCAMOUT is 5 — number of camera output types.

normal()

@spec normal() :: 8

mjCAMOUT_NORMAL is 8 — normal image.

rgb()

@spec rgb() :: 1

mjCAMOUT_RGB is 1 — RGB image.

seg()

@spec seg() :: 16

mjCAMOUT_SEG is 16 — segmentation image.

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.