From 76a374db637f39dd9c20aa67f425dd3dc9f7a7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Sat, 21 Dec 2024 11:53:38 +0000 Subject: [PATCH] Add latest path reset --- pyrobosim/pyrobosim/navigation/a_star.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyrobosim/pyrobosim/navigation/a_star.py b/pyrobosim/pyrobosim/navigation/a_star.py index 2c67edc6..17804470 100644 --- a/pyrobosim/pyrobosim/navigation/a_star.py +++ b/pyrobosim/pyrobosim/navigation/a_star.py @@ -133,6 +133,7 @@ def neighbors(self, cell): def reset(self): """Resets the occupancy grid.""" + self.latest_path = Path() self.grid = OccupancyGrid.from_world( self.world, resolution=self.grid_resolution,