Going Live#

A Fusion Graph that is developed on recorded data runs on live data with the same fusion logic. The recommended way to go live is to embed MuFASA in your messaging system. Install mufasa-fusion in the application that talks to your MQTT broker, Kafka cluster or ROS 2 network, and run the graph there. The graph then doesn’t distinguish whether a message comes from a live sensor or from a replayed recording, such as a rosbag.

Messaging system · MQTT, Kafka, ROS 2, … Sensorslive Recordingoffline Your application · pip install mufasa-fusion Fusion Graph Input nodessubscribe Processing Output nodespublish Decisionsupport

Why swapping the I/O is all it takes#

Two design decisions make the transition from recorded to live data a matter of the Input and Output nodes:

  • The I/O boundary is the only interface to the outside world. MuFASA works on the detection level. Input and Output nodes translate external data into Locations and Maps and back.

  • Processing is event-driven. Every node updates its state as soon as it receives a detection. There’s no separate clock driving the graph, so the same graph runs against a recording during prototyping and against a live stream in operation.

Note

Swapping the I/O nodes is all it takes at the implementation level. A live deployment still differs from an offline one. Recorded data is clean and ordered by construction, live data isn’t. MuFASA doesn’t close that gap by architecture alone, but it helps you work through it. The same quick iteration and inspection that help with prototyping help you understand what a live deployment surfaces, and act on it quickly.

Publish-subscribe architecture#

Embedding MuFASA in a messaging system follows a simple pattern. The graph runs inside a client or node of that system. Each time a subscriber callback receives a message, it translates the message into MuFASA’s minimal representation and passes it to a streaming Input node. Only this translation step is specific to the messaging system and must be known and implemented by the user. The Fusion Graph itself is never touched. Because node parameters are explicit, they can be exposed through the messaging system’s own configuration, for example as ROS 2 node parameters.

MuFASA is primarily used in, but not limited to, publisher-subscriber architectures in live systems. Sensors publish their detections on topics. A Fusion Graph subscribes to those topics with its Input nodes and publishes its results with its Output nodes. Decision support, such as an alarm dashboard, subscribes to the results.

The following guides show the transition for two messaging systems: