Skip to content

Commit

Permalink
[RST-2149] Added the configured device_id to the log message (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
svwilliams committed Oct 17, 2019
1 parent f9c2bcb commit 184cfb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fuse_models/src/odometry_2d_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion fuse_publishers/src/pose_2d_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 184cfb7

Please sign in to comment.