public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
        if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Localized";
            LoadShapesJSON(mSelectedMapInfo.userData);
            StringTest tests = mSelectedMapInfo.userData ["test"].ToObject <StringTest> ();
            DebugText.Overflow(tests.stringtests[0] + "," + tests.stringtests[1]);
//			if (mapMetadata is JObject && mapMetadata ["shapeList"] is JObject) {
//				ShapeList shapeList = mapMetadata ["shapeList"].ToObject<ShapeList> ();
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            mLabelText.text = "Mapping";
        }
        else if (currStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Searching for position lock";
        }
        else if (currStatus == LibPlacenote.MappingStatus.WAITING)
        {
            if (shapeObjList.Count != 0)
            {
                ClearShapes();
            }
        }
    }
Esempio n. 2
0
    public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
        if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Localized";
            string jsonPath = Path.Combine(Application.persistentDataPath, mSelectedMapId + ".json");

            if (File.Exists(jsonPath) && shapeObjList.Count == 0)
            {
                LoadShapesJSON(jsonPath);
            }
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            mLabelText.text = "Mapping";
        }
        else if (currStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Searching for position lock";
        }
        else if (currStatus == LibPlacenote.MappingStatus.WAITING)
        {
            if (shapeObjList.Count != 0)
            {
                ClearShapes();
            }
        }
    }
Esempio n. 3
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Localized: " + mSelectedMapInfo.metadata.name);
         GetComponent <CustomShapeManager>().LoadShapesJSON(mSelectedMapInfo.metadata.userdata);
         FeaturesVisualizer.DisablePointcloud();
         //Waypoint has been loaded
         readStatus.GetComponentInChildren <Text>().text = "Recognized";
         readStatus.GetComponentInChildren <Text>().CrossFadeColor(Color.clear, 4f, false, true);
         readStatus.GetComponent <Image>().CrossFadeColor(Color.clear, 3.5f, false, true);
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         Debug.Log("Mapping");
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Searching for position lock");
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (GetComponent <CustomShapeManager>().shapeObjList.Count != 0)
         {
             //GetComponent<CustomShapeManager>().ClearShapes();
         }
     }
 }
    public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
        if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Localized";
            //FeaturesVisualizer.DisablePointcloud();
            ////LibPlacenote.Instance.MyStopSession();
            //mPNPlaneManager.ClearPlanes();
            //mPlaneDetectionToggle.GetComponent<Toggle>().isOn = false;
            //mMappingButtonPanel.SetActive(false);
            mLabelText.enabled = false;
            LabelPanel.SetActive(false);

            GetComponent <ShapeManager>().LoadShapesJSON(mSelectedMapInfo.metadata.userdata);
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            mLabelText.text = "Mapping";
        }
        else if (currStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Searching for position lock";
        }
        else if (currStatus == LibPlacenote.MappingStatus.WAITING)
        {
            if (GetComponent <ShapeManager>().shapeObjList.Count != 0)
            {
                GetComponent <ShapeManager>().ClearShapes();
            }
        }
    }
Esempio n. 5
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus,
                            LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() +
               " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING &&
         prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Localized";
         LoadShapesJSON(mSelectedMapInfo.userData);
         LoadSv3ListJSON(mSelectedMapInfo.userData);
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING &&
              prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         mLabelText.text = "Mapping";
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Searching for position lock";
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (shapeObjList.Count != 0)
         {
             ClearShapes();
         }
     }
 }
Esempio n. 6
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         //Debug.Log("Localized: " + mSelectedMapInfo.metadata.name);
         string[] mapNameArray = mapName.Split('/');
         navigationPanelText.GetComponent <Text>().text =
             "Navigating to " + mapNameArray[0] + ", Floor " + mapNameArray[1] + ", " + mapNameArray[2];
         GetComponent <CustomShapeManager>().LoadShapesJSON(mSelectedMapInfo.metadata.userdata);
         FeaturesVisualizer.DisablePointcloud();
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         Debug.Log("Mapping");
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         navigationPanelText.GetComponent <Text>().text = "Locating...";
         //Debug.Log("Searching for position lock");
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (GetComponent <CustomShapeManager>().shapeObjList.Count != 0)
         {
             //GetComponent<CustomShapeManager>().ClearShapes();
         }
     }
 }
Esempio n. 7
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Localized: " + mSelectedMapInfo.metadata.name);
         GetComponent <CustomShapeManager>().LoadShapesJSON(mSelectedMapInfo.metadata.userdata);
         FeaturesVisualizer.DisablePointcloud();
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         Debug.Log("Mapping");
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Searching for position lock");
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (GetComponent <CustomShapeManager>().shapeObjList.Count != 0)
         {
             //GetComponent<CustomShapeManager>().ClearShapes();
         }
     }
 }
