Coder Social home page Coder Social logo

dastholo / wirepod-vector-python-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kercre123/wirepod-vector-python-sdk

0.0 0.0 0.0 15.07 MB

Patched version of a patched version of Cyb3rdog's Vector SDK v0.7.2-dev6 for Python 3.11.0, designed to work with wirepod

License: Other

Python 99.65% Makefile 0.35%

wirepod-vector-python-sdk's Introduction

Anki/DDL Vector - Python SDK

With support for any bot on wire-pod!

(theoretically) Compatible with Ubuntu 16.04 - 22.04 and Python 3.6.1 - 3.12

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

Originally forked by cyb3rdog, then forked by MoonDog83 who added 3.11 support and regenerated the proto, and finally forked by me (kercre123).

Vector

Getting Started

I am hosting SDK documentation here: https://keriganc.com/sdkdocs

The documentation contains installation guides, helpful tips, walkthroughs, and function descriptions which will help you use the thing.

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

If you are using Python 3.11 or abnove, create a file at ~/.config/pip/pip.conf with the following text:

[global]
break-system-packages = true

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
  • pip uninstall cyb3r_vector_sdk or pip3 uninstall cyb3r_vector_sdk

To install this new SDK, run:

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

To upgrade this SDK to its latest version, use:

  • pip install wirepod_vector_sdk --upgrade or pip3 install wirepod_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 authenticate a bot with the SDK (works when bot is connected to wire-pod):

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

Log Level

In order to change the log level to other then default value of INFO, set the VECTOR_LOG_LEVEL enviroment variable:

Allowed values are:

CRITICAL	= 50
FATAL 		= CRITICAL
ERROR 		= 40
WARNING 	= 30
WARN 		= WARNING
INFO 		= 20
DEBUG 		= 10

Example:

  • Windows: SET VECTOR_LOG_LEVEL=DEBUG
  • Lunux: VECTOR_LOG_LEVEL="DEBUG"

Documentation

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

I am hosting SDK documentation here: https://keriganc.com/sdkdocs

Learn more about how Vector works: Vector Bible

Privacy Policy and Terms and Conditions

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

wirepod-vector-python-sdk's People

Contributors

msintov avatar shawnblakesley avatar brucevonk avatar cyb3rdog avatar kercre123 avatar arjungm avatar fredericowu avatar snipebin avatar spirou42 avatar grant-olson avatar moondog82 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.