C# Class TangoARPoseController, project-tango-poc

Inheritance: MonoBehaviour, ITangoLifecycle
Exibir arquivo Open project: stetro/project-tango-poc Class Usage Examples

Public Properties

Property Type Description
m_useAreaDescriptionPose bool

Public Methods

Method 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

Method 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 method

Awake is called when the script instance is being loaded.
public Awake ( ) : void
return void

OnApplicationPause() public method

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

OnTangoPermissions() public method

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

OnTangoServiceConnected() public method

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

OnTangoServiceDisconnected() public method

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

Start() public method

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

Update() public method

Update is called every frame.
public Update ( ) : void
return 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
return bool