def execute(self): if len(self.modifiers) == 0: BasicMotion.getUp() elif self.modifiers[0] == "front": BasicMotion.getUpFromFront() elif self.modifiers[0] == "back": BasicMotion.getUpFromBack() else: raise ParseError, self.command + " accepts the following modifiers: front/back."
def trigger(clazz, joystickStatus): global robotStatus # BasicMotion.clearPendingTasks() BasicMotion.getUp() robotStatus = "getting up"