3D Indoor Navigation (indoornavigation3d)
Introduction
The demonstration is based on a three-dimensional indoor map to realize cross-floor path analysis and navigation.
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\indoornavigation3d
ADT
- Product package: Product package catalogue\SampleCode\SampleCode_ADT\IndoorNavigation3D
Data
Storage location
- Product package: Product package\SampleData\IndoorScene
Deployment Location: mobile device internal storage\SampleData\IndoorScene
Resource
Copy the "Product package\Resource\voice" folder to the assets folder in the project directory for navigation voice broadcasting.
License
Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.
Library
jar |
---|
com.supermap.data.jar, com.supermap.mapping.jar, com.supermap.navigation.jar, com.supermap.realspace.jar |
so |
libimb.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.) |
Key types/members
Control/Class | Method |
---|---|
Navigation2 | setNetWorkDataset(), loadModel(), load(), setStartPoint(), setDestinationPoint(), isGuiding(), cleanPath(), stopGuide(), startGuide(), routeAnalyst() |
Basic steps
- Click the [Start Point] button and press a point on the map to set the starting point;
- Click the [End Point] button and press the other point on the map to set the end point;
- Click the [Via Point] button and long-click the set path point on the map;
- Click the [Analysis] button to conduct path analysis and display the navigation path;
- After the path analysis, if you click the [simulated navigation] button, the simulated boot will be carried out, and the boot process will be displayed on the map;
- Navigation is in progress. If you click [Stop Navigation], you can stop navigation;
- After stopping navigation, click the [Clear] button to clear the existing path results and reanalyze the path;
- To the right is the floor switch and display control button.