03 Dynamics and feedback

Home | Previous: 02 Geometry and Kinematics | Next: 04 Perception and State

A policy may request a target pose, but motors, gravity, friction, contact, and delay determine what actually happens. Dynamics models that relationship. Feedback corrects errors using repeated observations.

The robot equation

For a rigid manipulator, a common model is

is the inertia matrix, collects velocity-dependent effects under this convention, is gravity torque, is actuator torque, and is an external wrench mapped through the matching Jacobian. Real models may add friction and actuator dynamics. A learned policy need not output torque: an internal position controller may convert its requested joint targets into motor effort.

A simple closed loop

For a desired joint position , proportional-derivative control is

The proportional term pulls toward the target; the derivative term damps motion. For a stationary target and ideal unit-mass scalar plant , error dynamics are . Positive gains stabilize this ideal system, but actuator limits and delays can invalidate the simplified analysis.

feedback_response.png

Analytic second-order step responses with unit natural frequency. These curves do not model your SO-101 motors.

The same three damping ratios as a simulation of the ideal unit-mass plant. Change ZETAS or the gains in Tools/animations/ch03_pd_control.py and rerun to test your exercise answer.

A unit pendulum driven from 30° to 120° by PD plus a gravity-cancelling term, , . Without delay it settles cleanly. The same gains acting on 100 ms old measurements wobble, and at 120 ms they overshoot by 11° and are still ringing at 6 s. Past about 130 ms the loop is unstable. Source: Tools/animations/ch03_pendulum_delay.py.

flowchart LR
  Target["Desired pose"] --> Controller["Controller"]
  Controller --> Motor["Actuator and robot"]
  Motor --> Sensor["Sensor"]
  Sensor --> Controller
  Disturbance["Contact or disturbance"] --> Motor

Why robot learning needs control literacy

Changing the frequency at which a policy runs changes the physical action it produces. A 2 cm target increment sent ten times per second is not equivalent to the same increment sent fifty times per second. Low-level control frequency, sensor frequency, policy frequency, and action-horizon duration should all be recorded separately.

The policy’s loss can decrease while physical tracking gets worse because the model predicts stale or overly aggressive commands. Diagnose timestamp errors, calibration, target units, and actuator saturation before blaming the architecture.

Exercise and lab connection

With and for the ideal scalar plant, compute natural frequency and damping ratio.

In Lab 02 Policy Baseline, first verify repeatable low-speed target tracking and a working stop mechanism. Read the MIT Underactuated Robotics notes for deeper dynamics and control.