upkie 6.1.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches
upkie.envs.wrappers.noisify_observation.NoisifyObservation Class Reference

Add noise to the observation of an environment. More...

Public Member Functions

def __init__ (self, env, np.ndarray noise)
 Create wrapper. More...
 
np.ndarray observation (self, np.ndarray observation)
 Get noisy observation. More...
 

Public Attributes

 high
 Upper bound on observation noise.
 
 low
 Lower bound on observation noise.
 

Detailed Description

Add noise to the observation of an environment.

Constructor & Destructor Documentation

◆ __init__()

def upkie.envs.wrappers.noisify_observation.NoisifyObservation.__init__ (   self,
  env,
np.ndarray  noise 
)

Create wrapper.

Parameters
envEnvironment to wrap.
noiseNoise level.

Member Function Documentation

◆ observation()

np.ndarray upkie.envs.wrappers.noisify_observation.NoisifyObservation.observation (   self,
np.ndarray  observation 
)

Get noisy observation.

Parameters
observationNoise-less observation.
Returns
Noisy observation.

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