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
@type t() :: integer()
Functions
@spec accelerometer() :: 1
mjSENS_ACCELEROMETER is 1 — 3D linear acceleration, in local frame.
@spec actuatorfrc() :: 15
mjSENS_ACTUATORFRC is 15 — scalar actuator force.
@spec actuatorpos() :: 13
mjSENS_ACTUATORPOS is 13 — scalar actuator position.
@spec actuatorvel() :: 14
mjSENS_ACTUATORVEL is 14 — scalar actuator velocity.
@spec ballangvel() :: 19
mjSENS_BALLANGVEL is 19 — 3D ball joint angular velocity.
@spec ballquat() :: 18
mjSENS_BALLQUAT is 18 — 4D ball joint quaternion.
@spec camprojection() :: 8
mjSENS_CAMPROJECTION is 8 — pixel coordinates of a site in the camera image.
@spec clock() :: 45
mjSENS_CLOCK is 45 — simulation time.
@spec contact() :: 42
mjSENS_CONTACT is 42 — contacts which occurred during the simulation.
@spec e_kinetic() :: 44
mjSENS_E_KINETIC is 44 — kinetic energy.
@spec e_potential() :: 43
mjSENS_E_POTENTIAL is 43 — potential energy.
@spec force() :: 4
mjSENS_FORCE is 4 — 3D force between site's body and its parent body.
@spec frameangacc() :: 34
mjSENS_FRAMEANGACC is 34 — 3D angular acceleration.
@spec frameangvel() :: 32
mjSENS_FRAMEANGVEL is 32 — 3D angular velocity.
@spec framelinacc() :: 33
mjSENS_FRAMELINACC is 33 — 3D linear acceleration.
@spec framelinvel() :: 31
mjSENS_FRAMELINVEL is 31 — 3D linear velocity.
@spec framepos() :: 26
mjSENS_FRAMEPOS is 26 — 3D position.
@spec framequat() :: 27
mjSENS_FRAMEQUAT is 27 — 4D unit quaternion orientation.
@spec framexaxis() :: 28
mjSENS_FRAMEXAXIS is 28 — 3D unit vector: x-axis of object's frame.
@spec frameyaxis() :: 29
mjSENS_FRAMEYAXIS is 29 — 3D unit vector: y-axis of object's frame.
@spec framezaxis() :: 30
mjSENS_FRAMEZAXIS is 30 — 3D unit vector: z-axis of object's frame.
@spec geomdist() :: 39
mjSENS_GEOMDIST is 39 — signed distance between two geoms.
@spec geomfromto() :: 41
mjSENS_GEOMFROMTO is 41 — segment between two geoms.
@spec geomnormal() :: 40
mjSENS_GEOMNORMAL is 40 — normal direction between two geoms.
@spec gyro() :: 3
mjSENS_GYRO is 3 — 3D angular velocity, in local frame.
@spec insidesite() :: 38
mjSENS_INSIDESITE is 38 — 1 if object is inside a site, 0 otherwise.
@spec jointactfrc() :: 16
mjSENS_JOINTACTFRC is 16 — scalar actuator force, measured at the joint.
@spec jointlimitfrc() :: 22
mjSENS_JOINTLIMITFRC is 22 — joint limit force.
@spec jointlimitpos() :: 20
mjSENS_JOINTLIMITPOS is 20 — joint limit distance-margin.
@spec jointlimitvel() :: 21
mjSENS_JOINTLIMITVEL is 21 — joint limit velocity.
@spec jointpos() :: 9
mjSENS_JOINTPOS is 9 — scalar joint position (hinge and slide only).
@spec jointvel() :: 10
mjSENS_JOINTVEL is 10 — scalar joint velocity (hinge and slide only).
@spec magnetometer() :: 6
mjSENS_MAGNETOMETER is 6 — 3D magnetometer.
@spec plugin() :: 47
mjSENS_PLUGIN is 47 — plugin-controlled.
@spec rangefinder() :: 7
mjSENS_RANGEFINDER is 7 — scalar distance to nearest geom along z-axis.
@spec subtreeangmom() :: 37
mjSENS_SUBTREEANGMOM is 37 — 3D angular momentum of subtree.
@spec subtreecom() :: 35
mjSENS_SUBTREECOM is 35 — 3D center of mass of subtree.
@spec subtreelinvel() :: 36
mjSENS_SUBTREELINVEL is 36 — 3D linear velocity of subtree.
@spec tactile() :: 46
mjSENS_TACTILE is 46 — tactile sensor.
@spec tendonactfrc() :: 17
mjSENS_TENDONACTFRC is 17 — scalar actuator force, measured at the tendon.
@spec tendonlimitfrc() :: 25
mjSENS_TENDONLIMITFRC is 25 — tendon limit force.
@spec tendonlimitpos() :: 23
mjSENS_TENDONLIMITPOS is 23 — tendon limit distance-margin.
@spec tendonlimitvel() :: 24
mjSENS_TENDONLIMITVEL is 24 — tendon limit velocity.
@spec tendonpos() :: 11
mjSENS_TENDONPOS is 11 — scalar tendon position.
@spec tendonvel() :: 12
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.
@spec torque() :: 5
mjSENS_TORQUE is 5 — 3D torque between site's body and its parent body.
@spec touch() :: 0
mjSENS_TOUCH is 0 — scalar contact normal forces summed over sensor zone.
@spec user() :: 48
mjSENS_USER is 48 — sensor data provided by mjcb_sensor callback.
Every value, as {name, integer}, in the order the header lists them.
@spec velocimeter() :: 2
mjSENS_VELOCIMETER is 2 — 3D linear velocity, in local frame.