ExMujoco.Types.Warning (ExMujoco v0.2.2)

Copy Markdown View Source

mjtWarning — warning types. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.

Summary

Functions

mjWARN_BADCTRL is 6 — bad number in ctrl.

mjWARN_BADQACC is 5 — bad number in qacc.

mjWARN_BADQPOS is 3 — bad number in qpos.

mjWARN_BADQVEL is 4 — bad number in qvel.

mjWARN_CNSTRFULL is 2 — too many constraints.

mjWARN_CONTACTFULL is 1 — too many contacts in contact list.

mjWARN_INERTIA is 0 — (near) singular inertia matrix.

mjNWARNING is 7 — number of warnings.

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

badctrl()

@spec badctrl() :: 6

mjWARN_BADCTRL is 6 — bad number in ctrl.

badqacc()

@spec badqacc() :: 5

mjWARN_BADQACC is 5 — bad number in qacc.

badqpos()

@spec badqpos() :: 3

mjWARN_BADQPOS is 3 — bad number in qpos.

badqvel()

@spec badqvel() :: 4

mjWARN_BADQVEL is 4 — bad number in qvel.

cnstrfull()

@spec cnstrfull() :: 2

mjWARN_CNSTRFULL is 2 — too many constraints.

contactfull()

@spec contactfull() :: 1

mjWARN_CONTACTFULL is 1 — too many contacts in contact list.

inertia()

@spec inertia() :: 0

mjWARN_INERTIA is 0 — (near) singular inertia matrix.

mjnwarning()

@spec mjnwarning() :: 7

mjNWARNING is 7 — number of warnings.

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.