Lesson 15 of 2245 minutes

Noise, Delay, and Safe Stopping

Start with the lesson question, connect the representations, and test the model with evidence.

noisedelaystopping distancebrakingsaturationwatchdogsrobot safety

Learning objectives

  • Distinguish open-loop and closed-loop control.
  • Explain setpoint, error, gain, overshoot, and stability.
  • Tune and evaluate a simple feedback controller.
Lesson flowHook, model, explanationShow guidance

Inspect the opening phenomenon

Predict what changes, then name the evidence.

Apply in the lab

Name the evidence before reading the answer.

Read only what helps

Then use the lab and recall check.

More when needed

Transcript and resources stay available below.

Course progress

AI & Robotics Foundations · Feedback and Control · Lesson 15

Noise, Delay, and Safe Stopping

In progress

Decision challenge

Observe the phenomenon. Then connect the representations.

Use the opening example to make a prediction, identify evidence, and explain which model supports it.

Why Does a Robot Keep Moving After Stop?

Predict whether reaction or braking distance grows with speed squared.

Stopping begins with detection, but the robot travels during delay and braking.

Before

Predict whether reaction or braking distance grows with speed squared.

During

Track reaction travel, braking travel, and margin.

After

Explain why a smooth signal may still be unsafe.

Reference drawerTranscript, source notes, scripts, and package status stay tucked away until you need them.6 files

Lesson reading

live

45 min

Video script

draft

1080x1920

Transcript fallback

available

courses/ai-robotics/modules/05-feedback-and-control/lessons/03-noise-delay-and-safe-stopping/video-transcript.md

Build a Stopping-Distance Budget

draft

30 min

Mastery check

live

7 questions / 10 min

Transcript for accessibility and fallback

# Video transcript Why can a robot keep moving after stop? Because sensing and computation take time, and the body still needs distance to brake. At one point two metres per second with a quarter-second delay, reaction travel is zero point three metres. With two metres per second squared deceleration, braking adds zero point three six metres. That is zero point six six metres before uncertainty margin. Noise makes readings jitter. Delay makes them old. Filtering may reduce jitter but add lag. A watchdog handles stale data; an independent stop path avoids waiting for the planner. Software monitoring is not safety certification. Which term grows with speed squared: reaction or braking distance?

Reading lab

Core explanation

Connect the lesson's words, diagrams, graphs, evidence, and equations.

Why can a robot keep moving after danger appears?

A robot does not react at the instant the world changes. A sensor samples, software transports and processes the sample, the controller decides, the actuator responds, and the body decelerates. The total distance before rest is therefore more than braking distance.

Learning objectives

You will be able to:

  • distinguish measurement noise from delay;
  • build a latency budget from sensing through actuation;
  • estimate stopping distance as reaction distance plus braking distance;
  • explain why filtering, saturation, watchdogs, and independent stop paths change safety evidence.

Mental model: noisy evidence arrives late

Noise changes the reported value even when the physical state is similar. Delay makes a correct measurement describe an older state. Filtering may quiet jitter, but an overly slow filter can add lag. Saturation means a controller cannot command more than the actuator can deliver.

Use this evidence chain:

sense → timestamp → transport → estimate → decide → command → brake → verify stopped

If any link is stale, missing, or bounded, the robot needs a defined safe response.

Stopping-distance budget: reaction travel plus braking travel, with noise, delay, saturation, watchdog, and independent stop path.

Worked example: a delayed stop

A rover travels at v = 1.2 m/s. Its end-to-end reaction delay is t = 0.25 s. Once braking begins, its measured deceleration is a = 2.0 m/s².

Reaction distance:

d_reaction = v × t = 1.2 × 0.25 = 0.30 m

Idealized braking distance under constant deceleration:

d_brake = v² / (2a) = 1.2² / 4.0 = 0.36 m

Nominal stopping distance:

d_stop = d_reaction + d_brake = 0.66 m

That is not yet a safety boundary. Real designs add evidence-based margin for timing variation, surface changes, measurement error, actuator limits, and uncertainty. Test the complete stop path under worst credible conditions.

Noise is not delay

Suppose a range sensor alternates between 0.98 m and 1.02 m around a stationary obstacle. That is noise. Suppose it consistently reports the obstacle position 200 ms late. That is delay. A median or low-pass filter can reject spikes, but filtering old samples more heavily may increase effective delay. Evaluate both jitter and age.

Retrieval pause

A smooth range signal is 400 ms old. Is it trustworthy for a fast stop? Explain using both accuracy and freshness.

Saturation changes the promise

If a controller requests -1.0 braking but the drive can apply only -0.5, the applied command—not the request—sets deceleration. Log both. One successful stop on a high-friction floor does not prove the same stop on dust, carpet, slope, low battery, or payload change.

A layered stop design

  1. Normal control: slows or stops from planned behavior.
  2. Watchdog: commands a safe state when messages are stale or missing.
  3. Independent collision monitor: uses defined zones to slow or stop without waiting for the main planner.
  4. Safety-rated hardware: when risk demands it, use rated devices and a qualified safety process. A ROS node alone is not certification.
  5. Recovery gate: clear the cause, reset stale goals, verify the scene, then deliberately restart. Do not automatically resume old motion.

Misconception checks

  • “A smoother signal is always safer.” No: smoothing can add delay.
  • “Commanding zero means stopped.” No: momentum and actuator dynamics remain.
  • “An emergency-stop button is just another software message.” No: required safety functions may need independent, safety-rated hardware.
  • “After the obstacle leaves, resume immediately.” No: verify state and invalidate stale goals first.

Summary

Stopping evidence is a budget: perception and computation consume time, the robot travels during that time, and braking consumes distance. Treat noise, delay, saturation, watchdog behavior, and recovery as measurable parts of one safety case.

Further learning

Practice labBuild a Stopping-Distance BudgetOpen this when you are ready to apply the model, collect evidence, and check your explanation.30 min

Lab: Build a Stopping-Distance Budget

Objective

Compare stopping distance across speed, delay, and braking conditions, then defend a conservative stop-zone threshold.

Materials

  • Spreadsheet, calculator, or paper
  • Optional template: lab-worksheet.csv
  • No physical robot required

Steps

  1. For each row, compute reaction_distance = speed × delay.
  2. Compute braking_distance = speed² / (2 × deceleration).
  3. Add the two distances to obtain nominal stopping distance.
  4. Add the listed uncertainty margin to obtain a proposed stop-zone distance.
  5. Compare the nominal row with higher speed, greater delay, weaker braking, and combined worst credible conditions.
  6. Mark any condition in which the proposed nominal zone would fail.
  7. Define a watchdog rule for stale sensor data and a recovery rule that prevents automatic resumption.

Expected Result

Stopping distance grows linearly with reaction delay and quadratically with speed in the idealized braking term. The combined adverse condition should require the largest zone. A defensible design uses measured worst-case timing and braking evidence rather than a single nominal trial.

Troubleshooting

  • Use seconds, metres per second, and metres per second squared.
  • Square speed only in the braking term.
  • Treat deceleration as a positive magnitude in the formula.
  • Do not confuse requested braking command with achieved deceleration.

Reflection Questions

  1. Which change increased total distance most in your table?
  2. How could a filter reduce jitter yet worsen the stopping budget?
  3. What evidence would justify the uncertainty margin?
  4. Why should recovery invalidate an interrupted motion goal?

Extension Challenge

Add a distribution of measured delays instead of one value. Choose a percentile or upper bound and explain the residual risk.

Accessibility fallback

Describe each row verbally as reaction travel, braking travel, margin, and final zone. A graph is optional.