https://github.com/sandtreader/petoi.py
Python interface to Petoi Bittle robot dogs
https://github.com/sandtreader/petoi.py
Last synced: 5 months ago
JSON representation
Python interface to Petoi Bittle robot dogs
- Host: GitHub
- URL: https://github.com/sandtreader/petoi.py
- Owner: sandtreader
- License: mit
- Created: 2024-09-07T13:42:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T19:53:33.000Z (over 1 year ago)
- Last Synced: 2024-09-17T01:11:42.224Z (over 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Petoi.py
This is a minimal Python interface to [Petoi](https://petoi.com) BittleX
robot dogs, created for a fun half-day workshop.
It will automatically connect through either a serial port (if there are any)
or Bluetooth. You can specify specific serial or Bluetooth devices in
the Dog() constructor if you need to (for example, to run multiple dogs)
```
$ pip3 install pybluez
$ git clone https://github.com/sandtreader/petoi.py.git
$ cd petoi.py
$ python test.py
```
## Note on broken pybluez
The pip package for pybluez seems to be broken at the moment, so you may have to build and install from source. In Linux:
```
sudo apt install libbluetooth-dev
pip3 install git+https://github.com/pybluez/pybluez.git#egg=pybluez
```
## Note on Debian managed Python
To do the above in Debian, you'll need to create a managed environment and run pip3 and python from that:
```
$ python3 -m venv localpy
$ cd localpy
$ bin/pip3 ...
```