Robotics & Mechatronics · Closed-loop robot implementation
Compare robot controllers on the same task
A controller that looks smoother in one run may simply have received an easier task. Compare implementations under matched conditions using metrics that reflect the actual requirement.
All numerical tables, scenarios and records are original constructed teaching data unless a specific external dataset is named. No physical experiment is claimed. A worked simulation model is distinguished from an executed simulator.
Lesson preparation and course links
Use the local explanations and supplied units, diagrams, tables and examples; advanced chapters build on the named local chapters. External links are point-of-need depth, not a requirement to finish an entire map.
Back to the Robotics chapterAfter reading, you can
Use matched task conditions and repeated records to compare tracking, disturbance response, constraints and resource use without claiming one tuning is universally best.
Freeze the question and conditions
Compare supplied controllers A and B on the same 20-to 60 mm profile, load, initial reference, sampling and output limits. Randomise or alternate run order where appropriate and restore initial thermal/state conditions. Record gains, algorithm, software/configuration version and controller-state initialisation.
Choose criteria before examining results: endpoint error, tracking RMS over the same time window, maximum observed deviation, settling rule, constraint events and energy or resource use. A single composite score can conceal a failed requirement.
Interpret repeated supplied results
Original constructed summary for three matched runs per controller. RMS values use the same acquisition window; endpoint errors are signed.
| Metric | A runs | B runs |
|---|---|---|
| Tracking RMS / mm | 0.8, 0.9, 0.7 | 0.6, 0.7, 0.5 |
| Endpoint error / mm | +0.2, +0.1, +0.2 | +0.6, +0.5, +0.7 |
| Observed max current / A | 1.5, 1.4, 1.5 | 1.9, 1.8, 1.9 |
| Task energy / J | 12, 12.5, 11.5 | 14, 14.5, 13.5 |
Explain why the metrics can disagree
B has lower mean tracking RMS but larger final positive error, higher sampled current and more task energy. If endpoint acceptance is|error|≤0.4 mm on these indications, every supplied A run passes and every B run fails. A lower RMS does not override that requirement.
RMS is the square root of mean squared error over the declared samples. It weights larger errors more strongly than a mean signed error, which can cancel. Compare the same sampling and window; oversampling one phase can change the result.
Keep the conclusion restricted
Three runs show the pattern in this small constructed set. They do not establish a universal ranking or precise population confidence. Repeat across relevant loads/disturbances and changed conditions when the claim requires them. Do not tune using the final evaluation set and call it independent.
A valid preference can be task-specific: A meets the stated endpoint rule in these runs; B may be a candidate if another application prioritises transit tracking and can resolve its endpoint issue. General tuning theory remains with its owner.
Calculate and use an RMS example
For supplied errors[+1, −1, +2, −2] mm, mean signed error is 0 mm, but RMS=
A’s mean task energy is(12+12.5+11.5)/3=
Try the reasoning
Which controller meets the supplied±0.4 mm endpoint criterion?
Show the answer and reasoning
A in all three supplied runs; B in none, despite its lower RMS.
Can zero mean signed error establish accurate tracking?
Show the answer and reasoning
No. Positive and negative errors can cancel; inspect RMS, extrema and time trace.
Why use the same evaluation window?
Show the answer and reasoning
Different task phases and sampling weights can change the metric without a real controller improvement.
What follows from three successful trials?
Show the answer and reasoning
Success in those trials under their conditions, not universal reliability or an exact success probability.
What to carry forward
Compare matched tasks with declared metrics and repeated evidence. A controller preference is conditional on what the task actually needs.
References
Sources supporting this lesson’s explanations and examples.
- Assembly Performance Metrics and Test MethodsNIST Intelligent Systems DivisionResearch program overview
- ros2_controllers: PID Controllerros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentation
- Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notes