Skip to main content

Reachy 2 SDK

Project description

Python SDK for Reachy 2

Licence Code style: black linter pytest coverage Docs

Install

You can install the library either from Pypi, or by cloning the entire repository :

From PyPi
pip install reachy2-sdk -e .
From the source
git clone https://github.com/pollen-robotics/reachy2-sdk.git
cd reachy2-sdk
pip install -e .[dev]

The [dev] option includes tools for developers.

Usage

Check out the examples folder for jupyter notebooks and example scripts. You can also take a look on the Reachy2 Documentation, which provides a more detailed overview of the SDK's various functions.

Documentation

SDK 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

You maybe have to install pdoc first by running pip install pdoc.

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 main 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

Audio tests

Audio tests have their own marks.

$ pytest -m audio

Mobile_base tests

Mobile base tests have their own marks as it used to be not supported in Rviz. The tests are based on the Gazebo simulation, so the robot must be launched in Gazebo mode when executing the tests.

$ pytest -m mobile_base

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reachy2_sdk-1.0.14-py3-none-any.whl (93.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reachy2_sdk-1.0.14.tar.gz
  • Upload date:
  • Size: 74.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for reachy2_sdk-1.0.14.tar.gz
Algorithm Hash digest
SHA256 4768604a0e30d825485043cf85e2be44264d0a0d25446938eb1f281048ed7a78
MD5 45160d7a09895cd3f893056ed88e349d
BLAKE2b-256 46b39459eea48ea6c191b879cd8c61e6b90ac1d44b3b63552b91f5f92ff359de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reachy2_sdk-1.0.14-py3-none-any.whl
  • Upload date:
  • Size: 93.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for reachy2_sdk-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5dfd4a7d14a410dcd36ccfc424cadf805732056ebb512929280551787d46e4
MD5 da9f493c641287806654f9a966c37a42
BLAKE2b-256 132faa7fc4982122c8fcfc19ff6d4e27ca59f173985d874136936e5bc68471c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page