-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing PositionalLocatorState when port to Unity 2022.3.14f using MRTK2.8 #19
Comments
I have no idea what branch you have used, but please refer to https://localjoost.github.io/Upgrading-reading-and-positioning-QR-codes-with-HoloLens-2-to-Unity-2020-+-OpenXR-plugin/ for using newer versions of Unity first |
Please try this branch first https://github.com/LocalJoost/QRCodeService/tree/openxr |
;) this QR stuff is a side project, not work, so you actually have a better change of getting an answer from me in the weekend and the (CET) evenings. Anyway, I was just between potting up some seedlings and sowing new flowers and veggies, so I was answering you in a short break between botanical activities |
Hi Joost,
It nice that you can sow and plant seeds. In Wisconsin, US, we just got 10cm of snow. ☹
I just finished deploying the QRCodeService-openxr using Unity 2022.3.14f1 with MRTK2.8.3. Unity successful created a Visual Studio solution but I get a note saying ‘QR tracking is not supported’
***@***.***
QR tracking not supported
UnityEngine.Debug:Log (object)
MRTKExtensions.QRCodes.QRCodeTrackingService:SendProgressMessage (string) (at Assets/MRTKExtensions/QRCodes/QRCodeTrackingService.cs:148)
MRTKExtensions.QRCodes.QRCodeTrackingService:InitializationFail (string) (at Assets/MRTKExtensions/QRCodes/QRCodeTrackingService.cs:137)
MRTKExtensions.QRCodes.QRCodeTrackingService/<InitializeTracker>d__40:MoveNext () (at Assets/MRTKExtensions/QRCodes/QRCodeTrackingService.cs:63)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<MRTKExtensions.QRCodes.QRCodeTrackingService/<InitializeTracker>d__40> (MRTKExtensions.QRCodes.QRCodeTrackingService/<InitializeTracker>d__40&)
MRTKExtensions.QRCodes.QRCodeTrackingService:InitializeTracker ()
MRTKExtensions.QRCodes.QRCodeTrackingService:Initialize () (at Assets/MRTKExtensions/QRCodes/QRCodeTrackingService.cs:44)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit/<>c:<InitializeAllServices>b__68_0 (Microsoft.MixedReality.Toolkit.IMixedRealityService) (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:1035>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder (System.Action`1<Microsoft.MixedReality.Toolkit.IMixedRealityService>) (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:1158>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices () (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:1035>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator () (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:560>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeInstance () (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:678>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance (Microsoft.MixedReality.Toolkit.MixedRealityToolkit,bool) (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:830>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:get_Instance () (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:653>)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit/EditorEventListener/<>c:<.cctor>b__1_1 () (at .***@***.******@***.***/Core/Services/MixedRealityToolkit.cs:1573>)
UnityEditor.EditorApplication:Internal_CallHierarchyHasChanged ()
I successfully deploy the application to a Hololens. However, it does not pick up my QR Code
***@***.***
Hololens screen capture
***@***.***
Can you suggest what I need to do to fix this issue?
Thank you very much for your support.
***@***.***<https://www.rockwellautomation.com/>
Thong Nguyen
Sr. Research Scientist
1201 South Second Street
5W21
Milwaukee, WI 53204
P 1–414-382-1685
From: Joost van Schaik ***@***.***>
Sent: Sunday, March 24, 2024 10:15 AM
To: LocalJoost/QRCodeService ***@***.***>
Cc: Thong Nguyen ***@***.***>; Author ***@***.***>
Subject: EXTERNAL: Re: [LocalJoost/QRCodeService] Missing PositionalLocatorState when port to Unity 2022.3.14f using MRTK2.8 (Issue #19)
[Use caution with links & attachments]
;) this QR stuff is a side project, not work, so you actually have a better change of getting an answer from me in the weekend and the (CET) evenings. Anyway, I was just between potting up some seedlings and sowing new flowers and veggies, so I was answering you in a short break between botanical activities
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/LocalJoost/QRCodeService/issues/19*issuecomment-2016841068__;Iw!!JhrIYaSK6lFZ!uTy7W_XMRZrwwL07xU1Iq873rLH-ustsM-zmUU_66kVxydwe__OvMJ0uFqY5qAPXXcrjvDceS5-gZjsQdwxlLE4EFPD8CGgMqg$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A662BU3KOLXWLT7KNPVXEALYZ3UXRAVCNFSM6AAAAABFFV3OM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2DCMBWHA__;!!JhrIYaSK6lFZ!uTy7W_XMRZrwwL07xU1Iq873rLH-ustsM-zmUU_66kVxydwe__OvMJ0uFqY5qAPXXcrjvDceS5-gZjsQdwxlLE4EFPAb-sfFYw$>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
First of all, I should add that both potting and sowing took place in the attic hobby room, not outside. We don't have snow here, but it's way too cold for sowing outside. Did you read my blog, or did you just pull the code and tried it to get to work? |
Hi Joost,
Thank you for pointing out my mistake. I read both ‘Reading QR codes with an MRTK2 Extension Serivce’ and ‘Upgrading reading and position QR Codes with Hololens 2 to Unity 2020 + OpenXR plugin’ and forgot about your original post. I was so focused on porting to Unity 2022 with MRTK 2.8.3 that I forget that this code looks for a payload ‘https://localjoost.github.io’ . I was expecting the app will show the received payload even if it is not ‘https://localjoost.github.io’.
Thank you. I got it working.
***@***.***<https://www.rockwellautomation.com/>
Thong Nguyen
Sr. Research Scientist
1201 South Second Street
5W21
Milwaukee, WI 53204
P 1–414-382-1685
From: Joost van Schaik ***@***.***>
Sent: Sunday, March 24, 2024 11:11 AM
To: LocalJoost/QRCodeService ***@***.***>
Cc: Thong Nguyen ***@***.***>; Author ***@***.***>
Subject: EXTERNAL: Re: [LocalJoost/QRCodeService] Missing PositionalLocatorState when port to Unity 2022.3.14f using MRTK2.8 (Issue #19)
[Use caution with links & attachments]
First of all, I should add that both potting and sowing took place in the attic hobby room, not outside. We don't have snow here, but it's way too cold for sowing outside.
"QR tracking is not supported" you get in the editor only, because the QR tracking only works it in HoloLens. So if you try to run in the editor, you get this warning. Duh ;)
You can deploy in HoloLens, but it does not pick your QR code. What are you using for QR code? It does not recognize just any old QR code, it searches for a specific a QR code. Which you can plainly see in the editor. The sample you have downloaded look for a QR code having "https://github.com/LocalJoost/<https://urldefense.com/v3/__https:/github.com/LocalJoost/__;!!JhrIYaSK6lFZ!sitVY-YtIDCwtWQeXNpZCBDY-z0U35M9KPHOtXDypaGnZ1bNdjYZmtekrYHqdNdL503BgaThbUVxjwHMHuPtXU90gaS0XckpPg$>" as a payload. As it also says so on my blog: https://localjoost.github.io/Positioning-QR-codes-in-space-with-HoloLens-2-building-a-'poor-man's-Vuforia'/#tracker1<https://urldefense.com/v3/__https:/localjoost.github.io/Positioning-QR-codes-in-space-with-HoloLens-2-building-a-'poor-man's-Vuforia'/*tracker1__;Iw!!JhrIYaSK6lFZ!sitVY-YtIDCwtWQeXNpZCBDY-z0U35M9KPHOtXDypaGnZ1bNdjYZmtekrYHqdNdL503BgaThbUVxjwHMHuPtXU90gaQY_YfK8A$>
Did you read my blog, or did you just pull the code and tried it to get to work?
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/LocalJoost/QRCodeService/issues/19*issuecomment-2016856463__;Iw!!JhrIYaSK6lFZ!sitVY-YtIDCwtWQeXNpZCBDY-z0U35M9KPHOtXDypaGnZ1bNdjYZmtekrYHqdNdL503BgaThbUVxjwHMHuPtXU90gaRXd2WdlQ$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A662BU76AVZ4DXEJ5PHPEOLYZ33H3AVCNFSM6AAAAABFFV3OM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2TMNBWGM__;!!JhrIYaSK6lFZ!sitVY-YtIDCwtWQeXNpZCBDY-z0U35M9KPHOtXDypaGnZ1bNdjYZmtekrYHqdNdL503BgaThbUVxjwHMHuPtXU90gaTLCgmBxA$>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Great to to hear that. Yeah, the samples evolved a bit over time and became more elaborate. Of course, you can change the code to respond to any QR code pretty easily, but my idea was that it would do different things for different QR codes. So I checked it to only respond to one single code. My latest sample with QR codes actually shows responses to multiple different QR codes, dunno if that is interesting to you :) https://localjoost.github.io/Showing-multiple-location-based-items-based-on-QR-codes-using-MRTK3-and-HoloLens-2/ |
Hi Joost,
I need to recognize the QR payload and then act on the payload using switch/case statement in my code.
I am using MRTK 2.8.3 and not MRTK3 because version 2.8.3 supports multiple platforms including Android and iOS.
Thank you for getting over the hump. I tried 3 three different projects until you steer me to the openXR version. The previous 3 projects don’t work with Unity 2022 and MRTK.
Thank you. I would love to go out to lunch or dinner with you to learn more of about your work!
***@***.***<https://www.rockwellautomation.com/>
Thong Nguyen
Sr. Research Scientist
1201 South Second Street
5W21
Milwaukee, WI 53204
P 1–414-382-1685
From: Joost van Schaik ***@***.***>
Sent: Sunday, March 24, 2024 12:17 PM
To: LocalJoost/QRCodeService ***@***.***>
Cc: Thong Nguyen ***@***.***>; Author ***@***.***>
Subject: EXTERNAL: Re: [LocalJoost/QRCodeService] Missing PositionalLocatorState when port to Unity 2022.3.14f using MRTK2.8 (Issue #19)
[Use caution with links & attachments]
Great to to hear that. Yeah, the samples evolved a bit over time and became more elaborate. Of course, you can change the code to respond to any QR code pretty easily, but my idea was that it would do different things for different QR codes. So I checked it to only respond to one single code. My latest sample with QR codes actually shows responses to multiple different QR codes, dunno if that is interesting to you :) https://localjoost.github.io/Showing-multiple-location-based-items-based-on-QR-codes-using-MRTK3-and-HoloLens-2/<https://urldefense.com/v3/__https:/localjoost.github.io/Showing-multiple-location-based-items-based-on-QR-codes-using-MRTK3-and-HoloLens-2/__;!!JhrIYaSK6lFZ!v2sjvggFh3cwRALLGMqVxjaM6qSlCVKwzSAvql2JpPlJxd9gKGEKHQdJbJkmtttbvyuElvCOdJkDBEh_NEoOReRKoAaPnbH70g$>
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/LocalJoost/QRCodeService/issues/19*issuecomment-2016876446__;Iw!!JhrIYaSK6lFZ!v2sjvggFh3cwRALLGMqVxjaM6qSlCVKwzSAvql2JpPlJxd9gKGEKHQdJbJkmtttbvyuElvCOdJkDBEh_NEoOReRKoAaf3n4Jdg$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A662BUYM62MEMBKGSD6SETDYZ4DCBAVCNFSM6AAAAABFFV3OM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA3TMNBUGY__;!!JhrIYaSK6lFZ!v2sjvggFh3cwRALLGMqVxjaM6qSlCVKwzSAvql2JpPlJxd9gKGEKHQdJbJkmtttbvyuElvCOdJkDBEh_NEoOReRKoAZb2XxpLg$>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
I get the following error when I try to port this project to Unity 2022.3.14f using MRTK2.8.
Assets\MRTKExtensions\QRCodes\SpatialGraphCoordinateSystemSetter.cs(20,17): error CS0246: The type or namespace name 'PositionalLocatorState' could not be found (are you missing a using directive or an assembly reference?)
Can you please help me fix this issue.
Thank you
The text was updated successfully, but these errors were encountered: