Skip to main content
aksub

=====

A generic ROS2 subscriber that can receive numbers, strings, images, or video frames with minimal setup.

Installation
------------
First, make sure you have a working ROS2 environment with `rclpy` and `cv_bridge` installed.

Then clone this repository and install:

git clone https://github.com/yourname/aksub.git
cd aksub
pip install .

Usage
-----
Example Python usage:

import aksub

aksub.metadata(
mode=None, # Auto-detect from datatype
datatype="Float64", # e.g., "String", "Int32", "Image"
node_name="num_subscriber",
topic_name="number",
queue=10,
delay=1.0
)

print("Received value:", aksub.received_value)

Supported Datatypes
-------------------
- String (std_msgs.msg.String)
- Int32 (std_msgs.msg.Int32)
- Float32 (std_msgs.msg.Float32)
- Float64 (std_msgs.msg.Float64)
- Bool (std_msgs.msg.Bool)
- Image (sensor_msgs.msg.Image)

Accessing Received Data
-----------------------
- For String, Int, Float, Bool: `aksub.received_value` will be a Python primitive (str, int, float, bool).
- For Image/Video: `aksub.received_value` will be an OpenCV BGR image (numpy array).

Example for image:

import cv2
frame = aksub.received_value
if frame is not None:
cv2.imshow("Received Image", frame)
cv2.waitKey(0)

Example for video stream:

import cv2
while True:
frame = aksub.received_value
if frame is not None:
cv2.imshow("Video", frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cv2.destroyAllWindows()

Notes
-----
- `mode` can be "number", "string", "image", "video", or None for auto-detect.
- You can change `node_name`, `queue`, and `delay` in `metadata()`.
- `delay` can be used to control the processing interval.
- Requires `rclpy` and `cv_bridge` to be installed in your ROS2 Python environment.

Metadata

Release files for aksub 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aksub 0.1.1
File Size Uploaded Provenance Actions
aksub-0.1.1.tar.gz 3.4 kB Without provenance Details for aksub-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aksub 0.1.1
File Interpreter ABI Platform Actions
aksub-0.1.1-py3-none-any.whl Python 3 none any Details for aksub-0.1.1-py3-none-any.whl

Total release size: 7.1 kB

Release files / aksub-0.1.1.tar.gz

Download URL aksub-0.1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3089473b6d445a849c0eaddba038550ef15009ab2e740c2b5cf6dc5ada55c5f7
BLAKE2b-256 checksum
How to use checksums
2c2fce218dc925f87300cfb6194f55fbfbf22b043fb5daccd06337362ee3dc51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.4

Release files / aksub-0.1.1-py3-none-any.whl

Download URL aksub-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df481a5629861820282db2999dfc89a419d2764509ee8132a5760143eae5bbe9
BLAKE2b-256 checksum
How to use checksums
fd5dddfb9568e71cf3013ada23f0439330906c46acb0338aee73797f796820ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.4

Security for aksub 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page