Outside and inside

Some sensors look at the world around the robot: cameras, LiDAR, touch pads. Others look at the robot itself. Sensing your own body, for example the angle of an elbow, is called proprioception.

Boston Dynamics gives a concrete example. Its four-legged robot Spot reports four values for each of its 12 joints: position, speed, acceleration and load. A developer reads these numbers through the robot's programming interface, in a block called joint_states.

Diagram: camera, LiDAR, touch and joint readings flow as numbers into a computer, which sends commands to the motors. The motion changes what the sensors read next.Swipe the diagram to see all of it.

One device, several sensors

A product sold as one sensor often holds several. The Ouster OS1 LiDAR measures distances with laser light. It also carries a gyroscope and an accelerometer, both on 3 axes, that give 100 readings per second. Together they form an inertial measurement unit. This is a small package that feels how the device tilts and speeds up.

Different sensors, different rhythms

Each sensor delivers its numbers at its own pace. Intel's RealSense D435i depth camera gives depth up to 90 times per second, and color 30 times per second. The Ouster OS1 makes 10 or 20 full turns per second, depending on its mode. Its inner IMU reports 100 times per second. The arms of Universal Robots (e-Series) talk to their controller at 500 times per second.

A reading that arrives late describes the past. This delay is called latency. Later lessons come back to it.

Precise is not the same as accurate

Two words in spec sheets look alike but mean different things. Precision tells how much repeated readings of the same thing vary. Accuracy tells how close the readings are to the true value. Ouster defines precision as the spread of 100 measurements on a target that does not move. Universal Robots lists both for the force sensor in its UR5e arm: a precision of ±3.5 newtons and an accuracy of ±4.0 newtons.

Accuracy depends on calibration. Calibration is a setting that corrects a sensor's built-in error. Intel states that the depth accuracy of its D435 camera, under 2% at a distance of 2 meters, is "as measured out of the factory".