def __init__(self, bincam, izzy, turntable, controller, options=AMTOptions()): self.bc = bincam self.izzy = izzy self.turntable = turntable self.c = controller self.options = options self.r = reset_rollout.reset(izzy, turntable)
return s @staticmethod def roll(tuples, change): frames, states = zip(*tuples) frames = frames[change:] states = states[:-change] return zip(frames, states) if __name__ == "__main__": bincam = BinaryCamera('./meta.txt') bincam.open() options = AMTOptions() #t = TurnTableControl() # the com number may need to be changed. Default of com7 is used #izzy = PyControl(115200, .04, [0,0,0,0,0],[0,0,0]) # same with this c = None #c = XboxController([options.scales[0],155,options.scales[1],155,options.scales[2],options.scales[3]]) izzy = DexRobotZeke() izzy._zeke.steady(False) t = DexRobotTurntable() #options.tf_net = net5.NetFive() #options.tf_net_path = '/home/annal/Izzy/vision_amt/Net/tensor/net5/net5_02-15-2016_11h58m56s.ckpt' options.tf_net = net6.NetSix() #options.tf_net_path = '/media/1tb/Izzy/nets/net6_02-26-2016_17h58m15s.ckpt' #options.tf_net_path = '/media/1tb/Izzy/nets/net6_02-27-2016_15h30m01s.ckpt'