From 2402bc7966b7003edc9d2f375bfb83c3ed6668ab Mon Sep 17 00:00:00 2001 From: Hiroki OTA Date: Mon, 30 May 2022 12:47:08 +0900 Subject: [PATCH] feat: use THROTTLE to output log (#969) --- .../src/scene_module/stop_line/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/behavior_velocity_planner/src/scene_module/stop_line/scene.cpp b/planning/behavior_velocity_planner/src/scene_module/stop_line/scene.cpp index 7ab118518ab04..37d8b5ba0b257 100644 --- a/planning/behavior_velocity_planner/src/scene_module/stop_line/scene.cpp +++ b/planning/behavior_velocity_planner/src/scene_module/stop_line/scene.cpp @@ -231,7 +231,7 @@ bool StopLineModule::modifyPathVelocity( // If no collision found, do nothing if (!collision) { - RCLCPP_WARN(logger_, "is no collision"); + RCLCPP_WARN_THROTTLE(logger_, *clock_, 5000 /* ms */, "is no collision"); return true; }