NAOqi Python sample (make NAO walk)

Now that you've installed Webots and the Python library up to the last time, let's run the Python code.

  1. Launch Webots
  2. Run the following script in Python
from naoqi import ALProxy
motion = ALProxy("ALMotion", "127.0.0.1", 9559)
motion.setStiffnesses("Body", 1.0)
motion.moveInit()
motion.moveTo(0.5, 0, 0)

Instead of motion.moveTo (0.5, 0, 0), motion.post.moveTO (0.5, 0, 0) can be executed asynchronously. this is convenient.

simulator walk

Recommended Posts

NAOqi Python sample (make NAO walk)
Python closure sample
Install NAOqi python
Ajax + Python + PostgreSQL sample
Random walk in Python
Python --Simple multi-thread sample
Sample data created with python
GitHub Actions Python cache sample
Make MeCab available from Python3
Make Puyo Puyo AI with Python
Don't make test.py in Python!
Make a bookmarklet in Python
Make a fortune with Python
Make Opencv available in Python
Make python segfault in 2 lines
Python higher-order function (decorator) sample
Sample usage of Python pickle
[Python] Sample code for Python grammar