Search found 38 matches

Go to advanced search

by mbt925
Thu Jun 07, 2018 6:51 am
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Add entities programatically into a prototype

Can you share your code with me? Have you tried using gdb to see where the error occurs and why? This is my code . It depends on what you consider "logical". ARGoS takes ownership of everything you add, so it can optimize storage and make resetting/destroying easier. I meant that the foll...
by mbt925
Wed Jun 06, 2018 4:35 pm
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Add entities programatically into a prototype

What is the correct way to remove an entity which is added at runtime? Removing an existing box: cLEDMedium.RemoveEntity(pcBox->GetLEDEquippedEntity().GetLED(0)); RemoveEntity(*pcBox); Do not explicitly remove the led from the medium. Once you add an LED to a box, ARGoS takes care of cleaning up. T...
by mbt925
Wed Jun 06, 2018 4:33 pm
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Create multiple boxes with LED on top

How can I set a color for a box? Other than using a LED.
Box colors are just for display, and can't be changed. They're not visible by the camera or anything.
I know. I wanted it just for illustration purposes.
by mbt925
Wed Jun 06, 2018 11:52 am
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Add entities programatically into a prototype

I added some boxes via the above-mentioned code with no problem. But I get the following error when I close the running simulation: [FATAL] CSpace::RemoveEntity() : Entity "box1.leds_0.led_0" has not been found in the indexes. What is the correct way to remove an entity which is added at r...
by mbt925
Tue Jun 05, 2018 12:06 pm
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Create multiple boxes with LED on top

How can I set a color for a box? Other than using a LED.
by mbt925
Tue Jun 05, 2018 11:27 am
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Create multiple boxes with LED on top

I added some boxes via the above-mentioned code with no problem. But I get the following error when I close the running simulation:

Code: Select all

[FATAL] CSpace::RemoveEntity() : Entity "box1.leds_0.led_0" has not been found in the indexes.
by mbt925
Sat May 26, 2018 6:16 am
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Create multiple boxes with LED on top

Thank you very much.
I did try "GetMedium<CLEDMedium>", but I did not include the header. C++ warnings and errors do not help at all :D.
by mbt925
Thu May 24, 2018 1:56 pm
Forum: How to... ?
Topic: [FATAL] Error initializing controllers
Replies: 4
Views: 9928

Re: [FATAL] Error initializing controllers

I emailed the code.
by mbt925
Thu May 24, 2018 1:41 pm
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Create multiple boxes with LED on top

You can compile it and see the full error message.
by mbt925
Thu May 24, 2018 12:38 pm
Forum: How to... ?
Topic: Create multiple boxes with LED on top
Replies: 36
Views: 119560

Re: Create multiple boxes with LED on top

I appreciate your patience and time to thoroughly answering all of my questions. I uploaded the full project here: https://ufile.io/tq3vn.

I am learning ARGoS APIs using the example-based method. It's one of the well-known learning methods :) .

Go to advanced search