Main Content

checkSignalType

Class: lidar.labeler.AutomationAlgorithm
Namespace: lidar.labeler

Validate signal type

Since R2022a

Description

In the Lidar Labeler app, the checkSignalType method validates whether each signal selected for automation is of the type PointCloud.

example

isValid = checkSignalType(signalType) returns logical 1 (true) when the specified signal type is valid.

Examples

expand all

Implement the checkSignalType method to designate PointCloud signals as valid and all other signals as invalid.

function isValid = checkSignalType(signalType)
    isValid = (signalType == vision.labeler.loading.SignalType.PointCloud);
end

Input Arguments

expand all

Signal type, specified as a vision.labeler.loading.SignalType (Automated Driving Toolbox) enumeration.

Example: vision.labeler.loading.SignalType.PointCloud

Output Arguments

expand all

Result of the signal type validity check, returned as logical 1 (true) or logical 0 (false).

Attributes

Statictrue

To learn about attributes of methods, see Method Attributes.

Version History

Introduced in R2022a