Kilobot Monte Carlo Simulation
Posted: Mon Feb 11, 2019 5:48 pm
Dear ARGoS community!
I have written a behaviour for the Kilobots but I want to tune some parameters.
I have seen, that there is an example for footbots using the GAlib library. Of course it would be nice to be able to implement it but I am not good enough in programming for that.
So I was thinking about a more simpler example to begin with.
Let’s imagine there is one stationary Kilobot (K1) on the field, and another which will be mooving (K2). The task would be the following:
1.A loop function places K2 to a new gridpoint, K1 is placed allways to the same gridpoint.
2.void loop() of the Kilobot is executed 5 times
3.At last, the loop function saves the coordinates of K1 and K2 ( or better: it saves a spec variable from the memory of K2, like “int my_last_distance_fromK1;” )
These steps should be re-run in the loop function many times, until the specified gridpoints are covered.
(After this I would be able to analyse the saved final distances in Matlab.)
I tried to do something similar deleting and changing some line from the GAlib example but it is not working and then I even struggled with the CMakeLists.
Has someone done something similar?
Thanks in advance!
Szilárd
I have written a behaviour for the Kilobots but I want to tune some parameters.
I have seen, that there is an example for footbots using the GAlib library. Of course it would be nice to be able to implement it but I am not good enough in programming for that.
So I was thinking about a more simpler example to begin with.
Let’s imagine there is one stationary Kilobot (K1) on the field, and another which will be mooving (K2). The task would be the following:
1.A loop function places K2 to a new gridpoint, K1 is placed allways to the same gridpoint.
2.void loop() of the Kilobot is executed 5 times
3.At last, the loop function saves the coordinates of K1 and K2 ( or better: it saves a spec variable from the memory of K2, like “int my_last_distance_fromK1;” )
These steps should be re-run in the loop function many times, until the specified gridpoints are covered.
(After this I would be able to analyse the saved final distances in Matlab.)
I tried to do something similar deleting and changing some line from the GAlib example but it is not working and then I even struggled with the CMakeLists.
Has someone done something similar?
Thanks in advance!
Szilárd