Skip to content
Snippets Groups Projects
Commit 02e1a1e9 authored by Sylvain Buche's avatar Sylvain Buche
Browse files

Remove some debug lines and update some comments

parent 46a28b9d
No related branches found
No related tags found
1 merge request!2WA now supports multiple trackable modules, add module mesh for iOS,...
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment