This commit is contained in:
p57492168 2022-07-02 11:08:48 +08:00
parent 241ac1f9c3
commit 3776f9c2b8
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class SeaEnvEngine(object):
ship_radius: int, ship_radius: int,
ship_velocity: int, ship_velocity: int,
sonar_spread_times: int, # the number of sonar detection points sonar_spread_times: int,
obstacles: dict, obstacles: dict,

View File

@ -109,7 +109,7 @@ def make(
filling_time: int = 1, filling_time: int = 1,
cover_ratio: float = 1.0 cover_ratio: float = 1.0
): ):
with open(os.path.join('Palette', 'maps', f'{env_config}.yaml'), 'r') as f: with open(os.path.join('Palette', 'maps', f'{env_config}.yaml'), 'r') as f:
config = yaml.safe_load(f) config = yaml.safe_load(f)