Microsoft-OpenXR-Unreal icon indicating copy to clipboard operation
Microsoft-OpenXR-Unreal copied to clipboard

QR Detection

Open bvaibhav1 opened this issue 3 years ago • 2 comments

Hello

We are not getting callback OnAddTrackedGeomety on Starting a new AR Session if the QR is already detected. We get callaback for OnUpdaterTrackedGeomety, However two values of QR ae received alternately (One is the correct QR location the other is 0,0,0 (in tracker ref frame, or the location where the Hololens was when the session started.

Using Unreal 4.27.2 Built from Source.

Kindly suggest mechanism (for now hardcoding to ignore the QR value of 0,0,0.

bvaibhav1 avatar Oct 19 '22 11:10 bvaibhav1

Can you check the tracking state for the QRCode before using it?

What is probably happening is the first update is too early for the tracking system to located it. So an update event fires, but the LocalToTrackingTransform is identity and the TrackingState should be NotTracking.

Looks at the code here for how the updated event fires: https://github.com/microsoft/Microsoft-OpenXR-Unreal/blob/55ed0b870125a7151058a3556000603b39bc6f93/MsftOpenXRGame/Plugins/MicrosoftOpenXR/Source/MicrosoftOpenXR/Private/QRTrackingPlugin.cpp#L309

fieldsJacksonG avatar Oct 27 '22 22:10 fieldsJacksonG

Hello

I always get the tracking state as tracking. Also we keep on getting the local to tracking transform as identify and it is not for the first time only. I am rejecting it based on this for now.

bvaibhav1 avatar Oct 28 '22 08:10 bvaibhav1