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 2
2
# ProrokLab (https://www.proroklab.org/)
3
3
# All rights reserved.
4
4
import importlib
5
+
6
+ import warnings
5
7
from typing import Optional
6
8
7
9
import numpy as np
@@ -44,6 +46,12 @@ def __init__(
44
46
)
45
47
self .action_space = batch_space (self .single_action_space , n = self ._num_envs )
46
48
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
+ )
47
55
48
56
@property
49
57
def unwrapped (self ) -> Environment :
You can’t perform that action at this time.
0 commit comments