From 184cfb7751691c224abefa08aa045a3f305c3950 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 17 Oct 2019 08:26:30 -0700 Subject: [PATCH] [RST-2149] Added the configured device_id to the log message (#110) --- fuse_models/src/odometry_2d_publisher.cpp | 3 ++- fuse_publishers/src/pose_2d_publisher.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fuse_models/src/odometry_2d_publisher.cpp b/fuse_models/src/odometry_2d_publisher.cpp index 1efa091fa..d8b146d19 100644 --- a/fuse_models/src/odometry_2d_publisher.cpp +++ b/fuse_models/src/odometry_2d_publisher.cpp @@ -93,7 +93,8 @@ void Odometry2DPublisher::notifyCallback( latest_stamp_ = synchronizer_.findLatestCommonStamp(*transaction, *graph); if (latest_stamp_ == Synchronizer::TIME_ZERO) { - ROS_WARN_STREAM_THROTTLE(10.0, "Failed to find a matching set of position and orientation variables."); + ROS_WARN_STREAM_THROTTLE( + 10.0, "Failed to find a matching set of state variables with device id '" << device_id_ << "'."); return; } diff --git a/fuse_publishers/src/pose_2d_publisher.cpp b/fuse_publishers/src/pose_2d_publisher.cpp index a9339309e..6c99b228d 100644 --- a/fuse_publishers/src/pose_2d_publisher.cpp +++ b/fuse_publishers/src/pose_2d_publisher.cpp @@ -204,7 +204,8 @@ void Pose2DPublisher::notifyCallback( auto latest_stamp = synchronizer_->findLatestCommonStamp(*transaction, *graph); if (latest_stamp == Synchronizer::TIME_ZERO) { - ROS_WARN_STREAM_THROTTLE(10.0, "Failed to find a matching set of position and orientation variables."); + ROS_WARN_STREAM_THROTTLE( + 10.0, "Failed to find a matching set of stamped pose variables with device id '" << device_id_ << "'."); return; } // Get the pose values associated with the selected timestamp