Skip to content

nonnoz/AR-Indoor-Navigation

Repository files navigation

AR-Indoor-Navigation

The software built for this project uses Viro React as the augmented reality (AR) development tool. Viro React is a platform for developers to rapidly build AR experiences. Developers write in React Native, and Viro runs their code natively across all mobile AR (iOS ARKit and Android ARCore) platforms. More info here.

Instructions for setting up the environment and running project code using Testbed app

  1. Follow directions on our Quick Start Guide (Mac/Linux) (Windows) to setup dependencies.
  2. Go into the AR-Indoor-Navigation-master directory.
  3. Run npm install or yarn install if using yarn from the root of this project to install the node modules.
  4. Download the Viro Testbed app, for iOS here, or for Android here.
  5. Run npm start from the root of this project.
  6. Find the ngrok url (https://xxxxxx.ngrok.io) which is printed at the top of the terminal window where you ran npm start.
  7. Open the Viro Media App, slide out the left panel and select "Enter Testbed".
  8. Enter the ngrok url or the IP address of the running device into the empty text field on the Testbed screen and press "Go".
  9. Now the application should be presented, enjoy!

Changing between navigation methods

There are three navigation methods implemented in this project. The second method and third method are included in one file.

  • Arrow with text
  • Virtual car
  • Virtual car with 2D map

Steps:

  1. Open App.js in a text editor.
  2. For method 1, comment line 30 ViroCodeSamplesSceneNavigator = require('./js/VirtualCar');.
  3. For method 2 or 3, uncomment line 30.
  4. Reload/restart the application.

* To reload the application, try shaking the device until a development menu appears and click "Reload".

Application scenario

The set route of this application is located at the 4th floor of the Sir Peter Mansfield Building (PMB) in the University of Nottingham Ningbo China (UNNC). The start point is elevator at the 4th floor, and the destination is PMB 447.

Testing the first method
User should stand at the specific start point when start the application.
Testing the second and third method
The start point could be anywhere. For the best guidance experience, the virtual car need to be placed at the middle of the road and level with the elevator.

Device specification

The code now is suitable for using iPad. It also provide iPhone setting.

To modify from iPad setting to iPhone:

  1. Open the project in a texteditor such as Visual Studio Code.
  2. Search "iPhone", find places that need to be modified.
  3. Comment and uncomment corresponding code.
  4. Reload/restart the application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors