device

 Function Name  Parameter  Return  Explain
 getPose None pose Retrieves the tracking pose
 isConnected None boolean Indicates whether device is connected
 hasTracing None boolean Indicates whether device's pose is valid
 outofRange None boolean Indicates whether device's position is outside of tracking area.
 isCalibrating None boolean Indicates whether device is in calibrating
 isUninitialized None boolean Indicates whether device is Uninitialized
 getClass None number Retrieves the device type, see Remark.
 getMatrix None matrix Retrieves the matrix of tracked device

Remark:  Device class indicates the category of device:

    TrackedDeviceClass.Invalid,    -- Not a valid device
    TrackedDeviceClass.HMD,   
-- Head-Mounted Displays
    TrackedDeviceClass.Controller,  
 -- Tracked controllers
    TrackedDeviceClass.GenericTracker,   
-- Generic trackers, similar to controllers
    TrackedDeviceClass.TrackingReference,   
-- Camera and base stations that serve as tracking reference points
    TrackedDeviceClass.DisplayRedirect,    -- Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices