Page 1 of 1
Footbot and Eyebot both in same arena
Posted: Tue Apr 14, 2015 12:15 pm
by jaffar
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
Re: Footbot and Eyebot both in same arena
Posted: Wed Apr 15, 2015 5:30 pm
by pincy
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
Re: Footbot and Eyebot both in same arena
Posted: Fri May 01, 2015 7:21 am
by M_Rizk
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
Re: Footbot and Eyebot both in same arena
Posted: Fri May 01, 2015 7:26 am
by pincy
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
Re: Footbot and Eyebot both in same arena
Posted: Wed May 06, 2015 1:54 am
by M_Rizk
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
Re: Footbot and Eyebot both in same arena
Posted: Tue May 26, 2015 10:27 pm
by pincy
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
Re: Footbot and Eyebot both in same arena
Posted: Wed May 27, 2015 6:03 am
by M_Rizk
Hi Carlo
That's great to hear!
I will upgrade after the release and let you know if I encounter any issues.
Thanks!
Mostafa
Re: Footbot and Eyebot both in same arena
Posted: Mon Jun 15, 2015 3:33 am
by pincy
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