Module corruptInput :: Class SensorCorrupter
[frames] | no frames]

Class SensorCorrupter

sm.SM --+
        |
       SensorCorrupter

State machine that takes instances of io.SensorInput and adds noise to them. Sonars have additive noise, drawn from a Gaussian with 0 mean and sonarStDev standard deviation. Odometry is changed only in the x dimension, with additive noise with 0 mean and odoStDev standard deviation. Output of the state machine are instances of CorruptedSensorInput.

Instance Methods
 
__init__(self, sonarStDev, odoStDev)
 
getNextValues(self, state, inp)
Default version of this method.

Inherited from sm.SM: check, doTraceTasks, done, getStartState, guaranteeName, isDone, printDebugInfo, run, start, step, transduce, transduceF

Class Variables

Inherited from sm.SM: legalInputs, name, startState

Method Details

getNextValues(self, state, inp)

 

Default version of this method. If a subclass only defines getNextState, then we assume that the output of the machine is the same as its next state.

Overrides: sm.SM.getNextValues
(inherited documentation)