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

refactor(motion_velocity_smoother): load smoother params from node instances #609

Conversation

mkuri
Copy link
Contributor

@mkuri mkuri commented Mar 30, 2022

Description

When using smoother from other nodes, the parameter structure had to be generated at each node, which was not easy to maintain.
Modified to pass node instances to the constructor of smoother and set parameters in the constructor of each smoother.

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.

mkuri and others added 7 commits March 30, 2022 21:51
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
@codecov
Copy link

codecov bot commented Mar 30, 2022

Codecov Report

Merging #609 (b76dd81) into main (ca59048) will decrease coverage by 10.76%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #609       +/-   ##
==========================================
- Coverage   10.76%   0.00%   -10.77%     
==========================================
  Files         712      10      -702     
  Lines       50569    1776    -48793     
  Branches     6572       0     -6572     
==========================================
- Hits         5445       0     -5445     
+ Misses      40717    1776    -38941     
+ Partials     4407       0     -4407     
Impacted Files Coverage Δ
...ity_smoother/src/motion_velocity_smoother_node.cpp 0.00% <0.00%> (ø)
..._smoother/analytical_jerk_constrained_smoother.cpp 0.00% <0.00%> (ø)
...y_smoother/src/smoother/jerk_filtered_smoother.cpp 0.00% <0.00%> (ø)
..._smoother/src/smoother/l2_pseudo_jerk_smoother.cpp 0.00% <0.00%> (ø)
...moother/src/smoother/linf_pseudo_jerk_smoother.cpp 0.00% <0.00%> (ø)
...n_velocity_smoother/src/smoother/smoother_base.cpp 0.00% <0.00%> (ø)
...tetime_rviz_plugin/src/autoware_datetime_panel.cpp
...n/autoware_auto_geometry/test/src/lookup_table.cpp
...ehavior_path_planner/path_shifter/path_shifter.hpp
... and 699 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca59048...b76dd81. Read the comment docs.

@mkuri mkuri changed the title Feature/load smoother params from node instances refactor(motion_velocity_smoother): load smoother params from node instances Mar 30, 2022
@taikitanaka3
Copy link
Contributor

@mkuri
can you fix pre-commit?

mkuri and others added 3 commits March 31, 2022 13:52
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
Copy link
Contributor

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

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

LGTM
image

@mkuri mkuri merged commit 2b8d5fc into autowarefoundation:main Mar 31, 2022
mkuri added a commit to mkuri/autoware.universe that referenced this pull request Mar 31, 2022
…stances (autowarefoundation#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
taikitanaka3 referenced this pull request in tier4/autoware.universe Apr 3, 2022
…stances (#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
taikitanaka3 referenced this pull request in tier4/autoware.universe Apr 8, 2022
…stances (#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
taikitanaka3 referenced this pull request in tier4/autoware.universe Apr 11, 2022
…stances (#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
taikitanaka3 referenced this pull request in tier4/autoware.universe Apr 14, 2022
…stances (#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
TomohitoAndo pushed a commit to TomohitoAndo/autoware.universe that referenced this pull request May 16, 2022
…stances (autowarefoundation#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…stances (tier4#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…stances (tier4#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…stances (tier4#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…stances (tier4#609)

* Add constructor for setting params from node instance

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change num_resample type from double to int

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Remove debug std outputs

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Shorten parameter variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Apply other smothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Change how to construct smoothers

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

* Remove extra constructor

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* Refactor param variables

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
kyoichi-sugahara pushed a commit that referenced this pull request Sep 16, 2023
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com>
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.

2 participants