#! /usr/bin/env python # -*- encoding: UTF-8 -*- """Example: Walk - Small example to make Nao walk""" import qi import argparse import sys import time import random def main(session): """ Walk: Small example to make Nao walk with jerky head. This example is only compatible with NAO. """ # Get the services ALMotion & ALRobotPosture. motion_service = session.service("ALMotion") posture_service = session.service("ALRobotPosture") # Wake up robot motion_service.wakeUp() # Send robot to Stand Init posture_service.goToPosture("StandInit", 0.5) # Initialize the move process. # Check the robot pose and take a right posture. # This is blocking called. motion_service.moveInit() testTime = 10.0 # seconds t = 0.0 dt = 0.2 while t