ExMujoco.Types.ConDataField (ExMujoco v0.2.3)

Copy Markdown View Source

mjtConDataField — data fields returned by contact sensors. From MuJoCo's headers, as numbers. All 10 values carry a number in the header.

Summary

Functions

mjCONDATA_ANGVEL is 8 — contact angular velocity.

mjCONDATA_DIST is 3 — contact penetration distance.

mjCONDATA_FORCE is 1 — contact force.

mjCONDATA_FOUND is 0 — whether a contact was found.

mjCONDATA_LINVEL is 7 — contact linear velocity.

mjNCONDATA is 9 — number of contact sensor data fields.

mjCONDATA_NORMAL is 5 — contact frame normal.

mjCONDATA_POS is 4 — contact position.

mjCONDATA_TANGENT is 6 — contact frame first tangent.

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

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

mjCONDATA_TORQUE is 2 — contact torque.

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

Types

t()

@type t() :: integer()

Functions

angvel()

@spec angvel() :: 8

mjCONDATA_ANGVEL is 8 — contact angular velocity.

dist()

@spec dist() :: 3

mjCONDATA_DIST is 3 — contact penetration distance.

force()

@spec force() :: 1

mjCONDATA_FORCE is 1 — contact force.

found()

@spec found() :: 0

mjCONDATA_FOUND is 0 — whether a contact was found.

linvel()

@spec linvel() :: 7

mjCONDATA_LINVEL is 7 — contact linear velocity.

mjncondata()

@spec mjncondata() :: 9

mjNCONDATA is 9 — number of contact sensor data fields.

normal()

@spec normal() :: 5

mjCONDATA_NORMAL is 5 — contact frame normal.

pos()

@spec pos() :: 4

mjCONDATA_POS is 4 — contact position.

tangent()

@spec tangent() :: 6

mjCONDATA_TANGENT is 6 — contact frame first tangent.

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.

torque()

@spec torque() :: 2

mjCONDATA_TORQUE is 2 — contact torque.

values()

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

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