#๐ Indoor Navigation System
141 messages ยท Page 1 of 1 (latest)
@frail coyote
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
It could be easier to make it in full javascript/css/html, you don't even need a real backend
but I prefer to do it in python because it's the only language I know comfortably
I can still do it right?
I'm still using html though
well even java script and css I plan to do it through flask
Also then I can ask for more help over here
What kind of suggestions are you looking for?
Like how to go about building it
The basic functionality is that you enter the room you're in right now and the room you want to go to. After that it finds the shortest path between the 2 and directs you like how google maps does
We don't know what you know and don't know, so it'd be useful to get more specific questions
hm alright
I want to know:
-
A way to host the system on a website for free. I'm using Flask to build and test it but can I run it on Flask too?
-
What data I need to collect about the school to make this work. For example, is only a floorplan fine or do I need more?
-
A roadmap of steps to build the system that does this.
I dont think you can make a website like this with only python
or it'd be very inconvinient if you tried
It is much easier to learn javascrip and make the website with than try to make it with python
flask is a framework, not a hosting solution, so yes if you build your system on flask then you'll have a website on flask. If you really need free hosting then you can find some solutions for that online
what data you need depends on what algorithms you end up using. The simplest way would be to define a graph of the school and use Dijkstra's algorithm.
I wouldn't trust anyone to give you a concrete roadmap of how to do this, instead just follow tutorials for how to build and host something with flask and you should be able to come up with a plan on your own
also it's a more valuable skill
You'll need a map/representation of each floor and a graph that link room with eachother
hm alright thanks, how long would you think the project would take?
depends on your skill level, we wont know
days or years depending on how fast you are
Alright, I'm building a prototype with one that works in my house first
if you dont knoe any html css or js, you might need a few months to be comfortable with thrm
I do know basics
especially in html and css
but I don't know much about js
you'll need to know js inorder to do what you're trying to make for the front end
Also, for the graph, I place nodes so that you can get to any location through straight lines drawn through the nodes, right?
oh ok
what exactly will I do with the js part? Do you think it's fine if I use AI to generate the js front end or is it complicated enough that I need to learn Javascript and understand everything in the frontend
just look at Dijkstra's algorithm and if you understand it you'll know how to make the graph
don't worry about making a fancy frontend with javascript, use whatever tools you feel comfortable with, you can absolutely get away with python/html/css
yea I watched a video about it earlier but I'm not sure if I understand it lol, I'm just checking if what I understood is correct. I'm pretty sure that's all I need
and no you shouldn't need months to understand css basics, you sound smart, you'll be fine
oh thanks lol
@frail coyote one wast difference from google maps and similar apps will be that the person will not be able to see where they currently are on the map as they walk around since GPS will not work very good (if at all depending on hardware and building/materials) indoors
yea I don't plan on using GPS
but I still want to update the user's position
can't most phones detect movement
I've seen indoor navigation systems that have live movement, I don't know if they use other expensive technology though because they are in malls, I'm guessing they do
inertia navigation systems aren't very reliable or accurate, but you can try it
wdym by inertia navigation system?
and if they aren't accurate, do you know of any way to get live feedback?
alr I understood I googled it
Google have hade multiple projects trying to create a good system for indoors navigation for their phones and AR games with various level of "success", but they have all been canceled
oh
some systems have also been using the back camera and use optic flow and AR to track motion
hm so I could do that?
but it's kind of inconvenient as you have to be pointing the camera correctly
you can always try it, but it will be a big project that can be a bit complex
yes but you said it would be inconvenient
and I'm not that confident in my ability to make a big project
I guess instead of live directions I could just make it give the direction you take to get to the path. That's way less cool though lol
Alright I doubt I can do it then
Though I have a question, I found online that your phone can get it's distance from a wifi router using round trip time, won't this let me know the location of the phone relative to the wifi router?
yes, but you will need 3 wifi routers to locate you
and you need them to be close enough to you
not easy but yes
that is often how it works on information displays in malls and stadiums and such
two circles have 2 intersecting points
?
oh ok
if you know the distance to 2 wifirouters, you may be at two positions
ohh ok I understood
but if you can rule out one of the positions(for example it's inside a wall), you can tell with 2 routers?
oh ok
if you know one of the two spots is in a wall, then yes, but that's quite unlikely
but, if we knew the starting position, wouldn't 2 be enough?
no
also this only works in 2d, in 3d the intersection isn't a point of a curved line
you can still rule out the position based on floor heights but it start getting complicated
often you need a quite dense wifi network to do it and preferably special firmware with support for certain extensions for it in both the phone and the wifi accesspoints
Alright, I think that's too complicated for me right now but I could expirement.
I guess I'll go with this
Thanks a lot though for your help
good luck
Thank you
either that or you will have to map the RF environment and hope it doesn't change too much, there is quite a bit of algorithms and complexity in that too if you don't have the extension l/support in place to help you with it
wdym RF environment?
Radio Frequency
it's the radio environments
and also by support do you mean from the school or something else?
yea but why would it change? Would it change with people using devices?
almost anything, accesspoints can change their output power, be moved added or removed in the building du to maintenance or remodeling indoors, even moving furniture around opening and closing doors orpeople moving through the space can affect the RF environment a great deal
Then I don't think it'll work out because it's for a school
Furniture is moved all the time
and it's crowded
that too
so without suppirt through some wifi features that makes this much easier it will be a hard problem
but if the wifi network and the phone has support for thise extension it is much easier
what do you mean by support though
Can it be something installed quickly on your phone?
i don't remember what the extention is named right now, but i remember that the wifi standard has some optional extention available for this very purpose, to let a phone be able to much easier use the wifi network for triangulating itself in space, the wifi network has to provide some extra meta information to clients for them to do this much easier than they would otherwise be able to do
Alright thanks, and this would be convenient for the user?
yes, if the wifi network has this feature available and enabled the client can much easier use the wifi network to find where it is I. space (if the phone also have support for this)
is it called IEEE 802.11az standard?
it looks like a lot of android phones have support for this and i would be very surprised if that doesn't go for phones as well even if i haven't looked for any information about that right now
Alright thanks
.
looks like that could be it or at least one of the options, it's at least one of the IEEE 802.11 standards as almost all wifi standards are grouped under it
oh ok
I don't really understand what this even means but I'll try
you think it's realistic for me to learn about this and apply it?
and android have some ready-made APIs for locating itself in a wifi network
you could do some research and see if you think it might be possible for your level of knowledge
Alright
i don't know if their are web browser apis for this available in the browsers or if you need to have an app on the phone to be able to utilize such indoor location service
oh ok, hopefully it's a web browser because making an app would then be more work
for now I'll still go with manually telling the user the directions, but this will help in case I take it further. Thanks a lot
yes, start simple and built upon it and see if you can add more features later on
looking deeper into this there seem to be some support in android even without extra wifi extensions with enough wifi networks or accesspoints around the phone, just with much worse precision
strength of wifi signal is extremely poor and unreliable indicator of accurate indoor positioning in spaces like school
it depends A LOT on enviornment factors as well as actual physical obstacles in way
like you can have two litearl phones measuring the strenght side by side like 1 meter apart and the strenght may differ significantly
yes, a lot of things in the RF environment continuously changes in such an environment
we had a hackathon where we had to do this stuff (precision indoor positioning)
we ended up making a frankenstine solution with UWB receivers (aka extra hardware)
i can't find any web browser apis that utilizes indoor location information other then what one would see with Google maps on a phone, which is really poor
maybe you can have a system where each room is uniquely identified by some sort of letter combination like A10
then you will ask user to input their current classroom in your app , and let them choose desitnation
and then you can give a path
basicaly take away the "automatic positioning" part from the system
yeah, if you have that option it's probably one of the better solution, but require special hardware as you also note
yes, something like that is probably what what OP will aim for, at least that is how I interpreted the conversation
often rooms in schools have codes or ids already
if you are talking about BIIGGG campuses with acres of land , then sure , wifi signal strenght might work
because you basically disconnect from one access point and connect to another and that way you can track them
but yeah for small spaces like school rooms , wifi will never be able to differentiate unelss you have like a wifi box in every single classroom at the very center (and even then it will be highly unreliable)
yeah , thats probably the best solution given this scenario
there are expensive commercial solutions for quite good indoor positioning of clients, but that is either built-in to access points of the wifi network and typically extra software running on a centralized server to aggregate information from the different access points that can see/hear the client, or a parallel installation of a lot of probes that serve a similar purpose which is expensive to deploy
the client doesn't know where it is in such a network, it's the external system that knows where clients are located
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.