I'm trying to use Object Tracking with VisionLib which has Magic Leap 2 support and an example. However the example does not work for me, and nothing I've tried has made it track the default car. I'm honestly not sure it's getting the right camera feed.
Here's one of the warnings/errors I'm getting after VisionLib says it's streaming 640x480:
"2023-05-09 15:24:56.219;10187;19322;19322;Warn;UnityMain;type=1400 audit(0.0:15278): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=606211 scontext=u:r:untrusted_app:s0:c187,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0;
"
Sure, it's in their SDK here: https://visionlib.com/develop/downloads/
You need to import the magic leap 2 example from the extension folders. Thanks for looking into it!
Double checked the xml and the permissions are all there. I'm using Unitys "Custom Manifest" and have checked all the checkboxes available in the Magic Leap permissions section. The green circle that indicates the camera is on does show up.
Thanks so much for your help! Removing the voice command permission makes it behave fine after 1 restart.
If it is what I think it is then maybe a while loop until these permissions are granted would help, and then initialize the camera and other permission related things. I noticed that's what the Magic Leap 2 camera example does.
I think I tracked down part of the issue. In the ML code for GetFramePose() there's a IsStarted variable that doesn't end up being true ever. Then in my log I get a permission denied for Camera_Capture_CVIP.
This IsStarted variable can be found being used in MLCVCamera.cs, and is a new addition between 1.5 and 1.6.