Open smits opened 7 years ago
Issues encountered:
Calling TangoService_connectOnImageAvailable
returns with the error Cannot register onImageAvailable callback when onFrameAvailable already registered!
, even after commenting the code which register onFrameAvailable.
Issue reported here, but no answered yet.
UPDATE: Ignoring the error code seems to work.
Solution: Make a simple app to isolate the problem, test it on Lenovo and Asus and report it to Tango team.
Cannot register the color camera with both onFrameAvailable and onImageAvailable (but no error code in this case...), while we still need to use onFrameAvailable because the new struct TangoImage
is not compatible with the tango 3d reconstruction API and tango support.
UPDATE: The new release m21 containing the update for the tango 3d reconstruction API to work with TangoImage
should come at the end of the week.
Test results:
TangoService_connectOnFrameAvailable with camera id TANGO_CAMERA_FISHEYE throws an error on the Asus phone. The callback is not triggered. The error message is: Cannot register onFrameAvailable callback when onImageAvailable already registered!
TangoService_connectOnImageAvailable with camera id TANGO_CAMERA_COLOR (only the color camera is supported for onImageAvailable according to the documentation), throws an error on both the Asus and Lenovo phone. The callback is still triggered. The error message is: Cannot register onImageAvailable callback when onFrameAvailable already registered!
This is not solving #314. The reason of #314 and its fix is in #371.
Might solve #314.