Place footbot at random circle location

Requests regarding how to set up experiments in ARGoS.
DrLeopoldStrabismus
Posts: 5
Joined: Mon Jun 13, 2016 6:47 pm

Place footbot at random circle location

Postby DrLeopoldStrabismus » Mon May 01, 2017 6:27 pm

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

pincy
Site Admin
Posts: 251
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Place footbot at random circle location

Postby pincy » Wed Jul 12, 2017 5:48 pm

Have a look at the new loop_function example I added, called "custom_distributions". It shows how to add robots to ARGoS programmatically.
I made ARGoS.


Return to “How to... ?”



cron