Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
World Analysis ARFoundation Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ARF
World Analysis API helpers
World Analysis ARFoundation Wrapper
Commits
02e1a1e9
Commit
02e1a1e9
authored
8 months ago
by
Sylvain Buche
Browse files
Options
Downloads
Patches
Plain Diff
Remove some debug lines and update some comments
parent
46a28b9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
WA now supports multiple trackable modules, add module mesh for iOS,...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs
+1
-7
1 addition, 7 deletions
...me/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs
with
1 addition
and
7 deletions
Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs
+
1
−
7
View file @
02e1a1e9
...
...
@@ -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
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment