OmniSafe Simmer Agent#
|
Base class for controlling safety budget of Simmer adapter. |
|
Simmer PID agent. |
Base Simmer Agent#
Documentation
- class omnisafe.common.simmer_agent.BaseSimmerAgent(cfgs, budget_bound, obs_space=(0,), action_space=(-1, 1), history_len=100)[source]#
Base class for controlling safety budget of Simmer adapter.
- Parameters:
cfgs (Config) – The configurations for the agent.
budget_bound (torch.Tensor) – The bound of the safety budget.
obs_space (tuple[int,], optional) – The observation space. Defaults to (0,).
action_space (tuple[int, int], optional) – The action space. Defaults to (-1, 1).
history_len (int, optional) – The length of the history. Defaults to 100.
Initialize an instance of
BaseSimmerAgent
.
Simmer PID Agent#
Documentation
- class omnisafe.common.simmer_agent.SimmerPIDAgent(cfgs, budget_bound, obs_space=(0,), action_space=(-1, 1), history_len=100)[source]#
Simmer PID agent.
- Parameters:
cfgs (Config) – The configurations for the agent.
budget_bound (torch.Tensor) – The bound of the safety budget.
obs_space (tuple[int,], optional) – The observation space. Defaults to (0,).
action_space (tuple[int, int], optional) – The action space. Defaults to (-1, 1).
history_len (int, optional) – The length of the history. Defaults to 100.
Initialize an instance of
SimmerPIDAgent
.