Class: cTTAPIListener
Last updated
Last updated
When using the Motive API, you can attach or detach cTTAPIListener class to a project by using the following functions.
TTAPIFrameAvailable
TTAPIFrameAvailable callback is called when a new synchronized group of camera frames has been delivered to the TTAPI and is ready for processing. You can use this notification to then call TT_Update() without having to poll blindly for new data.
TTAPICameraConnected
This callback function is called when a new camera is connected to the system.
TTAPICameraDisconnected
This callback function is called when a camera is disconnected from the system.
InitialPointCloud
InitialPointCloud is called when the initial point cloud is calculated from the connected cameras. During this callback 3D markers can be added (up to MaxMarkers) or removed by modifying the Markers list as well as the MarkerCount variable. After this callback the marker list is passed onto the Rigid Body solver.
ApplyContinuousCalibrationResult
By overriding this function in the attached listener class, you can control when the gets applied. The continuous calibration will continue to call this callback function when the updated calibration is available. You can check parameters in this functions and simply return True to accept the updated calibration, and return False to discard the updated calibration.