Adding required render_fps metadata to custom envs
This commit is contained in:
parent
ef64b0c21c
commit
6f1a36d18c
@ -62,6 +62,8 @@ class DMCWrapper(gym.Env):
|
|||||||
env: Callable[[], Union[composer.Environment, control.Environment]],
|
env: Callable[[], Union[composer.Environment, control.Environment]],
|
||||||
):
|
):
|
||||||
|
|
||||||
|
raise Exception('The fancy_gym dmc-wrapper is deprecated; shimmy should be used instead.')
|
||||||
|
|
||||||
# TODO: Currently this is required to be a function because dmc does not allow to copy composers environments
|
# TODO: Currently this is required to be a function because dmc does not allow to copy composers environments
|
||||||
self._env = env()
|
self._env = env()
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ class BeerPongEnv(MujocoEnv, utils.EzPickle):
|
|||||||
"rgb_array",
|
"rgb_array",
|
||||||
"depth_array",
|
"depth_array",
|
||||||
],
|
],
|
||||||
|
"render_fps": 100
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
@ -33,6 +33,7 @@ class BoxPushingEnvBase(MujocoEnv, utils.EzPickle):
|
|||||||
"rgb_array",
|
"rgb_array",
|
||||||
"depth_array",
|
"depth_array",
|
||||||
],
|
],
|
||||||
|
"render_fps": 50
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, frame_skip: int = 10):
|
def __init__(self, frame_skip: int = 10):
|
||||||
|
@ -29,6 +29,7 @@ class TableTennisEnv(MujocoEnv, utils.EzPickle):
|
|||||||
"rgb_array",
|
"rgb_array",
|
||||||
"depth_array",
|
"depth_array",
|
||||||
],
|
],
|
||||||
|
"render_fps": 125
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, ctxt_dim: int = 4, frame_skip: int = 4,
|
def __init__(self, ctxt_dim: int = 4, frame_skip: int = 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user