stable_learning_control.disturbers.action_impulse_disturber
Contains a small gymnasium wrapper that can be used to disturb the action of
a gymnasium environment with a impulse applied at a certain time step (i.e.
magnitude
and time
).
Classes
A gymnasium wrapper that can be used to disturb the action of a gymnasium |
Functions
|
Get the time attribute of the environment. |
Get the time step attribute of the environment. |
Module Contents
- stable_learning_control.disturbers.action_impulse_disturber.get_time_attribute(env)[source]
Get the time attribute of the environment.
- Parameters:
env (gym.Env) – The gymnasium environment.
- Returns:
The time attribute of the environment.
- Return type:
- stable_learning_control.disturbers.action_impulse_disturber.get_time_step_attribute(env)[source]
Get the time step attribute of the environment.
- Parameters:
env (gym.Env) – The gymnasium environment.
- Returns:
The time step attribute of the environment.
- Return type:
- class stable_learning_control.disturbers.action_impulse_disturber.ActionImpulseDisturber(env, magnitude, time)[source]
Bases:
gymnasium.ActionWrapper
A gymnasium wrapper that can be used to disturb the action of a gymnasium environment with a impulse applied at a certain time step.
Initialise the ActionImpulseDisturber object.
- Parameters: