JakovTomasic / RitehMaps

Indoor navigation project for the Faculty of Engineering, Rijeka
Apache License 2.0
3 stars 1 forks source link

Graph construction #25

Closed JakovTomasic closed 1 year ago

JakovTomasic commented 1 year ago

From the room data (#19) define the whole graph. Each node should have coordinates on the submap and the id of the submap.

Submap is a picture. E.g. each floor can be one submap.

Save all the graph data into a well-formatted file. E.g. JSON file. Try not to duplicate any data.

JakovTomasic commented 1 year ago

UI drawing tools developed in #15 may be beneficial for easier location input. Try to find out if there is a better solution online (website for inputting such locations)

JakovTomasic commented 1 year ago

Partially solved in #44.

JakovTomasic commented 1 year ago

TODO - document the process of constructing, modifying, and viewing the graph.

edit: documented in the graph page in the wiki.

JakovTomasic commented 1 year ago

TODO - calculate the distance in meters between any two (connected) nodes on the same submap.

This can be implemented by defining widthInMeters and heightInMeters for each submap and then calculating the distance from the relative coordinates of the nodes.

edit: done in 8c40ebd071788e79700208c616b5218bfacb6bcd

JakovTomasic commented 1 year ago

This issue should be resolved. I added a separate issue #48 to create a more detailed graph.

NikaRodin commented 1 year ago

Great job. You may close the issue and mark it as "Done".