NB : ce wiki n'a aucun lien ni affiliation avec anki.com ; ce wiki est totalement non-officiel.

Python

Cozmo SDK est basé sur le langage Python3.

Voici le squelette d'un script python typique :

import cozmo
 
def cozmo_program(robot: cozmo.robot.Robot):
    # Here goes the main Cozmo function implementation
    # Currently Cozmo just will say 'Hello World' by himself.
    robot.say_text("Hello World").wait_for_completed()
 
cozmo.run_program(cozmo_program)
Imprimer/exporter
QR Code
QR Code python (generated for current page)