Keep It Cool: Optimal Control of Robotic Systems Under Temperature Constraints

Franco Angelini 1
Riccardo Incerpi 1
Lucia Pallottino 1
Manolo Garabini 1
IEEE Transactions on Control Systems Technology, 2026
1Centro di Ricerca “E. Piaggio” and Dipartimento di Ingegneria dell'Informazione, Università di Pisa, Pisa 56122, Italy
*Corresponding author: davide.debenedittis@phd.unipi.it

Abstract

Overheating of electronic components, and especially motor drivers, is a key limitation in robotic systems. This study presents a control approach based on hierarchical quadratic programming and model predictive control to prevent drivers from overheating in robotic systems. This is made possible by incorporating the temperature dynamics into the overall system dynamics. Prioritized inequality constraints limit the maximum temperature of the drivers in the control framework, avoiding overheating problems. Exhaustive simulations demonstrate the effectiveness of the proposed approach in preventing overheating while performing tasks, and an ablation study quantifies the contribution of each of the method’s main components. Experiments on a redundant planar manipulator further validate the proposed approach. The results show that, while exploiting its redundancy, the manipulator adjusts its configuration over time to respect the temperature and other critical constraints and optimally perform the commanded tasks.

Overheating is a control problem

Robotic systems rely on electronic and electromechanical components whose operating temperatures strongly affect performance and reliability. Motor drivers, which deliver high currents to actuators, are particularly prone to overheating, leading to damage or costly replacements, especially in demanding applications such as disaster response, healthcare, and environmental exploration.

Most works on thermal management focus on hardware: mechanical design, materials, and cooling solutions, ranging from passive devices to active cooling and even bio-inspired sweating actuators. Although effective, hardware solutions impose design trade-offs and add complexity and cost. Control strategies that explicitly account for temperature have received far less attention, despite requiring no hardware modifications and being deployable on existing platforms.

A prioritized MPC-HQP block handling hard limits, safety, and tasks sends desired joint quantities to a saturated low-level PD controller, which drives an arm whose actuators heat up according to a first-order thermal model.
Overview of the problem addressed, the overheating of robotic components during operations, and of the control architecture. Hard limits, safety (i.e., temperature limits), and the tasks are considered to prevent overheating.

Approach

Keep It Cool (KIC) embeds actuator temperature dynamics and constraints directly in the control framework. It relies on Hierarchical Quadratic Programming (HQP), which enables strict prioritization among tasks and has been successfully applied to redundant and high-DoF robots. A first-order thermal model is incorporated into a Model Predictive Control (MPC) problem using auxiliary variables and an epigraph reformulation, which converts absolute-value temperature dynamics into linear constraints. As a result, temperature becomes a hard constraint handled at the same level as the other physical limits.

Thermal model

Temperature dynamics arise from the interplay between heat generation, due to resistive and mechanical losses, and heat dissipation with the environment. The actuators’ temperature is modelled as a first-order linear system:

T˙=α(TTamb)+βτ\dot{T} = - \alpha \left( T - T_{\mathrm{amb}} \right) + \beta \left| \tau \right|

where TT is the actuator temperature, TambT_{\mathrm{amb}} the ambient temperature, τ\tau the actuator torque, and α\alpha and β\beta the thermal parameters modelling heat dissipation and generation. Although Joule heating is formally proportional to τ2\tau^2, the linear βτ\beta \left| \tau \right| form achieves comparable RMSE to higher-order alternatives on the identification data and preserves the QP structure that enables a real-time HQP-MPC. The thermal time constant 1/α1 / \alpha is also more than an order of magnitude longer than the MPC horizon, so the temperature evolves near-linearly within a prediction window.

Epigraph reformulation

The absolute value in the thermal model is not smooth, and would take the problem out of the QP class. An absolute-value inequality constraint xxmax\left| x \right| \le x_{\mathrm{max}} is therefore replaced by a slack variable zz and the linear constraints

zxz,z0,zxmax.-z \le x \le z, \quad z \ge 0, \quad z \le x_{\mathrm{max}} .

The transformation is the standard epigraph reformulation: it preserves feasibility and convexity while avoiding the non-smooth modulus operator. The resulting optimization therefore remains a plain QP, suitable for real-time control.

Control architecture

The whole-body controller solves a stack of prioritized tasks through a hierarchical QP and outputs desired joint positions, velocities, torques and temperatures to a low-level PD controller with a saturation block, which commands the robot.

The Whole-Body Controller, which solves the prioritized MPC through the HQP block, runs at 400 Hz and outputs the desired commanded quantities. The Low-Level Controller runs at 1 kHz: a PD controller compensates the joint-tracking error using position and velocity feedback. The Saturation block is a software clamp on the controller side that enforces the torque and the temperature-derived torque limits before the command is sent to the hardware. It bounds the PD term, which is added downstream of the optimizer and can inject torque the QP never authorized under model mismatch.

Task priorities

