Note: This example uses Protelis version 0.1.0, while current version is 13.1.0-dev0f+6aed1deb. As such, the provided code might not work with newer releases.
This example has been presented in the paper:
Combining Self-Organisation and Autonomic Computing in CASs with Aggregate-MAPE by Mirko Viroli, Antonio Bucchiarone, Danilo Pianini, and Jacob Beal; published in the 2016 IEEE 1st International Workshops on Foundations and Applications of Self Systems (FASW) Note: This example uses an old Protelis version 8.0.3, while current version is 13.1.0-dev0f+6aed1deb. As such, the provided code might not work as intended with newer releases.
Crowd dispersal service
The source code and instructions on how to reproduce are available online.
This example is an extension of the example presented in "crowd danger estimation and warning". Besides detection and warning, it feature a simple dispersal service, advising users not to proceed on their destination, but instead suggesting alternatives to prevent overcrowding.
This is an accelerated video showing a crowd dispersal application using the Alchemist simulator. Each black dot is a handheld device, following real movement traces from the 2013 Vienna City Marathon. Red dots are devices warned as being in dangerously crowded areas, and yellow dots are devices warned that they are nearing a dangerously crowded area. Blue dots represent people who follow the crowd dispersal application’s advice.