From 2a9e392023c198beaf4dd8959dc00084a93f6a16 Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Wed, 4 Oct 2017 13:14:59 +0200 Subject: [PATCH] Throttle rviz submap fading warning. (#514) --- cartographer_rviz/cartographer_rviz/submaps_display.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cartographer_rviz/cartographer_rviz/submaps_display.cc b/cartographer_rviz/cartographer_rviz/submaps_display.cc index 04ada82..3b8bb39 100644 --- a/cartographer_rviz/cartographer_rviz/submaps_display.cc +++ b/cartographer_rviz/cartographer_rviz/submaps_display.cc @@ -202,7 +202,7 @@ void SubmapsDisplay::update(const float wall_dt, const float ros_dt) { } } } catch (const tf2::TransformException& ex) { - ROS_WARN("Could not compute submap fading: %s", ex.what()); + ROS_WARN_THROTTLE(1., "Could not compute submap fading: %s", ex.what()); } // Update the map frame to fixed frame transform. Ogre::Vector3 position;