Keep It Cool: Optimal Control of Robotic Systems Under Temperature Constraints
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.
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:
where is the actuator temperature, the ambient temperature, the actuator torque, and and the thermal parameters modelling heat dissipation and generation. Although Joule heating is formally proportional to , the linear 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 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 is therefore replaced by a slack variable and the linear constraints
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, 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.
| Priority | Task |
|---|---|
| 1 | Dynamic consistency (multiple shooting only) |
| 2 | Epigraph reformulation |
| 3 | Torque limits |
| 4 | Temperature limits |
| 5 | Velocity limits |
| 6 | Motion 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.
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.
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.
| Controller | Position RMSE [cm] | Max pos. error [cm] | Avg. temp. [°C] | Max temp. [°C] |
|---|---|---|---|---|
| KIC + WQP (κ = 2) | 2.9 | 15.1 | 40.48 | 43.07 |
| KIC + WQP (κ = 5) | 3.5 | 14.9 | 39.62 | 40.45 |
| KIC + WQP (κ = 10) | 3.2 | 15.1 | 39.48 | 40.12 |
| KIC + WQP (κ = 20) | 3.3 | 14.5 | 38.19 | 40.10 |
| KIC + WQP (κ = 20) + CBF | 4.5 | 15.3 | 37.45 | 39.76 |
| KIC + no epigraph | 4.7 | 14.9 | 37.12 | 39.99 |
| KIC (proposed) | 3.2 | 13.8 | 39.46 | 39.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 1/s and °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.
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.
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.
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.
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}}