Skip to content

Commit

Permalink
Allow default ground resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Mar 30, 2023
1 parent 841a7bc commit 5240d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smarts/bullet/bullet_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def initialize(self, fixed_timestep_sec: float):

def initialize_ground(self, resource_path, map_bb):
plane_path = resource_path # self._scenario.plane_filepath
if not os.path.exists(plane_path):
if resource_path is None or not os.path.exists(plane_path):
with pkg_resources.path(models, "plane.urdf") as path:
plane_path = str(path.absolute())

Expand Down

0 comments on commit 5240d21

Please sign in to comment.