Environment Configuration
You can use a Readable Unit anywhere where you have the option of:
-
numberorstring -
integerorstring
📃 Corresponding configuration file: environment/environment_config.json
Environment Events
Schema describing the JSON file structure for the environment configuration. It is is used to define which events are evaluated by the simulator. Entities entering the areas of the events, are notified by the ‘EnvironmentSensorUpdates’ interaction
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| events |
event[] |
List of events. | No | None | None |
event
Object to define a single event configuration.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| location |
eventLocation |
Object to define the event location configuration, which is either a GeoArea (e.g. rectangle, circle, or polygon) or a specific street segment. | No | None | None |
| time |
eventTime |
Object to define the temporal properties of an event. | No | None | None |
| type | string |
Represents the type of event value this event is emitting (e.g., TRACTION_HAZARD, VISIBILITY_HAZARD, WIND, TEMPERATURE, or an arbitrary EVENT). The value can be set to any valid string. | ✓ Yes | None | None |
| value | stringnumberobject |
Used for assigning a value to the event. It can be used as the strength of an event, the road surface quality, or the name of a specific event cause, etc. | ✓ Yes | None | None |
eventLocation
Object to define the event location configuration, which is either a GeoArea (e.g. rectangle, circle, or polygon) or a specific street segment.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| area |
area |
Object to define the area in which the event is located in. | No | None | None |
| connectionId | string |
The ID of the road segment the event is located on (Connection ID). | No | None | None |
area
Object to define the area in which the event is located in.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| type | string |
The type of the area. | No | Enum | None |
Additionally ANY of the following property definitions apply:
Further property restrictions:
area.type
- Allowed values:
RectangleCirclePolygon
geoCircle
Object to define an immutable pair of a geoPoint center position and a radius in meters.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| center |
geoPoint |
Object to define geographical point coordinates. | ✓ Yes | None | None |
| radius | number |
Radius of the circle in m. | ✓ Yes | [0, +$\infty$] | None |
geoPoint
Object to define geographical point coordinates.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| longitude | number |
East-west position of a point on earth. | ✓ Yes | [-180, 180] | None |
| latitude | number |
North-south position of a point on earth. | ✓ Yes | [-$\infty$, 90] | None |
geoRectangle
Object to define an immutable pair of two different GeoPoints. Together they form a rectangular area.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| a |
geoPoint |
Object to define geographical point coordinates. | ✓ Yes | None | None |
| b |
geoPoint |
Object to define geographical point coordinates. | ✓ Yes | None | None |
geoPolygon
Object to define a set of GeoPoints. Together the points for a polygonal area.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| vertices |
geoPoint[] |
Set of points representing the vertices of a polygon. | No | None | None |
eventTime
Object to define the temporal properties of an event.
Properties
| Type | Description | Required | Boundaries | Default | |
|---|---|---|---|---|---|
| start | stringnumber |
Start time of the event. If defined as a number, then the default unit is ns. Alternatively this can be defined as a string to include the unit of measurement (e.g. ‘3 minutes’) | ✓ Yes | None | None |
| end | stringnumber |
End time of the event. If defined as a number, then the default unit is ns. Alternatively this can be defined as a string to include the unit of measurement (e.g. ‘3 minutes’) | ✓ Yes | None | None |