Log in or register to post comments

Vuforia.TrackerManager.Instance.InitTracker fails on device

May 21, 2018 - 11:15am #1

This technically works in editor, but on device Vuforia.TrackerManager.Instance.GetTracker<Vuforia.PositionalDeviceTracker>() is null, meaning positional tracking never recovers. 

Sample Code:

IEnumerator Test () {

        Vuforia.CameraDevice.Instance.Deinit();

        Vuforia.TrackerManager.Instance.DeinitTracker<Vuforia.PositionalDeviceTracker>();

        yield return new WaitUntil(() => !Vuforia.CameraDevice.Instance.IsActive());

        Vuforia.CameraDevice.Instance.Init(Vuforia.CameraDevice.CameraDirection.CAMERA_DEFAULT);

        yield return new WaitUntil(() => Vuforia.CameraDevice.Instance.IsActive());

        Vuforia.TrackerManager.Instance.InitTracker<Vuforia.PositionalDeviceTracker>();

        yield return new WaitUntil(() => Vuforia.TrackerManager.Instance.GetTracker<Vuforia.PositionalDeviceTracker>() != null);

        Debug.Log("worked!");

    }

void Start () {

StartCoroutine(Test());

}

Vuforia.TrackerManager.Instance.InitTracker fails on device

May 21, 2018 - 3:25pm #6

GroundPlane.GetComponent<Vuforia.AnchorBehaviour>().CurrentStatus only returns UNDEFINED. Bug?

I'm also going to assume this is outdated now? https://library.vuforia.com/articles/Solution/Smart-Terrain-Workflow-in-Unity

I would appreciate some assistance.

Vuforia.TrackerManager.Instance.InitTracker fails on device

May 21, 2018 - 2:40pm #5

I'm trying to take advantage of the Vuforia.TrackerManager.Instance.GetStateManager().GetTrackableBehaviours to detect when the Positional Device Tracker is actually tracking by using the ground plane state, but unfortunately on device there are no ground planes returned.

How do I access the Vuforia.PositionalDeviceTracker state?

FYI Vuforia.TrackerManager.Instance.GetTracker<Vuforia.PositionalDeviceTracker>().IsActive returns true as soon as 3DOF, not positional tracking. Could be a bug.

Vuforia.TrackerManager.Instance.InitTracker fails on device

May 21, 2018 - 1:11pm #4

Is there a way to detect when device tracking actually kicks in? Start() doesn't mean it's tracking right away, there's still a delay. Thank you.

Vuforia.TrackerManager.Instance.InitTracker fails on device

May 21, 2018 - 11:54am #3

Hi, quick mistake on my part. Needed to initialize the tracker before initializing CameraDevice. Now it returns. Also learned I need to call .Start() as well.

Unfortunately this doesn't solve my use case - I can't reposition and rotate the ARCamera no matter what I try. Any ideas?

Vuforia.TrackerManager.Instance.InitTracker fails on device

May 21, 2018 - 11:22am #2

Hello aidanwolf,

Which version of Vuforia and which device are you seeing this on? The positional tracker will return null on devices that don't support the feature.

Thanks,

Vuforia Support

Log in or register to post comments