Skip to main content

Polysensor

This element is a basic sensor layout. It is attached to roadusers so they can detect other elements on the scene2D. The particularity of this element is in Edit mode, the detection field is represented by dotted line, in order to be able to select elements under this field.

Is an equipment✔️
Can have equipment

This element must be used with 2D scene context.

Icon

polysensor

2D Representations

polysensor on Scene2D in Edit Modepolysensor on Scene2D in Run Mode
Polysensor in Edit ModePolysensor in Run Mode

3D Representation

polysensor 3D in Edit Modepolysensor 3D in Run Mode
Polysensor in Edit ModePolysensor in Run Mode

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 position✔️Relative position of the element, from its attached element, on the Z-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
X-axis relative incidence angle✔️✔️Angle of sensor relative to its owner.degreeDecimal number
field initial incidence angle✔️✔️Angle value of the detection area initial edge relative to owner orientation.degreeDecimal number
field final incidence angle✔️✔️Angle value of the detection area final edge relative to owner orientation.degreeDecimal number
Rotation frequency on Z-axis✔️✔️How many rotation sensor can perform in one second.HertzDecimal 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
targets✔️Choose which 2D element or which scenario elements type will be detected-List (2D Elements)
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
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 polysensor on the X-axis.meterDecimal number
SizeYSize of the polysensor 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 parameters that polysensor must detect. Only available as a variable, during a Send flow mapping creation/modification. See details below for an example with Car detection.-Text
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

Example: Detected Car parameters

For the following example, we will use Tutorial Include a matlab activity in a model, concerning obstacle detection by a Car's sensor.

First, you have to add a polysensor to your Scene2D and declare which kind of targets it has to detect (here, Cars & Pedestrians):

Polysensor's parameters

Second, you have to attach a polysensor to your Car (you can move the icon for more visibility):

Attached polysensor

Third, create a Send flow mapping with the flow that populates the detected data to the model.
In our example, we want to detect a list of obstacles, so we have to indicate our List of detection.List and after make the correspondance between the data to populate in the model and the detected parameters.
You can find the final result below:

Attached polysensor

For your information, this is all detectable parameters in our example:

Show/Hide parameters
parameterdescriptionunittype
dx1, dx2, dx3, dx4Relative position of the element corners, on the X-axis from the nearest corner to the farthest corner.meterDecimal number
dy1, dy2, dy3, dy4Relative position of the element corners, on the Y-axis from the nearest corner to the farthest corner.meterDecimal number
dz1, dz2, dz3, dz4Relative position of the element corners, on the Z-axis from the nearest corner to the farthest corner.meterDecimal number
vrxRelative speeed of the element, on the X-axis.kilometers per hourDecimal number
vryRelative speed of the element, on the Y-axis.kilometers per hourDecimal number
da1, da2, da3, da4Relative acceleration of the element corners, on the Z-axis from the nearest corner to the farthest corner.meters per second squaredDecimal number
nameName of the element.-Text
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

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 polysensor can send information to the model once at initialization
ContinuallyThe polysensor can send information to the model continuously
Zero detectionThe polysensor can send information when there is no detection
At least one detectionThe polysensor can send information when there is at least one detection
Start to detectThe polysensor can send information when going from no detection to at least one detection
Stop to detectThe polysensor can send information when going from at least one detection to no detection