Esempio n. 8
0
        public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
        {
            Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());

            if (currStatus == LibPlacenote.MappingStatus.LOST && prevStatus == LibPlacenote.MappingStatus.WAITING)
            {
                mLabelText.text = "Point your phone at the area shown in the thumbnail";
            }
        }
Esempio n. 9
0
    public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
        if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Localized";
            mSingleStickControl.SetActive(true);
            mPlaceObstacleButton.SetActive(true);
            mPlaceDestButton.SetActive(true);
            var mapMetaData = mCurrMapInfo.userData["planes"];

            PlaneMeshList planeList = mapMetaData.ToObject <PlaneMeshList>();
            int           i         = 0;
            if (!created)
            {
                foreach (var plane in planeList.meshList)
                {
                    GameObject go = PlacenotePlaneUtility.CreatePlaneInScene(plane);
                    go.AddComponent <MeshCollider>();
                    MeshCollider meshCollider = go.GetComponent <MeshCollider>();
                    meshCollider.convex = true;
                    go.name             = "plane" + i;
                    i++;
                    mLabelText.text = "Creating planes";

                    UnityEngine.Object prefab    = Resources.Load <UnityEngine.Object>("Cyborg/Prefab/Cyborg");
                    GameObject         character = Instantiate(prefab, Vector3.zero, Quaternion.identity) as GameObject;
                    character.transform.position   = go.transform.position;
                    character.transform.localScale = new Vector3(0.001f, 0.001f, 0.001f);
                }
                created = !created;
            }
            mLabelText.text = "Done creating planes";
            if (mPlaneGenerator != null)
            {
                mPlaneGenerator.LoadPlaneList(mCurrMapInfo.userData);
            }
            else
            {
                Debug.Log("No plane generator object, not saving planes");
            }
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            mLabelText.text = "Mapping";
        }
        else if (currStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Mapping Status: LOST";
        }
        else if (currStatus == LibPlacenote.MappingStatus.WAITING)
        {
            mSingleStickControl.SetActive(false);
            mPlaceObstacleButton.SetActive(false);
            mPlaceDestButton.SetActive(false);
        }
    }
Esempio n. 10
0
    // This function runs when LibPlacenote sends a status change message like Localized!

    public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());


        if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            Debug.Log("Localized!");

            textLabel.text = "Found It!";

            /*
             * GameObject shape = GameObject.CreatePrimitive (PrimitiveType.Cube);
             * shape.transform.position = new Vector3 (0.0f, 0.0f, 0f);
             * shape.transform.localScale = new Vector3 (0.2f, 0.2f, 0.2f);
             * shape.GetComponent<Renderer>().material.color = new Color(1,0.5f,1);
             */

            if (!savedSceneLoaded)
            {
                savedSceneLoaded = true;
                loadSavedScene();
            }


            /*
             * string jsonPath = Path.Combine (Application.persistentDataPath, mSelectedMapId + ".json");
             *
             * if (File.Exists (jsonPath) && shapeObjList.Count == 0) {
             *      LoadShapesJSON (jsonPath);
             * }
             */
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            Debug.Log("Mapping");
        }
        else if (currStatus == LibPlacenote.MappingStatus.LOST)
        {
            Debug.Log("Searching for position lock");
        }
        else if (currStatus == LibPlacenote.MappingStatus.WAITING)
        {
            /*
             * // shapeObjList will be filled from loadshapesjson
             *
             *
             * if (shapeObjList.Count != 0) {
             *      ClearShapes ();
             * }
             */
        }
    }
    public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());

        if (currStatus == LibPlacenote.MappingStatus.LOST && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            Debug.Log("Searching for position lock");
            mLabelText.text = "Point your phone at the area shown in the thumbnail";
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            Debug.Log("Localized: " + mSelectedMapInfo.metadata.name);
        }
    }
Esempio n. 12
0
        public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
        {
            string currentMode = LibPlacenote.Instance.GetMode().ToString();
            string status      = currStatus.ToString();

            DebugMessageManager.Instance.UpdateStatus(currentMode, status);
            Debug.Log(string.Format("Mode: '{0}', Status changed: '{1}'->'{2}'", currentMode, prevStatus.ToString(), status));

            if (currStatus == LibPlacenote.MappingStatus.LOST && prevStatus == LibPlacenote.MappingStatus.WAITING)
            {
                mLabelText.text = "Point your phone at the area shown in the thumbnail";
            }

            DebugMessageManager.Instance.EnableMappingQualityInfo(LibPlacenote.Instance.IsPerformingMapping());
        }
Esempio n. 13
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + ", currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Localized");
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         Debug.Log("Mapping");
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Searching for position lock");
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
     }
 }
    public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
    {
        Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());

        if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
        {
            mLabelText.text = "Localized!";
            GetComponent <NotesManager>().LoadNotesJSON(mSelectedMapInfo.metadata.userdata);
        }
        else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
        {
            mLabelText.text = "Mapping: Tap to add Notes";
        }
        else if (currStatus == LibPlacenote.MappingStatus.WAITING)
        {
            if (GetComponent <NotesManager>().mNotesObjList.Count != 0)
            {
                GetComponent <NotesManager>().ClearNotes();
            }
        }
    }
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Localized";
         mModelParent.SetActive(true);
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         mLabelText.text = "Mapping";
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Searching for position lock";
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         mLabelText.text = "Waiting!";
     }
 }
