Log in or register to post comments

forgetting currently tracked VUMarks

January 31, 2019 - 12:43pm #1

 Sometimes I want to tell Vuforia to stop tracking a currently extended tracked vumark. The only way I found to do this is to execute 

TrackerManager.Instance.GetTracker<ObjectTracker>().Stop();

But this seems to stop ALL tracking. I want to continue to get the underlying device pose status allowing users to re-detect the VuMark.

 

I'm my controller's start function I'm registering two tracking event handlers - #1 for the Vumark, and #2 for overall device pose status

     

    #1

     mTrackableBehaviour = myVueMark.GetComponent<TrackableBehaviour>();

     mTrackableBehaviour.RegisterTrackableEventHandler(this);

 

     #2

     DeviceTrackerARController.Instance.RegisterDevicePoseStatusChangedCallback(handleDevicePoseStatusChange);

 

Then at some point when I want to drop the VuMark I will try to call TrackerManager.Instance.GetTracker<ObjectTracker>().Stop(). The problem is that handleDevicePoseStatusChange delegate is never being triggered again after.

 

 

forgetting currently tracked VUMarks

February 4, 2019 - 1:09pm #2

Hello,

Unfortunately, Vuforia only supports disabling target tracking per dataset. You can deactivate the dataset without stopping the tracker in UpdateCallback: https://library.vuforia.com/content/vuforia-library/en/reference/cpp/classVuforia_1_1ObjectTracker.html#a96132e2f98f98912afd1ed814acfce07

Thanks,

Vuforia Engine Support

Log in or register to post comments