Section 7.2: Feedback, error, stability, overshoot, oscillation

A Careful Control Loop
Technical illustration for Section 7.2: Feedback, error, stability, overshoot, oscillation.
Figure 7.2A: Step-response curves for an underdamped, critically damped, and overdamped second-order system, annotating rise time, overshoot percentage, and settling time on each curve.
Big Picture

Feedback, error, stability, overshoot, oscillation is one lens on Control for AI Practitioners. We study it because an embodied agent needs decisions that survive contact with noisy sensors, delayed effects, and changing environments.

This section develops the technical contract for Feedback, error, stability, overshoot, oscillation into a usable mental model. First we define the object of study, then we connect it to the agent loop, then we test it with a compact implementation.

The key question in Feedback, error, stability, overshoot, oscillation is practical: what must the agent know, what can it observe, what action is available, and what evidence shows that the action worked under the stated conditions?

Action Is The Test

A representation earns its place when it changes the measurable action interface. In Feedback, error, stability, overshoot, oscillation, the reader should keep asking which decision becomes easier, safer, or more reliable.

Theory

For Feedback, error, stability, overshoot, oscillation, the practical design rule is to make the interface inspectable before optimization begins: inputs, outputs, units, latency, bounds, and failure labels should all be visible in the saved artifact.

Feedback begins with an error signal, $e_t=r_t-y_t$, where $r_t$ is the reference and $y_t$ is the measured output. Stability asks whether a small disturbance stays bounded or shrinks; overshoot asks how far the response passes the target; oscillation asks whether correction arrives with the wrong phase or too much gain. For an AI practitioner, these are not abstract labels. They are log columns in a step-response test.

Reading A Step Response
MetricWhat To MeasureWhat It Usually Means
Rise timeTime to move from near the start toward the target.Low gain, heavy damping, or actuator limits can make the response slow.
OvershootMaximum amount past the target, often $(y_{\max}-r)/r$.Feedback is aggressive relative to damping, delay, or mass.
Settling timeTime until the response remains inside a chosen tolerance band.Residual oscillation, sensor noise, or weak damping keeps the loop busy.
Steady-state errorFinal gap between target and measured output.Bias, friction, gravity, or missing integral action is still present.
Mechanism

The mechanism in Feedback, error, stability, overshoot, oscillation is the contract between representation and action. Name what enters the module, what leaves it, which assumptions make that transformation valid, and which log would reveal a bad handoff.

Worked Example

Stability of a linear system is decidable by inspection of one matrix. For \(\dot x = Ax\), the equilibrium is asymptotically stable exactly when every eigenvalue of \(A\) has a strictly negative real part. The Lyapunov view gives the same answer through an energy-like function: if there is a positive-definite \(P\) with \(\dot V(x) = x^\top(A^\top P + P A)x \le 0\), the system is stable. Code Fragment 7.2.1 takes a pendulum linearized near upright (an unstable plant), closes a PD loop around it, and verifies stability both ways.

import numpy as np
from scipy.linalg import solve_lyapunov

def classify(A):
    ev = np.linalg.eigvals(A)
    mx = np.max(ev.real)
    tag = "stable" if mx < 0 else ("marginal" if np.isclose(mx, 0) else "UNSTABLE")
    return ev, mx, tag

# Pendulum near upright: gravity term gives a positive eigenvalue -> it falls.
A_open = np.array([[0.0, 1.0],
                   [16.0, -0.2]])
# Proportional-derivative feedback u = -[k1 k2] x folded into the dynamics.
k1, k2 = 30.0, 8.0
A_cl = np.array([[0.0,        1.0],
                 [16.0 - k1, -0.2 - k2]])

for name, A in [("open-loop", A_open), ("PD closed-loop", A_cl)]:
    ev, mx, tag = classify(A)
    print(f"{name:>15}: eig = {np.round(ev, 3)}  max Re = {mx:+.3f}  -> {tag}")

