Skip to content

Commit

Permalink
Fix robot action status tracking for navigation actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Jul 25, 2024
1 parent 8cac1fc commit ea679db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrobosim/pyrobosim/core/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def execute_action(self, action, blocking=False):
tgt_loc = action.target_location.name

self.world.gui.canvas.navigate(self, tgt_loc, action.path)
while self.executing_nav:
while blocking and self.executing_nav:
time.sleep(0.5) # Delay to wait for navigation
success = self.last_nav_successful
else:
Expand Down

0 comments on commit ea679db

Please sign in to comment.