You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this first step, the ego footprint is projected at each path point and are eventually inflated based on the `extra_..._offset` parameters.
25
+
In this first step, the ego footprint is projected at each path point and is eventually inflated based on the `extra_..._offset` parameters.
26
26
27
27
#### 2. Other lanes
28
28
29
29
In the second step, the set of lanes to consider for overlaps is generated.
30
-
This set is built by selecting all lanelets within some distance from the ego vehicle, and then removing non-relevant lanelets.
30
+
This set is built by selecting all road lanelets within some distance from the ego vehicle, and then removing non-relevant lanelets.
31
31
The selection distance is chosen as the maximum between the `slowdown.distance_threshold` and the `stop.distance_threshold`.
32
32
33
33
A lanelet is deemed non-relevant if it meets one of the following conditions.
34
34
35
-
- It is part of the lanelets followed by the ego path.
35
+
- It is part of the lanelets crossed by the ego path linestring.
36
36
- It contains the rear point of the ego footprint.
37
-
- It follows one of the ego path lanelets.
38
37
39
38
#### 3. Overlapping ranges
40
39
41
40
In the third step, overlaps between the ego path footprints and the other lanes are calculated.
42
41
For each pair of other lane $l$ and ego path footprint $f$, we calculate the overlapping polygons using `boost::geometry::intersection`.
43
-
For each overlapping polygon found, if the distance inside the other lane $l$ is above the `overlap.minimum_distance` threshold, then the overlap is ignored.
42
+
For each overlapping polygon found, if the distance inside the other lane $l$ is lower than the `overlap.minimum_distance` threshold, then the overlap is ignored.
44
43
Otherwise, the arc length range (relative to the ego path) and corresponding points of the overlapping polygons are stored.
45
44
Ultimately, for each other lane $l$, overlapping ranges of successive overlaps are built with the following information:
46
45
@@ -118,6 +117,12 @@ it is skipped.
118
117
119
118
Moreover, parameter `action.distance_buffer` adds an extra distance between the ego footprint and the overlap when possible.
120
119
120
+
#### Avoiding chattering
121
+
122
+
In order to avoid chattering caused by unstable predicted paths,
123
+
parameter `action.min_duration` allows to set a minimum time during which a slow down or stop point is inserted.
124
+
The slow down or stop point is only removed if no out of lane collision is detected for that duration.
125
+
121
126
### Module Parameters
122
127
123
128
| Parameter | Type | Description |
@@ -143,6 +148,7 @@ Moreover, parameter `action.distance_buffer` adds an extra distance between the
143
148
|`minimum_velocity`| double |[m/s] ignore objects with a velocity lower than this value |
144
149
|`predicted_path_min_confidence`| double |[-] minimum confidence required for a predicted path to be considered |
145
150
|`use_predicted_paths`| bool |[-] if true, use the predicted paths to estimate future positions; if false, assume the object moves at constant velocity along _all_ lanelets it currently is located in |
151
+
|`distance_buffer`| double |[m] distance buffer used to determine if a collision will occur in the other lane |
0 commit comments