Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rbq_sdk_py-1.0.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

rbq_sdk_py-1.0.1-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

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

Hashes for rbq_sdk_py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a4f7ed633d5ce03c24881ca5c1fa10b5c6341e0ab4046e781bf89919cc5ae1f0
MD5 0a5a98bdf51b72feeaedbcc5d6d9b86e
BLAKE2b-256 7361d480ad44cedf6281d2a7c2b14fea8cef02bd9838ecca1f5d83392c700848

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rbq_sdk_py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 398a2f3654c6f8a688cc7e627ee40b9856df2099dd9d832b75cb2fad999281c0
MD5 b3bae952a0659a93bb776971e483a278
BLAKE2b-256 0663d92574d3189c79713e67ff45e73100a7b492751c85b410fa96c7c62fb55a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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