ExMujoco.Types.Orientation (ExMujoco v0.1.1)

Copy Markdown View Source

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

Summary

Functions

mjORIENTATION_AXISANGLE is 1.

mjORIENTATION_EULER is 4.

mjORIENTATION_QUAT is 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.

mjORIENTATION_XYAXES is 2.

mjORIENTATION_ZAXIS is 3.

Types

t()

@type t() :: integer()

Functions

axisangle()

@spec axisangle() :: 1

mjORIENTATION_AXISANGLE is 1.

euler()

@spec euler() :: 4

mjORIENTATION_EULER is 4.

quat()

@spec quat() :: 0

mjORIENTATION_QUAT is 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.

xyaxes()

@spec xyaxes() :: 2

mjORIENTATION_XYAXES is 2.

zaxis()

@spec zaxis() :: 3

mjORIENTATION_ZAXIS is 3.