ExMujoco.Types.Constraint (ExMujoco v0.1.1)

Copy Markdown View Source

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

Summary

Functions

mjCNSTR_CONTACT_ELLIPTIC is 7.

mjCNSTR_CONTACT_FRICTIONLESS is 5.

mjCNSTR_CONTACT_PYRAMIDAL is 6.

mjCNSTR_EQUALITY is 0.

mjCNSTR_FRICTION_DOF is 1.

mjCNSTR_FRICTION_TENDON is 2.

mjCNSTR_LIMIT_JOINT is 3.

mjCNSTR_LIMIT_TENDON is 4.

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

contact_elliptic()

@spec contact_elliptic() :: 7

mjCNSTR_CONTACT_ELLIPTIC is 7.

contact_frictionless()

@spec contact_frictionless() :: 5

mjCNSTR_CONTACT_FRICTIONLESS is 5.

contact_pyramidal()

@spec contact_pyramidal() :: 6

mjCNSTR_CONTACT_PYRAMIDAL is 6.

equality()

@spec equality() :: 0

mjCNSTR_EQUALITY is 0.

friction_dof()

@spec friction_dof() :: 1

mjCNSTR_FRICTION_DOF is 1.

friction_tendon()

@spec friction_tendon() :: 2

mjCNSTR_FRICTION_TENDON is 2.

limit_joint()

@spec limit_joint() :: 3

mjCNSTR_LIMIT_JOINT is 3.

limit_tendon()

@spec limit_tendon() :: 4

mjCNSTR_LIMIT_TENDON is 4.

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.