# Lyapunov certificate for the stable loop: solve A^T P + P A = -Q, P must be PD.
Q = np.eye(2)
P = solve_lyapunov(A_cl.T, -Q)
print(f"Lyapunov P eigenvalues = {np.round(np.linalg.eigvalsh(P), 3)}  (all > 0 proves stability)")
open-loop: eig = [ 3.901 -4.101] max Re = +3.901 -> UNSTABLE PD closed-loop: eig = [-2.424 -5.776] max Re = -2.424 -> stable Lyapunov P eigenvalues = [0.064 1.209] (all > 0 => V(x)=x^T P x proves stability)
Code Fragment 7.2.1: the open-loop pendulum has an eigenvalue with positive real part, so it diverges. PD feedback moves both eigenvalues into the left half plane. The Lyapunov solve returns a positive-definite \(P\), an independent certificate of the same conclusion. The eigenvalue test answers stability directly; the Lyapunov function generalizes to nonlinear systems where eigenvalues are not defined.
Library Shortcut

The fragment should expose gain, pole location, settling time, overshoot, and oscillation. python-control makes the analysis repeatable, while logged step responses show whether the robot is stable in hardware.

Practical Recipe

  1. Write the observation, action, and success metric before choosing a model.
  2. Build a baseline that is simple enough to debug by inspection.
  3. Add the library implementation only after the baseline behavior is understood.
  4. Record failures as structured cases: perception error, state error, planning error, control error, or evaluation error.
  5. Run at least one perturbation test before trusting the result.
Common Failure Mode

The common mistake in Feedback, error, stability, overshoot, oscillation is to celebrate the component score before checking the closed-loop handoff. The failure usually appears at the boundary: stale state, wrong frame, delayed action, saturated actuator, or metric that ignores the real task cost.

Practical Example

A robotics team using Feedback, error, stability, overshoot, oscillation should log not only final success, but intermediate observations, chosen actions, controller status, and recovery events. The logs reveal whether the method is solving the task or merely passing the easiest episodes.

Memory Hook

Treat feedback, error, stability, overshoot, oscillation like a control-room label. If the label does not tell a future debugger what moved, what sensed, or what failed, it is decoration rather than engineering knowledge.

Research Frontier

For Feedback, error, stability, overshoot, oscillation, treat frontier claims as hypotheses until they expose enough detail to reproduce the result: data boundary, embodiment, controller interface, evaluation panel, and failure cases.

Self Check

Can you name the observation, state estimate, action, success metric, and most likely failure mode for Feedback, error, stability, overshoot, oscillation? If not, the system boundary is still too vague.

Production Pattern

Feedback, error, stability, overshoot, oscillation sits inside the Part II robotics contract: geometry defines where things are, kinematics defines what motion is possible, dynamics defines what motion costs, control defines how errors are corrected, and sensing defines what the agent can know on time.

Translate feedback behavior into measurable overshoot, settling time, steady-state error, and oscillation. This makes the section useful to students, builders, and researchers at the same time: the idea has an intuitive role, a formal interface, a runnable check, and a failure mode that can be reproduced.

Mechanism To Watch

For Feedback, error, stability, overshoot, oscillation, control closes the loop between estimated state and action. Keep reference, measured state, error signal, control law, actuator limits, and safety fallback separate in the evidence record.

Library Choices And Verification Checks
Tool or LibraryWhat It HandlesVerification Check
python-controlanalyzes linear systems, transfer functions, state-space models, and feedback loopsVerify units, sample time, poles, stability margin, and reference scaling.
CasADiformulates optimization-based controllers with constraints and horizonsVerify constraints, warm start, solver status, and deadline behavior.
Drakemodels dynamical systems, multibody plants, optimization, and controllersVerify scalar type, plant finalization, frame convention, and solver status.
do-mpcformulates optimization-based controllers with constraints and horizonsVerify constraints, warm start, solver status, and deadline behavior.
ROS 2 controlsupports practical work on Feedback, error, stability, overshoot, oscillationVerify the library output against the hand-built baseline on one small case.

Use this recipe when turning Feedback, error, stability, overshoot, oscillation into code, a simulator experiment, or a robot diagnostic. The point is not to use every library. The point is to keep the hand-built baseline and the maintained-tool path comparable.

  1. Write the control objective, measured state, actuator command, update rate, and saturation policy.
  2. Run a step-response test before adding learning, with overshoot, settling time, and steady-state error logged.
  3. Compare the hand controller with python-control, CasADi, Drake, do-mpc, or ROS 2 control on the same plant model.
  4. Record latency, missed deadlines, saturation events, constraint violations, and recovery actions.
  5. Only compare controllers and policies when they share sensors, action limits, disturbance tests, and safety checks.
