Search found 632 matches

Go to advanced search

by pincy
Sun Mar 13, 2022 3:53 pm
Forum: How to... ?
Topic: can't draw my robot
Replies: 3
Views: 19566

Re: can't draw my robot

Please send me your code.
by pincy
Thu Mar 10, 2022 5:32 pm
Forum: How to... ?
Topic: Open Source implemented examples on Argos
Replies: 1
Views: 17019

Re: Open Source implemented examples on Argos

The ARGoS examples provide all of the things you ask. Check the foraging example for an FSM and the flocking example for physics-based methods.
by pincy
Thu Mar 10, 2022 5:31 pm
Forum: How to... ?
Topic: An infinite continuous (borderless)arena
Replies: 1
Views: 16740

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 the...
by pincy
Thu Mar 03, 2022 9:33 pm
Forum: How to... ?
Topic: general debug question
Replies: 1
Views: 16190

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: 7831

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: 13885

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: 13885

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: 13885

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 cod...
by pincy
Wed Jan 26, 2022 6:45 pm
Forum: How to... ?
Topic: Error while initializing light entity
Replies: 1
Views: 7294

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...

Go to advanced search