Search found 13 matches

Go to advanced search

by AshwinRaviraj
Fri Apr 30, 2021 1:25 pm
Forum: How to... ?
Topic: Multiple seeds
Replies: 12
Views: 22979

Re: Multiple seeds

Alright, I will give it a try.
by AshwinRaviraj
Wed Apr 28, 2021 2:17 pm
Forum: How to... ?
Topic: Multiple seeds
Replies: 12
Views: 22979

Re: Multiple seeds

True, that would be the simplest, but is it possible to set the seed to a value of own choosing? The reason for this is because I would like to use the same seed for different .argos file setup. - Yes I guess, I could hard code that exact seed, but is there someway to give the seed, just like the Re...
by AshwinRaviraj
Wed Apr 28, 2021 12:27 pm
Forum: How to... ?
Topic: Multiple seeds
Replies: 12
Views: 22979

Re: Multiple seeds

Is this the correct way to reset an experiment and then giving it a new random seed, because it look like it can see that the agents are being placed the exact same place every time I reset the experiment.. CSimulator &cSimulator = CSimulator::GetInstance(); cSimulator.SetExperimentFileName(PATH...
by AshwinRaviraj
Tue Apr 27, 2021 10:26 am
Forum: How to... ?
Topic: is it possible to SetExperimentFileName multiple times
Replies: 2
Views: 7647

is it possible to SetExperimentFileName multiple times

I'm trying to run multiple different .agrog setup. For example in one of my setups there are no obstacles and in another one there are obstacles. What I have done is create a main.cpp where I load an experiment, but when I try to call SetExperimentFileName, after the first experiment is finished, I ...
by AshwinRaviraj
Wed Apr 21, 2021 2:57 pm
Forum: How to... ?
Topic: Controller is different after reset
Replies: 6
Views: 12469

Re: Controller is different after reset

Once again thanks for your help, I will give it a try!
by AshwinRaviraj
Wed Apr 21, 2021 2:44 pm
Forum: How to... ?
Topic: Controller is different after reset
Replies: 6
Views: 12469

Re: Controller is different after reset

So, am I writing it the wrong place? Should I follow the same structure as galib? virtual void PostExperiment(){ CSimulator &cSimulator = CSimulator::GetInstance(); cSimulator.SetExperimentFileName("huddling.argos"); cSimulator.LoadExperiment(); cSimulator.Execute(); cSimulator.Reset()...
by AshwinRaviraj
Wed Apr 21, 2021 2:33 pm
Forum: How to... ?
Topic: Controller is different after reset
Replies: 6
Views: 12469

Re: Controller is different after reset

This is written in my loop_functions.h where I have a PostExperiment() function, and what I'm trying to do is restarting the experiment.
Without running the .agros file from terminal.
by AshwinRaviraj
Wed Apr 21, 2021 2:19 pm
Forum: How to... ?
Topic: Controller is different after reset
Replies: 6
Views: 12469

Controller is different after reset

Hi, After I'm Resetting my loop function in my post experiment function, the behaviour of the controller is not working? Is there anything wrong with what I'm doing in my post experiment? CSimulator &cSimulator = CSimulator::GetInstance(); cSimulator.SetExperimentFileName("FILE_NAME");...
by AshwinRaviraj
Wed Apr 21, 2021 10:43 am
Forum: How to... ?
Topic: Multiple seeds
Replies: 12
Views: 22979

Re: Multiple seeds

After I Reset the loopfunction and start a new experiment, it looks like the controller is not getting reset?
How can I ensure that when I call cSimulation::Reset that the controller also will get reset?

Go to advanced search