Difficulty: 🟡 Medium
Category: Integration
Tags:
Execution Type: basic_python
Fleet management dashboards (web apps) don't speak DDS. They speak MQTT/HTTP. Bridges connect the operational technology (OT) to information technology (IT).
Bridge ROS2 (local robot network) to MQTT (IoT/Cloud). Send sensor data to the cloud.
- Node
mqtt_bridge - Subscribe:
/battery_level(Float32) - Connect to MQTT Broker (e.g.,
localhost:1883) - On callback: Publish value to MQTT topic
robot/battery
Input:
- ROS topic updates.
Output:
- MQTT messages.
- Blocking the ROS callback waiting for network I/O.
- PublishesToMQTT: message on mqtt_topic
- SubscribesFromMQTT: ros topic receives message
Found an issue with this problem's description, or have a better hint?
Open a PR or report it in Discussions.
Note: TestScripts and reference solutions are maintained by the SimuCode team
and are not part of this open spec. This ensures grading integrity on simucode.online.