Skip to main content

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

Luwu Dynamics · WIKI

PythonLib-WIKI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xgo-pythonlib-0.1.8.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

xgo_pythonlib-0.1.8-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file xgo-pythonlib-0.1.8.tar.gz.

File metadata

  • Download URL: xgo-pythonlib-0.1.8.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

Hashes for xgo-pythonlib-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3eebf2e7ee315d6d12ad88061de926da573d6f33ef3c66d8c05a28fe1bde14b0
MD5 8db2e27c99a1a88e0fae10a7bb44968b
BLAKE2b-256 765b3c88c3c47f7f59b4e1eae1c74075962ac0fceb157dcccdf801aad35aa8b6

See more details on using hashes here.

File details

Details for the file xgo_pythonlib-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for xgo_pythonlib-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a37abc9c79f634354a44dcba11474a9e8458289019ca026383779db6253172
MD5 de6bad96f28d4a2a4a259cbd0a421c16
BLAKE2b-256 8296020dc68e91bb617b18f14251656b84c20ffffdd2c8f9ac3d93fb729ecaad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page