Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
nao.motion.request(NaoPostureRequest("Stand", 0.5))
  • To play an animation:

Info

If you are playing a standing animation, make sure you put the Nao in a standing posture beforehand

Code Block
nao.motion.request(NaoqiAnimationRequest("animations/Stand/Gestures/Hey_1"))

A list of all Nao animations can be found here.

A complete script for this tutorial can be found here: demo_nao_motion.py

Recording and Playing Custom Animations

...

  1. Specify which Nao parts you want to record (NOTE: a ‘chain’ is a group of body partparts, or a group link of joints):

    1. The full list can be found here

...

Code Block
nao.stiffness.request(Stiffness(.7, chain))

recording = NaoqiMotionRecording.load(MOTION_NAME)
nao.motion_record.request(PlayRecording(recording))

A complete script for this tutorial can be found here: demo_nao_motion_recorder.py