ExMujoco.Types.Obj (ExMujoco v0.2.2)

Copy Markdown View Source

mjtObj — type of MujoCo object. From MuJoCo's headers, as numbers. All 30 values carry a number in the header.

Summary

Functions

mjOBJ_ACTUATOR is 19 — actuator.

mjOBJ_BODY is 1 — body.

mjOBJ_CAMERA is 7 — camera.

mjOBJ_DEFAULT is 101 — default.

mjOBJ_DOF is 4 — dof.

mjOBJ_EQUALITY is 17 — equality constraint.

mjOBJ_EXCLUDE is 16 — body pair to exclude.

mjOBJ_FLEX is 9 — flex.

mjOBJ_FRAME is 100 — frame.

mjOBJ_GEOM is 5 — geom.

mjOBJ_HFIELD is 12 — heightfield.

mjOBJ_JOINT is 3 — joint.

mjOBJ_KEY is 24 — keyframe.

mjOBJ_LIGHT is 8 — light.

mjOBJ_MATERIAL is 14 — material for rendering.

mjOBJ_MESH is 10 — mesh.

mjNOBJECT is 26 — number of object types.

mjOBJ_MODEL is 102 — entire model.

mjOBJ_NUMERIC is 21 — numeric.

mjOBJ_PAIR is 15 — geom pair to include.

mjOBJ_PLUGIN is 25 — plugin instance.

mjOBJ_SENSOR is 20 — sensor.

mjOBJ_SITE is 6 — site.

mjOBJ_SKIN is 11 — skin.

mjOBJ_TENDON is 18 — tendon.

mjOBJ_TEXT is 22 — text.

mjOBJ_TEXTURE is 13 — texture.

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

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

mjOBJ_TUPLE is 23 — tuple.

mjOBJ_UNKNOWN is 0 — unknown object type.

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

mjOBJ_XBODY is 2 — body, used to access regular frame instead of i-frame.

Types

t()

@type t() :: integer()

Functions

actuator()

@spec actuator() :: 19

mjOBJ_ACTUATOR is 19 — actuator.

body()

@spec body() :: 1

mjOBJ_BODY is 1 — body.

camera()

@spec camera() :: 7

mjOBJ_CAMERA is 7 — camera.

default()

@spec default() :: 101

mjOBJ_DEFAULT is 101 — default.

dof()

@spec dof() :: 4

mjOBJ_DOF is 4 — dof.

equality()

@spec equality() :: 17

mjOBJ_EQUALITY is 17 — equality constraint.

exclude()

@spec exclude() :: 16

mjOBJ_EXCLUDE is 16 — body pair to exclude.

flex()

@spec flex() :: 9

mjOBJ_FLEX is 9 — flex.

frame()

@spec frame() :: 100

mjOBJ_FRAME is 100 — frame.

geom()

@spec geom() :: 5

mjOBJ_GEOM is 5 — geom.

hfield()

@spec hfield() :: 12

mjOBJ_HFIELD is 12 — heightfield.

joint()

@spec joint() :: 3

mjOBJ_JOINT is 3 — joint.

key()

@spec key() :: 24

mjOBJ_KEY is 24 — keyframe.

light()

@spec light() :: 8

mjOBJ_LIGHT is 8 — light.

material()

@spec material() :: 14

mjOBJ_MATERIAL is 14 — material for rendering.

mesh()

@spec mesh() :: 10

mjOBJ_MESH is 10 — mesh.

mjnobject()

@spec mjnobject() :: 26

mjNOBJECT is 26 — number of object types.

model()

@spec model() :: 102

mjOBJ_MODEL is 102 — entire model.

numeric()

@spec numeric() :: 21

mjOBJ_NUMERIC is 21 — numeric.

pair()

@spec pair() :: 15

mjOBJ_PAIR is 15 — geom pair to include.

plugin()

@spec plugin() :: 25

mjOBJ_PLUGIN is 25 — plugin instance.

sensor()

@spec sensor() :: 20

mjOBJ_SENSOR is 20 — sensor.

site()

@spec site() :: 6

mjOBJ_SITE is 6 — site.

skin()

@spec skin() :: 11

mjOBJ_SKIN is 11 — skin.

tendon()

@spec tendon() :: 18

mjOBJ_TENDON is 18 — tendon.

text()

@spec text() :: 22

mjOBJ_TEXT is 22 — text.

texture()

@spec texture() :: 13

mjOBJ_TEXTURE is 13 — texture.

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.

tuple()

@spec tuple() :: 23

mjOBJ_TUPLE is 23 — tuple.

unknown()

@spec unknown() :: 0

mjOBJ_UNKNOWN is 0 — unknown object type.

values()

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

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

xbody()

@spec xbody() :: 2

mjOBJ_XBODY is 2 — body, used to access regular frame instead of i-frame.