CS-UCR / senior-design-project-project-memoir

senior-design-project-project-memoir created by GitHub Classroom
MIT License
1 stars 0 forks source link

Added ARGeoAnchor #27

Closed borozcod closed 2 years ago

borozcod commented 2 years ago

Update

I added the needed configurations for location support and updated our anchors to be ARGeoAnchor.

How to test

There are 2 ways to test the app

Use your camera in a compatible area

Edit the project schema

Screen Shot 2022-01-16 at 9 03 50 PM

Make sure that ARKit [] Replay Data is unchecked

Screen Shot 2022-01-16 at 9 04 31 PM

Use a AR Session

An AR Session is a pre-recorded video of a location that supports geo anchors. Instead of opening your camera, the video will play. You are able to drop messages in the video. Edit the schema (as shown above). Check ARKit [*] Replay Data and select the .mov file from your computer.

important The .mov file can not be added to github, it's too large. I added it to the gitignore. We can just share the .mov file between us.

Screen Shot 2022-01-16 at 9 06 09 PM

Key notes

The app only adds the message if it's able to detect a coordinate system within the real world. So if you're tapping and tapping and nothing get's added, it's probably because it's not picking up any real-world coordinates or geo anchors are not supported in your area. I print on the console if it's supported.

Fixes: #21

borozcod commented 2 years ago

Yeah so the boxes only get created if a lat and long get detected, if not it just returns nothing. I believe it gives an error if it doesn't pick up a coordinate.

https://github.com/CS-UCR/senior-design-project-project-memoir/blob/2712907913ae4d3d9f7c5f2f1bd3cbf8775d4eea/iOS-frontend/ProjectM/Gestures/ARVC%2BUserGestures.swift#L152-L156

Try it out outside and see if it picks them up. We should probably share a session that we know picks those up.