Skip to content

Commit

Permalink
Safe and force lane change flow chart
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
  • Loading branch information
zulfaqar-azmi-t4 committed Jul 26, 2022
1 parent 7bd38f5 commit ffe0a4f
Showing 1 changed file with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,54 @@ stop

#### Candidate Path's Safety check

```plantuml
@startuml
skinparam monochrome true
skinparam defaultTextAlignment center
skinparam noteTextAlignment left
title Safe and Force Lane Change
start
:**INPUT** std::vector<LaneChangePath> valid_paths;
partition selectValidPaths {
:**INITIALIZE** std::vector<LaneChangePath> valid_paths;
:idx = 0;
while (idx < input_paths.size()?) is (TRUE)
:path = valid_paths.at(idx);
if(path pass safety check?) then (TRUE)
:selected_path = path, is_path_safe = true;
else (NO)
endif
:++idx;
endwhile (FALSE)
if(valid_paths.empty()?)then (true)
:selected_path = valid_paths.front(), is_path_safe = false;
note left
used for
**FORCE LANE CHANGE**
if FORCE is needed,
then there is no safe path
end note
else (\nfalse)
endif
:**RETURN** selected_path && is_path_safe;
}
stop
@enduml
```

![Safety check](./image/lane_change/lane_change-collision_check.png)

## Parameters
Expand Down

0 comments on commit ffe0a4f

Please sign in to comment.