Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add autoware_remaining_distance_time_calculator and overlay #6855

Conversation

ahmeddesokyebrahim
Copy link
Contributor

@ahmeddesokyebrahim ahmeddesokyebrahim commented Apr 19, 2024

Description

This PR aims to add a the implementation needed for mission remaining distance and estimated time of arrival (ETA)

Related links

Part of:

Depends on :

Used by :

Tests performed

Notes for reviewers

For successful compilation and testing, please take into consideration ..

Interface changes

  • A new message definition in autoware_msgs.
  • A new topic is added to publish the mentioned message.

Effects on system behavior

Along with the autoware_internal_ msgs PR and autoware_launch PR, Autoware will have the feature to report the mission remaining mission distance and estimated time left

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) labels Apr 19, 2024
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the 4593-feat-remaining-distance-eta branch 7 times, most recently from 1600450 to fc6a81c Compare April 22, 2024 04:32
@ahmeddesokyebrahim ahmeddesokyebrahim self-assigned this Apr 22, 2024
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the 4593-feat-remaining-distance-eta branch from fc6a81c to 44e7c51 Compare April 22, 2024 08:38
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) labels Apr 23, 2024
@ahmeddesokyebrahim ahmeddesokyebrahim force-pushed the 4593-feat-remaining-distance-eta branch 2 times, most recently from d0c2ed2 to ad9cca8 Compare April 23, 2024 03:34
@ahmeddesokyebrahim ahmeddesokyebrahim changed the title feat(remaining_dist_eta): add remaining distance and ETA implementation feat(remaining_dist_eta): add mission remaining distance and time implementation Apr 23, 2024
@ahmeddesokyebrahim ahmeddesokyebrahim marked this pull request as ready for review April 23, 2024 04:31
@xmfcx
Copy link
Contributor

xmfcx commented May 10, 2024

2024-05-11.00-30-42.mp4

I've fixed the anchoring too.

Now all the position and size adjustments work properly.

@xmfcx
Copy link
Contributor

xmfcx commented May 10, 2024

2024-05-11.00-34-26.mp4

Visualization part is finished, it works well.

The ETA calculation is so bad.

M. Fatih Cırıt added 2 commits May 11, 2024 00:52
Signed-off-by: M. Fatih Cırıt <[email protected]>
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx force-pushed the 4593-feat-remaining-distance-eta branch from 66cb9b5 to 42611d6 Compare May 10, 2024 22:07
pre-commit-ci bot and others added 3 commits May 10, 2024 22:09
Signed-off-by: M. Fatih Cırıt <[email protected]>
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx force-pushed the 4593-feat-remaining-distance-eta branch from 5cacfa1 to 3b2957f Compare May 10, 2024 22:40
@xmfcx
Copy link
Contributor

xmfcx commented May 10, 2024

Applied the max_velocity to the remaining time calculation.

It now estimates the remaining time more stable and reliable.

In the following test, with 2 red lights:

  • Estimated: 1.9 mins
  • Arrived: 2.3 mins

Autoware ETA estimation with max velocity

@xmfcx
Copy link
Contributor

xmfcx commented May 11, 2024

2024-05-11_03-10 ➡️ 2024-05-11_03-06

Bottom right side was looking a bit emptier than the bottom left side. So I've enlarged the inner rect to account for visual gap.

@xmfcx xmfcx closed this May 11, 2024
@xmfcx xmfcx reopened this May 11, 2024
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx changed the title feat(remaining_dist_eta): add mission remaining distance and time implementation feat: add autoware_remaining_distance_time_calculator and overlay May 11, 2024
Ahmed Ebrahim and others added 6 commits May 13, 2024 07:03
… to find proper route by maintaining last valid remaining dist and time

Signed-off-by: Ahmed Ebrahim <[email protected]>
…ntended division by zero or negative time values / update readme

Signed-off-by: Ahmed Ebrahim <[email protected]>

feat(remaining_dist_eta): add check for velocity limit preventing unintended division by zero or negative time values / update readme

Signed-off-by: Ahmed Ebrahim <[email protected]>
Copy link
Member

@mitsudome-r mitsudome-r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xmfcx xmfcx merged commit 86804e1 into autowarefoundation:main May 13, 2024
21 of 22 checks passed
vividf pushed a commit to vividf/autoware.universe that referenced this pull request May 16, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants