Search found 67 matches

Go to advanced search

by jharwell
Thu Feb 06, 2020 1:17 am
Forum: Bugs
Topic: Possible bug/undocumented quirk in AddEntity() with multiple physics engines
Replies: 6
Views: 51389

Possible bug/undocumented quirk in AddEntity() with multiple physics engines

Hi Carlo, I've discovered what is either an undocumented quirk of the AddEntity() method in the loop functions, or a bug, depending on your intended usage of the function. When I am adding an entity with only a single physics engine in the arena I can do: 1. Create entity with new (i.e. new CFootBot...
by jharwell
Wed Jan 15, 2020 5:57 pm
Forum: Bugs
Topic: Removing all robots from simulation causes crash
Replies: 6
Views: 38039

Re: Removing all robots from simulation causes crash

Sure: here is the code for using this capability in the loop functions PostStep(): auto cb = [&](argos::CControllableEntity* robot) { robot_post_step(dynamic_cast<argos::CFootBotEntity&>(robot->GetParent())); caches_recreation_task_counts_collect(& static_cast<controller::base_controller...
by jharwell
Tue Jan 14, 2020 6:42 pm
Forum: Bugs
Topic: Removing all robots from simulation causes crash
Replies: 6
Views: 38039

Re: Removing all robots from simulation causes crash

So I actually found the cause of this error when I was working to improve swarm iteration efficiency in the loop functions, and including the fix in my pull request: https://github.com/ilpincy/argos3/pull/124. :D The issue was that while removing entities marked the entity range assigned to each thr...
by jharwell
Fri Jan 10, 2020 6:04 pm
Forum: Bugs
Topic: Removing all robots from simulation causes crash
Replies: 6
Views: 38039

Re: Removing all robots from simulation causes crash

I'm not sure--I'll try to come up with a minimal example that reproduces the crash I've been seeing.
by jharwell
Wed Jan 08, 2020 8:56 pm
Forum: Bugs
Topic: Removing all robots from simulation causes crash
Replies: 6
Views: 38039

Removing all robots from simulation causes crash

Hi Carlo, I'm now able to permanently remove robots at will using RemoveEntity(), as long as there is always one robot left in simulation after removal. But, if I remove the last robot, then I get a segmentation fault from ARGoS on line 347 of space_multi_thread_balance_quantity.cpp whenever n_threa...
by jharwell
Tue Dec 17, 2019 3:51 am
Forum: How to... ?
Topic: Adding new robots to simulation in loop functions
Replies: 2
Views: 9728

Re: Adding new robots to simulation in loop functions

I didn't think to check the examples--thanks that's exactly what I was looking for!
by jharwell
Tue Dec 17, 2019 1:30 am
Forum: How to... ?
Topic: Adding new robots to simulation in loop functions
Replies: 2
Views: 9728

Adding new robots to simulation in loop functions

Hi Carlo, I'm currently trying to dynamically add robots to the simulation in the loop functions, and have gotten stuck. I see the provided AddEntity() function, which is what I need to call I think, but I am not sure how to create the robot entity and associate a controller with it. Here is what I ...
by jharwell
Thu Dec 12, 2019 9:14 pm
Forum: How to... ?
Topic: Temporality removing robots from simulation
Replies: 4
Views: 19241

Re: Temporality removing robots from simulation

The second way sounds like the "correct" way to provide this functionality--is this a simple patch that I could implement, if you point me to where things needs to be changed, or will it require more extensive modifications?
by jharwell
Thu Dec 12, 2019 6:42 pm
Forum: How to... ?
Topic: Temporality removing robots from simulation
Replies: 4
Views: 19241

Temporality removing robots from simulation

Hi Carlo, I'm currently investigating how swarm performance changes (or doesn't) as the swarm population size changes dynamically, and am wondering if there is a way to temporarily remove robots from simulation (or alternatively, just move them out of sight for a period of time) ? I want to be able ...

Go to advanced search