Tasks are assigned priorities according to their importance. Dynamic consistency, when present, holds the highest priority because it ensures adherence to the system dynamics, and the epigraph reformulation follows, as it must be equivalent to the original problem. The torque limits task enforces a non-negotiable physical constraint; the temperature limit comes next, encoding safety rather than immediate operational needs. Velocity limits have lower priority, and the motion task is ranked last, so its execution never causes limit violations or overheating.

PriorityTask
1Dynamic consistency (multiple shooting only)
2Epigraph reformulation
3Torque limits
4Temperature limits
5Velocity limits
6Motion tracking task

Simulation

Each trial lasts 60 s with the cascade re-solved at 400 Hz, an ambient temperature of 25 °C, and a maximum actuator temperature of 40 °C. The MPC uses three control steps of 50 ms, i.e. a 0.15 s horizon.

In the reach and hold task the robot must reach a desired end-effector position and hold it indefinitely. The desired position is chosen so that it is not feasible long term, meaning that the robot would overheat if it were to hold it indefinitely. The standard weighted QP maintains a low end-effector position error at the cost of overheating the actuators, while the proposed HQP approach does not overheat the actuators and accepts larger errors when necessary. This happens when the temperatures of both the first and the second actuator are close to the maximum: not even exploiting the robot’s redundancy can then achieve the task without overheating.

End-effector trajectory with the weighted QP, coloured by maximum actuator temperature, ending in a red segment above 40 degrees Celsius.
Weighted QP: the end-effector holds the target, but the actuators overheat.
End-effector trajectory with the proposed hierarchical QP, coloured by maximum actuator temperature, looping near the target and staying below 40 degrees Celsius.
Proposed approach: the end-effector drifts around the target, and the temperature limit is respected.

In the lemniscate task the robot follows a figure-eight trajectory of 0.1 m amplitude while constrained to keep the end-effector inside a rectangular area. The constraint ordering is: 1) the physical limits of the system, 2) the temperature limits of the actuators, 3) the Cartesian limits on the end-effector coordinates, and 4) the reference trajectory tracking. The lemniscate is likewise not feasible for the robot to follow indefinitely without overheating.

Simulated manipulator in two configurations tracking a figure-eight end-effector trajectory in green, with the reference in red and the forbidden Cartesian regions shaded red.
Lemniscate trajectory tracking with Cartesian limits. The end-effector trajectory is green, the reference red, and the red zones denote the Cartesian limits to be avoided.

Both case studies confirm a consistent pattern: the HQP controller treats actuator temperature as a hard constraint and violates the tracking task when necessary. In the reach and hold task the controller achieves good accuracy before approaching the temperature limit, at which point it prioritizes the thermal constraint over tracking. In the lemniscate task, compatibly with the temperature limits, it respects the Cartesian limits and, with lower priority, the trajectory tracking.

Ablation study

The state of the art does not provide a unified framework for temperature-aware control: existing methods either solve different problems or represent a narrow subset of this approach, so a direct comparison is not particularly meaningful. Instead, deactivating components or adding variations, such as CBF-based constraints, lets us evaluate the impact of each component.

ControllerPosition RMSE [cm]Max pos. error [cm]Avg. temp. [°C]Max temp. [°C]
KIC + WQP (κ = 2)2.915.140.4843.07
KIC + WQP (κ = 5)3.514.939.6240.45
KIC + WQP (κ = 10)3.215.139.4840.12
KIC + WQP (κ = 20)3.314.538.1940.10
KIC + WQP (κ = 20) + CBF4.515.337.4539.76
KIC + no epigraph4.714.937.1239.99
KIC (proposed)3.213.839.4639.99

Reach and hold task, with a 40 °C limit. Each ”+” marks the substitution of a single component of the proposed framework.

The results show that WQP is highly sensitive to the choice of weights: it fails to guarantee temperature limits and, depending on the relative weight κ, can cause significant violations. The HQP-based formulation achieves optimal temperature management without extensive parameter tuning, violating the constraint only when necessary. The CBF generally yields a more conservative behavior, so it satisfies temperature limits even with low-weight WQP, at the cost of worse position tracking; it is a valid, more conservative addition to the proposed approach, beneficial in certain scenarios. Without the epigraph reformulation, an additional torque-variation constraint is required to prevent the controller from exploiting the linearization with negative cooling torques, which adds two parameters that must be tuned.

Experiments

The controller was validated on a planar 3-DoF robotic arm driven by three identical EM-Act actuators, which are current-controlled and measure joint positions, velocities, and driver temperatures. Three experiments of 300 s each are executed: a reach and hold task, a lemniscate trajectory tracking task with workspace limits, and a reach and hold task with an unmodeled payload. Each task is performed twice: once with a conventional temperature-unaware controller and once with the proposed controller.

An intentionally low temperature limit of 35 °C is enforced to generate appreciable thermal transients within reasonably long experiments, while also ensuring hardware safety. The controller mechanism is invariant in the absolute value of the limit: the temperature-limit task treats it as a parameter, so the same algorithm enforces any other limit, such as the rated 80 °C of typical motor drivers, without modification.

Temperature model identification

