When utilising a Tango what would I use, callbacks or otherwise to detect when the devise has localised to a previously loaded ADF?
This is mainly for UI purposes in conjunction with Tango UX, telling a user to walk around an environment.
When utilising a Tango what would I use, callbacks or otherwise to detect when the devise has localised to a previously loaded ADF?
This is mainly for UI purposes in conjunction with Tango UX, telling a user to walk around an environment.
Localization may be detected when your TangoPoseData with a frame of ADF comes back valid.
Look at the Tango Java examples of AreaLearningActivity with this simplified logic:
Your config must indicate which ADF is of interest:
This process is not easily observed from the code, but I discovered it debugging the AreaLearningActivity example. The Java API would benefit from a higher level of abstraction making the common scenario you requested more obvious and easier to use:
In Unity3D, you can use
pose.status_code
insideOnTangoPoseAvailable(TangoPoseData)
for checking the checking the status (VALID/INVALID) of pose w.r.t. the coordinate frame pair defined. For Device Localization you need to settargetFrame
asTANGO_COORDINATE_FRAME_DEVICE
ANDbaseFrame
asTANGO_COORDINATE_FRAME_AREA_DESCRIPTION
You also need to load the ADF using
m_tangoApplication.Startup (m_selectedADF);
as well.