Dynamic floor

Requests regarding how to set up experiments in ARGoS.
Eksander
Posts: 3
Joined: Sun Jun 20, 2021 10:26 pm

Dynamic floor

Postby Eksander » Tue Sep 07, 2021 9:01 pm

Is it possible to change the floor during runtime using a series of .png files?

I see that the foraging example uses GetFloorColor to update the floor, but it is not the simplest solution in my case.

Thanks!

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

Re: Dynamic floor

Postby pincy » Tue Sep 07, 2021 9:12 pm

You could remove the floor entity with CLoopFunctions::RemoveEntity(), then create a new CFloorEntity() and add it with CLoopFunctions::AddEntity(), and finally use CSimulator::SetFloorEntity() to make ARGoS aware of it.
I made ARGoS.


Return to “How to... ?”



cron