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(motion_velocity_smoother): initialize params for dynamic parameter #617

Conversation

mkuri
Copy link
Contributor

@mkuri mkuri commented Apr 1, 2022

Description

Fix the bug caused by the following commit.
#609

  • Member variables were not initialized for dynamically parameter settings

How to check

  • Confirmation that each smoother can be used to run on the simulator

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.

@codecov
Copy link

codecov bot commented Apr 1, 2022

Codecov Report

Merging #617 (4332a5f) into main (95414c5) will decrease coverage by 10.74%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #617       +/-   ##
==========================================
- Coverage   10.74%   0.00%   -10.75%     
==========================================
  Files         713      10      -703     
  Lines       50671    1776    -48895     
  Branches     6572       0     -6572     
==========================================
- Hits         5443       0     -5443     
+ Misses      40821    1776    -39045     
+ 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%> (ø)
...e/interpolation/spline_interpolation_points_2d.hpp
localization/ndt/include/ndt/impl/pcl_modified.hpp
... and 701 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 95414c5...4332a5f. Read the comment docs.

@taikitanaka3
Copy link
Contributor

looks good in latest autoware.universe
image

@TakaHoribe
Copy link
Contributor

@mkuri So, we can remove the parameter member variables managed in MotionVelocitySmootherNode class?

  SmootherBase::BaseParam base_param_{};
  JerkFilteredSmoother::Param jerk_filtered_smoother_param_{};
  L2PseudoJerkSmoother::Param l2_pseudo_jerk_smoother_param_{};
  LinfPseudoJerkSmoother::Param linf_pseudo_jerk_smoother_param_{};
  AnalyticalJerkConstrainedSmoother::Param analytical_jerk_constrained_smoother_param_{};

@mkuri
Copy link
Contributor Author

mkuri commented Apr 1, 2022

@TakaHoribe
Those variables are used for dynamic parameter settings.

@mkuri
Copy link
Contributor Author

mkuri commented Apr 1, 2022

@TakaHoribe
Those variables are changed from member variables to local variables.
And I confirmed that it is possible to change smoother parameters dynamically.

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!

@mkuri mkuri merged commit 5153502 into autowarefoundation:main Apr 1, 2022
taikitanaka3 referenced this pull request in tier4/autoware.universe Apr 3, 2022
#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
autowarefoundation#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
tier4#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
tier4#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
tier4#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

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
tier4#617)

* fix(motion_velocity_smoother): initialize params for dynamic parameter
settings

Signed-off-by: Makoto Kurihara <[email protected]>

* ci(pre-commit): autofix

* Change parameter variables from member to local

Signed-off-by: Makoto Kurihara <[email protected]>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@mkuri mkuri deleted the fix/initialize-params-for-dynamic-parameter-setting branch November 27, 2022 08:21
knzo25 pushed a commit to knzo25/autoware.universe that referenced this pull request Jul 3, 2023
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