Drive n robots through a 2D vascular structure using the mouse or keyboard.
The robots are quite simple -- they all move in the direction you command until they hit an obstacle or another robot. Similar games include Richochet Robots and Atomix, but here ALL the robots move at each command. This simulates magnetotactic bacteria, or magnetized tetrahymena pyriformis. This example appears in "Reconfiguring Massive Particle Swarms with Limited, Global Control", by Aaron Becker, Erik Demaine, Sándor Fekete, Golnaz Habibi, and James McLurkin 9th International Symposium on Algorithms and Experiments for Sensor Systems, Wireless Networks and Distributed Robotics September 5-6, 2013. (Fig. 1)
As it turns out, this problem is computationally difficult: we prove NP-hardness. While this result shows the richness of our model (despite the limited control over the individual parts), it also constitutes a major impediment for constructive algorithmic work.
Author: Aaron Becker
Now uses 8-point connectivity by mapping
to the 8 directions. You can also use the keyboard arrows to move in 8 directions, or use the mouse to follow arbitrary angles (uses Bresenham algorithm for this).
Aaron T. Becker's Robot Swarm Lab (2021). Drive Magnetic Micro-Robots Through a 2D Vascular Network (https://www.mathworks.com/matlabcentral/fileexchange/42892-drive-magnetic-micro-robots-through-a-2d-vascular-network), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!