TargetInstance Class¶
Description¶
TargetInstance is the tracked target by trackers.
An TargetInstance contains a raw Target that is tracked and current status and pose of the Target .
status¶
Returns current status of the tracked target. Usually you can check if the status equals TargetStatus.Tracked to determine current status of the target.
- C
easyar_TargetStatus easyar_TargetInstance_status(const easyar_TargetInstance * This)
- C++
TargetStatus status()
- Java
public int status()
- Kotlin
fun status(): Int
- Objective-C
- (easyar_TargetStatus)status
- Swift
public func status() -> TargetStatus
- C#
public virtual TargetStatus status()
target¶
Gets the raw target. It will return the same Target you loaded into a tracker if it was previously loaded into the tracker.
- C
void easyar_TargetInstance_target(const easyar_TargetInstance * This, easyar_Target * * Return)
- C++
std::shared_ptr<Target> target()
- Java
public @Nonnull Target target()
- Kotlin
fun target(): Target
- Objective-C
- (easyar_Target *)target
- Swift
public func target() -> Target
- C#
public virtual Target target()
pose¶
Returns current pose of the tracked target. Camera coordinate system and target coordinate system are all right-handed. For the camera coordinate system, the origin is the optical center, x-right, y-up, and z in the direction of light going into camera. (The right and up, is right and up in the camera image, which can be different from these in the natural orientation of the device.) The data arrangement is row-major, not like OpenGL’s column-major.