driving.connector.Connector class
Package:driving.connector
Interface to connect external tool to Ground Truth Labeler app
Description
Thedriving.connector.Connector
class creates an interface between a custom visualization or analysis tool and a signal in theGround Truth Labelerapp. You can use the connector with video and image sequence signals only.
Thedriving.connector.Connector
class is ahandle
class.
Creation
TheConnector
class that is inherited from theConnector
interface is called aclient.
The client can:
Sync an external tool to each frame change event for a specific signal loaded into theGround 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 theGround Truth Labelerapp, follow these steps:
Define a client class that inherits from
driving.connector.Connector
. You can use theConnector
class template to define a class and implement your custom visualization or analysis tool. At the MATLAB®command prompt, enter: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
addpath
function.
Properties
Methods
Examples
Tips
外部工具的一个例子,看到这一点
driving.connector.Connector
class implementation. This class implements a lidar visualization tool. You can use this code as a starting point for creating your own tools.editLidarDisplay
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, seeControl Playback of Signal Frames for Labeling.