ExMujoco.Types.Solver (ExMujoco v0.2.3)

Copy Markdown View Source

mjtSolver — constraint solver algorithm. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.

Summary

Functions

mjSOL_CG is 1 — CG (primal).

mjSOL_NEWTON is 2 — Newton (primal).

mjSOL_PGS is 0 — PGS (dual).

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

cg()

@spec cg() :: 1

mjSOL_CG is 1 — CG (primal).

newton()

@spec newton() :: 2

mjSOL_NEWTON is 2 — Newton (primal).

pgs()

@spec pgs() :: 0

mjSOL_PGS is 0 — PGS (dual).

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.