PID controller
- In French:
- Régulateur PID
- Abbreviation:
- PID
Definition
A control algorithm that computes a command from the difference between the desired value and the measured value, by adding three terms: proportional to the error, to its accumulation over time (integral) and to its rate of change (derivative). Tuning the three gains determines how fast and how stable the response is. ros2_control provides an implementation in its control toolbox.
Checked on against the references below. · Written with AI · checked against the sources Source: ros2_control documentation, “control_toolbox”, PID section.
What it changes for you
In ros2_controllers, the PID controller builds on control_toolbox’s PidROS class and can take its references from a topic or sit inside a controller chain. It does not interpolate trajectories: for linear, cubic or quintic interpolation between points, the documentation points to the Joint Trajectory Controller. On the tuning side, the integral term can build up when the output saturates; control_toolbox offers two anti-windup strategies, BACK_CALCULATION and CONDITIONAL_INTEGRATION.
Not to be confused with
Model predictive control relies on an internal model of the process to forecast its behavior and computes, under constraints, the control actions that minimize a cost function over a finite, receding horizon.
Additional material checked on .