How does a robot use sensing to correct an action?
A sensor reports something about the robot or its surroundings. The controller interprets that reading relative to a goal and chooses a correction. The action changes what can be measured next, so the robot can see whether it is getting closer.
A robot can repeat the same movement very reliably and still drift away from its intended path. The difference is whether it uses what happens after the command.
Start with the question
The answer, the explanatory gap and useful foundations.
Read in your own way
Start with the answer, refresh a foundation when you need it, or follow the explanation through. Read the ordered explanatory sections and check their stated sources and limits.
Everything here is open without an account. Saving is optional. The public subject tree is a map of published ideas; My Forest contains the subjects you choose to plant.
See the public Robotics & Automation tree →A foundation, without a detour.
A robot performing a task has a goal, an observable condition and an available action. A sensor measures a physical property, which the controller uses to estimate an error.
A reading comes from a limited viewpoint
A color or reflectance sensor reads light reflected from a small region. It cannot identify the full path from that local measurement alone.
Develop the model
Follow the first explanatory steps without losing their qualifications.
Follow a line on an invented tabletop
Imagine a small simulated robot crossing an exhibition table. A dark stripe leads to a painted leaf on a pale background. The simulated robot can roll forward and adjust its heading. A planned straight command might take it to the leaf when the wheels start exactly aligned, but a slight starting angle sends it farther away as it travels. The program told the robot how to move, and had no information about how the motion unfolded.
Give the simulation two virtual sensing patches along its front. Each indicates how much of its small area overlaps a dark region. A dark reading cannot literally say where the robot is. It becomes useful when the programmer connects the sensor geometry to a carefully stated track model.
The robot needs a reading that distinguishes errors relevant to the goal.
Connect the sensor to the next action
Assume the stripe is within reach of both patches when centered. If the left patch sees more of the stripe than the right, the stripe lies toward the robot’s left in this model. A small left correction brings its future path closer. When the next comparison is more balanced, the correction can become smaller. The action makes sense because of how the measurements change as the robot moves.
Now swap the names of the two patches without changing the rule. The software interprets the same physical reading in the wrong direction and steers away. The example separates three ideas. A sensor may work, the mapping from reading to error may be wrong, and an actuator may faithfully execute the wrong command.
The reading, the inferred error and the action are three distinct steps.
Investigate and refine
Predict, compare the lenses and carry the explanation further.
The next sections refine the explanation. No interactive investigation has been attached to this publication.
Find a case with insufficient information
Suppose both patches report pale table. That may mean the stripe lies beyond the left patch, beyond the right patch, or has ended. The readings alone cannot tell which. Previous measurements or another sensor could help. A conservative response could be to pause if the two readings stop giving a reliable direction. Driving harder is no substitute for knowing which situation you face.
In actual classrooms, changes in lighting and reflectance can affect a sensor. In the simulation we keep those variables fixed, which makes the comparison easy to follow. Real sensing can need calibration and a rule for uncertain input. Do not turn the guarantee of a simple model into a promise that a machine will always recover.
When multiple states give the same reading, correction needs more information or a safe fallback.
Watch the loop improve or drift
Picture three updates with the same initial left-sided reading. A correct small turn can make the readings nearly balanced on the next sample. A delayed turn can occur after the robot has already moved beyond the stripe. An excessive turn can move it to the opposite side and demand another correction. Those outcomes explain why a sensor is only one element of a working loop.
The final goal is travel along the line. Evidence for that goal comes from watching the robot’s path and the sensor sequence, not just reading which motor command the program sent. A convincing test compares actual behavior under several starting offsets and identifies the conditions where the controller is uncertain.
Use the observed trajectory to check whether the controller actually met its goal.
Apply and connect
Try a new case, follow genuine relationships and check the sources.
Consider another case.
Which second observation would separate a missing stripe from an offset that your two sensors cannot see?
No assessment item is attached. Reading or marking this explanation studied does not award assessment evidence.
A useful explanation has edges.
- This is a toy line-following example with stipulated sensor geometry, no motor code and no navigation or safety guarantee.
- A different sensor placement or track width can change what each reading means.
Follow the concepts.
A map can help you find a useful foundation or a different view. Every line below has a stated reason and a limit.
No direct published relationship is recorded for this selection yet. No connection is invented to fill the diagram.
Find a connected question with Seed Shuffle →Sources & authorship
This explanation was released through an explicit editorial review. Structural checks and an Owner or delegated editorial decision are not independent expert or scientific certification.
The sources below identify claim scope and consultation dates. Check the original material and its limits.
- University of Missouri RET, Follow the Line ↗
The background explains a classroom reflectance sensor and repeated sense, decision and action. The Manthoryn example uses a stipulated screen robot and no hardware instructions.
Source consulted 2026-11-17 - Åström and Murray, Feedback Systems, Chapter 1 ↗
Figure 1.1 and §1.2 distinguish open-loop action from feedback. Components include sensors, a controller and actuators. Delay, noise and disturbances affect performance.
Source consulted 2026-11-17
Lesson lesson.robotics-automation.sensed-correction · Revision 1.0.0. Found a problem? Raise a content concern. This prepares a local note; no report is delivered by opening it.