Page 1 of 1

Place footbot at random circle location

Posted: Mon May 01, 2017 6:27 pm
by DrLeopoldStrabismus
I want to place my footbots at a random location along the perimeter of a circle with arbitrary radius, with orientation facing towards the circle's center. Placement should check for collision and attempt to replace (like the built in distribution methods).

Is there a canonical way to place footbots in this manner? Ideas:

1. Optimally, there'd be a way to specify a custom distribution scheme and use that in the experiment file.

2. Otherwise, I'm fine with the loop function explicitly teleporting the robots during the Init() function.

I've been trying to do method (2), but so far have been unable to figure out how to explicitly set the footbot bodies.

Thank you,
John

Re: Place footbot at random circle location

Posted: Wed Jul 12, 2017 5:48 pm
by pincy
Have a look at the new loop_function example I added, called "custom_distributions". It shows how to add robots to ARGoS programmatically.

Re: Place footbot at random circle location

Posted: Mon Nov 06, 2017 8:01 pm
by DrLeopoldStrabismus
I just saw your reply to this. Thank you very much. My current experiments are still stuck in v3.0.0-beta41. Once I finish this round I think I'll upgrade to the newest ARGoS (and my Ubuntu version, while I'm at it).

Cheers,
John