ExMujoco.Types.Sensor (ExMujoco v0.2.3)

Copy Markdown View Source

mjtSensor — type of sensor. From MuJoCo's headers, as numbers. All 49 values carry a number in the header.

Summary

Functions

mjSENS_ACCELEROMETER is 1 — 3D linear acceleration, in local frame.

mjSENS_ACTUATORFRC is 15 — scalar actuator force.

mjSENS_ACTUATORPOS is 13 — scalar actuator position.

mjSENS_ACTUATORVEL is 14 — scalar actuator velocity.

mjSENS_BALLANGVEL is 19 — 3D ball joint angular velocity.

mjSENS_BALLQUAT is 18 — 4D ball joint quaternion.

mjSENS_CAMPROJECTION is 8 — pixel coordinates of a site in the camera image.

mjSENS_CLOCK is 45 — simulation time.

mjSENS_CONTACT is 42 — contacts which occurred during the simulation.

mjSENS_E_KINETIC is 44 — kinetic energy.

mjSENS_E_POTENTIAL is 43 — potential energy.

mjSENS_FORCE is 4 — 3D force between site's body and its parent body.

mjSENS_FRAMEANGACC is 34 — 3D angular acceleration.

mjSENS_FRAMEANGVEL is 32 — 3D angular velocity.

mjSENS_FRAMELINACC is 33 — 3D linear acceleration.

mjSENS_FRAMELINVEL is 31 — 3D linear velocity.

mjSENS_FRAMEPOS is 26 — 3D position.

mjSENS_FRAMEQUAT is 27 — 4D unit quaternion orientation.

mjSENS_FRAMEXAXIS is 28 — 3D unit vector: x-axis of object's frame.

mjSENS_FRAMEYAXIS is 29 — 3D unit vector: y-axis of object's frame.

mjSENS_FRAMEZAXIS is 30 — 3D unit vector: z-axis of object's frame.

mjSENS_GEOMDIST is 39 — signed distance between two geoms.

mjSENS_GEOMFROMTO is 41 — segment between two geoms.

mjSENS_GEOMNORMAL is 40 — normal direction between two geoms.

mjSENS_GYRO is 3 — 3D angular velocity, in local frame.

mjSENS_INSIDESITE is 38 — 1 if object is inside a site, 0 otherwise.

mjSENS_JOINTACTFRC is 16 — scalar actuator force, measured at the joint.

mjSENS_JOINTLIMITFRC is 22 — joint limit force.

mjSENS_JOINTLIMITPOS is 20 — joint limit distance-margin.

mjSENS_JOINTLIMITVEL is 21 — joint limit velocity.

mjSENS_JOINTPOS is 9 — scalar joint position (hinge and slide only).

mjSENS_JOINTVEL is 10 — scalar joint velocity (hinge and slide only).

mjSENS_MAGNETOMETER is 6 — 3D magnetometer.

mjSENS_PLUGIN is 47 — plugin-controlled.

mjSENS_RANGEFINDER is 7 — scalar distance to nearest geom along z-axis.

mjSENS_SUBTREEANGMOM is 37 — 3D angular momentum of subtree.

mjSENS_SUBTREECOM is 35 — 3D center of mass of subtree.

mjSENS_SUBTREELINVEL is 36 — 3D linear velocity of subtree.

mjSENS_TACTILE is 46 — tactile sensor.

mjSENS_TENDONACTFRC is 17 — scalar actuator force, measured at the tendon.

mjSENS_TENDONLIMITFRC is 25 — tendon limit force.

mjSENS_TENDONLIMITPOS is 23 — tendon limit distance-margin.

mjSENS_TENDONLIMITVEL is 24 — tendon limit velocity.

mjSENS_TENDONPOS is 11 — scalar tendon position.

mjSENS_TENDONVEL is 12 — scalar tendon velocity.

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

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

mjSENS_TORQUE is 5 — 3D torque between site's body and its parent body.

mjSENS_TOUCH is 0 — scalar contact normal forces summed over sensor zone.

mjSENS_USER is 48 — sensor data provided by mjcb_sensor callback.

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

mjSENS_VELOCIMETER is 2 — 3D linear velocity, in local frame.

Types

t()

@type t() :: integer()

Functions

accelerometer()

@spec accelerometer() :: 1

mjSENS_ACCELEROMETER is 1 — 3D linear acceleration, in local frame.

actuatorfrc()

@spec actuatorfrc() :: 15

mjSENS_ACTUATORFRC is 15 — scalar actuator force.

actuatorpos()

@spec actuatorpos() :: 13

mjSENS_ACTUATORPOS is 13 — scalar actuator position.

actuatorvel()

@spec actuatorvel() :: 14

mjSENS_ACTUATORVEL is 14 — scalar actuator velocity.

ballangvel()

@spec ballangvel() :: 19

mjSENS_BALLANGVEL is 19 — 3D ball joint angular velocity.

ballquat()

@spec ballquat() :: 18

mjSENS_BALLQUAT is 18 — 4D ball joint quaternion.

camprojection()

@spec camprojection() :: 8

mjSENS_CAMPROJECTION is 8 — pixel coordinates of a site in the camera image.

clock()

@spec clock() :: 45

mjSENS_CLOCK is 45 — simulation time.

contact()

@spec contact() :: 42

mjSENS_CONTACT is 42 — contacts which occurred during the simulation.