Prior to closed-loop tests, a first-order thermal model of the actuators was identified. Five constant-torque levels, covering a wide range of operating conditions, were each repeated five times until steady state, and the parameters were pooled over all 25 runs. The estimation yields α=(0.0456±0.0005)\alpha = (0.0456 \pm 0.0005) 1/s and β=(1.839±0.009)\beta = (1.839 \pm 0.009) °C/(N m s), at 95% confidence, with an RMSE of 1.03 °C. On the same dataset a quadratic heating term achieves 0.98 °C RMSE, a gain below the 1 °C sensor quantization, so the linear model is retained.

Measured actuator temperature rising from 20 to 57 degrees Celsius over 60 seconds under constant torque, with the fitted first-order exponential curve and its time constant and steady-state gain marked.
Temperature step response of the actuator and first-order approximated model. The time constant, the steady-state gain, and the temperature slope are superimposed on the plot.

Reach and hold

The arm holds an end-effector position for a predefined amount of time. This task causes the actuators to overheat, as proven by the results obtained with the temperature-unaware controller. The proposed controller modifies its behavior once the temperature limit is reached, at around 100 s, and reconfigures the arm to keep dissipating heat while staying close to the reference.

The planar three-link arm hanging from a shelf, reaching for a purple target sphere, with the executed end-effector trajectory drawn in green.
Overview of the reach and hold task. Multiple snapshots of the experiment are superimposed, the trajectory is shown in green, and the end-effector reference in purple.
Measured joint temperatures with the temperature-unaware controller, with the first joint crossing the 35 degrees Celsius limit after about 120 seconds and rising to 37.5.
Temperature-unaware controller: the actuators cross the 35 °C limit.
Measured joint temperatures with the proposed controller, with all three joints levelling off at the 35 degrees Celsius limit.
Proposed approach: the actuators settle on the limit instead of exceeding it.

During the hold phase, isolated outlier samples briefly cross 35 °C: the 0.1 °C sensor quantization combined with measurement noise makes raw readings flip above the limit even though the true temperature stays below it. A first-order low-pass filter, overlaid on the raw measurements, remains below the limit throughout, whereas the same filter on the baseline sits clearly above it, confirming that the baseline truly overheats.

Lemniscate trajectory with workspace limits

Here the end-effector executes a figure-eight path while remaining inside the admissible Cartesian workspace. As each actuator reaches the temperature limit, the controller further modifies its behavior.

Lemniscate trajectory tracking with Cartesian limits, played at 5x speed, with the measured actuator temperatures overlaid.
Superimposed snapshots of the arm tracing a figure-eight, with the executed trajectory in green, the reference in red, and the workspace boundaries shaded red.
Overview of the lemniscate trajectory tracking and Cartesian limits task. The trajectory is shown in green, the reference in red, and the Cartesian limits as red shaded areas.

Robustness to an unmodeled payload

Finally, a reach and hold task with an added weight of 0.5 kg tests the robustness of the proposed approach. The weight is not modeled in the control framework. The approach still manages the temperatures even in the presence of the unmodeled payload, while executing the task as closely as possible.

Superimposed snapshots of the arm holding a position while carrying an unmodelled 0.5 kg payload, with the end-effector reference in purple.
Reach and hold task with an added weight. Multiple snapshots of the experiment are superimposed, with the desired end-effector position in purple.

In every task, the temperatures of the actuators respected the limits, barring the isolated measurement outliers, and the end-effector trajectories were followed reasonably. The controller automatically adapted its behavior to the thermal dynamics of the system, dealing with and compensating for the overheating of both one and multiple actuators in increasingly complex tasks. Crucially, the controller does not collapse the tracking task: it exploits the manipulator’s kinematic redundancy to redistribute actuator load while keeping the end-effector close to the reference.

Conclusion

This work introduced a temperature-aware controller that embeds a first-order thermal model of the actuators into a hierarchical QP MPC scheme. By coupling an epigraph reformulation of the absolute-value temperature dynamics with strict task prioritization, the controller enforces hard temperature safety limits while exploiting redundancy to track end-effector motions. Compared with weighted QP baselines, CBF relaxations, and non-epigraph reformulations, the proposed design requires minimal tuning and preserves feasibility irrespective of the operating condition.

Simulations on a 3-DoF manipulator showed that the controller prevents overheating during challenging and dynamic tasks that would otherwise overheat the system. Hardware experiments confirmed the practicality of the method: the robot automatically re-configured itself to dissipate heat, never exceeding the safety limit, and maintained good position accuracy over prolonged tasks. These results validate, on real hardware, the claim that software-level thermal management can complement or, for low-power manipulators, even replace bulky active-cooling hardware.

BibTeX citation

@article{debenedittis2026keep,
author = {De Benedittis, Davide and Angelini, Franco and Incerpi, Riccardo and Pallottino, Lucia and Garabini, Manolo},
journal = {IEEE Transactions on Control Systems Technology},
title = {Keep It Cool: Optimal Control of Robotic Systems Under Temperature Constraints},
year = {2026},
pages = {1-13},
doi = {10.1109/TCST.2026.3721130}
}