Overview | API
ALMotionRecorder is a module giving the possibility to record NAO’s motors poses.
A first possibility is to record periodically, ie. a pose is stored every t seconds.
Another possibility is to use an interactive mode where the user choses when a poses must be stored.
Python example
IP = "127.0.0.1"
PORT = 9559
import time
from naoqi import ALProxy
mvrec = ALProxy("ALMotionRecorder",IP,PORT)
mvrec.post.startPeriodicRecording(["HeadPitch", "HeadYaw"], 0, True, 0.100, [], [])
time.sleep(4)
move = mvrec.stopAndGetRecording()
print move