From d1fbf2264e63d853a2f9c7d87f2bbad686425aaf Mon Sep 17 00:00:00 2001 From: Alexey Merzlyakov Date: Tue, 12 May 2020 15:31:45 +0300 Subject: [PATCH] Revert "Fix segfault in test_planner_random_node/test_planner_costmaps_node (#1640)" This reverts commit 26d776b4b1e3b39c01bd2f3a32fc924fff04ddf5. --- nav2_system_tests/src/planning/planner_tester.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nav2_system_tests/src/planning/planner_tester.hpp b/nav2_system_tests/src/planning/planner_tester.hpp index 5b9c8ac9499..a9dfaebd42c 100644 --- a/nav2_system_tests/src/planning/planner_tester.hpp +++ b/nav2_system_tests/src/planning/planner_tester.hpp @@ -83,12 +83,6 @@ class NavFnPlannerTester : public nav2_planner::PlannerServer } try { path = planners_["GridBased"]->createPlan(start, goal); - // The situation when createPlan() did not throw any exception - // does not guarantee that plan was created correctly. - // So it should be checked additionally that path is correct. - if (!path.poses.size()) { - return false; - } } catch (...) { return false; }