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

the background and the drone icons are not displayed in the simulation, and the MAM simulation doesn't run . #14

Closed nesrine1997 closed 2 years ago

nesrine1997 commented 2 years ago

I downloaded omnet 5.6.1 and inet 4.2.5, I upload the project into the workspace and I checked inet in project references, I got those errors as shown in the picture below: issues and only the simulation of wifi work but without background: issue and this the MAM simulation : issue1 I will be so grateful if someone helps :) .

Thlamz commented 2 years ago

@nesrine1997 thanks for the issue!

  1. These errors are generated because of a limitation of OMNeT++, it doesn't permit submodules to override their parent's submodules which is something we do extensively. The simulation should still run normally if you just ignore them.
  2. To load the 3D simulation evironment click this globe item on the top-right of the canvas

image

  1. Thank you for pointing that out, I have fixed it in the th/launch-configurations branch. This branch contains some things that aren't documented on the project's readme but the old features should still work. We already have an open pull request for this branch and it should be merged soon.

Feel free to ask any other questions or to close the issue if my response cleared up your doubts.

nesrine1997 commented 2 years ago

@Thlamz Thanks a lot for responding, this was helpful, I'm still learning omnet++ so that's why many things aren't clear to me, thanks again for your help.

brunoolivieri commented 2 years ago

@nesrine1997 The OMNET++/INET is tricky in the beginning. However, if you intend to use this code, we would be glad to help you.

nesrine1997 commented 2 years ago

@brunoolivieri Thanks a lot for offering help, yes I want to use this code, I want to change the map to another(farm map) and change the placement of sensors nodes, for now, I want to know if could change the placement by changing" initialLatitude/initial longitude deg "in ini file, this will need to make changes in the code and the drone path, what should I change exactly, I didn't found advanced courses in youtube to learn from, I'm trying to learn by my own, I will be so grateful sir if you help me.

Thlamz commented 2 years ago

@nesrine1997 Sorry I didn't see your reply. You can change the location of the simulation by changing the initialLatitude/initialLongitude of all nodes, the homeLatitude/homeLongitude of the drone and the sceneLatitude and sceneLongitude parameters. Also beware that the drones follow a path described in their waypoint file (specified by the .waypointFile parameter) and the coordinates in the file are specified in latitude/longitude. You would also have to change those.

I think that should be enough, give it a try and if it doesn't work you can open another issue if you want.

nesrine1997 commented 2 years ago

@Thlamz, thanks for responding and making it clear to me, I will try it if I face any struggles I will open a new issue.