Create a pynao environment with Python 2.6 32 bits
set CONDA_FORCE_32BIT=1
conda create -n pynao python=2.6
activate pynao
conda install matplotlib pil ipython pyzmq jinja2 tornado scipy
pip install pyevolve
Execute with:
set CONDA_FORCE_32BIT=1
SET AL_DIR=C:\UDK\naoqi-sdk-1.12.5-win32-vs2010
SET PATH=%PATH%;%AL_DIR%\bin;%AL_DIR%\lib
SET PYTHONPATH=%AL_DIR%\lib
activate pynao
ipython notebook Test.ipynb
In [1]:
import sys
sys.path.append('C:\\UDK\\naoqi-sdk-1.12.5-win32-vs2010\\lib')
In [2]:
from Nao import Nao
In [3]:
nao = Nao()
In [6]:
try:
nao.stand_up()
print('Stand up OK')
except AttributeError:
print('Ops, you need to manually stand up the robot with Choregraphe at')
print('C:\Program Files (x86)\Aldebaran\Choregraphe 1.12.5.3')
print('First connect to the robot then click on play of the stand_up behavior')
In [7]:
nao.initCrawling()
In [8]:
nao.getActualPose()
Out[8]:
In [9]:
import math
nao.crawl([1.28,0.1,0.21,0.,0.035,0.039,-2.,0.12,-0.86,math.pi,0.06,0.33,math.pi/2,0.005,-0.11,-2.,0.008,1.8,0.])
Out[9]:
In [10]:
import pyevolve
In [ ]: