From 54539d2d05683662d746e8023679e7b34756b951 Mon Sep 17 00:00:00 2001 From: Maxime CLEMENT <78338830+maxime-clem@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:55:35 +0900 Subject: [PATCH] fix(motion_velocity_planner): relax test precision to prevent random failures (#8799) Signed-off-by: Maxime CLEMENT Signed-off-by: emuemuJP --- .../test/test_collision_checker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/test/test_collision_checker.cpp b/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/test/test_collision_checker.cpp index df813db336a9d..fd9a7d6e6649b 100644 --- a/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/test/test_collision_checker.cpp +++ b/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/test/test_collision_checker.cpp @@ -60,7 +60,7 @@ Polygon2d random_polygon() bool all_within(const MultiPoint2d & pts1, const MultiPoint2d & pts2) { // results from the collision checker and the direct checks can have some small precision errors - constexpr auto eps = 1e-3; + constexpr auto eps = 1e-2; for (const auto & p1 : pts1) { bool found = false; for (const auto & p2 : pts2) {