Loading Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs +1 −7 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda /// <returns>map or not (does not check is solved)</returns> public bool AddTrackable(ETSI.ARF.OpenAPI.WorldStorage.Trackable trackable) { /// Here : we don't check if the trackable is allready added, AddImageToLibrary does it /// Here : we don't check if the trackable is allready added if (trackable.TrackableType != ETSI.ARF.OpenAPI.WorldStorage.TrackableType.MAP) { return false; Loading Loading @@ -102,7 +102,6 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda Vector3 position = trackedCloudAnchor.transform.position; Quaternion rotation = trackedCloudAnchor.transform.rotation; TrackableInfo info = new TrackableInfo(); info.name = trackedCloudAnchor.name; string localId = trackedCloudAnchor.trackableId.subId1.ToString("X16");// there must be a better way : does it work every time? Loading Loading @@ -182,13 +181,8 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda var result = promise.Result; if (result.CloudAnchorState == CloudAnchorState.Success) { Debug.Log("ARCloud Anchor Resolve Sucess" +cloudId); m_localIdToEtsiId.Add(result.Anchor.trackableId.subId2.ToString("X16"), etsiId); // should be a better way: not sure about that but subId2 of the ARCloudAnchor seems to correspond to subId1 of local anchor that is updated by Anchor Manager } else { Debug.Log("ARCloud Anchor Resolve Failed" + result.CloudAnchorState + " " +cloudId); } } } Loading Loading
Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs +1 −7 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda /// <returns>map or not (does not check is solved)</returns> public bool AddTrackable(ETSI.ARF.OpenAPI.WorldStorage.Trackable trackable) { /// Here : we don't check if the trackable is allready added, AddImageToLibrary does it /// Here : we don't check if the trackable is allready added if (trackable.TrackableType != ETSI.ARF.OpenAPI.WorldStorage.TrackableType.MAP) { return false; Loading Loading @@ -102,7 +102,6 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda Vector3 position = trackedCloudAnchor.transform.position; Quaternion rotation = trackedCloudAnchor.transform.rotation; TrackableInfo info = new TrackableInfo(); info.name = trackedCloudAnchor.name; string localId = trackedCloudAnchor.trackableId.subId1.ToString("X16");// there must be a better way : does it work every time? Loading Loading @@ -182,13 +181,8 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda var result = promise.Result; if (result.CloudAnchorState == CloudAnchorState.Success) { Debug.Log("ARCloud Anchor Resolve Sucess" +cloudId); m_localIdToEtsiId.Add(result.Anchor.trackableId.subId2.ToString("X16"), etsiId); // should be a better way: not sure about that but subId2 of the ARCloudAnchor seems to correspond to subId1 of local anchor that is updated by Anchor Manager } else { Debug.Log("ARCloud Anchor Resolve Failed" + result.CloudAnchorState + " " +cloudId); } } } Loading