androidgoogle-project-tangotango

Android Output Frame Coordinates


In the Google Tango doc for the TangoSupport_fitPlaneModelNearPoint function the intersection_point value is given as a Vec3 in "Output Frame Coordinates"

When debugging this I find that the positive Z coordinate is always the distance away from the camera

I am assuming the right-hand rule so anyone have a source to confirm that this is what is meant for "Output Frame Coordinates"?

enter image description here


Solution

  • The resulting plane equation will be in the same reference frame that you pass the parameters in with. That is the output coordinate space being referred to here.

    So if you use StartOfService for your reference frame, then pass in base=StartOfService, target=DepthCamera for the point cloud position and base=StartOfService, target=ColorCamera or Device, depending on which one you are using for positioning the 3D camera.