Abstract listener class for receiving tracking information and tracking mode updates from the tracker. More...
Public Member Functions | |
| on_tracker_data (self, tracker_data, status_message) | |
| Callback function receiving tracking information from the tracker. | |
| on_tracker_mode (self, mode) | |
| Callback function receiving mode updates from the tracker. | |
Abstract listener class for receiving tracking information and tracking mode updates from the tracker.
Extend this class and implement its methods in order to receive tracking information and tracking mode updates from the PST Tracker. Examples on how to use this class and how to get data and modes from the PST Tracker can be found in the Examples section. Alternatively, Tracker.get_single_measurement can be called to get the latest available tracking data.
| pstech.pstsdk.tracker.Listener.on_tracker_data | ( | self, | |
| tracker_data, | |||
| status_message ) |
Callback function receiving tracking information from the tracker.
Implement the on_tracker_data method to receive tracking information from the PST Tracker.
| tracker_data | TrackerData object containing the detected tracking targets and 3D markers. |
| status_message | EStatusMessage reported by the tracker. |
| pstech.pstsdk.tracker.Listener.on_tracker_mode | ( | self, | |
| mode ) |
Callback function receiving mode updates from the tracker.
Implement the on_tracker_mode method to receive mode updates from the PST Tracker. This function enables responding to the different PST Tracker mode changes enumerated by ETrackerMode as soon as they occur.
| mode | ETrackerMode value representing the current tracker mode. |