ExMujoco.Types.Gain (ExMujoco v0.2.2)

Copy Markdown View Source

mjtGain — type of actuator gain. From MuJoCo's headers, as numbers. All 7 values carry a number in the header.

Summary

Functions

mjGAIN_AFFINE is 1 — const + kplength + kvvelocity.

mjGAIN_DCMOTOR is 3 — DC motor gain: K or K/R.

mjGAIN_FIXED is 0 — fixed gain.

mjGAIN_MUSCLE is 2 — muscle FLV curve computed by mju_muscleGain().

mjGAIN_PID is 5 — PID controller: position and velocity setpoint inputs.

mjGAIN_SO3 is 4 — geodesic servo on an SO3 transmission: force = kp * log(error).

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

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

mjGAIN_USER is 6 — user-defined gain type.

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

Types

t()

@type t() :: integer()

Functions

affine()

@spec affine() :: 1

mjGAIN_AFFINE is 1 — const + kplength + kvvelocity.

dcmotor()

@spec dcmotor() :: 3

mjGAIN_DCMOTOR is 3 — DC motor gain: K or K/R.

fixed()

@spec fixed() :: 0

mjGAIN_FIXED is 0 — fixed gain.

muscle()

@spec muscle() :: 2

mjGAIN_MUSCLE is 2 — muscle FLV curve computed by mju_muscleGain().

pid()

@spec pid() :: 5

mjGAIN_PID is 5 — PID controller: position and velocity setpoint inputs.

so3()

@spec so3() :: 4

mjGAIN_SO3 is 4 — geodesic servo on an SO3 transmission: force = kp * log(error).

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.

user()

@spec user() :: 6

mjGAIN_USER is 6 — user-defined gain type.

values()

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

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