#1- Exécutez le bloc suivant pour initialiser le robot. Attendez qu'il soit complètement blanc avant de passer à la suite.
%pylab inline
from __future__ import print_function
from poppy.creatures import PoppyErgoJr
poppy = PoppyErgoJr(camera='dummy')
import time
poppy.m1.led = 'white'
time.sleep(1)
from pypot.primitive.move import Move
poppy.m2.led = 'white'
time.sleep(1)
from pypot.primitive.move import MovePlayer
poppy.m3.led = 'white'
time.sleep(1)
poppy.m4.led = 'white'
time.sleep(1)
with open('Mouvement_demo.move') as f:
my_loaded_move = Move.load(f)
poppy.m5.led = 'white'
time.sleep(1)
player = MovePlayer(poppy, my_loaded_move)
poppy.m6.led = 'white'
time.sleep(1)
poppy.base_posture.start()
Populating the interactive namespace from numpy and matplotlib
#2- Lancez ce bloc pour jouer en boucle le mouvement enregistré au préalable
while 1 :
poppy.base_posture.start()
time.sleep(12)
player.start()
--------------------------------------------------------------------------- KeyboardInterrupt Traceback (most recent call last) <ipython-input-2-fb2fb4d924f5> in <module>() 1 while 1 : 2 poppy.base_posture.start() ----> 3 time.sleep(12) 4 player.start() KeyboardInterrupt: