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.4

xgolib_version=1.3.0

xgoedu_version=1.2.2

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xgo-pythonlib-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 1b36bfaab364b07e67564c9b51a2a9587fc63bb5288be0b1b3ad1330ec3200c8
MD5 1e5f5601fdf224bb4c299242c153d40f
BLAKE2b-256 033b553e65af7230b281567e753e1aa771aaf836341923cc4c1c8c477895f6cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xgo_pythonlib-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76bfef2c6e22037583c29a2792734d21353f9a3b36701586681a93551a35d5ef
MD5 d0417243bbf193089eff3dc5268e7975
BLAKE2b-256 519deba385670770853728bcce0716f7b878bffb500eda3f477d88786e695c87

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