Page 1 of 1

Adding new medium for range_and_bearing

Posted: Mon Nov 04, 2024 5:17 pm
by pelegs
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