No project description provided
Project description
SpireMS
介绍
Spire消息系统,一个类似ROS的轻量化消息发布、订阅软件包,支持图像、雷达等传感器话题。
安装教程
pip install spirems
使用说明
- 启动Server
from spirems import Core
core = Core()
core.join()
- 发布话题
from spirems import Publisher, def_msg
pub = Publisher('/topic/hello', 'std_msgs::String')
msg = def_msg('std_msgs::String')
msg['data'] = 'hello world!'
pub.publish(msg)
- 订阅话题
from spirems import Subscriber
def callback_f(msg):
print(msg['data'])
sub = Subscriber('/topic/hello', 'std_msgs::String', callback_f)
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
spirems-0.2.4-py3-none-any.whl
(665.0 kB
view details)
File details
Details for the file spirems-0.2.4-py3-none-any.whl.
File metadata
- Download URL: spirems-0.2.4-py3-none-any.whl
- Upload date:
- Size: 665.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
188cfd03f3ccb66b5f37fa7ba5a575a3c971cfb8fdc699ddbedaa18420aca9c1
|
|
| MD5 |
0b0dc5da8b92a67635e16e56aa652ef5
|
|
| BLAKE2b-256 |
6a7c52db836222a9be3e5afde3f5167ece19150365ee937d4d50e2ea70a25588
|