Place footbot at random circle location

Requests regarding how to set up experiments in ARGoS.
DrLeopoldStrabismus
Posts: 6
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: 632
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.

DrLeopoldStrabismus
Posts: 6
Joined: Mon Jun 13, 2016 6:47 pm

Re: Place footbot at random circle location

Postby DrLeopoldStrabismus » Mon Nov 06, 2017 8:01 pm

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


Return to “How to... ?”