Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Adding escape routes on a map #1

Merged
merged 1 commit into from
Feb 6, 2019
Merged

Conversation

yasinghcse
Copy link
Collaborator

@yasinghcse yasinghcse commented Feb 5, 2019

Original Issue: Call-for-Code/Frida#5

Purpose

Add escape routes on a school map

Description (Use Case)

Student is trapped inside the school which has the exit on the other side of the building. There are 4 rooms as well as 4 different paths to an exist. We are trying to find the fastest and safest path to the exist considering the shortest distance and the room conditions along the path. We want to avoid the path on which rooms are damaged.
To fulfill the above requirement, Frida sensor kit is installed in each room which are sending the room snapshots after a specific interval of time to Frida IOT servers. These images are send to Watson Studio VR model to analyze the conditions and realtime analysis is sent back to the app using sockets. The damage rooms are marked with red icons(cross) and other rooms are marked with green icons(check). Taking distance and rooms conditions into consideration, optimal path to an exit is presented to student on the app.

To setup the Frida IOT server, checkout How to Simulate Sensor data flow into application

Steps to run the maps:

  • Update the hostname of your socket client in Frida-app (in school.js) with the hostname of your Node-RED instance to receive socket events.
  • Start the app
  • Click the hamburger icon on the home page
  • Select My School option
  • Escape route will be displayed on the map. Make sure Frida IOT simulator is also running to test the various routes available([Code] Simulate Sensor data flow into application Frida#9)

Screenshots (Different paths selection based on the total distance and room condition)

-- All rooms are fine

screen shot 2019-02-05 at 12 09 59 pm

-- Room 1 is damaged

screen shot 2019-02-05 at 12 10 20 pm

-- Room 2 is damaged

screen shot 2019-02-05 at 12 10 51 pm

-- Room 4 is damaged

screen shot 2019-02-05 at 12 11 21 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants