Robotics & Mechatronics · Closed-loop robot implementation
Map a supplied controller to robot signals
A known control law can behave badly when connected to the wrong sign, unit or actuator mode. Map every signal to its physical meaning before changing the controller mathematics.
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
Connect a known control law to measured state, reference, actuator command and physical limits, making signs and units explicit.
Apply a supplied proportional law
The given implementation law is e=
| Signal | Meaning | Unit |
|---|---|---|
| r | Requested rail coordinate | mm |
| x | Calibrated observed rail coordinate, same reference | mm |
| e | Position error r−x | mm |
| Kp | Given proportional gain | A/mm |
| u | Requested drive current after clamp | A |
Check sign with a small supplied case
At r=
If x were connected with reversed sign, an actual positive movement could make measured x more negative, increasing the error and reinforcing the wrong response. A small conformance test and valid independent observation precede active-loop claims.
A unit mismatch can look like poor tuning
If the sensor provides 0.008 m but the controller subtracts it directly from 10 mm, it computes 9.992 as if millimetres. Correct conversion gives 8 mm and error 2 mm. Conversely, using r=
Transform units at one explicit boundary and retain the conversion version. Do not compensate a thousandfold scale mistake by increasing a gain until the robot “looks right.” The resulting record would hide the interface defect.
Map saturation and actual response as well
The clamp constrains the requested current in this model. Measured current, position and fault state remain separate observations. A drive can impose its own limits or reject the mode. A saturated output no longer follows the unconstrained proportional expression.
General feedback/stability and controller design belong to the canonical Engineering and AI depth. This lesson checks a supplied law’s implementation interfaces and test evidence.
Read the clamp and a corrected trace
At r=
A useful trace retains r, raw state, calibrated x, error, unclamped request, clamped request and measured current. It can then distinguish a scale error, saturation and a drive response discrepancy. A single output-current graph cannot distinguish all three.
Try the reasoning
What unit must Kp have to convert millimetre error to amperes?
Show the answer and reasoning
A/mm.
What is u for r=
5 mm, x= 9 mm? Show the answer and reasoning
Error−4 mm gives−2 A before clamp and−1 A after clamp.
Why not solve a metre/millimetre mismatch by retuning?
Show the answer and reasoning
It hides an interface error and invalidates the intended gain/unit relationship.
Does a+1 A request prove+1 A flowed?
Show the answer and reasoning
No. Retain measured current and actual drive state separately.
What to carry forward
Check signal identity, sign and units before interpreting controller performance. Preserve pre-limit, post-limit and measured quantities.
References
Sources supporting this lesson’s explanations and examples.