Skip to content

Commit 8e8954b

Browse files
author
Ahmed Ebrahim
committed
feat(remaining_dist_eta): update readme
Signed-off-by: Ahmed Ebrahim <ahmed.ebrahim@leodrive.ai>
1 parent ee08bc2 commit 8e8954b

File tree

1 file changed

+9
-7
lines changed
  • planning/autoware_remaining_distance_time_calculator

1 file changed

+9
-7
lines changed

planning/autoware_remaining_distance_time_calculator/README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@ This package aims to provide mission remaining distance and remaining time calcu
1515
| ------------- | ------ | ------------- | --------------------------- |
1616
| `update_rate` | double | 10.0 | Timer callback period. [Hz] |
1717

18-
### Inner-workings / Algorithms
18+
### Inner-workings
1919

20-
### Remaining Distance Calculation
20+
#### Remaining Distance Calculation
2121

2222
- The remaining distance calculation is based on getting the remaining shortest path between the current vehicle pose and goal pose using `lanelet2` routing APIs.
2323
- The remaining distance is calculated by summing the 2D length of remaining shortest path, with exception to current lanelet and goal lanelet
2424
- For the current lanelet, the distance is calculated from the current vehicle position to the end of that lanelet
2525
- For the goal lanelet, the distance is calculated from the start of the lanelet to the goal pose in this lanelet.
26+
- When there is only one lanelet remaining, the distance is calculated by getting the 2D distance between the current vehicle pose and goal pose.
27+
- Checks are added to handle cases when current lanelent, goal lanelet, or routing graph are not valid to prevent node process die
28+
- In such cases when, last valid remaining distance and time are maintained
2629

27-
### Remaining Time Calculation
30+
#### Remaining Time Calculation
2831

29-
- Remaining time is calculated using simple equation of motion by getting the current vehicle velocity magnitude.
30-
- Then the calculated remaining distance is divided by the velocity magnitude.
32+
- The remaining time currently depends on a simple equation of motion by getting the maximum velocity limit.
33+
- The remaining distance is calculated by dividing remaining distance by the maximum velocity limit
3134

3235
### Future Work
3336

3437
- Find a more efficient way for remaining distance calculation instead of regularly searching the graph for finding the remaining shortest path
35-
- Engage more sophisticated motion models for more accurate remaining time calculations
36-
- Handle cases when the vehicle stops during the mission or Autoware get disengaged then engaged for the same mission
38+
- Engage more sophisticated motion models for more accurate remaining time calculations

0 commit comments

Comments
 (0)