Exemplo n.º 1
0
	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."
Exemplo n.º 2
0
    def trigger(clazz, joystickStatus):
        global robotStatus
#        BasicMotion.clearPendingTasks()

        BasicMotion.getUp()
        robotStatus = "getting up"