Gym_LineTracer.py 文件源码

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

项目:Gym_LineFollower 作者: Chachay 项目源码 文件源码
def OnTimer(self, event):
        if self.World is not None:
            # Graphics Update
            self.bdc = wx.BufferedDC(self.cdc, self.bmp)
            self.gcdc = wx.GCDC(self.bdc)
            self.gcdc.Clear()

            self.gcdc.SetPen(wx.Pen('white'))
            self.gcdc.SetBrush(wx.Brush('white'))
            self.gcdc.DrawRectangle(0,0,640,640)

            for ag in [self.World.A]:
                ag.Draw(self.gcdc)
            self.World.BBox.Draw(self.gcdc)
            self.World.Course.Draw(self.gcdc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号