Skip to main content

No project description provided

Project description

SpireMS

介绍

Spire消息系统,一个类似ROS的轻量化消息发布、订阅软件包,支持图像、雷达等传感器话题。

安装教程

pip install spirems

使用说明

  1. 启动Server
from spirems import Server
server = Server()
server.listen()
  1. 发布话题
from spirems import Publisher, get_all_msg_types
pub = Publisher('/topic/hello', 'std_msgs::String')
pub.publish()
msg = get_all_msg_types()['std_msgs::String'].copy()
msg['data'] = 'hello world!'
pub.publish(msg)
  1. 订阅话题
from spirems import Subscriber

def callback_f(msg):
    print(msg['data'])

sub = Subscriber('/topic/hello', 'std_msgs::String', callback_f)

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

Project details


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

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

spirems-0.1.4-py3-none-any.whl (560.5 kB view details)

Uploaded Python 3

File details

Details for the file spirems-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: spirems-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 560.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for spirems-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e981d54ee20c115722c6f0afa4beb8f257df489db6a06400e98529404f5309e6
MD5 aaf0cf9ab22199c00c7a33562f28301d
BLAKE2b-256 8537cc582e4b001dd2e9da32d43f68b60d94b086a261b729f6307204c8e1e9d6

See more details on using hashes here.

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