SkrlEnv#
- class genesis_forge.wrappers.SkrlEnvWapper(*args: Any, **kwargs: Any)[source]#
Bases:
Wrapper,WrapperA wrapper that makes your genesis forge environment compatible with the skrl training framework.
Initialize the logging wrapper with the function to use for data logging.
- get_observations() torch.Tensor#
Uses the
get_observations()of theenvthat can be overwritten to change the returned data.
- reset() Tuple[torch.Tensor, Any][source]#
Reset the environment
- Raises:
NotImplementedError – Not implemented
- Returns:
Observation, info
- Return type:
torch.Tensor and any other info
- state() torch.Tensor[source]#
Get the environment state
- Returns:
State
- Return type:
- step(actions: torch.Tensor) Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor, Any][source]#
Perform a step in the environment
- Parameters:
actions (torch.Tensor) – The actions to perform
- Returns:
Observation, reward, terminated, truncated, info
- Return type:
tuple of torch.Tensor and any other info
- 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.