ExMujoco.Types.Orientation (ExMujoco v0.2.2)

Copy Markdown View Source

mjtOrientation — type of orientation specifier. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.

Summary

Functions

mjORIENTATION_AXISANGLE is 1 — axis and angle.

mjORIENTATION_EULER is 4 — Euler angles.

mjORIENTATION_QUAT is 0 — quaternion.

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 — x and y axes.

mjORIENTATION_ZAXIS is 3 — z axis (minimal rotation).

Types

t()

@type t() :: integer()

Functions

axisangle()

@spec axisangle() :: 1

mjORIENTATION_AXISANGLE is 1 — axis and angle.

euler()

@spec euler() :: 4

mjORIENTATION_EULER is 4 — Euler angles.

quat()

@spec quat() :: 0

mjORIENTATION_QUAT is 0 — quaternion.

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 — x and y axes.

zaxis()

@spec zaxis() :: 3

mjORIENTATION_ZAXIS is 3 — z axis (minimal rotation).