Max the Microcontroller was planning the route for a mobile data collector – a little robot that drives around collecting data from sensors.
“It’s like planning the best trick-or-treat route on Halloween!” explained Max. “You want to visit every house, but you don’t want to walk back and forth wasting time.”
Sammy the Sensor asked: “What if you plan a route but then someone tells you there’s full-size candy bars two streets over? Do you stick to the plan?”
“Great question! That’s called adaptive planning,” said Max. “If a sensor says ‘My memory is almost full – I’ll lose data in 2 hours!’ we change the route to visit that sensor NEXT, then go back to the original plan. It’s like getting a text from your friend saying ‘Come NOW, I have extra candy!’”
Lila the LED added: “And what if we have THREE robots collecting data? They need to split up so they don’t all visit the same sensors!”
“Exactly! We can divide the area into zones – one robot per zone, like splitting a neighborhood between trick-or-treaters. Or we can use an auction where sensors say ‘I need help!’ and the closest robot responds,” explained Max.
Bella the Battery reminded everyone: “But remember – 70-80% of the robot’s energy goes to just DRIVING around. So making the route shorter saves way more energy than anything else!”