ExMujoco.Types.InertiaFromGeom (ExMujoco v0.2.3)

Copy Markdown View Source

mjtInertiaFromGeom — whether to infer body inertias from child geoms. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.

Summary

Functions

mjINERTIAFROMGEOM_AUTO is 2 — use only if inertial element is missing.

mjINERTIAFROMGEOM_FALSE is 0 — do not use; inertial element required.

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

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

mjINERTIAFROMGEOM_TRUE is 1 — always use; overwrite inertial element.

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

Types

t()

@type t() :: integer()

Functions

auto()

@spec auto() :: 2

mjINERTIAFROMGEOM_AUTO is 2 — use only if inertial element is missing.

false_()

@spec false_() :: 0

mjINERTIAFROMGEOM_FALSE is 0 — do not use; inertial element required.

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.

true_()

@spec true_() :: 1

mjINERTIAFROMGEOM_TRUE is 1 — always use; overwrite inertial element.

values()

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

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