After Choregraphe, development in Python is recommended. This time, we will install the development environment in Python. Here, the one for Mac is shown.
NAOqi seems to use python2.7.
I can follow the instructions below, but I couldn't find the 2.1 binaries. https://community.aldebaran.com/doc/2-1/dev/python/install_guide.html
So I will use the one of 1.4.
First, go to the community site.
https://community.aldebaran.com
After logging in, go to SOFTWARES-> older software version.
So select NAOqi-1.14.5 and
I'm a Mac, so I chose pynaoqi-python-2.7-naoqi-1.14.5-mac64.tar.gz.
Unzip it and put it through the python path.
$ tar xvf Downloads/pynaoqi-python-2.7-naoqi-1.14.5-mac64.tar.gz
$ export PYTHONPATH=${PYTHONPATH}:~/pynaoqi-python-2.7-naoqi-1.14-mac64
If you do the following and there are no errors, you are successful.
$ python
>>> import nqoqi
>>>
Let's edit .bashrc for future use.
$ echo "export PYTHONPATH=${PYTHONPATH}:~/pynaoqi-python-2.7-naoqi-1.14-mac64" >> .bashrc
$ source .bashrc
Recommended Posts