tmrl.envs module
- class tmrl.envs.GenericGymEnv(id: str = 'Pendulum-v0', gym_kwargs=None, obs_scale: float = 0., to_float32=False)[source]
Bases:
WrapperUse this wrapper when using the framework with arbitrary environments.
- Parameters:
id (str) – gymnasium id
gym_kwargs (dict) – keyword arguments of the gymnasium environment (i.e. between -1.0 and 1.0 when the actual action space is something else)
obs_scale (float) – change this if wanting to rescale actions by a scalar
to_float32 (bool) – set this to True if wanting observations to be converted to numpy.float32