Hi there,
I would like to change the configuration that is used during runtime, would that be possible ?
If so, how is that best done ?
I am well aware of passing the number of robots to the configuration file. As in my initial post I am talking about loading different number of robots at different times during the same program. You also said it is not possible to change the configuration at runtime, so not sure why you would recommend reading the number of robots directly from configuration file. Simply reading the number of robots from one config would assume the number of robots is static, unless as my initial post, you would be able to change the robot configuration that is being loaded.To change the number of robots you simply have to change the code so the number of robots can be passed in the .argos file,
There is a function CLoopFunctions::RemoveEntity() that you can use to remove excess robots, depending on the logic of your experiment. Using CLoopFunctions::AddEntity(), you can add new robots back in simulation.Currently one of the issues I am having is that if you generate 8 robots at first, and then later want only 5, then agents 6-8 are not straightforwardly removed.