Giter VIP home page Giter VIP logo

vector-python-sdk's Introduction

Anki/DDL Vector - Python SDK

by cyb3rdog

With support for Production, EscapePod and OSKR robots!

Compatible with Ubuntu 16.04 - 20.04 and Python 3.6.1 - 3.9

This is the extended fork of the original Anki Vector Python SDK.

Vector

Getting Started

For the steps undocumented here, you can still refer to this original SDK documentation. (TODO: docs are old and needs to be updated, contributors wanted)

If you are new to the Vector's Python SDK, refer to this documentation anyways, as it still contains lots of valuable information.

Python Installation

Windows:

If you dont have python installed yet, download and install it from the Python.org. Make sure to tick the “Add Python 3.X to PATH” checkbox on the Setup screen.

To avoid dificulties during the SDK install on your existing python installation, open the command line and run:

py -m pip install -U pip
py -m pip install --upgrade setuptools

Linux:

Open the Terminal and run following commands to install and update the Python, and packages required by SDK:

sudo apt-get update
sudo apt-get install -y python3 python3-pip python3-tk python3-pil.imagetk build-essential libssl-dev libffi-dev freeglut3
pip3 install --upgrade setuptools

SDK Installation

  • Note: Use either pip or pip3 correspondingly to the Python version you are using.

In case you have previously installed the original Anki or Ikkez SDK, uninstall it/them with following command(s):

  • pip uninstall anki_vector or pip3 uninstall anki_vector
  • pip uninstall ikkez_vector or pip3 uninstall ikkez_vector

To install this new SDK, run:

  • pip install cyb3r_vector_sdk or pip3 install cyb3r_vector_sdk and
  • pip install "cyb3r_vector_sdk[3dviewer]" or pip3 install "cyb3r_vector_sdk[3dviewer]"

To upgrade this SDK to its latest version, use:

  • pip install cyb3r_vector_sdk --upgrade or pip3 install cyb3r_vector_sdk --upgrade

If you want to know where the SDK files are installed, use following command:

  • Windows: py -c "import anki_vector as _; print(_.__path__)"
  • Linux: python3 -c "import anki_vector as _; print(_.__path__)"

SDK Configuration

To configure the Python SDK for Prod, and/or Prod+OSKR robots, run:

  • Windows: py -m anki_vector.configure
  • Linux: python3 -m anki_vector.configure

To configure the Python SDK for EscapePod, and/or EP+OSKR robots, run:

  • Windows: py -m anki_vector.configure_pod
  • Linux: python3 -m anki_vector.configure_pod

SDK Usage - EscapePod

You can either use the anki_vector.configure_pod in order to save your authentication into the sdk_config.ini file, and use all the examples and your own programs and as you have them, or you can use the Robot object with setting the escape_pod parameter to True, and passing the robot's ip address:

    with anki_vector.Robot(ip="192.168.0.148", escape_pod=True) as robot:
        robot.behavior.say_text("Hello Escape Pod")

Documentation

You can generate a local copy of the SDK documetation by following the instructions in the docs folder of this project.

Learn more about Vector: https://www.anki.com/en-us/vector

Learn more about how Vector works: Vector Bible

Learn more about the SDK: https://developer.anki.com/

SDK documentation: https://developer.anki.com/vector/docs/index.html

Forums: https://forums.anki.com/

Privacy Policy and Terms and Conditions

Use of Vector and the Vector SDK is subject to Anki's Privacy Policy and Terms and Conditions.

vector-python-sdk's People

Contributors

msintov avatar shawnblakesley avatar brucevonk avatar cyb3rdog avatar arjungm avatar snipebin avatar spirou42 avatar grant-olson avatar paulaluri avatar jejacks0n avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.