ExMujoco.Types.Constraint (ExMujoco v0.2.2)

Copy Markdown View Source

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

Summary

Functions

mjCNSTR_CONTACT_ELLIPTIC is 7 — frictional contact, elliptic friction cone.

mjCNSTR_CONTACT_FRICTIONLESS is 5 — frictionless contact.

mjCNSTR_CONTACT_PYRAMIDAL is 6 — frictional contact, pyramidal friction cone.

mjCNSTR_EQUALITY is 0 — equality constraint.

mjCNSTR_FRICTION_DOF is 1 — dof friction.

mjCNSTR_FRICTION_TENDON is 2 — tendon friction.

mjCNSTR_LIMIT_JOINT is 3 — joint limit.

mjCNSTR_LIMIT_TENDON is 4 — tendon limit.

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 — frictional contact, elliptic friction cone.

contact_frictionless()

@spec contact_frictionless() :: 5

mjCNSTR_CONTACT_FRICTIONLESS is 5 — frictionless contact.

contact_pyramidal()

@spec contact_pyramidal() :: 6

mjCNSTR_CONTACT_PYRAMIDAL is 6 — frictional contact, pyramidal friction cone.

equality()

@spec equality() :: 0

mjCNSTR_EQUALITY is 0 — equality constraint.

friction_dof()

@spec friction_dof() :: 1

mjCNSTR_FRICTION_DOF is 1 — dof friction.

friction_tendon()

@spec friction_tendon() :: 2

mjCNSTR_FRICTION_TENDON is 2 — tendon friction.

limit_joint()

@spec limit_joint() :: 3

mjCNSTR_LIMIT_JOINT is 3 — joint limit.

limit_tendon()

@spec limit_tendon() :: 4

mjCNSTR_LIMIT_TENDON is 4 — tendon limit.

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.