def __init__(self):
self.coor = [0, 0]
self.direction = [0, 1]
self.img = pygame.image.load('res/robot.png')
self.img = pygame.transform.scale(
self.img, (2 * Maze.GRID_LEN, 2 * Maze.GRID_LEN))
self.loop = 0
self.moves = 0
self.movetime = 1
self.numExplored = 0
# comm=Com()
self.mark_explored()
self.short_path_cmd = [-1]
self.prev = False
self.stage = 0
self.uncalibrateMove = 0
self.actions=[]
self.is_goal_reach=0
评论列表
文章目录