RBQ robot SDK for Python (CycloneDDS-based pub/sub & RPC client for Rainbow Robotics quadruped)
Project description
rbq_sdk_python
Standalone Python interface for rbq_sdk
Installation
Dependencies
- Python >= 3.10 (cyclonedds 0.10.2 ships wheels only through CPython 3.10)
- cyclonedds == 0.10.2
- numpy
- opencv-python
Installing from PyPI
pip install rbq_sdk_py
Installing from source
Enter the rbq_sdk directory, and then install cyclonedds and rbq_sdk:
sudo bash scripts/build_dds.bash
sudo bash scripts/build.bash
Enter the rbq_sdk_python directory, and then install rbq_sdk_python.
sudo apt install python3-pip
pip3 install -e .
Usage
The Python interface maintains consistency with the rbq_sdk interface, achieving robot status acquisition and control through request-response or topic subscription/publishing. Example programs are located in the /example directory.
DDS Communication
In the terminal, execute:
python3 ./example/helloworld/publisher.py
Open a new terminal and execute:
python3 ./example/helloworld/subscriber.py
You will see the data output in the terminal. The data structure transmitted between publisher.py and subscriber.py is defined in user_data.py, and users can define the required data structure as needed.
High-Level Status and Control
The high-level interface maintains consistency with rbq_sdk in terms of data structure and control methods.
High-Level Status
Execute the following command in the terminal:
python3 ./example/high_level/read_highstate.py lo
Replace lo with the name of the network interface to which the robot is connected,.
High-Level Control
Execute the following command in the terminal:
python3 ./example/high_level/sportmode_test.py lo
Replace lo with the name of the network interface to which the robot is connected. This example program provides several test methods, and you can choose the required tests as follows:
test.StandUpDown() # Stand up and lie down
Front Camera
Use OpenCV to obtain the front camera (ensure to run on a system with a graphical interface, and press ESC to exit the program):
python3 ./example/front_camera/camera_opencv.py lo
Replace lo with the name of the network interface to which the robot is connected.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rbq_sdk_py-1.0.1.tar.gz.
File metadata
- Download URL: rbq_sdk_py-1.0.1.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f7ed633d5ce03c24881ca5c1fa10b5c6341e0ab4046e781bf89919cc5ae1f0
|
|
| MD5 |
0a5a98bdf51b72feeaedbcc5d6d9b86e
|
|
| BLAKE2b-256 |
7361d480ad44cedf6281d2a7c2b14fea8cef02bd9838ecca1f5d83392c700848
|
Provenance
The following attestation bundles were made for rbq_sdk_py-1.0.1.tar.gz:
Publisher:
release-rbq-sdk-py.yml on gurbann/RBQ
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rbq_sdk_py-1.0.1.tar.gz -
Subject digest:
a4f7ed633d5ce03c24881ca5c1fa10b5c6341e0ab4046e781bf89919cc5ae1f0 - Sigstore transparency entry: 2006099125
- Sigstore integration time:
-
Permalink:
gurbann/RBQ@f676948c701fcf151b770599ab336417c0eaf61a -
Branch / Tag:
refs/tags/rbq_sdk_py-v1.0.1 - Owner: https://github.com/gurbann
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-rbq-sdk-py.yml@f676948c701fcf151b770599ab336417c0eaf61a -
Trigger Event:
push
-
Statement type:
File details
Details for the file rbq_sdk_py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rbq_sdk_py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 67.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398a2f3654c6f8a688cc7e627ee40b9856df2099dd9d832b75cb2fad999281c0
|
|
| MD5 |
b3bae952a0659a93bb776971e483a278
|
|
| BLAKE2b-256 |
0663d92574d3189c79713e67ff45e73100a7b492751c85b410fa96c7c62fb55a
|
Provenance
The following attestation bundles were made for rbq_sdk_py-1.0.1-py3-none-any.whl:
Publisher:
release-rbq-sdk-py.yml on gurbann/RBQ
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rbq_sdk_py-1.0.1-py3-none-any.whl -
Subject digest:
398a2f3654c6f8a688cc7e627ee40b9856df2099dd9d832b75cb2fad999281c0 - Sigstore transparency entry: 2006099272
- Sigstore integration time:
-
Permalink:
gurbann/RBQ@f676948c701fcf151b770599ab336417c0eaf61a -
Branch / Tag:
refs/tags/rbq_sdk_py-v1.0.1 - Owner: https://github.com/gurbann
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-rbq-sdk-py.yml@f676948c701fcf151b770599ab336417c0eaf61a -
Trigger Event:
push
-
Statement type: