Rsl_RL#
- class genesis_forge.wrappers.RslRlWrapper(env: GenesisEnv)[source]#
Bases:
WrapperA wrapper that makes your genesis forge environment compatible with the rsl_rl training framework.
IMPORTANT: This should be the last wrapper, as the change in the step and get_observations methods might break other wrappers.
- What it does:
Combines the terminated and truncated tensors into a single tensor (i.e. terminated | truncated).
Add the truncated tensor to the extras dictionary as “time_outs”.
Returns observations and extras from the get_observations method.
Initialize the logging wrapper with the function to use for data logging.
- build() None#
Builds the scene and other supporting components necessary for the training environment. This assumes that the scene has already been constructed and assigned to the <env>.scene attribute.
- get_observations()[source]#
Returns observations as well as an extras dictionary with the observations added to the extras[“observations”][“critic”] key.
- step(actions: torch.Tensor) tuple[torch.Tensor, torch.Tensor, torch.Tensor, dict[str, Any]][source]#
Returns a single “dones” tensor, instead of the terminated and truncated tensors (via terminated | truncated). Add the truncated tensor to the extras dictionary as “time_outs”.
- property action_space: gymnasium.spaces#
The action space of the environment.
- env: GenesisEnv = None#
- property extras: dict#
The extras/infos dictionary that should be returned by the step and reset functions. This dictionary will be cleared at the start of every step.
- property observation_space: gymnasium.spaces#
The observation space of the environment.
- property scene: genesis.Scene#
Get the environment scene.
- property unwrapped: GenesisEnv#
Returns the base environment of the wrapper.
This will be the bare
GenesisEnvenvironment, underneath all layers of wrappers.