Adding new medium for range_and_bearing

Requests regarding how to set up experiments in ARGoS.
pelegs
Posts: 6
Joined: Sat Aug 12, 2023 10:33 am

Adding new medium for range_and_bearing

Postby pelegs » Mon Nov 04, 2024 5:17 pm

Hi!

I'm trying to add a new medium for the rab sensor which will simulate partial occlusions.
I took the original rab medium as an example to start with.

I created the new medium and registred it as following:

Code: Select all

REGISTER_MEDIUM(CRABMediumOcclusions, "range_and_bearing_occlusions", "Peleg ", "1.0", "New RAB medium. TODO: add description", "New Rab medium long. TODO: add description", "Under development");
and in the experiments file:
sensors:

Code: Select all

<range_and_bearing implementation="medium" medium="range_and_bearing_occlusions" show_rays="true" />
and in the media section:

Code: Select all

<media> <range_and_bearing id="range_and_bearing_occlusions" check_occlusions="false" /> </media>
I know you are probably really busy but this would truly be a life saver.

Thank you in advance,

Peleg

Return to “How to... ?”