Skip to content

Commit

Permalink
Reinstate path planner warning with more descriptive message
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Jul 25, 2023
1 parent 31df5be commit 2c06a8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyrobosim/pyrobosim/navigation/path_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ def __init__(self, planner_type, **planner_config):
)
return None
if not planner_config:
planner_config = {}
warnings.warn(
f"No planner configuration provided. Must provide either a World or OccupancyGrid object.",
UserWarning,
)
return None

self.planner_type = planner_type
self.planner_config = planner_config
Expand Down

0 comments on commit 2c06a8c

Please sign in to comment.