|
__init__(self,
xMin,
xMax,
yMin,
yMax,
gridSquareSize)
Basic initializer that determines the number of cells, and calls the
makeStartingGrid method that any subclass must provide,
to get the initial values. |
|
|
|
|
|
squareColor(self,
indices)
Returns:
a color string indicating what color that cell should be drawn in. |
|
|
|
setCell(self,
(xIndex, yIndex))
Takes indices for a grid cell, and updates it, given information that
it contains an obstacle. |
|
|
|
clearCell(self,
(xIndex, yIndex))
Takes indices for a grid cell, and updates it, given information that
it does not contain an obstacle. |
|
|
|
robotCanOccupy(self,
(xIndex, yIndex))
Returns True if the robot's center can be at any
location within the cell specified by (xIndex, yIndex)
and not cause a collision. |
|
|
|
occupied(self,
(xIndex, yIndex))
Returns True if there is an obstacle in any part of this
cell. |
|
|
Inherited from gridMap.GridMap :
boxDim ,
drawNewSquare ,
drawPath ,
drawSquare ,
drawWorld ,
indexToX ,
indexToY ,
indicesToPoint ,
makeWindow ,
pointToIndices ,
undrawPath ,
xToIndex ,
yToIndex
|