upkie 9.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches
AddActionToObservation Class Reference

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.
 

Detailed Description

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.)


The documentation for this class was generated from the following file: