Project-GrADyS / gradys-simulations

Simulations from Project GrADyS on OMNET++ and INET framework
GNU General Public License v3.0
14 stars 10 forks source link

missing sensors. #19

Closed thomoasis closed 1 year ago

thomoasis commented 1 year ago

Hello. I tried changing the map and putting in the 8 sensors in different locations but they are not show up on the map except for 0. I changed the coordinates in General and Config Wifi. I also changed voo_ar.waypoints in Config Wifi and voo_sensor1.waypoints and voo_sensor2.waypoints. Is there something I'm missing? i am trying to run the Simple Configuration with a different map. Map

Thlamz commented 1 year ago

Hello @thomoasis, are the sensors invisible but still simulated? With that I mean, are the drones still able to exchange messages with the invisible sensors?

There is a bug in the version that we use of OMNeT++ that prevents sensors lying in negative euclidean coordinates (-x or -y) from being rendered. A workaround that we have used is to shift the center of the scenario's camera so every sensor is positioned in positive euclidean coordinates. You can move the scenario's camera by changing the coordinateSystem.sceneLongitude and coordinateSystem.sceneLatitude parameters.

thomoasis commented 1 year ago

it worked! thanks for the help. I flipped it around and now it works. thanks!

mapfull

thomoasis commented 1 year ago

thanks for the help! may have more questions soon!