Class MegaTrackerFrameFilter
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
A MonoBehaviour das steuert easyar.MegaTracker in the scene and provides functional extensions in the Unity environment.
public class MegaTrackerFrameFilter : MegaCloudFrameFilter
- Vererbung
-
MegaTrackerFrameFilter
- Geerbte Mitglieder
Eigenschaften
CameraPositionOverride
Override value of the camera position relative to the map block. After it is set, tracker outputs the override value instead of using the corresponding coordinates in input frame data. This can be used to improve output pose accuracy when map information is known and sensors are limited.
public (Optional<float> x, Optional<float> y, Optional<float> z) CameraPositionOverride { get; set; }
EnableLocalization
Whether localization is enabled. When localization is not enabled, localization results returned by the server will not be output. The default is true.
This affects tracking quality. Do not use it unless you have consulted EasyAR and clearly understand the impact.
public bool EnableLocalization { get; set; }
EnableStatelessLocalization
Whether stateless localization is enabled. When stateless localization is enabled, the previous localization result is not used during localization. The default is false.
This affects tracking quality. Do not use it unless you have consulted EasyAR and clearly understand the impact.
public bool EnableStatelessLocalization { get; set; }
LandmarkFilter
Mega Landmark filtering used when ServiceType is Landmark. At startup, you need to manually call FilterBySpotId(string, Action<MegaLandmarkFilterResponse>). Tracker will not start tracking until Filter returns Found.
public Optional<MegaLandmarkFilterWrapper> LandmarkFilter { get; }
LocationInputMode
Location input mode. Must be set before Session starts. For remote debugging or running on a computer, it must be set to Simulator; otherwise it cannot be used. For onsite use, set it to Onsite for best results.
public MegaLocationInputMode LocationInputMode { get; set; }
MinInputFrameLevel
Minimum allowed MegaInputFrameLevel for input frames. If the frame source can only provide data with a lower-dimension CameraTransformType, Session startup will fail. Must be set before Session starts.
public MegaInputFrameLevel MinInputFrameLevel { get; set; }
ProximityLocation
Nearby location results.
public Optional<ProximityLocationResult> ProximityLocation { set; }
RequestMessage
public string RequestMessage { get; set; }
RequestTimeParameters
Request time parameters.
public MegaRequestTimeParameters RequestTimeParameters { get; set; }
ServiceAccessData
Service access data. Must be set before Session starts. No setting is required when using GlobalConfig.
public ExplicitAddressAccessData ServiceAccessData { get; set; }
ServiceAccessSource
Service access data source type. Must be set before Session starts.
public MegaServiceAccessSourceType ServiceAccessSource { get; set; }
ServiceType
EasyAR Mega service type. Must be set before Session starts.
public MegaApiType ServiceType { get; set; }
SimulatorLocation
Location data used when LocationInputMode == Simulator.
public Optional<LocationResult> SimulatorLocation { get; set; }
enabled
Startet/stoppt tracking while ARSession is running. After session starts, tracking starts only when MonoBehaviour.enabled is true.
public bool enabled { get; set; }
Methoden
ResetTracker()
Setzt zurück tracker.
public void ResetTracker()
SwitchEndPoint(ExplicitAddressAccessData)
Schaltet um the remote endpoint.
public void SwitchEndPoint(ExplicitAddressAccessData config)
Parameter
config
UpdateToken(string)
Aktualisiert API Token.
public void UpdateToken(string token)
Parameter
token
Ereignisse
LocalizationRespond
Service localization return event. This event is usually used for debug. When the event occurs, the positions and states of objects in the scene do not correspond to the data in the event.
public event Action<MegaLocalizationResponse> LocalizationRespond