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

Return to “How to... ?”



cron