def __init__(self): Renderer.__init__(self) # initialize the viewport size self.width = 800 self.height = 600 # initialize object which the camera follows self.centerObj = None self.mouseView = True self.viewDistance = 30 self.lastx = -0.5 self.lasty = 1 self.lastz = -1 self.dt = 1 self.fps = 50 self.lasttime = time.time() self.starttime = time.time() self.captureScreen = False self.isCapturing = False self.isFloorGreen = True self.body_geom = None self.keyboardCallback = None self.dataLock = threading.Lock() # capture only every frameT. frame self.counter = 0 self.frameT = 25
def __init__(self): Renderer.__init__(self) self.dataLock = threading.Lock() self.stopRequest = False self.pathx = [] self.pathy = [] self.f = None self.min = -1 self.max = 1 self.fig = None self.color = 'red'
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