Esempio n. 16
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus,
                            LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() +
               " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING &&
         prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         if (!hasLocalized)
         {
             mLabelText.text = "Localized";
             LoadFromMetadata();
             hasLocalized = true;
         }
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING &&
              prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         mLabelText.text = "Mapping";
         if (!hasLocalized && (mSelectedMapInfo != null))
         {
             mLabelText.text = "Localized";
             LoadFromMetadata();
             hasLocalized = true;
         }
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Searching for position lock";
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (shapeObjList.Count != 0)
         {
             sModels.Clear();
         }
         OnNewMapClick(); // start session automatically
     }
 }
Esempio n. 17
0
 // Runs when LibPlacenote sends a status change message like Localized!
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         if (!localizeFirstTime)
         {
             localizeFirstTime = true;
             mapStatus         = Status.Running;
             shapeManager.LoadShapesJSON(mSelectedMapInfo.metadata.userdata);
             FeaturesVisualizer.DisablePointcloud();                 //if player is doing navigation, disable point cloud
             LoadDestinationList();
             scanPopup.SetActive(false);
             selectDesPopUp.SetActive(true);
         }
         statusText.text = "Localized";
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         statusText.text = "Mapping: Tap to add Shapes";
         mapStatus       = Status.Mapping;
         FeaturesVisualizer.EnablePointcloud();             //if mapping enable point cloud to be see
         mExitButton.SetActive(true);
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         statusText.text = "Searching for position lock";
         mapStatus       = Status.Lost;
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         mapStatus = Status.Waiting;
         if (shapeManager.shapeObjList.Count != 0)
         {
             shapeManager.ClearShapes();
         }
     }
 }
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Localized");
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         Debug.Log("Mapping");
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         Debug.Log("Searching for position lock");
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (mShapeManager.shapeObjList.Count != 0)
         {
             mShapeManager.ClearShapes();
         }
     }
 }
Esempio n. 19
0
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Localized";
         mAudioCueManager.LoadAudioCuesJSON(mSelectedMapInfo.metadata.userdata); // CHANGED
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
     {
         mLabelText.text = "Mapping: Tap to add audio cues"; // CHANGED
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     {
         mLabelText.text = "Searching for position lock";
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (mAudioCueManager.audioCueObjList.Count != 0) // CHANGED
         {
             mAudioCueManager.ClearAudioCues();           // CHANGED
         }
     }
 }
        public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
        {
            Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
            if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)
            {
                mLabelText.text = "Localized State!";

                if (!localizedFirstTime)
                {
                    localizedFirstTime = true;

                    mLabelText.text = "Localized: loaded shapes";

                    if (mPlaneGenerator != null)
                    {
                        JToken planeData = downloadedMetaData.userdata;
                        mPlaneGenerator.LoadPlaneList(planeData);
                    }
                    else
                    {
                        Debug.Log("No plane generator object, not saving planes");
                    }
                }
            }
            else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)
            {
                mLabelText.text = "Mapping";
            }
            else if (currStatus == LibPlacenote.MappingStatus.LOST)
            {
                mLabelText.text = "Searching for position lock";
            }
            else if (currStatus == LibPlacenote.MappingStatus.WAITING)
            {
            }
        }
Esempio n. 21
0
 //Runs when Placenote sends message to say the status has changed to identify the current state of session
 public void OnStatusChange(LibPlacenote.MappingStatus prevStatus, LibPlacenote.MappingStatus currStatus)
 {
     Debug.Log("prevStatus: " + prevStatus.ToString() + " currStatus: " + currStatus.ToString());
     if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.LOST)           //Runs when localised to reload shapes in correct location
     {
         notificationPanelText.text = "Localized";
         GetComponent <ShapeManager>().LoadShapesJSON(selectedRouteInfo.metadata.userdata);
     }
     else if (currStatus == LibPlacenote.MappingStatus.RUNNING && prevStatus == LibPlacenote.MappingStatus.WAITING)             //Runs when in mapping session
     {
         notificationPanelText.text = "Mapping: Tap to add Shapes";
     }
     else if (currStatus == LibPlacenote.MappingStatus.LOST)
     { //runs when walking a route but it cant detect any feature points at that moment
         notificationPanelText.text = "Searching for position lock";
     }
     else if (currStatus == LibPlacenote.MappingStatus.WAITING)
     {
         if (GetComponent <ShapeManager>().shapeObjList.Count != 0)
         {
             GetComponent <ShapeManager>().ClearShapes();
         }
     }
 }