ExMujoco.Types.EnableBit (ExMujoco v0.2.3)

Copy Markdown View Source

mjtEnableBit — enable optional feature bitflags. From MuJoCo's headers, as numbers. All 9 values carry a number in the header.

Summary

Functions

mjENBL_DIAGEXACT is 32 — exact diagonal of constraint inertia.

mjENBL_ENERGY is 2 — energy computation.

mjENBL_FWDINV is 4 — record solver statistics.

mjENBL_INVDISCRETE is 8 — discrete-time inverse dynamics.

mjENBL_IPC is 64 — IPC flex contact mode of the discrete integrator.

mjNENABLE is 8 — number of enable flags.

mjENBL_OVERRIDE is 1 — override contact parameters.

mjENBL_SLEEP is 16 — sleeping.

mjENBL_SPECULATIVE is 128 — speculative contacts.

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

diagexact()

@spec diagexact() :: 32

mjENBL_DIAGEXACT is 32 — exact diagonal of constraint inertia.

energy()

@spec energy() :: 2

mjENBL_ENERGY is 2 — energy computation.

fwdinv()

@spec fwdinv() :: 4

mjENBL_FWDINV is 4 — record solver statistics.

invdiscrete()

@spec invdiscrete() :: 8

mjENBL_INVDISCRETE is 8 — discrete-time inverse dynamics.

ipc()

@spec ipc() :: 64

mjENBL_IPC is 64 — IPC flex contact mode of the discrete integrator.

mjnenable()

@spec mjnenable() :: 8

mjNENABLE is 8 — number of enable flags.

override()

@spec override() :: 1

mjENBL_OVERRIDE is 1 — override contact parameters.

sleep()

@spec sleep() :: 16

mjENBL_SLEEP is 16 — sleeping.

speculative()

@spec speculative() :: 128

mjENBL_SPECULATIVE is 128 — speculative contacts.

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.