A generic ROS2 publisher for numbers, strings, images, and video.
Project description
akpub
=================
A generic ROS2 publisher that can publish 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/akpub.git
cd akpub
pip install .
Usage
-----
Example Python usage:
import akpub
akpub.metadata(
mode=None, # Auto-detect from datatype
datatype="Float64", # e.g., "String", "Int32", "Image"
node_name="num_publisher",
topic_name="number",
value=42.5, # Can be number, string, or image frame
queue=10,
delay=1.0
# video_source=0 # Only needed for video mode
)
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)
Notes
-----
- `mode` can be "number", "string", "image", "video", or None for auto-detect.
- For video mode, set `video_source` to a camera index (e.g., 0) or a video file path.
- Requires `rclpy` and `cv_bridge` to be installed in your ROS2 Python environment.
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
akpub-0.1.0.tar.gz
(3.2 kB
view details)
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
akpub-0.1.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file akpub-0.1.0.tar.gz.
File metadata
- Download URL: akpub-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c2da9fc1c80231cdc2f37e31b64dee59fe68cab22ba0abdbae4cf7e4cf1a91b
|
|
| MD5 |
7bf070de1f57946f06f8b38121df1ea2
|
|
| BLAKE2b-256 |
269dddc5277fc0fd979a5379d4b4e30e1a6f43ed458c03ff66b10b1ea6dcd1d5
|
File details
Details for the file akpub-0.1.0-py3-none-any.whl.
File metadata
- Download URL: akpub-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebad33ffcea877f2beac1495e4fcda29aa7489e1a84f5772a4728f1097f0f4e2
|
|
| MD5 |
0b6f3db608e7d0c118c656f21c0237f0
|
|
| BLAKE2b-256 |
94480df275818d4b46a285a087e6b1d6834f66be91d9482e7f82332c93321d15
|