ExMujoco.Types.CtrlInput (ExMujoco v0.2.2)

Copy Markdown View Source

mjtCtrlInput — input signature (actuator_ctrlspec): present/declared inputs. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.

Summary

Functions

mjINPUT_FF is 4 — feedforward input, in the actuator's output space.

mjINPUT_NONE is 16 — explicitly no inputs: purely passive (dcmotor).

mjINPUT_POS is 1 — position setpoint input.

mjINPUT_PRESSURE is 32 — pressure input (cylinder).

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.

mjINPUT_VEL is 2 — velocity setpoint input.

mjINPUT_VOLTAGE is 8 — raw terminal voltage input (dcmotor).

Types

t()

@type t() :: integer()

Functions

ff()

@spec ff() :: 4

mjINPUT_FF is 4 — feedforward input, in the actuator's output space.

none()

@spec none() :: 16

mjINPUT_NONE is 16 — explicitly no inputs: purely passive (dcmotor).

pos()

@spec pos() :: 1

mjINPUT_POS is 1 — position setpoint input.

pressure()

@spec pressure() :: 32

mjINPUT_PRESSURE is 32 — pressure input (cylinder).

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.

vel()

@spec vel() :: 2

mjINPUT_VEL is 2 — velocity setpoint input.

voltage()

@spec voltage() :: 8

mjINPUT_VOLTAGE is 8 — raw terminal voltage input (dcmotor).