ExMujoco.Types.Eq (ExMujoco v0.2.2)

Copy Markdown View Source

mjtEq — type of equality constraint. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.

Summary

Functions

mjEQ_CONNECT is 0 — connect two bodies at a point (ball joint).

mjEQ_DISTANCE is 7 — unsupported, will cause an error if used.

mjEQ_FLEX is 4 — fix all edge lengths of a flex.

mjEQ_FLEXSTRAIN is 6 — constrain strain of a trilinear/quadratic flex (B-bar).

mjEQ_FLEXVERT is 5 — unsupported, will cause an error if used.

mjEQ_JOINT is 2 — couple the values of two scalar joints with cubic.

mjEQ_TENDON is 3 — couple the lengths of two tendons with cubic.

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.

mjEQ_WELD is 1 — fix relative position and orientation of two bodies.

Types

t()

@type t() :: integer()

Functions

connect()

@spec connect() :: 0

mjEQ_CONNECT is 0 — connect two bodies at a point (ball joint).

distance()

@spec distance() :: 7

mjEQ_DISTANCE is 7 — unsupported, will cause an error if used.

flex()

@spec flex() :: 4

mjEQ_FLEX is 4 — fix all edge lengths of a flex.

flexstrain()

@spec flexstrain() :: 6

mjEQ_FLEXSTRAIN is 6 — constrain strain of a trilinear/quadratic flex (B-bar).

flexvert()

@spec flexvert() :: 5

mjEQ_FLEXVERT is 5 — unsupported, will cause an error if used.

joint()

@spec joint() :: 2

mjEQ_JOINT is 2 — couple the values of two scalar joints with cubic.

tendon()

@spec tendon() :: 3

mjEQ_TENDON is 3 — couple the lengths of two tendons with cubic.

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.

weld()

@spec weld() :: 1

mjEQ_WELD is 1 — fix relative position and orientation of two bodies.