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

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

Public Member Functions

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

Public Attributes

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

Detailed Description

Add noise to the action of an environment.

Constructor & Destructor Documentation

◆ __init__()

def upkie.envs.wrappers.noisify_action.NoisifyAction.__init__ (   self,
  env,
np.ndarray  noise 
)

Create wrapper.

Parameters
envEnvironment to wrap.
noiseNoise level.

Member Function Documentation

◆ action()

np.ndarray upkie.envs.wrappers.noisify_action.NoisifyAction.action (   self,
np.ndarray  action 
)

Get the noisy action.

Parameters
actionOriginal action.
Returns
Noisy action.

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