Exemplo n.º 1
0
 def __init__(self):
     Renderer.__init__(self)
     
     self.dataLock = threading.Lock()  
     self.angle = 0.0
     self.angle_vel = 0.0
     self.pos = 0.0
     self.pos_vel = 0.0
     self.stopRequest = False
     
     # some drawing constants
     self.cartheight = 0.2
     self.cartwidth = 1.0
     self.polelength = 0.5
     self.plotlimits = [-4, 4, -0.5, 3]
     self.box = None
     self.pole = None 
Exemplo n.º 2
0
 def start(self):
     self.drawPlot()
     Renderer.start(self)