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(autoware_behavior_velocity_planner_common,autoware_behavior_velocity_planner): separate param files #9470

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

yhisaki
Copy link
Contributor

@yhisaki yhisaki commented Nov 26, 2024

Description

Previously, behaviour_velocity_planner/config/behaviour_velocity_planner.param.yaml was used in autoware_behaviour_velocity_planner and autoware_behaviour_velocity_planner_common.
In this PR, behaviour_velocity_planner.param.yaml is split into behaviour_velocity_planner.param.yaml and behaviour_velocity_planner_common.param.yaml. behaviour_velocity_planner.param.yaml is only used in behaviour_velocity_planner and behaviour_velocity_planner_common.param.yaml is only used in behaviour_velocity_planner_common .

  • Before

    behavior_velocity_planner/config/behavior_velocity_planner.param.yaml
    /**:
    ros__parameters:
        forward_path_length: 1000.0
        backward_path_length: 5.0
        behavior_output_path_interval: 1.0
        stop_line_extend_length: 5.0
        max_accel: -2.8
        max_jerk: -5.0
        system_delay: 0.5
        delay_response_time: 0.5
        is_publish_debug_path: false # publish all debug path with lane id in each module
  • After

    behavior_velocity_planner/config/behavior_velocity_planner.param.yaml
    /**:
    ros__parameters:
        forward_path_length: 1000.0
        backward_path_length: 5.0
        behavior_output_path_interval: 1.0
        stop_line_extend_length: 5.0
    behavior_velocity_planner_common/config/behavior_velocity_planner_common.param.yaml
    /**:
    ros__parameters:
        max_accel: -2.8
        max_jerk: -5.0
        system_delay: 0.5
        delay_response_time: 0.5
        is_publish_debug_path: false # publish all debug path with lane id in each module

Why do I need this change?

The file behavior_velocity_plannner/config/behaviour_velocity_planner.param.yaml was needed to create unit tests for behavior_velocity_plannner_common. However, if behavior_velocity_plannner_common depends on behavior_velocity_plannner, it causes circular references. Therefore, I came up with the idea of creating this PR.

Related links

autowarefoundation/autoware_launch#1254

How was this PR tested?

Tested on psim.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…velocity_planner): separate param files

Signed-off-by: Y.Hisaki <[email protected]>
@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) labels Nov 26, 2024
Copy link

github-actions bot commented Nov 26, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@kyoichi-sugahara
Copy link
Contributor

@yhisaki
In the autoware_static_centerline_generator package, the tests are failing because it tries to reference behavior_output_path_interval defined in behavior_velocity_planner_common.param.yaml, whereas it should be referencing behavior_velocity_planner.param.yaml instead.

@kyoichi-sugahara
Copy link
Contributor

For this PR's change, it would be more appropriate to verify that colcon test executes without issues, rather than checking psim results.

yhisaki and others added 2 commits November 27, 2024 10:51
…_centerline_generator.test.py

Co-authored-by: Kyoichi Sugahara <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.23%. Comparing base (5372403) to head (0b9f93b).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9470      +/-   ##
==========================================
- Coverage   29.24%   29.23%   -0.02%     
==========================================
  Files        1442     1447       +5     
  Lines      108555   108605      +50     
  Branches    41528    41530       +2     
==========================================
  Hits        31750    31750              
- Misses      73720    73770      +50     
  Partials     3085     3085              
Flag Coverage Δ *Carryforward flag
differential 22.70% <ø> (?)
total 29.24% <ø> (ø) Carriedforward from 5372403

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

@yhisaki yhisaki merged commit ddff5c2 into autowarefoundation:main Nov 27, 2024
31 of 32 checks passed
@yhisaki yhisaki deleted the separate-bvp-param branch November 27, 2024 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) tag: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.

3 participants