跳到主要内容

Traffic light sensor

This element is a sensor layout used to detect traffic lights and access their states (red, green...) with relative position on the Scene2D. In Edit mode, the detection field is represented by dotted lines. Unlike the polysensor, this sensor is not generic and is meant for traffic light detection only. However, when detecting traffic lights, you will also be able to access any of the following parameter : traffic light color, distance on the X and Y axis of the car to the traffic light (see detected traffic light parameters).

Is an equipment✔️
Can have equipment

This element must be used with 2D scene context.

Icon

traffic_light_sensor

2D Representations

traffic light sensor on Scene2D in Edit Modetraffic light sensor on Scene2D in Run Mode
Traffic light sensor in Edit ModeTraffic light sensor in Run Mode

3D Representation

No reprensation available on 3D.

External parameters

Show/Hide all parameters
parametereditable via "Parameter" tabupdatable via a mappingdescriptionunittype
X-axis relative position✔️Relative position of the element, from its attached element, on the X-axis.meterDecimal number
Y-axis relative position✔️Relative position of the element, from its attached element, on the Y-axis.meterDecimal number
Z-axis relative angle✔️✔️Relative angle of the element, from its attached element.degreeDecimal number
field initial angle✔️✔️Initial angle of the illuminated field on the Z-axis.degreeDecimal number
field final angle✔️✔️Final angle of the illuminated field on the Z-axis.degreeDecimal number
field radius✔️✔️Radius of the illuminated area on the scene in which it is located.meterDecimal number
field color✔️✔️Color of the illuminated area on the scene in which it is located. This parameter can be edited.-Hexadecimal
iconX✔️Relative position of the icon, from the origin of the illuminated field, on the X-axis.meterDecimal number
iconY✔️Relative position of the icon, from the origin of the illuminated field, on the Y-axis.meterDecimal number
Visibility✔️✔️This parameter allows you to choose if you want the element to be visible or not on the scene during the execution of the scenario. If the item is part of a group, it can inherit the value of that group.-Enumeration (visible, hidden, inherit)
Threshold zoom out✔️Zoom level from which its representation on the scene is no longer modified.%Decimal number
TargetsTarget parameters that the sensor must detect. Set to trafficLight.-Text
X-axis position✔️✔️Position of the element on the X-axis.meterDecimal number
Y-axis position✔️✔️Position of the element on the Y-axis.meterDecimal number
SizeXSize of the traffic light sensor on the X-axis.meterDecimal number
SizeYSize of the traffic light sensor on the Y-axis.meterDecimal number
Z-axis angleAngle of rotation of the element compared to its initial position.degreeDecimal number
Z-axis positionPosition of the element on the Z-axis.meterDecimal number
HeightHeight of the element.meterDecimal number
X-axis angleAngle of the element on the X-axis.degreeDecimal number
Y-axis angleAngle of the element on the Y-axis.degreeDecimal number
List of detectionList of the detected traffic lights. See details below.-List of Detected Traffic Light
longitude coordinateAutomatically calculated longitude value, based on the origin defined for the context and the position of the element.degreeDecimal number
latitude coordinateAutomatically calculated latitude value, based on the origin defined for the context and the position of the element.degreeDecimal number

Detected traffic light parameters

Show/Hide parameters
parameterdescriptionunittype
colorColor of the traffic light.-Enumeration (red, yellow, green, flashing yellow)
dxRelative position of the traffic light on the X-axis.meterDecimal number
dyRelative position of the traffic light on the Y-axis.meterDecimal number

Triggered behaviours

See Triggered behaviours and events page for more explanation: Triggered behaviours and events.

Show/Hide all triggered behaviours

Destroy

At the reception of the flow, the element is destroy.

No parameters for this triggered behaviour.

Events

See Triggered behaviours and events page for more explanation: Triggered behaviours and events.

Show/Hide all events
eventdescription
On Parameter Value ChangedThe element can send information to the model when the value of the selected parameter has changed
At initializationThe traffic light sensor can send information to the model once at initialization
ContinuallyThe traffic light sensor can send information to the model continuously