In the ML2 examples, specifically in the CVCamera Example, I keep getting erroneous values for the pose estimation. In both this example, in a second version I created using this example, the GetFramePose .IsOk returns false, and the GetPosition and rotation all return zeros. I checked the permissions, and the camera permission is enabled correctly. The video feed works fine, it just seems to be this pose metadata. Any ideas? Specifically at this line in the tutorial script "CVCameraExample.cs" lines 263-270.
if (MLCVCamera.GetFramePose(resultExtras.VCamTimestamp, out Matrix4x4 cameraTransform).IsOk)
{
poseText = "Cam Pose: "+ cameraTransform.GetPosition() + cameraTransform.rotation;
}
else
{
poseText = String.Empty;
}