ExMujoco.Types.Frame (ExMujoco v0.2.2)

Copy Markdown View Source

mjtFrame_ — frame visualization. From MuJoCo's headers, as numbers. All 9 values carry a number in the header.

Summary

Functions

mjFRAME_BODY is 1 — body frames.

mjFRAME_CAMERA is 4 — camera frames.

mjFRAME_CONTACT is 6 — contact frames.

mjFRAME_GEOM is 2 — geom frames.

mjFRAME_LIGHT is 5 — light frames.

mjNFRAME is 8 — number of visualization frames.

mjFRAME_NONE is 0 — no frames.

mjFRAME_SITE is 3 — site frames.

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.

mjFRAME_WORLD is 7 — world frame.

Types

t()

@type t() :: integer()

Functions

body()

@spec body() :: 1

mjFRAME_BODY is 1 — body frames.

camera()

@spec camera() :: 4

mjFRAME_CAMERA is 4 — camera frames.

contact()

@spec contact() :: 6

mjFRAME_CONTACT is 6 — contact frames.

geom()

@spec geom() :: 2

mjFRAME_GEOM is 2 — geom frames.

light()

@spec light() :: 5

mjFRAME_LIGHT is 5 — light frames.

mjnframe()

@spec mjnframe() :: 8

mjNFRAME is 8 — number of visualization frames.

none()

@spec none() :: 0

mjFRAME_NONE is 0 — no frames.

site()

@spec site() :: 3

mjFRAME_SITE is 3 — site frames.

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.

world()

@spec world() :: 7

mjFRAME_WORLD is 7 — world frame.