Footbot and Eyebot both in same arena

Requests regarding how to set up experiments in ARGoS.
jaffar
Posts: 16
Joined: Fri Nov 28, 2014 9:50 am
Location: Abbottabad
Contact:

Footbot and Eyebot both in same arena

Postby jaffar » Tue Apr 14, 2015 12:15 pm

Hi,

I added a footbot and an eyebot in my arena with dynamics2d physics engine. But in dynamics2d eyebot is not working. So when I change physics engine from dynamics2d to pointmass3d, then footbot does not work.

Can I add both physics engine, if yes then how and if not then which physics engine should I use for both of them?

Thanks

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

Re: Footbot and Eyebot both in same arena

Postby pincy » Wed Apr 15, 2015 5:30 pm

Hi Jaffar,

In the physics_engines section of the .argos file, you can add multiple physics engines. Just put a dynamics2d engine and a pointmass3d engine there.

Then, initialize the position of your robots to have a zero z for the foot-bots (so they get caught by the dynamics2d) and a value > 0 for the eye-bots (even 0.01 is enough) to be caught by the pointmass3d engine.

Cheers,
Carlo
I made ARGoS.

M_Rizk
Posts: 28
Joined: Thu Apr 30, 2015 2:46 am

Re: Footbot and Eyebot both in same arena

Postby M_Rizk » Fri May 01, 2015 7:21 am

Hi Carlo,

I tried following the instructions you gave to Jaffar. I added both the dynamics2d engine and pointmass3d engine to the physics engine section. I have a single footbot with position="1,1,0" and a single eyebot with position="0.5,0.5,0.5". I get this error:

[FATAL] Failed to initialize the space.
[FATAL] Multiple engines can house "body_0", but a movable entity and can only be added to a single engine. Conflicting engines: 0xbf99449c

Have I done something incorrectly? Also, I read in one of your papers that it's possible to partition the arena into prisms where each prism is assigned to a different engine. Is there any sample code showing how to do this?

Thanks,
Mostafa

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

Re: Footbot and Eyebot both in same arena

Postby pincy » Fri May 01, 2015 7:26 am

Hi Mostafa,

Could you please attach the file you're using, so I can reproduce the problem?

I'll add an example on how to use multiple engines in the next few days.

Cheers,
Carlo
I made ARGoS.

M_Rizk
Posts: 28
Joined: Thu Apr 30, 2015 2:46 am

Re: Footbot and Eyebot both in same arena

Postby M_Rizk » Wed May 06, 2015 1:54 am

Hi Carlo,

This is my configuration file. I attached it as a .txt file because the forum won't let me attach a .argos file.

Cheers,
Mostafa
Attachments
mostafa_diffusion.txt
Change this to .argos
(6.07 KiB) Downloaded 680 times

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

Re: Footbot and Eyebot both in same arena

Postby pincy » Tue May 26, 2015 10:27 pm

Hi,

I am almost at the end of a long stretch to meet a deadline :-) I also have a new release of ARGoS ready by the end of the week that will address the issue you found. Sorry for the long wait!

Cheers,
Carlo
I made ARGoS.

M_Rizk
Posts: 28
Joined: Thu Apr 30, 2015 2:46 am

Re: Footbot and Eyebot both in same arena

Postby M_Rizk » Wed May 27, 2015 6:03 am

Hi Carlo

That's great to hear! :D

I will upgrade after the release and let you know if I encounter any issues.

Thanks!
Mostafa

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

Re: Footbot and Eyebot both in same arena

Postby pincy » Mon Jun 15, 2015 3:33 am

Hi Jaffar,

I finally made a new release of ARGoS (3.0.0-beta36) that addresses the issues you encountered. Try to launch your experiment now, and it should work.

As soon as my deadlines allow me, I'll make a couple of examples to show nifty tricks you can do when playing with several physics engines.

Cheers,
Carlo
I made ARGoS.


Return to “How to... ?”