Skip to content

Commit

Permalink
Do not save waypoints if show_movement has been disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
urastogi885 authored Mar 9, 2021
1 parent b191988 commit bd411b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def explore(self, show_movement=False):
if self.robot == self.target:
print('Reached Target!!...')
self.video_output.release()
np.save('waypoints.npy', waypoints)
for key in self.grid_obj.obstacles.keys():
np.save(key, self.grid_obj.obstacles[key])
if show_movement:
np.save('waypoints.npy', waypoints)
for key in self.grid_obj.obstacles.keys():
np.save(key, self.grid_obj.obstacles[key])
break

0 comments on commit bd411b2

Please sign in to comment.