From 02ea97222cd167c393aa6c75df01b12af0fe2527 Mon Sep 17 00:00:00 2001 From: youjian <1124895509@qq.com> Date: Sun, 15 Sep 2024 10:19:56 +0800 Subject: [PATCH] Reduce the number of tf warnings. --- rm_gimbal_controllers/src/gimbal_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rm_gimbal_controllers/src/gimbal_base.cpp b/rm_gimbal_controllers/src/gimbal_base.cpp index fdfd469a..7f98ba05 100644 --- a/rm_gimbal_controllers/src/gimbal_base.cpp +++ b/rm_gimbal_controllers/src/gimbal_base.cpp @@ -173,7 +173,7 @@ void Controller::update(const ros::Time& time, const ros::Duration& period) } catch (tf2::TransformException& ex) { - ROS_WARN("%s", ex.what()); + ROS_WARN_THROTTLE(1, "%s\n", ex.what()); return; } updateChassisVel();