def __init__(self):
     self.actions = Actions()
     self.percepts = Percepts()
     self.tools = Tools()
     self.previous_scan_pose = None
     self.decision_required = True
     EstopGuard.add_callback(self.estop_changed_cb)
     # align camera
     self.actions.look_to(self.look_done_cb)
 def __init__(self):
     self.actions = Actions()
     self.percepts = Percepts()
     self.tools = Tools()
     self.previous_scan_pose = None
     self.decision_required = True
     self.at_approach = False
     self.at_ring = False
     self.loading_cube = False
     self.unloading_cube = False
     self.cube_operation_failure = False
     self.number_approach_failure = False
     self.standstill_failure = False
     self.scan_scheduled = False
     self.camera_aligned = False
     self.cube_status_string = ''
     self.status_string = ''
     EstopGuard.add_callback(self.estop_changed_cb)