ExMujoco.Types.Geom (ExMujoco v0.2.2)

Copy Markdown View Source

mjtGeom — type of geometric shape. From MuJoCo's headers, as numbers. All 20 values carry a number in the header.

Summary

Functions

mjGEOM_ARROW1 is 101 — arrow without wedges.

mjGEOM_ARROW2 is 102 — arrow in both directions.

mjGEOM_ARROW is 100 — arrow.

mjGEOM_BOX is 6 — box.

mjGEOM_CAPSULE is 3 — capsule.

mjGEOM_CYLINDER is 5 — cylinder.

mjGEOM_ELLIPSOID is 4 — ellipsoid.

mjGEOM_FLEX is 105 — flex.

mjGEOM_HFIELD is 1 — height field.

mjGEOM_LABEL is 107 — text label.

mjGEOM_LINE is 103 — line.

mjGEOM_LINEBOX is 104 — box with line edges.

mjGEOM_MESH is 7 — mesh.

mjNGEOMTYPES is 9 — number of regular geom types.

mjGEOM_NONE is 1001 — missing geom type.

mjGEOM_PLANE is 0 — plane.

mjGEOM_SDF is 8 — signed distance field.

mjGEOM_SKIN is 106 — skin.

mjGEOM_SPHERE is 2 — sphere.

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

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

mjGEOM_TRIANGLE is 108 — triangle.

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

Types

t()

@type t() :: integer()

Functions

arrow1()

@spec arrow1() :: 101

mjGEOM_ARROW1 is 101 — arrow without wedges.

arrow2()

@spec arrow2() :: 102

mjGEOM_ARROW2 is 102 — arrow in both directions.

arrow()

@spec arrow() :: 100

mjGEOM_ARROW is 100 — arrow.

box()

@spec box() :: 6

mjGEOM_BOX is 6 — box.

capsule()

@spec capsule() :: 3

mjGEOM_CAPSULE is 3 — capsule.

cylinder()

@spec cylinder() :: 5

mjGEOM_CYLINDER is 5 — cylinder.

ellipsoid()

@spec ellipsoid() :: 4

mjGEOM_ELLIPSOID is 4 — ellipsoid.

flex()

@spec flex() :: 105

mjGEOM_FLEX is 105 — flex.

hfield()

@spec hfield() :: 1

mjGEOM_HFIELD is 1 — height field.

label()

@spec label() :: 107

mjGEOM_LABEL is 107 — text label.

line()

@spec line() :: 103

mjGEOM_LINE is 103 — line.

linebox()

@spec linebox() :: 104

mjGEOM_LINEBOX is 104 — box with line edges.

mesh()

@spec mesh() :: 7

mjGEOM_MESH is 7 — mesh.

mjngeomtypes()

@spec mjngeomtypes() :: 9

mjNGEOMTYPES is 9 — number of regular geom types.

none()

@spec none() :: 1001

mjGEOM_NONE is 1001 — missing geom type.

plane()

@spec plane() :: 0

mjGEOM_PLANE is 0 — plane.

sdf()

@spec sdf() :: 8

mjGEOM_SDF is 8 — signed distance field.

skin()

@spec skin() :: 106

mjGEOM_SKIN is 106 — skin.

sphere()

@spec sphere() :: 2

mjGEOM_SPHERE is 2 — sphere.

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.

triangle()

@spec triangle() :: 108

mjGEOM_TRIANGLE is 108 — triangle.

values()

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

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