Skip to content

Commit

Permalink
Gracefully exit navigation action when target location is not specifi…
Browse files Browse the repository at this point in the history
…ed (#248)
  • Loading branch information
sea-bass authored Aug 23, 2024
1 parent 394c91d commit 50031fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyrobosim/pyrobosim/core/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,9 @@ def execute_action(self, action):
self.executing_nav = True
path = action.path if action.path.num_poses > 0 else None
if self.world.has_gui:
if not isinstance(action.target_location, str):
if action.target_location and not isinstance(
action.target_location, str
):
target_location_name = action.target_location.name
else:
target_location_name = action.target_location
Expand Down

0 comments on commit 50031fa

Please sign in to comment.