From a141cf41807c508e58691c3c42919387e5ff9ded Mon Sep 17 00:00:00 2001 From: Fabiha Tasneem <55595104+fabihatasneem@users.noreply.github.com> Date: Sun, 3 Dec 2023 19:12:00 +0600 Subject: [PATCH] Fixed Inappropriate Logical Expression (#945) --- .../arm_obstacle_navigation/arm_obstacle_navigation_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmNavigation/arm_obstacle_navigation/arm_obstacle_navigation_2.py b/ArmNavigation/arm_obstacle_navigation/arm_obstacle_navigation_2.py index 40e6746bfc..591cd401eb 100644 --- a/ArmNavigation/arm_obstacle_navigation/arm_obstacle_navigation_2.py +++ b/ArmNavigation/arm_obstacle_navigation/arm_obstacle_navigation_2.py @@ -34,7 +34,7 @@ def main(): goal = (58, 56) grid = get_occupancy_grid(arm, obstacles) route = astar_torus(grid, start, goal) - if len(route) >= 0: + if route: animate(grid, arm, route)