commonpower.control.wrappers.DeploymentWrapper
- class DeploymentWrapper(env)[source]
Bases:
WrapperWrapper to standardize the deployment within CommonPower. Mainly takes care of transforming actions and observations such that they match the underlying wrappers (e.g., SingleAgentWrapper, MultiAgentWrapper, …).
- Parameters:
env (gym.Environment) – potentially wrapped ControlEnv
Returns: DeploymentWrapper
Methods
class_nameReturns the class name of the wrapper.
closeCloses the wrapper and
env.get_wrapper_attrGets an attribute from the wrapper and lower environments if name doesn't exist in this object.
renderUses the
render()of theenvthat can be overwritten to change the returned data.Uses the
reset()of theenvthat can be overwritten to change the returned data.Uses the
step()of theenvthat can be overwritten to change the returned data.wrapper_specGenerates a WrapperSpec for the wrappers.
Attributes
action_spaceReturn the
Envaction_spaceunless overwritten then the wrapperaction_spaceis used.metadataReturns the
Envmetadata.np_randomReturns the
Envnp_randomattribute.observation_spaceReturn the
Envobservation_spaceunless overwritten then the wrapperobservation_spaceis used.render_modeReturns the
Envrender_mode.reward_rangeReturn the
Envreward_rangeunless overwritten then the wrapperreward_rangeis used.specReturns the
Envspecattribute with the WrapperSpec if the wrapper inherits from EzPickle.unwrappedReturns the base environment of the wrapper.