Make a prediction
Start with a joint at rest and command it to move to one radian. Keep the proportional gain fixed and increase the damping. Predict what will happen to the first peak. Then change the slider and check.
Use Time to inspect a position along the trace. At zero damping the idealized joint continues to oscillate. Moderate damping reduces the overshoot. Far above critical damping, the return becomes slow.
The joint model
The joint has inertia , angle , and angular velocity . Gravity, friction, and actuator limits are omitted. The reference angle is constant after the step. The proportional term pulls toward the reference. The derivative term opposes the current motion.
With constant inertia and a fixed reference, the tracking error follows the same equation as a damped oscillator. For , its damping ratio and critical derivative gain are
The continuous model’s critical value is with and . Try , then , then . Compare the first peak and the time it takes to get close to the target. The plot estimates overshoot over its four-second window.
Watch the three responses
The three traces use the same step, inertia, and stiffness. Their damping gains are , , and . The recording was made from the same fixed-step numerical model used in the browser.
Reproduce the experiment
Save joint_step.py and run it with Python 3. It writes time, position, and velocity to CSV. Change one gain at a time and plot the new position column. The numerical trajectory uses semi-implicit Euler, updating velocity before position.
python3 joint_step.py --kp 16 --kd 2 > response.csvq, qd = 0.0, 0.0
dt, inertia, target = 1 / 600, 1.0, 1.0
kp, kd = 16.0, 2.0
for step in range(2400):
torque = kp * (target - q) - kd * qd
qd += torque / inertia * dt
q += qd * dtOn a robot the effective inertia can change with the payload and pose. Actuator saturation, velocity estimation, and sample timing also change the response. The isolated model gives you a prediction to test when those effects are present.
References and code
- Xu Chen. Second-Order Step Response. An introduction to step responses in damped second-order systems.
- Russ Tedrake. Underactuated Robotics, Chapter 2. The Simple Pendulum. A model that includes gravity, with discussion of phase portraits and damping.
- Robot Learning Lab on GitHub contains code for the public Lab series. The numerical model used here is available as joint_step.py.
Cite this article
Aadi Mishra. Why damping matters. 26 November 2026. https://aadimishra.com/writing/why-damping-matters/index.html
@misc{mishra2026whydampingmatters,
author = {Mishra, Aadi},
title = {{Why damping matters}},
year = {2026},
month = {November},
day = {26},
url = {https://aadimishra.com/writing/why-damping-matters/index.html},
note = {Technical article on Aadi Mishra's website}
}