Module replanner :: Class ReplannerWithDynamicMap
[frames] | no frames]

Class ReplannerWithDynamicMap

sm.SM --+
        |
       ReplannerWithDynamicMap

This replanner state machine has a dynamic map, which is an input to the state machine. Input to the machine is a pair (map, sensors), where map is an instance of a subclass of gridMap.GridMap and sensors is an instance of io.SensorInput; output is an instance of util.Point, representing the desired next subgoal. The planner should guarantee that a straight-line path from the current pose to the output pose is collision-free in the current map.

Instance Methods
 
__init__(self, goalPoint, useCostDynamics=False)
 
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

__init__(self, goalPoint, useCostDynamics=False)
(Constructor)

 
Parameters:
  • goalPoint - fixed goal that the planner keeps trying to reach
  • useCostDynamics - if True, use gridDynamics.GridCostDynamicsSM (which penalizes motion through cells according to the likelihood that they are occupied), otherwise, use gridDynamics.GridDynamics which only allows motion through cells that are marked occupiable, and uses step length as a cost.

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)