driving.connector.Connector Class
Namespace: driving.connector
Interface to connect external tool to Ground Truth Labeler app
Description
The driving.connector.Connector class creates an
      interface between a custom visualization or analysis tool and a signal in the Ground
        Truth Labeler app. You can use the connector with video and image sequence signals
      only.
The driving.connector.Connector class is a handle class.
Creation
The Connector class that is inherited from the Connector interface is called a
      client.
The client can:
- Sync an external tool to each frame change event for a specific signal loaded into the Ground Truth Labeler. Syncing allows you to control the external tool through the range slider and playback controls of the app. 
- Control the current time in the external tool and the corresponding display in the app. 
- Export custom labeled data from an external tool via the app. 
To connect an external tool to the Ground Truth Labeler app, follow these steps:
- Define a client class that inherits from - driving.connector.Connector. You can use the- Connectorclass template to define a class and implement your custom visualization or analysis tool. At the MATLAB® command prompt, enter:Follow the steps found in the template.- driving.connector.Connector.openTemplateInEditor 
- Save the file to any folder on the MATLAB path. Alternatively, save the file to a folder and add the folder to MATLAB path by using the - addpathfunction.
Properties
Methods
Examples
Tips
- For an example of an external tool, see this - driving.connector.Connectorclass implementation. This class implements a lidar visualization tool. You can use this code as a starting point for creating your own tools.- edit LidarDisplay
- To keep an external tool synchronized with the app, specify timestamps that are at the same frame rate as the signals loaded in the app. If the tool visualizes data at a timestamp that is between two frames, then the app displays the frame that is at the previous timestamp. For more details, see Control Playback of Signal Frames for Labeling. 
Version History
Introduced in R2017a

