Hydrus and Hydra-py
Forestry Patrol Simulation Demo usingAn application that simulates the movements of a flock of drones that have as objective to detect the presence of fires or abnormal heat spots in a given geographical area using an infrared sensors.
How to run the Simulation:
- create and activate a new virtualenv
- upgrade pip and setuptools
- check if
python3-dev
is installed chmod +x bootstrap-dev.sh
./bootstrap-dev.sh
chmod +x init.sh
./init.sh
http://127.0.0.1:5000/
Simulation GUI should be available athttp://127.0.0.1:8080/api
Central Controller should be available atDrones should be available at
- Drone 1 - http://127.0.0.1:8081/api
- Drone 2 - http://127.0.0.1:8082/api
- Drone 3 - http://127.0.0.1:8083/api
- Drone 4 - http://127.0.0.1:8084/api
killall python
NOTE: To stop all simulation processes use Different components are cloned from their repositories and run locally on different ports.
Interacting with the simulation
The user can interact with the simulation from the simulation GUI. He can submit messages in structured format to the central controller, the central controller will then parse the submitted message and issue commands to respective drones. Progress can be seen in controller and drone logs in the GUI.
Some Examples
Set Drone 2 speed 100
(Change the speed of drone with id 2 to 100 Km/h.)Set Drone 8 direction N
(Change the direction of drone with id 8 to North.)Set Drone 13 status off
(Turn drone with id 13 off.)Set Drone 8 status active
(Turn drone with id 8 on.)