robot.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:MDP 作者: Oo-ChenPeng-oO 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号