e_kinetic()

@spec e_kinetic() :: 44

mjSENS_E_KINETIC is 44 — kinetic energy.

e_potential()

@spec e_potential() :: 43

mjSENS_E_POTENTIAL is 43 — potential energy.

force()

@spec force() :: 4

mjSENS_FORCE is 4 — 3D force between site's body and its parent body.

frameangacc()

@spec frameangacc() :: 34

mjSENS_FRAMEANGACC is 34 — 3D angular acceleration.

frameangvel()

@spec frameangvel() :: 32

mjSENS_FRAMEANGVEL is 32 — 3D angular velocity.

framelinacc()

@spec framelinacc() :: 33

mjSENS_FRAMELINACC is 33 — 3D linear acceleration.

framelinvel()

@spec framelinvel() :: 31

mjSENS_FRAMELINVEL is 31 — 3D linear velocity.

framepos()

@spec framepos() :: 26

mjSENS_FRAMEPOS is 26 — 3D position.

framequat()

@spec framequat() :: 27

mjSENS_FRAMEQUAT is 27 — 4D unit quaternion orientation.

framexaxis()

@spec framexaxis() :: 28

mjSENS_FRAMEXAXIS is 28 — 3D unit vector: x-axis of object's frame.

frameyaxis()

@spec frameyaxis() :: 29

mjSENS_FRAMEYAXIS is 29 — 3D unit vector: y-axis of object's frame.

framezaxis()

@spec framezaxis() :: 30

mjSENS_FRAMEZAXIS is 30 — 3D unit vector: z-axis of object's frame.

geomdist()

@spec geomdist() :: 39

mjSENS_GEOMDIST is 39 — signed distance between two geoms.

geomfromto()

@spec geomfromto() :: 41

mjSENS_GEOMFROMTO is 41 — segment between two geoms.

geomnormal()

@spec geomnormal() :: 40

mjSENS_GEOMNORMAL is 40 — normal direction between two geoms.

gyro()

@spec gyro() :: 3

mjSENS_GYRO is 3 — 3D angular velocity, in local frame.

insidesite()

@spec insidesite() :: 38

mjSENS_INSIDESITE is 38 — 1 if object is inside a site, 0 otherwise.

jointactfrc()

@spec jointactfrc() :: 16

mjSENS_JOINTACTFRC is 16 — scalar actuator force, measured at the joint.

jointlimitfrc()

@spec jointlimitfrc() :: 22

mjSENS_JOINTLIMITFRC is 22 — joint limit force.

jointlimitpos()

@spec jointlimitpos() :: 20

mjSENS_JOINTLIMITPOS is 20 — joint limit distance-margin.

jointlimitvel()

@spec jointlimitvel() :: 21

mjSENS_JOINTLIMITVEL is 21 — joint limit velocity.

jointpos()

@spec jointpos() :: 9

mjSENS_JOINTPOS is 9 — scalar joint position (hinge and slide only).

jointvel()

@spec jointvel() :: 10

mjSENS_JOINTVEL is 10 — scalar joint velocity (hinge and slide only).

magnetometer()

@spec magnetometer() :: 6

mjSENS_MAGNETOMETER is 6 — 3D magnetometer.

plugin()

@spec plugin() :: 47

mjSENS_PLUGIN is 47 — plugin-controlled.

rangefinder()

@spec rangefinder() :: 7

mjSENS_RANGEFINDER is 7 — scalar distance to nearest geom along z-axis.

subtreeangmom()

@spec subtreeangmom() :: 37

mjSENS_SUBTREEANGMOM is 37 — 3D angular momentum of subtree.

subtreecom()

@spec subtreecom() :: 35

mjSENS_SUBTREECOM is 35 — 3D center of mass of subtree.

subtreelinvel()

@spec subtreelinvel() :: 36

mjSENS_SUBTREELINVEL is 36 — 3D linear velocity of subtree.

tactile()

@spec tactile() :: 46

mjSENS_TACTILE is 46 — tactile sensor.

tendonactfrc()

@spec tendonactfrc() :: 17

mjSENS_TENDONACTFRC is 17 — scalar actuator force, measured at the tendon.

tendonlimitfrc()

@spec tendonlimitfrc() :: 25

mjSENS_TENDONLIMITFRC is 25 — tendon limit force.

tendonlimitpos()

@spec tendonlimitpos() :: 23

mjSENS_TENDONLIMITPOS is 23 — tendon limit distance-margin.

tendonlimitvel()

@spec tendonlimitvel() :: 24

mjSENS_TENDONLIMITVEL is 24 — tendon limit velocity.

tendonpos()

@spec tendonpos() :: 11

mjSENS_TENDONPOS is 11 — scalar tendon position.

tendonvel()

@spec tendonvel() :: 12

mjSENS_TENDONVEL is 12 — scalar tendon velocity.

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() :: 5

mjSENS_TORQUE is 5 — 3D torque between site's body and its parent body.

touch()

@spec touch() :: 0

mjSENS_TOUCH is 0 — scalar contact normal forces summed over sensor zone.

user()

@spec user() :: 48

mjSENS_USER is 48 — sensor data provided by mjcb_sensor callback.

values()

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

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

velocimeter()

@spec velocimeter() :: 2

mjSENS_VELOCIMETER is 2 — 3D linear velocity, in local frame.