[][src]Module roboxide::pubsub

Structs

Publisher

Publisher can take any struct that implements serde's Serialize and Deserialize traits and publish them over ZMQ sockets.

Subscriber

Subscriber is functionally similar to a ROS subscriber. It works by taking a topic and a callback function. Calling run on a subscriber instance will spawn a thread that listens to the socket, and calls the callback function when it receives a message. The callback function is required to take the message as an argument.