Created
December 12, 2016 18:27
-
-
Save erica/7d673c009b453eafec2c4a9525e72a71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import cozmo | |
''' | |
Hello Human | |
Make Cozmo say 'Hello Human' in this simple | |
Cozmo SDK example program. | |
''' | |
def run(sdk_conn): | |
robot = sdk_conn.wait_for_robot() | |
robot.say_text("Hello Human").wait_for_completed() | |
print("Success") | |
if __name__ == '__main__': | |
cozmo.setup_basic_logging() | |
cozmo.connect(run) | |
try: | |
cozmo.connect(run) | |
except cozmo.ConnectionError as err: | |
sys.exit("Connection error 😬: %s" % err) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment