From 02e1a1e9f05de709bde69921a9258485a7afac44 Mon Sep 17 00:00:00 2001 From: Sylvain Buche <sylvain.buche@orange.com> Date: Thu, 1 Aug 2024 10:52:45 +0200 Subject: [PATCH] Remove some debug lines and update some comments --- .../WorldAnalysisARFoundationModuleARCoreAnchor.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs b/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs index ff1c4c6..15a1ac3 100644 --- a/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs +++ b/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs @@ -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; @@ -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? @@ -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); - } } } -- GitLab