ExMujoco.Types.Joint (ExMujoco v0.2.3)

Copy Markdown View Source

mjtJoint — type of degree of freedom. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjJNT_BALL is 1 — orientation (quat) relative to parent (4).

mjJNT_FREE is 0 — global position and orientation (quat) (7).

mjJNT_HINGE is 3 — rotation angle (rad) around body-fixed axis (1).

mjJNT_SLIDE is 2 — sliding distance along body-fixed axis (1).

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

ball()

@spec ball() :: 1

mjJNT_BALL is 1 — orientation (quat) relative to parent (4).

free()

@spec free() :: 0

mjJNT_FREE is 0 — global position and orientation (quat) (7).

hinge()

@spec hinge() :: 3

mjJNT_HINGE is 3 — rotation angle (rad) around body-fixed axis (1).

slide()

@spec slide() :: 2

mjJNT_SLIDE is 2 — sliding distance along body-fixed axis (1).

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.