From 2454f6be2e09d8fb33567db53c43e70c84ee1e63 Mon Sep 17 00:00:00 2001 From: iory Date: Thu, 14 Jul 2022 01:08:22 +0900 Subject: [PATCH] [jsk_topic_tools/timered_diagnostics_updater] Use force_update instead of update because of update called using TimeredDiagnosticUpdater's timer --- jsk_topic_tools/src/timered_diagnostic_updater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsk_topic_tools/src/timered_diagnostic_updater.cpp b/jsk_topic_tools/src/timered_diagnostic_updater.cpp index 87c822b38..31796133e 100644 --- a/jsk_topic_tools/src/timered_diagnostic_updater.cpp +++ b/jsk_topic_tools/src/timered_diagnostic_updater.cpp @@ -77,7 +77,9 @@ namespace jsk_topic_tools void TimeredDiagnosticUpdater::update() { - diagnostic_updater_->update(); + // Since TimedDiagnosticUpdater is already managed as a timer, + // diagnostic_updater_->force_update is executed instead of diagnostic_updater_->update. + diagnostic_updater_->force_update(); } void TimeredDiagnosticUpdater::timerCallback(const ros::TimerEvent& event)