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(trajectory_follower): publsih control horzion #8977

Merged
merged 7 commits into from
Nov 14, 2024

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Sep 27, 2024

Description

It was previously agreed that autoware_msgs should include control horizon. However, until now the msgs has not been used.
autowarefoundation/autoware_msgs#11

In this PR, publish control horizon topic as experimental one.
Although this is an informal interface, it is a useful topic for users who want to maximize control performance in vehicular nodes.

If the longitudinal and lateral time steps are different, calculate the greatest common divisor time step and align the sizes with zero-order hold.
If one size is 1, repeat to match the other size.

image

Related links

autowarefoundation/autoware_msgs#11

Parent Issue:

  • Link

internal slack: https://star4.slack.com/archives/C4P0NSMB5/p1731572458828639

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Sep 27, 2024
Copy link

github-actions bot commented Sep 27, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kosuke55 kosuke55 force-pushed the feat/control_horizon branch 2 times, most recently from dc5392b to 4728922 Compare September 27, 2024 08:25
@kosuke55 kosuke55 marked this pull request as ready for review September 27, 2024 08:26
@kosuke55
Copy link
Contributor Author

@TakaHoribe
Could you please check briefly

  • it looks good in general?
  • the topic name “experimental” is appropriate or any other good name?

If the general policy looks good, I will add tests and documents.

@kosuke55 kosuke55 force-pushed the feat/control_horizon branch from 4728922 to 8af3119 Compare September 27, 2024 08:36
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.

Overall lgtm. Please ask @takayuki5168 to check the details.

@TakaHoribe
Copy link
Contributor

@kosuke55 And please add enable flag if it is experimental.

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 force-pushed the feat/control_horizon branch from 8af3119 to d6bf000 Compare November 14, 2024 07:02
@kosuke55
Copy link
Contributor Author

And please add enable flag if it is experimental.

added in d6bf000

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 14, 2024
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 35.89744% with 50 lines in your changes missing coverage. Please review.

Project coverage is 29.31%. Comparing base (6a1ddbd) to head (73858be).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...e_trajectory_follower_node/src/controller_node.cpp 3.84% 46 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8977      +/-   ##
==========================================
- Coverage   29.31%   29.31%   -0.01%     
==========================================
  Files        1334     1335       +1     
  Lines      102800   102891      +91     
  Branches    39984    40031      +47     
==========================================
+ Hits        30136    30161      +25     
- Misses      69797    69858      +61     
- Partials     2867     2872       +5     
Flag Coverage Δ *Carryforward flag
differential 35.99% <35.89%> (?)
total 29.31% <ø> (-0.01%) ⬇️ Carriedforward from 368c171

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

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Nov 14, 2024
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 merged commit b4603fd into autowarefoundation:main Nov 14, 2024
34 of 36 checks passed
@kosuke55 kosuke55 deleted the feat/control_horizon branch November 14, 2024 11:39
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Nov 14, 2024
…n#8977)

* feat(trajectory_follower): publsih control horzion

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* fix typo

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* rename functions and minor refactor

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add option to enable horizon pub

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add tests for horizon

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* update docs

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* rename to ~/debug/control_cmd_horizon

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Nov 26, 2024
…n#8977)

* feat(trajectory_follower): publsih control horzion

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* fix typo

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* rename functions and minor refactor

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add option to enable horizon pub

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add tests for horizon

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* update docs

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* rename to ~/debug/control_cmd_horizon

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Nov 27, 2024
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) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants