# -*- encoding: UTF-8 -*- ''' Walk: Small example to make Nao walk ''' ''' with jerky head ''' ''' This example is only compatible with NAO ''' import argparse import time import random from naoqi import ALProxy def main(robotIP, PORT=9559): motionProxy = ALProxy("ALMotion", robotIP, PORT) postureProxy = ALProxy("ALRobotPosture", robotIP, PORT) # Wake up robot motionProxy.wakeUp() # Send robot to Stand Init postureProxy.goToPosture("StandInit", 0.5) # Initialize the move process. # Check the robot pose and take a right posture. # This is blocking called. motionProxy.moveInit() testTime = 10.0 # seconds t = 0.0 dt = 0.2 while t