Skip to content

Commit

Permalink
[AGENT] fix desenrasca
Browse files Browse the repository at this point in the history
  • Loading branch information
JPCatarino committed Nov 15, 2021
1 parent 65094ad commit fae5c1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mainRob.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ def c2_move(self, ir_sensors, robot_location):

path = astar(self.map, curr_map_cell, dest_map_cell)
if not path:
self.desenrasca()
self.desenrasca(ir_sensors, robot_location)
return True
self.move_list = path_to_moves(path)
#print("Path", path)
#print("Move to path", path_to_moves(path))
Expand Down

0 comments on commit fae5c1e

Please sign in to comment.