ExMujoco.Types.Trn (ExMujoco v0.2.3)

Copy Markdown View Source

mjtTrn — type of actuator transmission. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.

Summary

Functions

mjTRN_BODY is 5 — adhesion force on a body's geoms.

mjTRN_JOINT is 0 — force on joint.

mjTRN_JOINTINPARENT is 1 — force on joint, expressed in parent frame.

mjTRN_SITE is 4 — force on site.

mjTRN_SLIDERCRANK is 2 — force via slider-crank linkage.

mjTRN_SO3 is 6 — torque on a relative orientation (3 force outputs).

mjTRN_TENDON is 3 — force on tendon.

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

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

mjTRN_UNDEFINED is 1000 — undefined transmission type.

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

Types

t()

@type t() :: integer()

Functions

body()

@spec body() :: 5

mjTRN_BODY is 5 — adhesion force on a body's geoms.

joint()

@spec joint() :: 0

mjTRN_JOINT is 0 — force on joint.

jointinparent()

@spec jointinparent() :: 1

mjTRN_JOINTINPARENT is 1 — force on joint, expressed in parent frame.

site()

@spec site() :: 4

mjTRN_SITE is 4 — force on site.

slidercrank()

@spec slidercrank() :: 2

mjTRN_SLIDERCRANK is 2 — force via slider-crank linkage.

so3()

@spec so3() :: 6

mjTRN_SO3 is 6 — torque on a relative orientation (3 force outputs).

tendon()

@spec tendon() :: 3

mjTRN_TENDON is 3 — force on tendon.

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.

undefined()

@spec undefined() :: 1000

mjTRN_UNDEFINED is 1000 — undefined transmission type.

values()

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

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