ExMujoco.Types.SDFType (ExMujoco v0.2.3)

Copy Markdown View Source

mjtSDFType — signed distance function (SDF) type. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.

Summary

Functions

mjSDFTYPE_COLLISION is 3 — A + B + abs(max(A, B)).

mjSDFTYPE_INTERSECTION is 1 — max(A, B).

mjSDFTYPE_MIDSURFACE is 2 — A - B.

mjSDFTYPE_SINGLE is 0 — single SDF.

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

collision()

@spec collision() :: 3

mjSDFTYPE_COLLISION is 3 — A + B + abs(max(A, B)).

intersection()

@spec intersection() :: 1

mjSDFTYPE_INTERSECTION is 1 — max(A, B).

midsurface()

@spec midsurface() :: 2

mjSDFTYPE_MIDSURFACE is 2 — A - B.

single()

@spec single() :: 0

mjSDFTYPE_SINGLE is 0 — single SDF.

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.