jacdac.ros

Submodules

Package Contents

Classes

RosClient

A ROS (Robot Operating System https://www.ros.org/) controller that can act as a broker for messages.

class jacdac.ros.RosClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A ROS (Robot Operating System https://www.ros.org/) controller that can act as a broker for messages. Implements a client for the ROS service.

publish_message(node: str, topic: str, message: str) None

Publishes a JSON-encoded message to the given topic.

subscribe_message(node: str, topic: str) None

Subscribes to a message topic. Subscribed topics will emit message reports.