From 58ad6f73e6fb8ca6664e05b32190140cc63983e4 Mon Sep 17 00:00:00 2001 From: Patrick Roncagliolo Date: Mon, 3 Feb 2025 14:19:14 +0100 Subject: [PATCH 1/2] Fix warning message --- fuse_optimizers/src/fixed_lag_smoother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuse_optimizers/src/fixed_lag_smoother.cpp b/fuse_optimizers/src/fixed_lag_smoother.cpp index 87de2e8fe..70ee055a7 100644 --- a/fuse_optimizers/src/fixed_lag_smoother.cpp +++ b/fuse_optimizers/src/fixed_lag_smoother.cpp @@ -416,7 +416,7 @@ void FixedLagSmoother::processQueue( << lag_expiration.nanoseconds() << ". The queued transaction with timestamp " << element.stamp().nanoseconds() << " from sensor " << element.sensor_name << " has a minimum involved timestamp of " << min_stamp.nanoseconds() << ", which is " - << (lag_expiration - min_stamp).nanoseconds() + << (lag_expiration - min_stamp).seconds() << " seconds too old. Ignoring this transaction."); transaction_riter = erase(pending_transactions_, transaction_riter); } else if ( // NOLINT From e598bee63eb439ece5ffb9fc6f07c26e3ff5a524 Mon Sep 17 00:00:00 2001 From: Patrick Roncagliolo Date: Mon, 3 Feb 2025 14:22:09 +0100 Subject: [PATCH 2/2] Another one --- fuse_optimizers/src/fixed_lag_smoother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuse_optimizers/src/fixed_lag_smoother.cpp b/fuse_optimizers/src/fixed_lag_smoother.cpp index 70ee055a7..a49a674fc 100644 --- a/fuse_optimizers/src/fixed_lag_smoother.cpp +++ b/fuse_optimizers/src/fixed_lag_smoother.cpp @@ -442,7 +442,7 @@ void FixedLagSmoother::processQueue( "The queued transaction with timestamp " << element.stamp().nanoseconds() << " and maximum involved stamp of " << max_stamp.nanoseconds() << " from sensor " << element.sensor_name - << " could not be processed after " << (current_time - max_stamp).nanoseconds() + << " could not be processed after " << (current_time - max_stamp).seconds() << " seconds, which is greater than the 'transaction_timeout' value of " << params_.transaction_timeout.nanoseconds() << ". Ignoring this transaction."); transaction_riter = erase(pending_transactions_, transaction_riter);