Reachy 2 SDK
Project description
Python SDK for Reachy 2
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
Built Distribution
File details
Details for the file reachy2_sdk-1.0.7.tar.gz
.
File metadata
- Download URL: reachy2_sdk-1.0.7.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61f24e57faad3f7254801e337008a56ecb84ce4a61993463ca747fd359763403 |
|
MD5 | a560148f9f7acaf9a10485cce61dfa1c |
|
BLAKE2b-256 | b63ebf30577f81a58455af2c0db2d0a8494fbd1f6ac4077522911618da0a43ca |
File details
Details for the file reachy2_sdk-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: reachy2_sdk-1.0.7-py3-none-any.whl
- Upload date:
- Size: 69.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eb56b8fac1d4381c3509acce2e234255f679bb5fe4dda9811ba313b47b8fb7f |
|
MD5 | 1d5e812df0e8e07b54c88e635c5f4805 |
|
BLAKE2b-256 | ffa2485d228e9c9385a073c86b6ebd454ffb8006f8a6ab8bdd05fb7883083ff1 |