Skip to main content

PythonLib for XGO2-DOG

Project description

XGO-PythonLib

XGO2 robot can be developed using the Python language.The motion,pose,coordinates,gripper and servo of the XGO2 can be controlled via Python. The detailed instructions for use of the library are as follows.

PythonLib included xgolib.py xgoedu.py xgoadvance.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:

pip install --upgrade xgo-pythonlib

Examples

Perform gesture recognition on the current camera and press the "c" key to exit.

from xgoedu import XGOEDU 
edu = XGOEDU()

while True:
    result=edu.gestureRecognition()  
    print(result)
    if edu.xgoButton("c"):  
        break

xgolib library example

from xgolib import XGO
dog = XGO('/dev/ttyAMA0')
dog.action(1)

Lastest Verion:0.1.6

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

Uploaded Source

Built Distribution

xgo_pythonlib-0.1.6-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xgo-pythonlib-0.1.6.tar.gz
  • Upload date:
  • Size: 20.4 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.6.tar.gz
Algorithm Hash digest
SHA256 41d3ae1f6efe8adc33b130d1cad9e2dea3a5b8edeb95242680cd2fb3635172db
MD5 37ae6a550eca06fb6ce1a4e221514b0a
BLAKE2b-256 b6d7e9be1fff9382f6aaa9f843a58ec29240f699b4395cd75aa97012005692d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xgo_pythonlib-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ce8325032fd647dcab831f8192ca9db0c3a475ad4bdc5c90364ccaea03abdcd6
MD5 64e0e11a1d1793a27c179a1a1c8c8b98
BLAKE2b-256 3dfd19a47b85ea331baf965a971868cd7dc2cb03b8c2ef95a417100f5f2c6dd4

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