C# Class TangoARPoseController, project-tango-poc

Inheritance: MonoBehaviour, ITangoLifecycle
Afficher le fichier Open project: stetro/project-tango-poc Class Usage Examples

Méthodes publiques

Свойство Type Description
m_useAreaDescriptionPose bool

Méthodes publiques

Méthode Description
Awake ( ) : void

Awake is called when the script instance is being loaded.

OnApplicationPause ( bool pauseStatus ) : void

Unity callback when application is paused.

OnTangoPermissions ( bool permissionsGranted ) : void

This is called when the permission granting process is finished.

OnTangoServiceConnected ( ) : void

This is called when succesfully connected to the Tango service.

OnTangoServiceDisconnected ( ) : void

This is called when disconnected from the Tango service.

Start ( ) : void

Start is called on the frame when a script is enabled.

Update ( ) : void

Update is called every frame.

Private Methods

Méthode Description
_SetCameraExtrinsics ( ) : void

The function is for querying the camera extrinsic, for example: the transformation between IMU and device frame. These extrinsics is used to transform the pose from the color camera frame to the device frame. Because the extrinsic is being queried using the GetPoseAtTime() with a desired frame pair, it can only be queried after the ConnectToService() is called. The device with respect to IMU frame is not directly queryable from API, so we use the IMU frame as a temporary value to get the device frame with respect to IMU frame.

_UpdateTransformation ( double timestamp ) : void

Update the transformation to the pose for that timestamp.

Method Details

Awake() public méthode

Awake is called when the script instance is being loaded.
public Awake ( ) : void
Résultat void

OnApplicationPause() public méthode

Unity callback when application is paused.
public OnApplicationPause ( bool pauseStatus ) : void
pauseStatus bool The pauseStatus as reported by Unity.
Résultat void

OnTangoPermissions() public méthode

This is called when the permission granting process is finished.
public OnTangoPermissions ( bool permissionsGranted ) : void
permissionsGranted bool true if permissions were granted, otherwise false.
Résultat void

OnTangoServiceConnected() public méthode

This is called when succesfully connected to the Tango service.
public OnTangoServiceConnected ( ) : void
Résultat void

OnTangoServiceDisconnected() public méthode

This is called when disconnected from the Tango service.
public OnTangoServiceDisconnected ( ) : void
Résultat void

Start() public méthode

Start is called on the frame when a script is enabled.
public Start ( ) : void
Résultat void

Update() public méthode

Update is called every frame.
public Update ( ) : void
Résultat void

Property Details

m_useAreaDescriptionPose public_oe property

If set, this contoller will use the Device with respect Area Description frame pose.
public bool m_useAreaDescriptionPose
Résultat bool