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

fix(raw_vehicle_cmd_converter): inconsitent sign of braking command #1945

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

ralwing
Copy link
Contributor

@ralwing ralwing commented Sep 23, 2022

Description

Braking Incosistency in raw_vehicle_cmd_converter
This is copied from the q&a section

What confuses me a lot is the line:

desired_brake_cmd = (acc < 0) ? acc : 0;

which in my opinion is wrong, because it sets negative braking values, moreover it is never positive!
So when convert_brake_cmd is true, the desired_brake_cmd command contains positive values, and when it's false the desired_brake_cmd contains negative values.
Braking command should either be negative, or positive, but nevet both.

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.

@ralwing ralwing requested a review from TakaHoribe as a code owner September 23, 2022 10:51
@ralwing ralwing changed the title fix inconsitent sign of braking command fix(raw_vehicle_cmd_converter): inconsitent sign of braking command Sep 23, 2022
@ralwing ralwing force-pushed the fix-accel-command-sign branch from 17d2d62 to f7f1e13 Compare September 23, 2022 10:56
@TakaHoribe
Copy link
Contributor

@ralwing Thank you for your contribution. This fix makes sense to me. The CI failed due to the missing signature in your commit (DCO). Would you fix that?

@ralwing ralwing force-pushed the fix-accel-command-sign branch 3 times, most recently from 4fc3755 to af9366c Compare September 23, 2022 11:23
Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>
@ralwing ralwing force-pushed the fix-accel-command-sign branch from af9366c to 601c36d Compare September 23, 2022 11:25
@ralwing
Copy link
Contributor Author

ralwing commented Sep 23, 2022

Ok, @TakaHoribe. Thanks for pointing that out. I've finally successfully signed-off my commit 🥇 😄

@takayuki5168
Copy link
Contributor

takayuki5168 commented Sep 23, 2022

FYI, we can apply DCO without manual git push by

1.pushing Details of DCO's CI
image
2. then pushing "set DCO to pass" (We can see this button when the DCO fails)
image

@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Base: 10.29% // Head: 10.28% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (601c36d) compared to base (36d9d64).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1945      +/-   ##
==========================================
- Coverage   10.29%   10.28%   -0.01%     
==========================================
  Files        1147     1147              
  Lines       81947    81982      +35     
  Branches    19034    19034              
==========================================
  Hits         8433     8433              
- Misses      64519    64554      +35     
  Partials     8995     8995              
Flag Coverage Δ *Carryforward flag
differential 5.16% <0.00%> (?)
total 10.27% <0.00%> (ø) Carriedforward from 36d9d64

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

Impacted Files Coverage Δ
...c/lanelet2_map_loader/lanelet2_map_loader_node.cpp 0.00% <0.00%> (ø)
planning/obstacle_avoidance_planner/src/node.cpp 0.00% <0.00%> (ø)
vehicle/raw_vehicle_cmd_converter/src/node.cpp 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @ralwing !

@TakaHoribe TakaHoribe merged commit 2970485 into autowarefoundation:main Sep 23, 2022
@ralwing ralwing deleted the fix-accel-command-sign branch September 23, 2022 12:09
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
…utowarefoundation#1945)

fix inconsitent sign of braking command

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Sep 29, 2022
…utowarefoundation#1945)

fix inconsitent sign of braking command

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…utowarefoundation#1945)

fix inconsitent sign of braking command

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…utowarefoundation#1945)

fix inconsitent sign of braking command

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
…utowarefoundation#1945)

fix inconsitent sign of braking command

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>

Signed-off-by: Grzegorz Głowacki <Grzegorz Głowacki gglowacki@autonomous-systems.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants