Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RST-2149] better publisher log msgs #110

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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