Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.posture.goToPosture("Stand",1.0)
- self.tts.post.say("Hello") # Do both things at the same time
- hello(self.motion) ########
- dance(self.motion) # The robot starts dancing
- self.tts.post.say("I am tired")##
- wipe(self.motion)
- self.posture.goToPosture("LyingBack",1.0)
- ## Waiting for 4 seconds
- import time
- time.sleep(4)
- ## Making the robot stand at speed 1, walk forwards, say phrase and sit at speed 1
- self.posture.goToPosture("Stand",1.0)
- self.motion.walkTo(0.5,0.0,0.0)
- self.tts.say("Mission accomplished")
- self.posture.goToPosture("SitRelax",1.0)
- # Defer the stopping procedure to the box
- self.onInput_onStop()
- def onInput_onStop(self):
- self.onUnload() #it is recommended to reuse the clean-up as the box is stopped
- self.onStopped() #activate the output of the boxx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement