ExMujoco.Types.PluginCapabilityBit (ExMujoco v0.1.1)

Copy Markdown View Source

mjtPluginCapabilityBit_, from MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjPLUGIN_ACTUATOR is 1.

mjPLUGIN_PASSIVE is 4.

mjPLUGIN_SDF is 8.

mjPLUGIN_SENSOR is 2.

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

actuator()

@spec actuator() :: 1

mjPLUGIN_ACTUATOR is 1.

passive()

@spec passive() :: 4

mjPLUGIN_PASSIVE is 4.

sdf()

@spec sdf() :: 8

mjPLUGIN_SDF is 8.

sensor()

@spec sensor() :: 2

mjPLUGIN_SENSOR is 2.

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.