ExMujoco.Types.CamLight (ExMujoco v0.2.3)

Copy Markdown View Source

mjtCamLight — tracking mode for camera and light. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.

Summary

Functions

mjCAMLIGHT_FIXED is 0 — pos and rot fixed in body.

mjCAMLIGHT_TARGETBODY is 3 — pos fixed in body, rot tracks target body.

mjCAMLIGHT_TARGETBODYCOM is 4 — pos fixed in body, rot tracks target subtree com.

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

mjCAMLIGHT_TRACK is 1 — pos tracks body, rot fixed in global.

mjCAMLIGHT_TRACKCOM is 2 — pos tracks subtree com, rot fixed in body.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

fixed()

@spec fixed() :: 0

mjCAMLIGHT_FIXED is 0 — pos and rot fixed in body.

targetbody()

@spec targetbody() :: 3

mjCAMLIGHT_TARGETBODY is 3 — pos fixed in body, rot tracks target body.

targetbodycom()

@spec targetbodycom() :: 4

mjCAMLIGHT_TARGETBODYCOM is 4 — pos fixed in body, rot tracks target subtree com.

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.

track()

@spec track() :: 1

mjCAMLIGHT_TRACK is 1 — pos tracks body, rot fixed in global.

trackcom()

@spec trackcom() :: 2

mjCAMLIGHT_TRACKCOM is 2 — pos tracks subtree com, rot fixed in body.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.