Anki’s CozmoSDK
What is Cozmo
Anki's Repositories on GitHub
- Cozmo hardware
- iOS or Android device
- USB cable
- Computer running macOS or Linux
- Plug the mobile device containing the Cozmo app into your computer.
- Open the Cozmo app on the mobile device. Make sure Cozmo is on and connected to the app via WiFi.
- Tap on the gear icon at the top right corner to open the Settings menu.
- Swipe left to show the Cozmo SDK option and tap the Enable SDK button.
- Install Nix - the purely functional package manager for Linux and macOS.
- Why Nix?
- Version managers (e.g. Virtualenv) oftentimes could screw the system up.
- Docker for Mac can't pass through a USB device to a container.
- Why Nix?
- Pull this repository.
- Go to a terminal, run below commands (inside the repository directory):
cd cozmosdk
# start an interactive shell based on a Nix expression
# for the first time, it would download all dependencies
# for any further trigger, it would use the cached downloads
nix-shell
# to run an example
cd ../cozmo-python-sdk/examples/tutorials/01_basics/
./01_hello_world.py
# to quit this isolated environment, just run `exit`