File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
vmas/simulator/environment/gym Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 22# ProrokLab (https://www.proroklab.org/)
33# All rights reserved.
44import importlib
5+
6+ import warnings
57from typing import Optional
68
79import numpy as np
@@ -44,6 +46,12 @@ def __init__(
4446 )
4547 self .action_space = batch_space (self .single_action_space , n = self ._num_envs )
4648 self .render_mode = render_mode
49+ warnings .warn (
50+ "The Gymnasium Vector wrapper currently does not have auto-resets or support partial resets."
51+ "We warn you that by using this class, individual environments will not be reset when they are done and you"
52+ "will only have access to global resets. We strongly suggest using the VMAS API unless your scenario does not implement"
53+ "the `done` function and thus all sub-environments are done at the same time."
54+ )
4755
4856 @property
4957 def unwrapped (self ) -> Environment :
You can’t perform that action at this time.
0 commit comments