Skip to content

Commit

Permalink
Add the map source to the hiway-v1 reset (#1829)
Browse files Browse the repository at this point in the history
* Add the map source to the hiway-v1 reset

* Further clarify change.
  • Loading branch information
Gamenot authored Feb 7, 2023
1 parent fa978cb commit 8b3e66f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Copy and pasting the git commit messages is __NOT__ enough.

## [Unreleased]
### Added
- Added map source uri as `map_source` inside of `hiway-v1` reset info to indicate what the current map is on reset.
### Changed
### Deprecated
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion smarts/env/gymnasium/hiway_env_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def reset(

self._dones_registered = 0
observations = self._smarts.reset(scenario)
info = {}
info = {"map_source": self._smarts.scenario.road_map.source}

if self._env_renderer is not None:
self._env_renderer.reset(observations)
Expand Down

0 comments on commit 8b3e66f

Please sign in to comment.