[Bug]: Reset options ignored when resetting due to termination / truncation from within wrapper's step
#1790
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
help wanted
Help from contributors is welcomed
🐛 Bug
Given a wrapped env, options passed with the recommended way (
wrapped_env.set_options
) are ignored when reset is triggered by episode termination / truncation instep_wait
of the env wrapper.A (myopic) fix could be to pass
self._options[env_idx]
andself._seeds[env_idx]
to the linked code above, or refactor a single-env resetting function to use both inDummyVecEnv.step_wait
andDummyVecEnv.reset
.Apologies if this expected behavior. If so, what is the recommended way to pass reset options that affect the above resetting scenario?
To Reproduce
Relevant log output / Error message
System Info
Checklist
The text was updated successfully, but these errors were encountered: