Search found 640 matches

Go to advanced search

by pincy
Thu Mar 10, 2022 5:31 pm
Forum: How to... ?
Topic: An infinite continuous (borderless)arena
Replies: 1
Views: 34708

Re: An infinite continuous (borderless)arena

It's not possible just out-of-the-box, unfortunately.

The issue is that typical physics engines assume no border and no wrapping. The physics engine you need should be fixed to allow for wrapping, which would also impact the way collisions are handled.

Chipmunk and Bullet, the engines we have at ...
by pincy
Thu Mar 03, 2022 9:33 pm
Forum: How to... ?
Topic: general debug question
Replies: 1
Views: 32843

Re: general debug question

What didn't work for you when you used gdb?
by pincy
Tue Feb 01, 2022 9:06 pm
Forum: How to... ?
Topic: Stop the experiment by lua code
Replies: 2
Views: 28453

Re: Stop the experiment by lua code

You do it in the loop functions, not in the robot controller. You reimplement the loop function method "IsExperimentFinished()", as shown in the embedding examples. No robot can single-handedly stop the simulation.
by pincy
Sat Jan 29, 2022 8:07 pm
Forum: How to... ?
Topic: Clarification on the operation of the ambient light sensor and distance from it
Replies: 5
Views: 54101

Re: Clarification on the operation of the ambient light sensor and distance from it

In your code, the use of print is not correct. It seems to print a double using the format for an int.

Also the return statement in the same function contains a redundant assignment.
by pincy
Sat Jan 29, 2022 8:02 pm
Forum: How to... ?
Topic: Clarification on the operation of the ambient light sensor and distance from it
Replies: 5
Views: 54101

Re: Clarification on the operation of the ambient light sensor and distance from it

Did you notice the position of the light sensor on the kilobot,, and how that affects the calculation of the readings? Also the position of your light is at height zero, which is unusual.
by pincy
Sat Jan 29, 2022 5:49 pm
Forum: How to... ?
Topic: Clarification on the operation of the ambient light sensor and distance from it
Replies: 5
Views: 54101

Re: Clarification on the operation of the ambient light sensor and distance from it

The answer to all of your questions are in the original Kilobot paper and in the source code. I encourage you read both, they should make everything clear.

what is the unit of measurement of the value specified in the <light> tag in the intensity attribute?

It's an intensity multiplier. See this ...
by pincy
Wed Jan 26, 2022 6:45 pm
Forum: How to... ?
Topic: Error while initializing light entity
Replies: 1
Views: 25297

Re: Error while initializing light entity

You found a bug, but fortunately there's a workaround. When you initialize the LED medium, try this:


<led id="leds" grid_size="2, 2, 2" />


Essentially, what is happening is that the grid size to store the LED entities is calculated as 0 because your environment is smaller than 1m x 1m. It's a ...
by pincy
Mon Jan 24, 2022 8:16 pm
Forum: How to... ?
Topic: Failed any_cast conversion from argos::CKilobotEntity* to argos::CDirectionalLEDEntity*
Replies: 7
Views: 72255

Re: Failed any_cast conversion from argos::CKilobotEntity* to argos::CDirectionalLEDEntity*

Yes, you should use the point, and then maybe get a different error if something else is off.

Go to advanced search