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(pid_longitudinal_controller): change the condition from emergency to stopped #5892

Merged

Conversation

takayuki5168
Copy link
Contributor

@takayuki5168 takayuki5168 commented Dec 16, 2023

Description

When the ego exceeds the goal position, the longitudinal controller does the emergency stop.
Even after the ego stops, the control state in the longitudinal controller is still emergency and showing the following unnecessary message.
image

This PR changes the condition from the emergency to the stopped.
In the emergency state, when the ego successfully stopped, the state will be changed to the stopped.

Tests performed

psim

Effects on system behavior

nothing

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.

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.

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:control Vehicle control algorithms and mechanisms. (auto-assigned) labels Dec 16, 2023
…cy to stopped

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 force-pushed the feat/pid-stopped-condition-change branch from 1dd0347 to 7c55d14 Compare December 16, 2023 06:24
@github-actions github-actions bot removed the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 16, 2023
@takayuki5168 takayuki5168 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 16, 2023
@takayuki5168 takayuki5168 marked this pull request as ready for review December 16, 2023 06:30
@takayuki5168 takayuki5168 changed the title Feat/pid stopped condition change feat(pid_longitudinal_controller): change the condition from emergency to stopped Dec 16, 2023
Copy link

codecov bot commented Dec 16, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (ad9778e) 15.30% compared to head (7c55d14) 15.30%.
Report is 1 commits behind head on main.

Files Patch % Lines
...nal_controller/src/pid_longitudinal_controller.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5892   +/-   ##
=======================================
  Coverage   15.30%   15.30%           
=======================================
  Files        1747     1747           
  Lines      120119   120119           
  Branches    36570    36570           
=======================================
  Hits        18380    18380           
  Misses      81124    81124           
  Partials    20615    20615           
Flag Coverage Δ *Carryforward flag
differential 41.15% <0.00%> (?)
total 15.30% <ø> (+<0.01%) ⬆️ Carriedforward from ad9778e

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TakaHoribe
Copy link
Contributor

TakaHoribe commented Dec 18, 2023

Related this PR, do you know why the emergency_condition is true only when the velocity command is almost zero?
https://github.com/autowarefoundation/autoware.universe/pull/5892/files#diff-1ee5e10822e3bd768f91dedd27578fd0ea271878ebd2a2672bbe449819a486aaR546

@takayuki5168
Copy link
Contributor Author

@TakaHoribe Sorry, I do not know.

@takayuki5168 takayuki5168 merged commit 81f5c4b into autowarefoundation:main Dec 18, 2023
35 of 39 checks passed
@takayuki5168 takayuki5168 deleted the feat/pid-stopped-condition-change branch December 18, 2023 12:57
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Dec 19, 2023
…y to stopped (autowarefoundation#5892)

chore(pid_longitudinal_controller): change the condition from emergency to stopped

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: karishma <karishma@interpl.ai>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Dec 19, 2023
…y to stopped (autowarefoundation#5892)

chore(pid_longitudinal_controller): change the condition from emergency to stopped

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: karishma <karishma@interpl.ai>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
…y to stopped (autowarefoundation#5892)

chore(pid_longitudinal_controller): change the condition from emergency to stopped

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…y to stopped (autowarefoundation#5892)

chore(pid_longitudinal_controller): change the condition from emergency to stopped

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…y to stopped (autowarefoundation#5892)

chore(pid_longitudinal_controller): change the condition from emergency to stopped

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants