Page 1 of 1

[FATAL] Medium "leds" not found.

Posted: Mon Sep 19, 2022 8:02 pm
by Rluna319
Hi,

I am receiving the following errors when trying to test a new experiment.

[FATAL] Failed to initialize the space.
[FATAL] Error while trying to distribute entities
[FATAL] Failed to initialize entity "fb0".
[FATAL] Failed to initialize controllable entity "controller_0".
[FATAL] Can't set controller for controllable entity "controller_0"
[FATAL] Error initializing the LEDs default actuator
[FATAL] Medium "leds" not found.

I am using the argos3-examples repo from https://github.com/ilpincy/argos3-examples.

I have created a copy of the diffusion_10 experiment in argos. The difference in the experiment is that i am now calling the leds actuator to turn all LEDs red. The experiment is named uniquely to have no conflicts with existing experiments. I have included the led header and modified the new XML configuration file and cmake files accordingly (so i think). I followed the instructions given when running

Code: Select all

argos3 -q leds
. Everything builds and compiles with no errors. I have deleted the build directory and created it again per the instructions in the README.

Please let me know of any code or commands you require to help diagnose my issue.

Thank you!

Re: [FATAL] Medium "leds" not found.

Posted: Mon Sep 19, 2022 8:36 pm
by pincy
If you want to use the LEDs, you need to add the medium that handles them, as the error message suggests. Copy this example.

Re: [FATAL] Medium "leds" not found.

Posted: Tue Sep 20, 2022 4:37 pm
by Rluna319
Oh wow how silly, I wasn't aware of that section. It's lightly mentioned in the documentation. I should've looked at the other examples more carefully. Thank you!

Re: [FATAL] Medium "leds" not found.

Posted: Thu Oct 27, 2022 8:00 am
by Phill37
I had also missed this example. Now I just have to take a closer look.