Evidence Gate

For Feedback, error, stability, overshoot, oscillation, compare methods only through one saved artifact that preserves the inputs, outputs, units, timestamps, latency budget, configuration, seed, metric definition, and failure labels relevant to this section. The comparison is meaningful only when the same script evaluates the same panel.

Exercise Extension

Extend the section exercise by adding one perturbation specific to Feedback, error, stability, overshoot, oscillation and one latency or uncertainty check. Save the result in the EvidenceRecord schema, then explain which library output you trust and why.

A learned policy can hide an unstable inner loop until the disturbance changes. Check update rate, delay, saturation, integral windup, and fallback behavior before scaling training. For this section, first reproduce one tiny step response by hand, then rerun it through python-control, CasADi, Drake, do-mpc, or ROS 2 control. If the two disagree, inspect sample time, sign convention, measurement delay, and output units before changing the model.

Technical Core

Feedback, error, stability, overshoot, oscillation needs a topic-native core: variables, equations or system contracts, an algorithmic procedure, an expected output, and a failure diagnosis. Figure 7.2.T summarizes the chain this section must preserve when moving from a teaching example to a real embodied system.

Technical core for Feedback, error, stability, overshoot, oscillation A block diagram connecting assumptions, model, algorithm, evidence, and failure analysis for Feedback, error, stability, overshoot, oscillation. Assumptions frames, units, limits Model feedback control Algorithm update or plan Evidence trace, metric Failure diagnosis Graduate-depth contract: define variables, run the method, interpret output, and explain when it fails. This diagram marks the minimum technical chain the section must make explicit.
Figure 7.2.T: The technical core for Feedback, error, stability, overshoot, oscillation connects assumptions, model, algorithm, evidence, and failure analysis.
Formal Object

Error is $e_t=r_t-y_t$. Overshoot for a positive step can be recorded as $M_p=(y_{\max}-r)/|r|$. A discrete loop is practically stable when bounded perturbations produce bounded, decaying deviations under the same sample time, actuator limits, and sensor delay used in deployment.

Controller evaluation loop
  1. Define the reference, measured state, error signal, actuator command, update rate, and saturation policy.
  2. Run a step or disturbance response before adding learning.
  3. Log overshoot, settling time, steady-state error, latency, saturation, and recovery behavior.
  4. Compare PID, LQR, or MPC only under the same plant, sensors, limits, disturbance panel, and metric code.
Technical Contract For Feedback, error, stability, overshoot, oscillation
Contract FieldWhat To SpecifyWhy It Matters
State and observationVariables, units, timestamps, frames, and uncertainty.Prevents a model score from being mistaken for robot capability.
Action interfaceCommand type, limits, update rate, and safety fallback.Makes the learned or planned output executable.
Evidence artifactTrace, metric, configuration, seed, and failure label.Allows baseline and library path to be compared in one pass.
Tool pathpython-control, CasADi, do-mpc, Drake, ROS 2 control, MuJoCoShows the practical library route after the mechanism is understood.

For Feedback, error, stability, overshoot, oscillation, expected output is a trace where the relevant error decreases, overshoot stays within the design bound, and actuator commands remain within limits under the stated timing budget.

Failure Mode To Test

Feedback, error, stability, overshoot, oscillation should be stress-tested under delay, integral windup, actuator saturation, unmodeled friction, and reference-frame mismatch before the nominal trace is trusted.

Section References

Core references for Feedback, error, stability, overshoot, oscillation: Modern Robotics; Murray, Li, and Sastry; Siciliano et al.; LaValle; and official documentation for Drake, MuJoCo, Pinocchio, CasADi, python-control, GTSAM, ROS 2, and OpenCV as applicable.

Use these references to check notation, frame conventions, units, solver assumptions, and maintained-library behavior.

Key Takeaway

Feedback, error, stability, overshoot, oscillation is useful when it makes the perception-action loop more reliable, not when it merely adds a more impressive model name.

Exercise 7.2.1

Design a method-matched experiment for Feedback, error, stability, overshoot, oscillation. Specify the environment, observations, actions, metric, one perturbation, and the library output you would compare against the hand-built baseline.