ExMujoco.Types.Item (ExMujoco v0.1.1)

Copy Markdown View Source

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

Summary

Functions

mjITEM_BUTTON is 2.

mjITEM_CHECKBYTE is 4.

mjITEM_CHECKINT is 3.

mjITEM_EDITFLOAT is 12.

mjITEM_EDITINT is 10.

mjITEM_EDITNUM is 11.

mjITEM_EDITTXT is 13.

mjITEM_END is -2.

mjNITEM is 14.

mjITEM_RADIO is 5.

mjITEM_RADIOLINE is 6.

mjITEM_SECTION is -1.

mjITEM_SELECT is 7.

mjITEM_SEPARATOR is 0.

mjITEM_SLIDERINT is 8.

mjITEM_SLIDERNUM is 9.

mjITEM_STATIC is 1.

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

button()

@spec button() :: 2

mjITEM_BUTTON is 2.

checkbyte()

@spec checkbyte() :: 4

mjITEM_CHECKBYTE is 4.

checkint()

@spec checkint() :: 3

mjITEM_CHECKINT is 3.

editfloat()

@spec editfloat() :: 12

mjITEM_EDITFLOAT is 12.

editint()

@spec editint() :: 10

mjITEM_EDITINT is 10.

editnum()

@spec editnum() :: 11

mjITEM_EDITNUM is 11.

edittxt()

@spec edittxt() :: 13

mjITEM_EDITTXT is 13.

end_()

@spec end_() :: -2

mjITEM_END is -2.

mjnitem()

@spec mjnitem() :: 14

mjNITEM is 14.

radio()

@spec radio() :: 5

mjITEM_RADIO is 5.

radioline()

@spec radioline() :: 6

mjITEM_RADIOLINE is 6.

section()

@spec section() :: -1

mjITEM_SECTION is -1.

select()

@spec select() :: 7

mjITEM_SELECT is 7.

separator()

@spec separator() :: 0

mjITEM_SEPARATOR is 0.

sliderint()

@spec sliderint() :: 8

mjITEM_SLIDERINT is 8.

slidernum()

@spec slidernum() :: 9

mjITEM_SLIDERNUM is 9.

static()

@spec static() :: 1

mjITEM_STATIC is 1.

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.