Skip to content

Commit

Permalink
williamquintas#22: Creates a README file for integration
Browse files Browse the repository at this point in the history
  • Loading branch information
williamquintas committed Apr 22, 2022
1 parent 12a5a39 commit f10b4e2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mininet_integration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Mininet Script

This script was developed with the aim to integrate the built simulation with Mininet Wifi. It reads the already preprocessed data on CSV files containing buses informations (such as latitude and longitude) and send it to both Mininet Wifi and Simulation.

# Setup and Run

- Download and install [Mininet-WiFi Pre-configured Virtual Machine](https://github.com/intrig-unicamp/mininet-wifi/#pre-configured-virtual-machine).
- Open terminal and go inside this folder
`$ cd path/to/mininet_integration`
- Run `build.sh` shell script:
`$ sh build.sh`
- After that, a folder named `dist` will be created.
- Copy the folder `dist` inside the virtual machine folder `/home/wifi/mininet-wifi/mn_wifi/examples` (you may want to rename it for some more convenient name after copying it. Also, a shell script named `deploy.sh` may be helpful if you link a folder from your computer with a VM folder)
- At the end of this step you may have a folder (with a name such as `dist`) containing the python scripts (`main.py`, `build_simulation.py` and `set_vehicles_positions.py`) and the other directories (`controllers`, `data`, `gym_envs` and `utils`).
- Open the terminal and go inside the folder copied in the previous step
`$ cd /home/wifi/mininet-wifi/mn_wifi/examples/dist`
- Run the script.
`$ sudo python main.py`

0 comments on commit f10b4e2

Please sign in to comment.