Now that you've installed Webots and the Python library up to the last time, let's run the Python code.
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.
Recommended Posts