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

Install instructions

1 Burn the latest official image

2 Run this command:

pip install --upgrade xgo-pythonlib
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)

Change Log

[0.2.5] - 2023-07-19

Fixed

  • Methods: Change the init in xgolib.py to add delay to resolve some movement irregularities.

Change Log

[0.2.4] - 2023-07-13

Fixed

  • Methods: lcd_clear() was fixed.

[0.2.3] - 2023-07-04

Added

  • Methods: cap_color_mask added.

Fixed

  • CircleRecognition renamed BallRecognition and improved.

[0.2.2] - 2023-07-03

Added

  • Five Methods: SpeechRecognition SpeechSynthesis QRRecognition CircleRecognition ColorRecognitio added.

[0.2.0] - 2023-06-21

Fixed

  • xgoVideo and xgoVideoRecord method can be used.

[0.1.9] - 2023-06-20

Fixed

  • Fixed the issue with the xgoTakePhoto method that was causing abnormal RGB colors in the saved photos.

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.2.6.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

xgo_pythonlib-0.2.6-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xgo-pythonlib-0.2.6.tar.gz
  • Upload date:
  • Size: 24.8 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.2.6.tar.gz
Algorithm Hash digest
SHA256 d8b89f519e2f7b00a4a4fe5d3e3c99d1c3924a8b2da62c76a2f0b2c25787ec6b
MD5 5b43c774e2dc40ac89d518a05ef14a14
BLAKE2b-256 607fb68ab6de72e25d298e982aace8c30b2f6251e99bec9a514e87ca4be46e19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xgo_pythonlib-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f782f3497943667756421ed3f74f8ccb202405ef5fb772b5ffe37805feb3a37f
MD5 cddd7319b39d5e8b7429c1738c2197a7
BLAKE2b-256 5e1eebc5c6941d4bbcd4740f3960d68514f12dd4b39156c8cf66afe3ffa3214a

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