ExMujoco.Types.Geom (ExMujoco v0.1.1)

Copy Markdown View Source

mjtGeom, from MuJoCo's headers, as numbers. All 20 values carry a number in the header.

Summary

Functions

mjGEOM_ARROW1 is 101.

mjGEOM_ARROW2 is 102.

mjGEOM_ARROW is 100.

mjGEOM_BOX is 6.

mjGEOM_CAPSULE is 3.

mjGEOM_CYLINDER is 5.

mjGEOM_ELLIPSOID is 4.

mjGEOM_FLEX is 105.

mjGEOM_HFIELD is 1.

mjGEOM_LABEL is 107.

mjGEOM_LINE is 103.

mjGEOM_LINEBOX is 104.

mjGEOM_MESH is 7.

mjNGEOMTYPES is 9.

mjGEOM_NONE is 1001.

mjGEOM_PLANE is 0.

mjGEOM_SDF is 8.

mjGEOM_SKIN is 106.

mjGEOM_SPHERE is 2.

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

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

mjGEOM_TRIANGLE is 108.

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.

arrow2()

@spec arrow2() :: 102

mjGEOM_ARROW2 is 102.

arrow()

@spec arrow() :: 100

mjGEOM_ARROW is 100.

box()

@spec box() :: 6

mjGEOM_BOX is 6.

capsule()

@spec capsule() :: 3

mjGEOM_CAPSULE is 3.

cylinder()

@spec cylinder() :: 5

mjGEOM_CYLINDER is 5.

ellipsoid()

@spec ellipsoid() :: 4

mjGEOM_ELLIPSOID is 4.

flex()

@spec flex() :: 105

mjGEOM_FLEX is 105.

hfield()

@spec hfield() :: 1

mjGEOM_HFIELD is 1.

label()

@spec label() :: 107

mjGEOM_LABEL is 107.

line()

@spec line() :: 103

mjGEOM_LINE is 103.

linebox()

@spec linebox() :: 104

mjGEOM_LINEBOX is 104.

mesh()

@spec mesh() :: 7

mjGEOM_MESH is 7.

mjngeomtypes()

@spec mjngeomtypes() :: 9

mjNGEOMTYPES is 9.

none()

@spec none() :: 1001

mjGEOM_NONE is 1001.

plane()

@spec plane() :: 0

mjGEOM_PLANE is 0.

sdf()

@spec sdf() :: 8

mjGEOM_SDF is 8.

skin()

@spec skin() :: 106

mjGEOM_SKIN is 106.

sphere()

@spec sphere() :: 2

mjGEOM_SPHERE is 2.

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.

values()

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

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