diff --git a/Palette/env/engine.py b/Palette/env/engine.py index 96ae820..8dcc260 100644 --- a/Palette/env/engine.py +++ b/Palette/env/engine.py @@ -29,7 +29,7 @@ class SeaEnvEngine(object): ship_radius: int, ship_velocity: int, - sonar_spread_times: int, # the number of sonar detection points + sonar_spread_times: int, obstacles: dict, diff --git a/Palette/env/sea_env.py b/Palette/env/sea_env.py index 5250fa3..364397e 100644 --- a/Palette/env/sea_env.py +++ b/Palette/env/sea_env.py @@ -109,7 +109,7 @@ def make( filling_time: int = 1, cover_ratio: float = 1.0 ): - + with open(os.path.join('Palette', 'maps', f'{env_config}.yaml'), 'r') as f: config = yaml.safe_load(f)