Log in or register to post comments

Tracker VS Trackable for reseting Extended tracking

April 8, 2015 - 1:32am #1

Hi,

 

I have a missunderstanting about how to reset the extended tracking.

Before Vuforia 3, I was looping on dataset.trackables and start/stop them (also reset extended tracking but it not the point).

Now I use the TrackerManager to get the Tracker instance (type Image in my case) and then start/stop it.

 

Do I still need any loop ? because TrackerManager returns me a single Tracker instance... the whole trackables of the dataset are concerned ?

 

Here is the point : 

 final TrackerManager tManager = TrackerManager.getInstance();
                final ImageTracker imageTracker = (ImageTracker) tManager.getTracker(ImageTracker.getClassType());

                if ((imageTracker != null)) {

                    imageTracker.stop();

                    if (!imageTracker.resetExtendedTracking()) {
                        Log.e(ARConfiguration.LOGTAG, "Unable to reset Extendedtracking");
                        res = false;
                    }

                    imageTracker.start();
                }

(Before that, I loop on trackable to stop extendedTracking, and after that I loop again on trackables to enable it)

 

Thanks !

Tracker VS Trackable for reseting Extended tracking

April 9, 2015 - 12:02am #3

Hi,

 

I'm using Vuforia 3, based on ImageTracker.

 

Is there any sample code on how to reset extended tracking on a whole dataset please ?

 

Thanks.

Tracker VS Trackable for reseting Extended tracking

April 8, 2015 - 5:01pm #2

In 4.0 the ImageTracker has been changed to the ObjectTracker. Try changing the ImageTracker references in your code. 

And see: Vuforia 4.0 Migration

 

Log in or register to post comments