ExMujoco.Types.Dyn (ExMujoco v0.2.3)

Copy Markdown View Source

mjtDyn — type of actuator dynamics. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.

Summary

Functions

mjDYN_DCMOTOR is 5 — DC motor electrical dynamics.

mjDYN_FILTER is 2 — linear filter: da/dt = (u-a) / tau.

mjDYN_FILTEREXACT is 3 — linear filter: da/dt = (u-a) / tau, with exact integration.

mjDYN_INTEGRATOR is 1 — integrator: da/dt = u.

mjDYN_MUSCLE is 4 — piecewise linear filter with two time constants.

mjDYN_NONE is 0 — no internal dynamics; ctrl specifies force.

mjDYN_PID is 6 — PID controller states: slew, integral.

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

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

mjDYN_USER is 7 — user-defined dynamics type.

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

Types

t()

@type t() :: integer()

Functions

dcmotor()

@spec dcmotor() :: 5

mjDYN_DCMOTOR is 5 — DC motor electrical dynamics.

filter()

@spec filter() :: 2

mjDYN_FILTER is 2 — linear filter: da/dt = (u-a) / tau.

filterexact()

@spec filterexact() :: 3

mjDYN_FILTEREXACT is 3 — linear filter: da/dt = (u-a) / tau, with exact integration.

integrator()

@spec integrator() :: 1

mjDYN_INTEGRATOR is 1 — integrator: da/dt = u.

muscle()

@spec muscle() :: 4

mjDYN_MUSCLE is 4 — piecewise linear filter with two time constants.

none()

@spec none() :: 0

mjDYN_NONE is 0 — no internal dynamics; ctrl specifies force.

pid()

@spec pid() :: 6

mjDYN_PID is 6 — PID controller states: slew, integral.

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() :: 7

mjDYN_USER is 7 — user-defined dynamics type.

values()

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

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