ExMujoco.Types.State (ExMujoco v0.1.1)

Copy Markdown View Source

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

Summary

Functions

mjSTATE_ACT is 8.

mjSTATE_CTRL is 64.

mjSTATE_EQ_ACTIVE is 512.

mjSTATE_FULLPHYSICS is 24607.

mjSTATE_HISTORY is 16.

mjSTATE_INTEGRATION is 32767.

mjNSTATE is 15.

mjSTATE_MOCAP_POS is 1024.

mjSTATE_MOCAP_QUAT is 2048.

mjSTATE_PHYSICS is 16414.

mjSTATE_PLASTIC is 16384.

mjSTATE_PLUGIN is 8192.

mjSTATE_QFRC_APPLIED is 128.

mjSTATE_QPOS is 2.

mjSTATE_QVEL is 4.

mjSTATE_TIME is 1.

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

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

mjSTATE_USER is 8128.

mjSTATE_USERDATA is 4096.

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

mjSTATE_WARMSTART is 32.

mjSTATE_XFRC_APPLIED is 256.

Types

t()

@type t() :: integer()

Functions

act()

@spec act() :: 8

mjSTATE_ACT is 8.

ctrl()

@spec ctrl() :: 64

mjSTATE_CTRL is 64.

eq_active()

@spec eq_active() :: 512

mjSTATE_EQ_ACTIVE is 512.

fullphysics()

@spec fullphysics() :: 24607

mjSTATE_FULLPHYSICS is 24607.

history()

@spec history() :: 16

mjSTATE_HISTORY is 16.

integration()

@spec integration() :: 32767

mjSTATE_INTEGRATION is 32767.

mjnstate()

@spec mjnstate() :: 15

mjNSTATE is 15.

mocap_pos()

@spec mocap_pos() :: 1024

mjSTATE_MOCAP_POS is 1024.

mocap_quat()

@spec mocap_quat() :: 2048

mjSTATE_MOCAP_QUAT is 2048.

physics()

@spec physics() :: 16414

mjSTATE_PHYSICS is 16414.

plastic()

@spec plastic() :: 16384

mjSTATE_PLASTIC is 16384.

plugin()

@spec plugin() :: 8192

mjSTATE_PLUGIN is 8192.

qfrc_applied()

@spec qfrc_applied() :: 128

mjSTATE_QFRC_APPLIED is 128.

qpos()

@spec qpos() :: 2

mjSTATE_QPOS is 2.

qvel()

@spec qvel() :: 4

mjSTATE_QVEL is 4.

time()

@spec time() :: 1

mjSTATE_TIME 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.

user()

@spec user() :: 8128

mjSTATE_USER is 8128.

userdata()

@spec userdata() :: 4096

mjSTATE_USERDATA is 4096.

values()

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

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

warmstart()

@spec warmstart() :: 32

mjSTATE_WARMSTART is 32.

xfrc_applied()

@spec xfrc_applied() :: 256

mjSTATE_XFRC_APPLIED is 256.