GLOBAL KNOWLEDGE ARK

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 chapter

After 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.

01

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.

02

Interpret repeated supplied results

Original constructed summary for three matched runs per controller. RMS values use the same acquisition window; endpoint errors are signed.

Interpret repeated supplied results
MetricA runsB runs
Tracking RMS / mm0.8, 0.9, 0.70.6, 0.7, 0.5
Endpoint error / mm+0.2, +0.1, +0.2+0.6, +0.5, +0.7
Observed max current / A1.5, 1.4, 1.51.9, 1.8, 1.9
Task energy / J12, 12.5, 11.514, 14.5, 13.5
03

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.

04

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=√((1+1+4+4)/4)=√2.5≈1.581 mm. Zero mean has hidden substantial deviations.

A’s mean task energy is(12+12.5+11.5)/3=12 J; B’s is 14 J. The 2 J difference is 16.7% of A’s mean for this dataset. Retain uncertainty and repeatability before treating it as a dependable physical saving.

Try the reasoning

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  1. Assembly Performance Metrics and Test MethodsNIST Intelligent Systems DivisionResearch program overviewnist.govRead source
  2. ros2_controllers: PID Controllerros2_control contributorsOfficial software documentationKilted, displayed October 2026 documentationcontrol.ros.orgRead source
  3. Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notesmanipulation.mit.eduRead source