Module boundarySM :: Class BoundaryFollowerSM2
[frames] | no frames]

Class BoundaryFollowerSM2

sm.SM --+
        |
       BoundaryFollowerSM2

State machine with instances of io.SensorInput as input and io.Action as output. Follows a boundary with the robot's 'right hand' on the wall. Has two internal states: 'seek' and 'following'.

Instance Methods
 
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
  startState = 'seek'
By default, startState is none

Inherited from sm.SM: legalInputs, name

Instance Variables

Inherited from sm.SM: state

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)