Create an empty labelDefinitionCreatorMultisignal object.
Add a label with the name 'TrafficLight'. Specify the type of label as 'Rectangle'. Adding a 'Rectangle' also adds a 'Cuboid' entry to the label definitions table.
Add attribute 'Active' to the label. Specify the attribute type as 'Logical' with the value true.
Display information about the attributes under the label 'TrafficLight' using the object function info.
Name: "TrafficLight"
SignalType: Image
LabelType: Rectangle
Group: "None"
LabelColor: {''}
Attributes: "Active"
Sublabels: []
Description: ' '
Name: "TrafficLight"
SignalType: PointCloud
LabelType: Cuboid
Group: "None"
LabelColor: {''}
Attributes: "Active"
Sublabels: []
Description: ' '
Remove the attribute 'Active' from the label 'TrafficLight'.
Add a sublabel called 'RedLight' to the label 'TrafficLight'. Specify the type of the sublabel as 'Rectangle'.
Add an attribute 'isOn' to the sublabel 'RedLight'. Specify the type for the attribute 'isOn' as 'Logical' with the value false.
Display information about the attributes under the sublabel 'RedLight' in the label 'TrafficLight' using the object function info.
Name: "RedLight"
Type: Rectangle
LabelColor: ''
Attributes: "isOn"
Sublabels: []
Description: ' '
Remove the attribute 'isOn' from the sublabel 'RedLight'.
Display information about the label 'TrafficLight' using the object function info, to confirm that the attribute 'Active' has been removed from the label definitions.
Name: "TrafficLight"
SignalType: Image
LabelType: Rectangle
Group: "None"
LabelColor: {''}
Attributes: []
Sublabels: "RedLight"
Description: ' '
Name: "TrafficLight"
SignalType: PointCloud
LabelType: Cuboid
Group: "None"
LabelColor: {''}
Attributes: []
Sublabels: "RedLight"
Description: ' '
Display information about the sublabel 'RedLight' in the label 'TrafficLight' using the object function info, to confirm that the attribute 'isOn' has been removed from the label definitions.
Name: "RedLight"
Type: Rectangle
LabelColor: ''
Attributes: []
Sublabels: []
Description: ' '