MLSnapshotGetTransform returns MLResult_PoseNotFound

I am trying to get hand tracking, I am following the steps in the hand tracking example but I didn't use the app framework, because the only thing I need is detection of the hand tracking, I am using my own GUI to render.

I initialized the perception system, and also initialized Handtracking handler, and static data
then requesting the update in the update loop as seeing in the code.

Best,
Ali

1 Like

Hi @a.al-darraji, Thank you for your post. Looking into this now. Can you tell me what version and which SDK you are using? You're working with C API, correct?

1 Like

@a.al-darraji can you please try to create and initialize head tracker in your test and see if it works?

1 Like

Yes I am working with the C API
Build: B3E.220818.12-R.046-R.420
I am using 1.0.0 SDK.

1 Like

Thanks for your reply, I will do it on Monday and test, but I am interested, I don't recall reading anything in the documentation or header files regarding the Head Tracker.

1 Like

I think I should have mentioned the example that uses the app frameworks actually works.
and does detect the hands very accurately.

1 Like

Creating head tracker does seem to fix it.

However, the issue now, is that the mask returned by which joints are detected is always the same.

whenever a hand is detected, it always make the mask points true (all of them, even if it is just the finger tip)
except for mask point 21, 22 Unral and Radial.

is this intended? Because, that is the case as well for the hand_tracking sample app.

1 Like

Yes @a.al-darraji, what you see with keypoints point 21, 22 is expected. Also the need to create head tracker is fixed in the latest release 1.1.0-dev1. Thank you.

2 Likes

We are still getting these errors at ML SDK 1.2.0 with Unity integration 1.3.0;

2023-02-07 12:51:08.293 9690 9713 Error Unity [XR] MLSnapshotGetTransform(Right Eye Center) failed with error MLResult_PoseNotFound
2023-02-07 12:51:08.293 9690 9713 Error Unity [XR] MLSnapshotGetTransform(Eye Vergence) failed with error MLResult_PoseNotFound
2023-02-07 12:51:08.379 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46014): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
2023-02-07 12:51:08.391 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46016): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
2023-02-07 12:51:08.399 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46018): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
2023-02-07 12:51:09.383 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46254): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
2023-02-07 12:51:09.391 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46256): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
2023-02-07 12:51:09.399 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46258): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0
2023-02-07 12:51:09.464 9690 9713 Error Unity [XR] MLSnapshotGetTransform(Left Eye Center) failed with error MLResult_PoseNotFound
2023-02-07 12:51:10.395 9690 9690 Warn UnityGfxDeviceW type=1400 audit(0.0:46496): avc: denied { search } for name="traces" dev="nvme0n1p37" ino=4096003 scontext=u:r:untrusted_app:s0:c110,c256,c512,c768 tcontext=u:object_r:trace_data_file:s0 tclass=dir permissive=0

What version of the com.unity.xr.magicleap are you using ?

1 Like