PythonLib for XGO2-DOG
Project description
XGO-PythonLib
XGO2 has built-in motion libraries for controlling the movement and various features of the machine dog, including battery level, firmware version, and servo angle. The motion library enables users to control translation and pose movement, as well as single servo and single-leg movement. The education library facilitates camera, screen, key, microphone, and speaker operations, as well as commonly used AI functions such as gesture recognition, face detection, emotional recognition, and age and gender recognition. The detailed instructions for use of the library are as follows.
PythonLib included xgolib.py and xgoedu.py
Install instructions
1 Burn the official 0609 img image
2 Copy all files from the "model" directory to \home\pi\model
3 Run this command:
sudo pip install --upgrade xgo-pythonlib
Examples
Perform gesture recognition on the current camera and press the "c" key to exit.
from xgoedu import XGOEDU
XGO_edu = XGOEDU()
while True:
result=XGO_edu.gestureRecognition()
print(result)
if XGO_edu.xgoButton("c"):
break
xgolib library example
from xgolib import XGO
dog = XGO('xgomini')
dog.action(1)
Lastest Verion:0.1.7
xgolib_version=1.3.1
xgoedu_version=1.2.3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xgo-pythonlib-0.1.7.tar.gz
.
File metadata
- Download URL: xgo-pythonlib-0.1.7.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7879b988d4d6dd1be619aa7c58ca81048fd87bba4b69d1a4638f2791c0364d00 |
|
MD5 | 6d62b1125f8dc30ac0726242c2735931 |
|
BLAKE2b-256 | dd4b455041429c6a66554307b5dbe180a6685fb21f90127d6a130c08d5644393 |
File details
Details for the file xgo_pythonlib-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: xgo_pythonlib-0.1.7-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e71567f1209765dbe7dfb533257774e850bdfd07d911ad3b217c77e6007398 |
|
MD5 | 735a262d4c58bf7c000ccb0b81a5bcfc |
|
BLAKE2b-256 | d997b910c67d8453bbc2d00d286f1b78fdd4fb0506b81f4bba02ad8f2c02da2c |