ros2
runtime_error
ai_generated
partial
[diagnostic_aggregator] Stale diagnostic: /sensors/imu
ID: ros2/diagnostic-updater-stale
70%Fix Rate
82%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
diagnostic_updater reports stale status because the hardware driver stopped publishing diagnostics within the expected period.
genericWorkarounds
-
90% success Check if the hardware driver node is still running
ros2 node list | grep driver_node && ros2 topic hz /diagnostics
-
85% success Verify diagnostic_updater frequency matches the driver's publication rate
Set diagnostic_updater period to match or slightly exceed the driver rate
-
78% success Add a hardware watchdog that restarts the driver on failure
Dead Ends
Common approaches that don't work:
-
Increase the stale timeout to hide the warning
80% fail
Stale diagnostics usually mean the hardware is actually not responding; hiding delays fault detection
-
Remove the diagnostic from the aggregator config
75% fail
Loses monitoring capability for that hardware component