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 0512 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.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.3.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

xgo_pythonlib-0.1.3-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xgo-pythonlib-0.1.3.tar.gz
  • Upload date:
  • Size: 19.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.3.tar.gz
Algorithm Hash digest
SHA256 3f2013448aeb65ab1545185dfe52ae46cb0b0e2eed7daf6e8f68e9f32e02f301
MD5 02ceca25705678c07196c65f3785d670
BLAKE2b-256 7c994f48159c4f7d45cf99421d8f49b84d4d240423f774b3cdc500d094562c93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xgo_pythonlib-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 848803c073f162bcefaef3e477c3fb91db5bbfe6ab8203526f0053a6bd369e74
MD5 6e99c1a6a23abc203be56b52af42b740
BLAKE2b-256 d6541fdb6199b8d3f5e678fc83bbd808f88dcb3abd686a8577af30a046aa58c8

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