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(pid_longitudinal_controller): fixed nearest/target index before/after insertion and removal of path points #6391

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Feb 13, 2024

Description

in getControlData(), path points of control_data.interpolated_traj are inserted/removed so the nearest/target index should be obtained later.

#12 autoware::motion::control::pid_longitudinal_controller::PidLongitudinalController::getControlData (this=0x7f3794097470, current_pose=...)
    at /home/autoware/workspace/pilot-auto.xx1/src/autoware/universe/control/pid_longitudinal_controller/src/pid_longitudinal_controller.cpp:504
504         control_data.[interpolated_traj.points.at](http://interpolated_traj.points.at/)(control_data.target_idx).longitudinal_velocity_mps);
(gdb) p target_idx
No symbol "target_idx" in current context.
(gdb) p control_data.target_idx
$1 = 44
(gdb) p control_data.interpolated_traj.points.size()
$2 = 44
(gdb) p control_data.nearest_idx
$3 = 43
(gdb) p control_data.state_after_delay
$4 = {vel = 0.072158616592943342, acc = -0.30248907441951622, running_distance = 0.016637931946162379}
(gdb) p control_data.state_after_delay.running_distance > 0.01
$5 = true

Related links

Tests performed

https://evaluation.tier4.jp/evaluation/reports/af48cc3a-7c07-5188-8a73-62d2450d8a9b?project_id=prd_jt

Notes for reviewers

Interface changes

Effects on system behavior

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 the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Feb 13, 2024
@soblin soblin marked this pull request as ready for review February 13, 2024 09:01
@soblin soblin added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 13, 2024
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

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

Comparison is base (346a90c) 14.88% compared to head (99833cd) 14.89%.
Report is 9 commits behind head on main.

❗ Current head 99833cd differs from pull request most recent head da231e4. Consider uploading reports for the commit da231e4 to get more accurate results

Files Patch % Lines
...nal_controller/src/pid_longitudinal_controller.cpp 50.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6391   +/-   ##
=======================================
  Coverage   14.88%   14.89%           
=======================================
  Files        1838     1838           
  Lines      126717   126722    +5     
  Branches    38049    38051    +2     
=======================================
+ Hits        18865    18869    +4     
  Misses      86553    86553           
- Partials    21299    21300    +1     
Flag Coverage Δ *Carryforward flag
differential 40.01% <50.00%> (?)
total 14.88% <ø> (+<0.01%) ⬆️ Carriedforward from 346a90c

*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.

soblin and others added 2 commits February 13, 2024 23:44
…fter insertion and removal of path points

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…oller.cpp

Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin force-pushed the feat/pid-controller branch from 99833cd to da231e4 Compare February 13, 2024 14:44
@soblin soblin enabled auto-merge (squash) February 13, 2024 14:44
@soblin soblin merged commit bc1868b into autowarefoundation:main Feb 13, 2024
16 of 17 checks passed
@soblin soblin deleted the feat/pid-controller branch February 13, 2024 15:02
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
…fter insertion and removal of path points (autowarefoundation#6391)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…fter insertion and removal of path points (autowarefoundation#6391)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
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) 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