upkie 6.1.0
Open-source wheeled biped robots
|
Append last action vector to the observation vector. More...
Public Member Functions | |
def | __init__ (self, env) |
Initialize wrapper. More... | |
np.ndarray | observation (self, np.ndarray observation) |
rGet wrapped observation. More... | |
def | step (self, np.ndarray action) |
Step the environment. More... | |
Public Attributes | |
observation_space | |
Observation space. | |
Append last action vector to the observation vector.
Can be used in combination with gymnasium.wrappers.FrameStackObservation to create histories. (If there were directly a history wrapper in gymnasium we wouldn't need this wrapper.)
def upkie.envs.wrappers.add_action_to_observation.AddActionToObservation.__init__ | ( | self, | |
env | |||
) |
Initialize wrapper.
env | Wrapped environment. |
The initial action is set to zero.
np.ndarray upkie.envs.wrappers.add_action_to_observation.AddActionToObservation.observation | ( | self, | |
np.ndarray | observation | ||
) |
rGet wrapped observation.
observation | Observation from the wrapped environment. |
def upkie.envs.wrappers.add_action_to_observation.AddActionToObservation.step | ( | self, | |
np.ndarray | action | ||
) |
Step the environment.
action | Action from the agent. |