public abstract class VuforiaBase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VuforiaBase.TrackingResults |
Modifier and Type | Field and Description |
---|---|
static float |
MM_FTC_FIELD_WIDTH |
static float |
MM_PER_INCH |
Modifier | Constructor and Description |
---|---|
protected |
VuforiaBase(java.lang.String assetName,
java.lang.String[] trackableNames,
OpenGLMatrix[] locationsOnField) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates all trackables, so that it is actively seeking their presence.
|
void |
close()
Deactivates the trackables and cleans up.
|
static VuforiaLocalizer.Parameters |
createParameters() |
void |
deactivate()
Deactivates all trackables, causing it to no longer see their presence.
|
VuforiaBase.TrackingResults |
emptyTrackingResults(java.lang.String name) |
protected VuforiaTrackableDefaultListener |
getListener(java.lang.String name) |
VuforiaLocalizer |
getVuforiaLocalizer() |
void |
initialize(java.lang.String vuforiaLicenseKey,
CameraName cameraName,
java.lang.String webcamCalibrationFilename,
boolean useExtendedTracking,
boolean enableCameraMonitoring,
VuforiaLocalizer.Parameters.CameraMonitorFeedback cameraMonitorFeedback,
float dx,
float dy,
float dz,
float xAngle,
float yAngle,
float zAngle,
boolean useCompetitionFieldTargetLocations)
Initializes Vuforia, with a CameraName.
|
void |
initialize(java.lang.String vuforiaLicenseKey,
VuforiaLocalizer.CameraDirection cameraDirection,
boolean useExtendedTracking,
boolean enableCameraMonitoring,
VuforiaLocalizer.Parameters.CameraMonitorFeedback cameraMonitorFeedback,
float dx,
float dy,
float dz,
float xAngle,
float yAngle,
float zAngle,
boolean useCompetitionFieldTargetLocations)
Initializes Vuforia, with a CameraDirection.
|
java.lang.String |
printTrackableNames() |
VuforiaBase.TrackingResults |
track(java.lang.String name)
Returns the TrackingResults of the trackable with the given name.
|
VuforiaBase.TrackingResults |
trackPose(java.lang.String name)
Returns the TrackingResults of the pose of the trackable with the given name.
|
public static final float MM_PER_INCH
public static final float MM_FTC_FIELD_WIDTH
protected VuforiaBase(java.lang.String assetName, java.lang.String[] trackableNames, OpenGLMatrix[] locationsOnField)
public void initialize(java.lang.String vuforiaLicenseKey, VuforiaLocalizer.CameraDirection cameraDirection, boolean useExtendedTracking, boolean enableCameraMonitoring, VuforiaLocalizer.Parameters.CameraMonitorFeedback cameraMonitorFeedback, float dx, float dy, float dz, float xAngle, float yAngle, float zAngle, boolean useCompetitionFieldTargetLocations)
public void initialize(java.lang.String vuforiaLicenseKey, CameraName cameraName, java.lang.String webcamCalibrationFilename, boolean useExtendedTracking, boolean enableCameraMonitoring, VuforiaLocalizer.Parameters.CameraMonitorFeedback cameraMonitorFeedback, float dx, float dy, float dz, float xAngle, float yAngle, float zAngle, boolean useCompetitionFieldTargetLocations)
public static VuforiaLocalizer.Parameters createParameters()
public VuforiaLocalizer getVuforiaLocalizer()
public void activate()
java.lang.IllegalStateException
- if initialized has not been called yet.public void deactivate()
java.lang.IllegalStateException
- if initialized has not been called yet.public VuforiaBase.TrackingResults track(java.lang.String name)
java.lang.IllegalStateException
- if initialized has not been called yet.java.lang.IllegalArgumentException
- if name is not the name of a trackable.public VuforiaBase.TrackingResults trackPose(java.lang.String name)
java.lang.IllegalStateException
- if initialized has not been called yet.java.lang.IllegalArgumentException
- if name is not the name of a trackable.public VuforiaBase.TrackingResults emptyTrackingResults(java.lang.String name)
protected VuforiaTrackableDefaultListener getListener(java.lang.String name)
public void close()
public java.lang.String printTrackableNames()