Skip to main content

Reachy 2 SDK

Project description

Python SDK for Reachy 2

Licence Code style: black linter pytest coverage Docs

Install

Use the following command to install:

$ pip install -e .[dev]

The [dev] option includes tools for developers.

Usage

Check out the examples folder for jupyter notebooks and example scripts.

Documentation

Documentation is generated via pdoc, and it's available at https://pollen-robotics.github.io/reachy2-sdk/reachy2_sdk.html

It can be generated locally with:

pdoc reachy2_sdk --output-dir docs --logo "https://pollen-robotics.github.io/reachy2-sdk/pollen_logo.png" --logo-link "https://www.pollen-robotics.com" --docformat google

The documentation relies on the provided docstrings with the google style. pydocstyle is used to enforced this style.

pydocstyle src/ --convention google --count

Unit tests

To ensure everything is functioning correctly, run the unit tests. There are two groups of tests: offline and online. Offline tests check internal functions using mock objects. Online tests require a connection to a simulated robot (e.g., in rviz), and the virtual robot should exhibit movement during these tests.

To execute the tests, use pytest with an optional category:

$ pytest [-m offline|online]

Note that only offline tests are executed by the Continuous Integration/Continuous Deployment (CI/CD) pipeline, as they don't require a gRPC connection.

Camera tests

Camera tests have their own marks because it requires the cameras to be plugged to the sdk server

$ pytest -m cameras

Logs

The SDK relies on the python logging system. Set the desired debug level to see messages from the SDK.

import logging
logging.basicConfig(level=logging.DEBUG)

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

reachy2_sdk-1.0.6.tar.gz (56.5 kB view details)

Uploaded Source

Built Distribution

reachy2_sdk-1.0.6-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file reachy2_sdk-1.0.6.tar.gz.

File metadata

  • Download URL: reachy2_sdk-1.0.6.tar.gz
  • Upload date:
  • Size: 56.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for reachy2_sdk-1.0.6.tar.gz
Algorithm Hash digest
SHA256 70b886e5c0bf8f1847de210ef63558e3a1ce438aad91c4a011784f4a31fe16a5
MD5 423280a00d8892cb531206edf1af4aa7
BLAKE2b-256 86741e6e7fc03227a2ff5e7ae7d4d470b15eac08f331fe06523a950a12f2d9d5

See more details on using hashes here.

File details

Details for the file reachy2_sdk-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: reachy2_sdk-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 69.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for reachy2_sdk-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b120bddc8e4588b84c3f91f2c980675b533235a0ff0a4d5ca66c6000486b69fd
MD5 e118df6f0a857ca9a433bb311e45fafb
BLAKE2b-256 b58dc8327f044d06ffb559b5a87d653168e76c72d736209ac18c18bd78360d21

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