ratpub
!IMPORTANT! RENAMING mt_pubsub
This crate has been renamed to mt_pubsub for all further releases starting with v0.7.0. Please use mt_pubsub from now on. This ratpub crate will not receive further updates.
A simple and deterministic Pub/Sub implementation with Minot primitives.
Part of the minot family of crates.
[]
= "0.6.1"
= { = "1.49", = ["full"] }
Since you probably want to use existing ROS2 message definitions, you can also add the following crate which is auto-generated from the Jazzy release.
[]
= { = "0.0.5", = [
"std_msgs", # add more here
] }
Learn more on how to use it in your Code by visiting the Minot docs.
Running the Examples
First, start the coordinator:
Then run the publisher and subscriber in separate terminals:
# Terminal 2
# Terminal 3
If you have multiple Minot networks on the same physical network, use the MINOT_DOMAIN_ID environment variable to prevent them from connecting to each other.