-
Notifications
You must be signed in to change notification settings - Fork 12
Prepare floorplan
Daisuke Sato edited this page Jun 29, 2018
·
3 revisions
First of all, you need to prepare indoor floorplan images where you want to support navigation. The floorplan images will be shown on maps based on localization result. Floorplan images should be drawn as much accurate as possible to represents real-world buildings.
- one image for a floor of a building
- without deformation of rooms and corridor shapes (based on blueprint)
- with known scale (pixels per meter)
- with clear indication of walkable / non-walkable (non-supported) areas
- with elevators, stairs, security gate, and other important building facilities.
- same size/scale/origin for floors of same building is convenient
- simple (light) SVG image is recommended (needs width and height attributes specified)
- PNG should be smaller than 2000x2000
- LocationService server (see here)
- open
http://<location-service-host>/LocationService/floorplans.html - add a floorplan
| Item | Type | Description |
|---|---|---|
| Name | string | any text |
| Comment | string | any text |
| File | file | it will be used for display on mobile app so make it smaller than about 2000x2000 pixels in png/jpeg format |
| Group Name | string | use same name for floor plans of same building (this will be used for display) |
| Floor | integer | 0 = 1st floor, 1 = 2nd floor, -1 = 1st basement floor |
| Origin X/Y | double | pixel coordinates from bottom left corner of an anchor which is used for display on global map. |
| PPM X/Y | double | pixel per meter value. |
- one a floor plan image is uploaded, you can edit origin and ppm interactive.
- click map of the floorplan
- click Origin X or Origin Y input box and then click on the map to specify the coordinates
- click PPM X or PPM Y input box and then click twice on the map where you know the actual distance in meters. You will prompt to input distance in meter and PPM will be set based on the points where you specified and the distance