Skip to content

Commit f4dfe91

Browse files
committed
add flowchart to README
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
1 parent 92fc51a commit f4dfe91

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

planning/autoware_path_generator/README.md

+42
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,48 @@ The overlap interval is determined as shown in the following figure.
1616

1717
![waypoint_group_overlap_interval_determination](./media/waypoint_group_overlap_interval_determination.drawio.svg)
1818

19+
## Flowchart
20+
21+
```plantuml
22+
@startuml
23+
title run
24+
start
25+
26+
:take_data;
27+
:set_planner_data;
28+
if (is_data_ready) then (yes)
29+
else (no)
30+
stop
31+
endif
32+
33+
group plan_path
34+
group generate_path
35+
:getClosestLanelet;
36+
:get_lanelets_within_route;
37+
:get_waypoint_groups;
38+
if (any waypoint interval starts behind lanelets?) then (yes)
39+
:get_previous_lanelet_within_route;
40+
:extend lanelets;
41+
endif
42+
while (for each centerline point)
43+
if (overlapped by waypoint group?) then (yes)
44+
if (previously overlapped?) then
45+
else (no)
46+
:add waypoints to path;
47+
endif
48+
else (no)
49+
:add point to path;
50+
endif
51+
endwhile
52+
end group
53+
end group
54+
55+
:publish path;
56+
57+
stop
58+
@enduml
59+
```
60+
1961
## Input topics
2062

2163
| Name | Type | Description |

0 commit comments

Comments
 (0)