diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 2cf484c9fbe34..36b1af9887ed9 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1,9 +1,9 @@
### Automatically generated from package.xml ###
common/autoware_ad_api_specs/** isamu.takagi@tier4.jp ryohsuke.mitsudome@tier4.jp
common/autoware_auto_common/** opensource@apex.ai satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
-common/autoware_perception_rviz_plugin/** opensource@apex.ai satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taiki.tanaka@tier4.jp takeshi.miura@tier4.jp yoshi.ri@tier4.jp
common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/** ahmed.ebrahim@leodrive.ai
common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/** khalil@leodrive.ai
+common/autoware_perception_rviz_plugin/** opensource@apex.ai satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taiki.tanaka@tier4.jp takeshi.miura@tier4.jp yoshi.ri@tier4.jp
common/autoware_point_types/** taichi.higashide@tier4.jp
common/autoware_testing/** adam.dabrowski@robotec.ai satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
common/bag_time_manager_rviz_plugin/** taiki.tanaka@tier4.jp
@@ -144,22 +144,28 @@ perception/traffic_light_map_based_detector/** shunsuke.miura@tier4.jp tao.zhong
perception/traffic_light_multi_camera_fusion/** shunsuke.miura@tier4.jp tao.zhong@tier4.jp
perception/traffic_light_occlusion_predictor/** shunsuke.miura@tier4.jp tao.zhong@tier4.jp
perception/traffic_light_visualization/** tao.zhong@tier4.jp yukihiro.saito@tier4.jp
+planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/** kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp takayuki.murooka@tier4.jp yuki.takagi@tier4.jp
planning/autoware_behavior_path_external_request_lane_change_module/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
+planning/autoware_behavior_path_planner_common/** daniel.sanchez@tier4.jp fumiya.watanabe@tier4.jp go.sakayori@tier4.jp kosuke.takeuchi@tier4.jp mamoru.sobue@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
+planning/autoware_behavior_path_static_obstacle_avoidance_module/** fumiya.watanabe@tier4.jp go.sakayori@tier4.jp kyoichi.sugahara@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takamasa.horibe@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
planning/autoware_behavior_velocity_planner/** kosuke.takeuchi@tier4.jp kyoichi.sugahara@tier4.jp makoto.kurihara@tier4.jp mamoru.sobue@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp takayuki.murooka@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
+planning/autoware_behavior_velocity_run_out_module/** kosuke.takeuchi@tier4.jp makoto.kurihara@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
planning/autoware_behavior_velocity_template_module/** daniel.sanchez@tier4.jp
planning/autoware_behavior_velocity_virtual_traffic_light_module/** kosuke.takeuchi@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
+planning/autoware_behavior_velocity_walkway_module/** satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp
+planning/autoware_external_velocity_limit_selector/** satoshi.ota@tier4.jp shinnosuke.hirakawa@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
+planning/autoware_path_optimizer/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
planning/autoware_planning_test_manager/** kyoichi.sugahara@tier4.jp takamasa.horibe@tier4.jp
+planning/autoware_planning_topic_converter/** kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp
planning/autoware_remaining_distance_time_calculator/** ahmed.ebrahim@leodrive.ai
planning/autoware_static_centerline_generator/** kosuke.takeuchi@tier4.jp takayuki.murooka@tier4.jp
+planning/autoware_velocity_smoother/** fumiya.watanabe@tier4.jp makoto.kurihara@tier4.jp satoshi.ota@tier4.jp takamasa.horibe@tier4.jp
planning/behavior_path_avoidance_by_lane_change_module/** fumiya.watanabe@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
-planning/behavior_path_avoidance_module/** fumiya.watanabe@tier4.jp go.sakayori@tier4.jp kyoichi.sugahara@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takamasa.horibe@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
-planning/behavior_path_dynamic_avoidance_module/** kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp takayuki.murooka@tier4.jp yuki.takagi@tier4.jp
planning/behavior_path_goal_planner_module/** daniel.sanchez@tier4.jp kosuke.takeuchi@tier4.jp kyoichi.sugahara@tier4.jp mamoru.sobue@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_path_lane_change_module/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
planning/behavior_path_planner/** fumiya.watanabe@tier4.jp go.sakayori@tier4.jp kosuke.takeuchi@tier4.jp kyoichi.sugahara@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
-planning/autoware_behavior_path_planner_common/** daniel.sanchez@tier4.jp fumiya.watanabe@tier4.jp go.sakayori@tier4.jp kosuke.takeuchi@tier4.jp mamoru.sobue@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp zulfaqar.azmi@tier4.jp
planning/behavior_path_sampling_planner_module/** daniel.sanchez@tier4.jp maxime.clement@tier4.jp
-planning/behavior_path_side_shift_module/** fumiya.watanabe@tier4.jp kyoichi.sugahara@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
+planning/autoware_behavior_path_side_shift_module/** fumiya.watanabe@tier4.jp kyoichi.sugahara@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_path_start_planner_module/** daniel.sanchez@tier4.jp kosuke.takeuchi@tier4.jp kyoichi.sugahara@tier4.jp mamoru.sobue@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_velocity_blind_spot_module/** mamoru.sobue@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_velocity_crosswalk_module/** kyoichi.sugahara@tier4.jp mamoru.sobue@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp yuki.takagi@tier4.jp
@@ -171,41 +177,38 @@ planning/behavior_velocity_no_stopping_area_module/** kosuke.takeuchi@tier4.jp s
planning/behavior_velocity_occlusion_spot_module/** shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_velocity_out_of_lane_module/** maxime.clement@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_velocity_planner_common/** fumiya.watanabe@tier4.jp isamu.takagi@tier4.jp mamoru.sobue@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
-planning/behavior_velocity_run_out_module/** kosuke.takeuchi@tier4.jp makoto.kurihara@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_velocity_speed_bump_module/** mdogru@leodrive.ai shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
planning/behavior_velocity_stop_line_module/** fumiya.watanabe@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp zhe.shen@tier4.jp
planning/behavior_velocity_traffic_light_module/** mamoru.sobue@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
-planning/behavior_velocity_walkway_module/** satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp
planning/costmap_generator/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
-planning/external_velocity_limit_selector/** satoshi.ota@tier4.jp shinnosuke.hirakawa@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp
planning/freespace_planner/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
planning/freespace_planning_algorithms/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
planning/mission_planner/** isamu.takagi@tier4.jp kosuke.takeuchi@tier4.jp mamoru.sobue@tier4.jp ryohsuke.mitsudome@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
-planning/motion_velocity_smoother/** fumiya.watanabe@tier4.jp makoto.kurihara@tier4.jp satoshi.ota@tier4.jp takamasa.horibe@tier4.jp
+planning/motion_velocity_planner/autoware_motion_velocity_out_of_lane_module/** maxime.clement@tier4.jp shumpei.wakabayashi@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp
+planning/motion_velocity_planner/autoware_motion_velocity_planner_common/** maxime.clement@tier4.jp
+planning/motion_velocity_planner/autoware_motion_velocity_planner_node/** maxime.clement@tier4.jp
planning/objects_of_interest_marker_interface/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4.jp zulfaqar.azmi@tier4.jp
-planning/obstacle_avoidance_planner/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp
planning/obstacle_cruise_planner/** kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp takayuki.murooka@tier4.jp yuki.takagi@tier4.jp
planning/obstacle_stop_planner/** berkay@leodrive.ai bnk@leodrive.ai satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp tomoya.kimura@tier4.jp
planning/obstacle_velocity_limiter/** maxime.clement@tier4.jp
planning/path_smoother/** maxime.clement@tier4.jp takayuki.murooka@tier4.jp
planning/planning_test_utils/** kyoichi.sugahara@tier4.jp mamoru.sobue@tier4.jp takamasa.horibe@tier4.jp zulfaqar.azmi@tier4.jp
-planning/planning_topic_converter/** kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp
planning/planning_validator/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp
planning/route_handler/** fumiya.watanabe@tier4.jp go.sakayori@tier4.jp kosuke.takeuchi@tier4.jp mamoru.sobue@tier4.jp takayuki.murooka@tier4.jp zulfaqar.azmi@tier4.jp
planning/rtc_interface/** fumiya.watanabe@tier4.jp kyoichi.sugahara@tier4.jp satoshi.ota@tier4.jp taiki.tanaka@tier4.jp
planning/rtc_replayer/** fumiya.watanabe@tier4.jp taiki.tanaka@tier4.jp
-planning/sampling_based_planner/bezier_sampler/** maxime.clement@tier4.jp
-planning/sampling_based_planner/frenet_planner/** maxime.clement@tier4.jp
-planning/sampling_based_planner/path_sampler/** maxime.clement@tier4.jp
-planning/sampling_based_planner/sampler_common/** maxime.clement@tier4.jp
+planning/sampling_based_planner/autoware_bezier_sampler/** maxime.clement@tier4.jp
+planning/sampling_based_planner/autoware_frenet_planner/** maxime.clement@tier4.jp
+planning/sampling_based_planner/autoware_path_sampler/** maxime.clement@tier4.jp
+planning/sampling_based_planner/autoware_sampler_common/** maxime.clement@tier4.jp
planning/scenario_selector/** fumiya.watanabe@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp
-planning/surround_obstacle_checker/** satoshi.ota@tier4.jp
+planning/autoware_surround_obstacle_checker/** go.sakayori@tier4.jp satoshi.ota@tier4.jp
sensing/gnss_poser/** anh.nguyen.2@tier4.jp kento.yabuuchi.2@tier4.jp koji.minoda@tier4.jp masahiro.sakamoto@tier4.jp ryu.yamamoto@tier4.jp shintaro.sakoda@tier4.jp taiki.yamada@tier4.jp yamato.ando@tier4.jp
sensing/image_diagnostics/** dai.nguyen@tier4.jp yoshi.ri@tier4.jp
sensing/image_transport_decompressor/** kenzo.lobos@tier4.jp yukihiro.saito@tier4.jp
sensing/imu_corrector/** koji.minoda@tier4.jp taiki.yamada@tier4.jp yamato.ando@tier4.jp
sensing/livox/livox_tag_filter/** kenzo.lobos@tier4.jp ryohsuke.mitsudome@tier4.jp
-sensing/pointcloud_preprocessor/** abrahammonrroy@yahoo.com dai.nguyen@tier4.jp kenzo.lobos@tier4.jp kyoichi.sugahara@tier4.jp shunsuke.miura@tier4.jp yihsiang.fang@tier4.jp yoshi.ri@tier4.jp yukihiro.saito@tier4.jp
+sensing/pointcloud_preprocessor/** abrahammonrroy@yahoo.com dai.nguyen@tier4.jp david.wong@tier4.jp kenzo.lobos@tier4.jp kyoichi.sugahara@tier4.jp melike@leodrive.ai shunsuke.miura@tier4.jp yihsiang.fang@tier4.jp yoshi.ri@tier4.jp yukihiro.saito@tier4.jp
sensing/radar_scan_to_pointcloud2/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taekjin.lee@tier4.jp yoshi.ri@tier4.jp
sensing/radar_static_pointcloud_filter/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taekjin.lee@tier4.jp yoshi.ri@tier4.jp
sensing/radar_threshold_filter/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp taekjin.lee@tier4.jp yoshi.ri@tier4.jp
@@ -240,9 +243,9 @@ system/topic_state_monitor/** ryohsuke.mitsudome@tier4.jp
system/velodyne_monitor/** fumihito.ito@tier4.jp
tools/reaction_analyzer/** berkay@leodrive.ai
vehicle/accel_brake_map_calibrator/** taiki.tanaka@tier4.jp takeshi.miura@tier4.jp tomoya.kimura@tier4.jp
+vehicle/autoware_steer_offset_estimator/** taiki.tanaka@tier4.jp
vehicle/external_cmd_converter/** takamasa.horibe@tier4.jp
vehicle/raw_vehicle_cmd_converter/** makoto.kurihara@tier4.jp taiki.tanaka@tier4.jp takamasa.horibe@tier4.jp
-vehicle/steer_offset_estimator/** taiki.tanaka@tier4.jp
vehicle/vehicle_info_util/** shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp tomoya.kimura@tier4.jp
### Copied from .github/CODEOWNERS-manual ###
diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml
index a469e7a33d190..85c531a02fca9 100644
--- a/.github/workflows/build-and-test.yaml
+++ b/.github/workflows/build-and-test.yaml
@@ -9,7 +9,7 @@ on:
jobs:
build-and-test:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
- runs-on: ubuntu-latest
+ runs-on: [self-hosted, linux, X64]
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
fail-fast: false
diff --git a/.github/workflows/cppcheck-all.yaml b/.github/workflows/cppcheck-daily.yaml
similarity index 97%
rename from .github/workflows/cppcheck-all.yaml
rename to .github/workflows/cppcheck-daily.yaml
index db3bd5d259895..6a18bfb988b08 100644
--- a/.github/workflows/cppcheck-all.yaml
+++ b/.github/workflows/cppcheck-daily.yaml
@@ -1,13 +1,12 @@
-name: cppcheck-all
+name: cppcheck-daily
on:
- pull_request:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
- cppcheck-all:
+ cppcheck-daily:
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/openai-pr-reviewer.yaml b/.github/workflows/openai-pr-reviewer.yaml
deleted file mode 100644
index 4ecbd93198276..0000000000000
--- a/.github/workflows/openai-pr-reviewer.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-name: Code Review By ChatGPT
-
-permissions:
- contents: read
- pull-requests: write
-
-on:
- pull_request_target:
- types:
- - labeled
- pull_request_review_comment:
- types: [created]
-
-concurrency:
- group: ${{ github.repository }}-${{ github.event.number || github.head_ref ||
- github.sha }}-${{ github.workflow }}-${{ github.event_name ==
- 'pull_request_review_comment' && 'pr_comment' || 'pr' }}
- cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}
-
-jobs:
- prevent-no-label-execution:
- uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
- with:
- label: tag:openai-pr-reviewer
- review:
- needs: prevent-no-label-execution
- if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
- runs-on: ubuntu-latest
- steps:
- - uses: fluxninja/openai-pr-reviewer@latest
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- with:
- debug: false
- review_simple_changes: false
- review_comment_lgtm: false
- openai_light_model: gpt-3.5-turbo-0613
- openai_heavy_model: gpt-3.5-turbo-0613 # The default is to use GPT4, which needs to be changed to join ChatGPT Plus.
diff --git a/.github/workflows/pr-agent.yaml b/.github/workflows/pr-agent.yaml
index f4794b7497402..81b192a1c2095 100644
--- a/.github/workflows/pr-agent.yaml
+++ b/.github/workflows/pr-agent.yaml
@@ -26,6 +26,13 @@ jobs:
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY_PR_AGENT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- github_action_config.auto_review: "false"
- github_action_config.auto_describe: "false"
- github_action_config.auto_improve: "false"
+ github_action_config.auto_review: false
+ github_action_config.auto_describe: false
+ github_action_config.auto_improve: false
+ # https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml
+ pr_description.publish_labels: false
+ config.model: gpt-4o
+ config.model_turbo: gpt-4o
+ config.max_model_tokens: 64000
+ pr_code_suggestions.max_context_tokens: 12000
+ pr_code_suggestions.commitable_code_suggestions: true
diff --git a/build_depends.repos b/build_depends.repos
index a8f431f97df25..bd93897d81d68 100644
--- a/build_depends.repos
+++ b/build_depends.repos
@@ -41,3 +41,7 @@ repositories:
type: git
url: https://github.com/tier4/glog.git
version: v0.6.0_t4-ros
+ universe/external/ament_cmake: # TODO(mitsudome-r): remove when https://github.com/ament/ament_cmake/pull/448 is merged
+ type: git
+ url: https://github.com/autowarefoundation/ament_cmake.git
+ version: feat/faster_ament_libraries_deduplicate
diff --git a/launch/tier4_planning_launch/launch/scenario_planning/lane_driving/behavior_planning/behavior_planning.launch.xml b/launch/tier4_planning_launch/launch/scenario_planning/lane_driving/behavior_planning/behavior_planning.launch.xml
index 154a3019f1c17..4cf0c541510ed 100644
--- a/launch/tier4_planning_launch/launch/scenario_planning/lane_driving/behavior_planning/behavior_planning.launch.xml
+++ b/launch/tier4_planning_launch/launch/scenario_planning/lane_driving/behavior_planning/behavior_planning.launch.xml
@@ -106,7 +106,7 @@
/>
-
+
@@ -98,7 +98,7 @@
-
+
@@ -232,7 +232,7 @@
-
+
diff --git a/launch/tier4_planning_launch/launch/scenario_planning/scenario_planning.launch.xml b/launch/tier4_planning_launch/launch/scenario_planning/scenario_planning.launch.xml
index be85ee704ff95..6a7e00154256a 100644
--- a/launch/tier4_planning_launch/launch/scenario_planning/scenario_planning.launch.xml
+++ b/launch/tier4_planning_launch/launch/scenario_planning/scenario_planning.launch.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/launch/tier4_planning_launch/package.xml b/launch/tier4_planning_launch/package.xml
index cf96cd39043ce..7b03097e55e10 100644
--- a/launch/tier4_planning_launch/package.xml
+++ b/launch/tier4_planning_launch/package.xml
@@ -58,23 +58,23 @@
autoware_cmake
autoware_behavior_velocity_planner
+ autoware_external_velocity_limit_selector
autoware_path_optimizer
+ autoware_planning_topic_converter
autoware_remaining_distance_time_calculator
+ autoware_surround_obstacle_checker
autoware_velocity_smoother
behavior_path_planner
costmap_generator
external_cmd_selector
- external_velocity_limit_selector
freespace_planner
glog_component
mission_planner
obstacle_cruise_planner
obstacle_stop_planner
planning_evaluator
- planning_topic_converter
planning_validator
scenario_selector
- surround_obstacle_checker
ament_lint_auto
autoware_lint_common
diff --git a/localization/pose2twist/CMakeLists.txt b/localization/pose2twist/CMakeLists.txt
index 2a586aa9cd049..ee63d9f43559a 100644
--- a/localization/pose2twist/CMakeLists.txt
+++ b/localization/pose2twist/CMakeLists.txt
@@ -14,6 +14,13 @@ rclcpp_components_register_node(${PROJECT_NAME}
EXECUTOR SingleThreadedExecutor
)
+if(BUILD_TESTING)
+ find_package(ament_cmake_gtest REQUIRED)
+ ament_auto_add_gtest(test_angular_velocity
+ test/test_angular_velocity.cpp
+ )
+endif()
+
ament_auto_package(
INSTALL_TO_SHARE
launch
diff --git a/localization/pose2twist/README.md b/localization/pose2twist/README.md
index 07d9c37b710fc..f1f7d6408fafb 100644
--- a/localization/pose2twist/README.md
+++ b/localization/pose2twist/README.md
@@ -5,7 +5,7 @@
This `pose2twist` calculates the velocity from the input pose history. In addition to the computed twist, this node outputs the linear-x and angular-z components as a float message to simplify debugging.
The `twist.linear.x` is calculated as `sqrt(dx * dx + dy * dy + dz * dz) / dt`, and the values in the `y` and `z` fields are zero.
-The `twist.angular` is calculated as `d_roll / dt`, `d_pitch / dt` and `d_yaw / dt` for each field.
+The `twist.angular` is calculated as `relative_rotation_vector / dt` for each field.
## Inputs / Outputs
diff --git a/localization/pose2twist/include/pose2twist/pose2twist_core.hpp b/localization/pose2twist/include/pose2twist/pose2twist_core.hpp
index 459a62ea5cd13..d1ff6ee5ff8b6 100644
--- a/localization/pose2twist/include/pose2twist/pose2twist_core.hpp
+++ b/localization/pose2twist/include/pose2twist/pose2twist_core.hpp
@@ -21,14 +21,23 @@
#include
#include
+#ifdef ROS_DISTRO_GALACTIC
+#include
+#else
+#include
+#endif
+
+// Compute the relative rotation of q2 from q1 as a rotation vector
+geometry_msgs::msg::Vector3 compute_relative_rotation_vector(
+ const tf2::Quaternion & q1, const tf2::Quaternion & q2);
+
class Pose2Twist : public rclcpp::Node
{
public:
explicit Pose2Twist(const rclcpp::NodeOptions & options);
- ~Pose2Twist() = default;
private:
- void callbackPose(geometry_msgs::msg::PoseStamped::SharedPtr pose_msg_ptr);
+ void callback_pose(geometry_msgs::msg::PoseStamped::SharedPtr pose_msg_ptr);
rclcpp::Subscription::SharedPtr pose_sub_;
diff --git a/localization/pose2twist/src/pose2twist_core.cpp b/localization/pose2twist/src/pose2twist_core.cpp
index 4b98ec6c81ad4..cdde78ed7e357 100644
--- a/localization/pose2twist/src/pose2twist_core.cpp
+++ b/localization/pose2twist/src/pose2twist_core.cpp
@@ -14,12 +14,6 @@
#include "pose2twist/pose2twist_core.hpp"
-#ifdef ROS_DISTRO_GALACTIC
-#include
-#else
-#include
-#endif
-
#include
#include
#include
@@ -38,35 +32,27 @@ Pose2Twist::Pose2Twist(const rclcpp::NodeOptions & options) : rclcpp::Node("pose
create_publisher("angular_z", durable_qos);
// Note: this callback publishes topics above
pose_sub_ = create_subscription(
- "pose", queue_size, std::bind(&Pose2Twist::callbackPose, this, _1));
-}
-
-double calcDiffForRadian(const double lhs_rad, const double rhs_rad)
-{
- double diff_rad = lhs_rad - rhs_rad;
- if (diff_rad > M_PI) {
- diff_rad = diff_rad - 2 * M_PI;
- } else if (diff_rad < -M_PI) {
- diff_rad = diff_rad + 2 * M_PI;
- }
- return diff_rad;
+ "pose", queue_size, std::bind(&Pose2Twist::callback_pose, this, _1));
}
-// x: roll, y: pitch, z: yaw
-geometry_msgs::msg::Vector3 getRPY(const geometry_msgs::msg::Pose & pose)
+tf2::Quaternion get_quaternion(const geometry_msgs::msg::PoseStamped::SharedPtr & pose_stamped_ptr)
{
- geometry_msgs::msg::Vector3 rpy;
- tf2::Quaternion q(pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w);
- tf2::Matrix3x3(q).getRPY(rpy.x, rpy.y, rpy.z);
- return rpy;
+ const auto & orientation = pose_stamped_ptr->pose.orientation;
+ return tf2::Quaternion{orientation.x, orientation.y, orientation.z, orientation.w};
}
-geometry_msgs::msg::Vector3 getRPY(geometry_msgs::msg::PoseStamped::SharedPtr pose)
+geometry_msgs::msg::Vector3 compute_relative_rotation_vector(
+ const tf2::Quaternion & q1, const tf2::Quaternion & q2)
{
- return getRPY(pose->pose);
+ // If we define q2 as the rotation obtained by applying dq after applying q1,
+ // then q2 = q1 * dq .
+ // Therefore, dq = q1.inverse() * q2 .
+ const tf2::Quaternion diff_quaternion = q1.inverse() * q2;
+ const tf2::Vector3 axis = diff_quaternion.getAxis() * diff_quaternion.getAngle();
+ return geometry_msgs::msg::Vector3{}.set__x(axis.x()).set__y(axis.y()).set__z(axis.z());
}
-geometry_msgs::msg::TwistStamped calcTwist(
+geometry_msgs::msg::TwistStamped calc_twist(
geometry_msgs::msg::PoseStamped::SharedPtr pose_a,
geometry_msgs::msg::PoseStamped::SharedPtr pose_b)
{
@@ -79,18 +65,16 @@ geometry_msgs::msg::TwistStamped calcTwist(
return twist;
}
- const auto pose_a_rpy = getRPY(pose_a);
- const auto pose_b_rpy = getRPY(pose_b);
+ const auto pose_a_quaternion = get_quaternion(pose_a);
+ const auto pose_b_quaternion = get_quaternion(pose_b);
geometry_msgs::msg::Vector3 diff_xyz;
- geometry_msgs::msg::Vector3 diff_rpy;
+ const geometry_msgs::msg::Vector3 relative_rotation_vector =
+ compute_relative_rotation_vector(pose_a_quaternion, pose_b_quaternion);
diff_xyz.x = pose_b->pose.position.x - pose_a->pose.position.x;
diff_xyz.y = pose_b->pose.position.y - pose_a->pose.position.y;
diff_xyz.z = pose_b->pose.position.z - pose_a->pose.position.z;
- diff_rpy.x = calcDiffForRadian(pose_b_rpy.x, pose_a_rpy.x);
- diff_rpy.y = calcDiffForRadian(pose_b_rpy.y, pose_a_rpy.y);
- diff_rpy.z = calcDiffForRadian(pose_b_rpy.z, pose_a_rpy.z);
geometry_msgs::msg::TwistStamped twist;
twist.header = pose_b->header;
@@ -99,34 +83,34 @@ geometry_msgs::msg::TwistStamped calcTwist(
dt;
twist.twist.linear.y = 0;
twist.twist.linear.z = 0;
- twist.twist.angular.x = diff_rpy.x / dt;
- twist.twist.angular.y = diff_rpy.y / dt;
- twist.twist.angular.z = diff_rpy.z / dt;
+ twist.twist.angular.x = relative_rotation_vector.x / dt;
+ twist.twist.angular.y = relative_rotation_vector.y / dt;
+ twist.twist.angular.z = relative_rotation_vector.z / dt;
return twist;
}
-void Pose2Twist::callbackPose(geometry_msgs::msg::PoseStamped::SharedPtr pose_msg_ptr)
+void Pose2Twist::callback_pose(geometry_msgs::msg::PoseStamped::SharedPtr pose_msg_ptr)
{
// TODO(YamatoAndo) check time stamp diff
// TODO(YamatoAndo) check suddenly move
// TODO(YamatoAndo) apply low pass filter
- geometry_msgs::msg::PoseStamped::SharedPtr current_pose_msg = pose_msg_ptr;
+ const geometry_msgs::msg::PoseStamped::SharedPtr & current_pose_msg = pose_msg_ptr;
static geometry_msgs::msg::PoseStamped::SharedPtr prev_pose_msg = current_pose_msg;
- geometry_msgs::msg::TwistStamped twist_msg = calcTwist(prev_pose_msg, current_pose_msg);
+ geometry_msgs::msg::TwistStamped twist_msg = calc_twist(prev_pose_msg, current_pose_msg);
prev_pose_msg = current_pose_msg;
twist_msg.header.frame_id = "base_link";
twist_pub_->publish(twist_msg);
tier4_debug_msgs::msg::Float32Stamped linear_x_msg;
linear_x_msg.stamp = this->now();
- linear_x_msg.data = twist_msg.twist.linear.x;
+ linear_x_msg.data = static_cast(twist_msg.twist.linear.x);
linear_x_pub_->publish(linear_x_msg);
tier4_debug_msgs::msg::Float32Stamped angular_z_msg;
angular_z_msg.stamp = this->now();
- angular_z_msg.data = twist_msg.twist.angular.z;
+ angular_z_msg.data = static_cast(twist_msg.twist.angular.z);
angular_z_pub_->publish(angular_z_msg);
}
diff --git a/localization/pose2twist/test/test_angular_velocity.cpp b/localization/pose2twist/test/test_angular_velocity.cpp
new file mode 100644
index 0000000000000..bf2ca0a3ba5c2
--- /dev/null
+++ b/localization/pose2twist/test/test_angular_velocity.cpp
@@ -0,0 +1,115 @@
+// Copyright 2022 The Autoware Contributors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "pose2twist/pose2twist_core.hpp"
+
+#include
+
+// 1e-3 radian = 0.057 degrees
+constexpr double acceptable_error = 1e-3;
+
+TEST(AngularVelocityFromQuaternion, CheckMultiplicationOrder)
+{
+ // If we define q2 as the rotation obtained by applying dq after applying q1, then q2 = q1 * dq .
+ //
+ // IT IS NOT q2 = dq * q1 .
+ //
+ // This test checks that the multiplication order is correct.
+
+ const tf2::Vector3 target_vector(1, 2, 3);
+ // initial state
+ // Now, car is facing to the +x direction
+ // z
+ // ^ y
+ // | ^
+ // | /
+ // | /
+ // car -> x
+ //
+ //
+ //
+
+ tf2::Quaternion q1;
+ q1.setRPY(0., 0., M_PI / 2.); // yaw = 90 degrees
+ const tf2::Vector3 initially_rotated_vector = tf2::quatRotate(q1, target_vector);
+ // after applying q1
+ // Now, car is facing to the +y direction
+ // z
+ // ^
+ // | y
+ // | ^
+ // | /
+ // <--car x
+ //
+ //
+ //
+ EXPECT_NEAR(initially_rotated_vector.x(), -2., acceptable_error);
+ EXPECT_NEAR(initially_rotated_vector.y(), 1., acceptable_error);
+ EXPECT_NEAR(initially_rotated_vector.z(), 3., acceptable_error);
+
+ tf2::Quaternion dq;
+ dq.setRPY(0., M_PI / 2., 0.); // pitch = 90 degrees
+ const tf2::Vector3 finally_rotated_vector = tf2::quatRotate(q1 * dq, target_vector);
+ // after applying dq
+ // Now, car is facing to the -z direction
+ // z y
+ // ^
+ // /
+ // /
+ // /
+ // <--car x
+ // |
+ // v
+ //
+ EXPECT_NEAR(finally_rotated_vector.x(), -2., acceptable_error);
+ EXPECT_NEAR(finally_rotated_vector.y(), 3., acceptable_error);
+ EXPECT_NEAR(finally_rotated_vector.z(), -1., acceptable_error);
+
+ // Failure case
+ {
+ const tf2::Vector3 false_rotated_vector = tf2::quatRotate(dq * q1, target_vector);
+
+ EXPECT_FALSE(std::abs(false_rotated_vector.x() - (-2)) < acceptable_error);
+ EXPECT_FALSE(std::abs(false_rotated_vector.y() - (3)) < acceptable_error);
+ EXPECT_FALSE(std::abs(false_rotated_vector.z() - (-1)) < acceptable_error);
+ }
+}
+
+TEST(AngularVelocityFromQuaternion, CheckNumericalValidity)
+{
+ auto test = [](const tf2::Vector3 & expected_axis, const double expected_angle) -> void {
+ tf2::Quaternion expected_q;
+ expected_q.setRotation(expected_axis, expected_angle);
+
+ // Create a random initial quaternion
+ tf2::Quaternion initial_q;
+ initial_q.setRPY(0.2, 0.3, 0.4);
+
+ // Calculate the final quaternion by rotating the initial quaternion by the expected
+ // quaternion
+ const tf2::Quaternion final_q = initial_q * expected_q;
+
+ // Calculate the relative rotation between the initial and final quaternion
+ const geometry_msgs::msg::Vector3 rotation_vector =
+ compute_relative_rotation_vector(initial_q, final_q);
+
+ EXPECT_NEAR(rotation_vector.x, expected_axis.x() * expected_angle, acceptable_error);
+ EXPECT_NEAR(rotation_vector.y, expected_axis.y() * expected_angle, acceptable_error);
+ EXPECT_NEAR(rotation_vector.z, expected_axis.z() * expected_angle, acceptable_error);
+ };
+
+ test(tf2::Vector3(1.0, 0.0, 0.0).normalized(), 0.1); // 0.1 radian = 5.7 degrees
+ test(tf2::Vector3(1.0, 1.0, 0.0).normalized(), -0.2); // 0.2 radian = 11.4 degrees
+ test(tf2::Vector3(1.0, 2.0, 3.0).normalized(), 0.3); // 0.3 radian = 17.2 degrees
+}
diff --git a/localization/stop_filter/include/stop_filter/stop_filter.hpp b/localization/stop_filter/include/stop_filter/stop_filter.hpp
index 24145a7920d91..e8428788820b2 100644
--- a/localization/stop_filter/include/stop_filter/stop_filter.hpp
+++ b/localization/stop_filter/include/stop_filter/stop_filter.hpp
@@ -52,6 +52,6 @@ class StopFilter : public rclcpp::Node
/**
* @brief set odometry measurement
*/
- void callbackOdometry(const nav_msgs::msg::Odometry::SharedPtr msg);
+ void callback_odometry(const nav_msgs::msg::Odometry::SharedPtr msg);
};
#endif // STOP_FILTER__STOP_FILTER_HPP_
diff --git a/localization/stop_filter/src/stop_filter.cpp b/localization/stop_filter/src/stop_filter.cpp
index 4d6b2c6240867..c1c4de2fb6b6e 100644
--- a/localization/stop_filter/src/stop_filter.cpp
+++ b/localization/stop_filter/src/stop_filter.cpp
@@ -31,13 +31,13 @@ StopFilter::StopFilter(const rclcpp::NodeOptions & node_options)
wz_threshold_ = declare_parameter("wz_threshold");
sub_odom_ = create_subscription(
- "input/odom", 1, std::bind(&StopFilter::callbackOdometry, this, _1));
+ "input/odom", 1, std::bind(&StopFilter::callback_odometry, this, _1));
pub_odom_ = create_publisher("output/odom", 1);
pub_stop_flag_ = create_publisher("debug/stop_flag", 1);
}
-void StopFilter::callbackOdometry(const nav_msgs::msg::Odometry::SharedPtr msg)
+void StopFilter::callback_odometry(const nav_msgs::msg::Odometry::SharedPtr msg)
{
tier4_debug_msgs::msg::BoolStamped stop_flag_msg;
stop_flag_msg.stamp = msg->header.stamp;
diff --git a/localization/yabloc/yabloc_common/package.xml b/localization/yabloc/yabloc_common/package.xml
index de675da5cc2d4..d4c8b71fa6b66 100644
--- a/localization/yabloc/yabloc_common/package.xml
+++ b/localization/yabloc/yabloc_common/package.xml
@@ -29,6 +29,7 @@
sophus
std_msgs
tf2_ros
+ tier4_autoware_utils
visualization_msgs
ament_lint_auto
diff --git a/localization/yabloc/yabloc_common/src/ll2_decomposer/ll2_decomposer_core.cpp b/localization/yabloc/yabloc_common/src/ll2_decomposer/ll2_decomposer_core.cpp
index d0dfc87067f7f..1126d6260b911 100644
--- a/localization/yabloc/yabloc_common/src/ll2_decomposer/ll2_decomposer_core.cpp
+++ b/localization/yabloc/yabloc_common/src/ll2_decomposer/ll2_decomposer_core.cpp
@@ -15,7 +15,7 @@
#include "yabloc_common/ll2_decomposer/ll2_decomposer.hpp"
#include
-#include
+#include
#include
#include
@@ -198,7 +198,7 @@ Ll2Decomposer::MarkerArray Ll2Decomposer::make_sign_marker_msg(
marker.header.frame_id = "map";
marker.header.stamp = get_clock()->now();
marker.type = Marker::LINE_STRIP;
- marker.color = common::Color(0.6f, 0.6f, 0.6f, 0.999f);
+ marker.color = tier4_autoware_utils::createMarkerColor(0.6f, 0.6f, 0.6f, 0.999f);
marker.scale.x = 0.1;
marker.ns = ns;
marker.id = id++;
@@ -228,7 +228,7 @@ Ll2Decomposer::MarkerArray Ll2Decomposer::make_polygon_marker_msg(
marker.header.frame_id = "map";
marker.header.stamp = get_clock()->now();
marker.type = Marker::LINE_STRIP;
- marker.color = common::Color(0.4f, 0.4f, 0.8f, 0.999f);
+ marker.color = tier4_autoware_utils::createMarkerColor(0.4f, 0.4f, 0.8f, 0.999f);
marker.scale.x = 0.2;
marker.ns = ns;
marker.id = id++;
diff --git a/localization/yabloc/yabloc_particle_filter/src/common/particle_visualize_node.cpp b/localization/yabloc/yabloc_particle_filter/src/common/particle_visualize_node.cpp
index 90cd62883e339..e6e59a836f6db 100644
--- a/localization/yabloc/yabloc_particle_filter/src/common/particle_visualize_node.cpp
+++ b/localization/yabloc/yabloc_particle_filter/src/common/particle_visualize_node.cpp
@@ -93,7 +93,8 @@ class ParticleVisualize : public rclcpp::Node
marker.scale.y = 0.1;
marker.scale.z = 0.1;
- marker.color = common::color_scale::rainbow(bound_weight(p.weight));
+ marker.color =
+ static_cast(common::color_scale::rainbow(bound_weight(p.weight)));
marker.pose.orientation = p.pose.orientation;
marker.pose.position.x = p.pose.position.x;
marker.pose.position.y = p.pose.position.y;
diff --git a/localization/yabloc/yabloc_particle_filter/src/common/visualize.cpp b/localization/yabloc/yabloc_particle_filter/src/common/visualize.cpp
index 955ed84fdea2d..888baf0bea0ac 100644
--- a/localization/yabloc/yabloc_particle_filter/src/common/visualize.cpp
+++ b/localization/yabloc/yabloc_particle_filter/src/common/visualize.cpp
@@ -45,7 +45,8 @@ void ParticleVisualizer::publish(const ParticleArray & msg)
marker.scale.x = 0.3;
marker.scale.y = 0.1;
marker.scale.z = 0.1;
- marker.color = common::color_scale::rainbow(boundWeight(p.weight));
+ marker.color =
+ static_cast(common::color_scale::rainbow(boundWeight(p.weight)));
marker.pose.orientation = p.pose.orientation;
marker.pose.position.x = p.pose.position.x;
marker.pose.position.y = p.pose.position.y;
diff --git a/localization/yabloc/yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp b/localization/yabloc/yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp
index b321986240b69..e8c8890561a7f 100644
--- a/localization/yabloc/yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp
+++ b/localization/yabloc/yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp
@@ -136,7 +136,7 @@ void GnssParticleCorrector::publish_marker(const Eigen::Vector3f & position, boo
marker.pose.position.z = latest_height_.data;
float prob = i / 4.0f;
- marker.color = common::color_scale::rainbow(prob);
+ marker.color = static_cast(common::color_scale::rainbow(prob));
marker.color.a = 0.5f;
marker.scale.x = 0.1;
drawCircle(marker.points, weight_manager_.inverse_normal_pdf(prob, is_rtk_fixed));
diff --git a/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp b/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp
index ebd9c424edf5e..62d8ed826b373 100644
--- a/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp
+++ b/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp
@@ -18,7 +18,7 @@
#include
#include
-#include
+#include
#include
@@ -169,7 +169,7 @@ HierarchicalCostMap::MarkerArray HierarchicalCostMap::show_map_range() const
marker.header.frame_id = "map";
marker.id = id++;
marker.type = Marker::LINE_STRIP;
- marker.color = common::Color(0, 0, 1.0f, 1.0f);
+ marker.color = tier4_autoware_utils::createMarkerColor(0, 0, 1.0f, 1.0f);
marker.scale.x = 0.1;
Eigen::Vector2f xy = area.real_scale();
marker.points.push_back(point_msg(xy.x(), xy.y()));
diff --git a/localization/yabloc/yabloc_pose_initializer/src/camera/marker_module.cpp b/localization/yabloc/yabloc_pose_initializer/src/camera/marker_module.cpp
index c6c34f0e28a42..8a5fc65e2fac3 100644
--- a/localization/yabloc/yabloc_pose_initializer/src/camera/marker_module.cpp
+++ b/localization/yabloc/yabloc_pose_initializer/src/camera/marker_module.cpp
@@ -42,7 +42,8 @@ void MarkerModule::publish_marker(
marker.type = Marker::ARROW;
marker.id = i;
marker.ns = "arrow";
- marker.color = common::color_scale::rainbow(normalize(scores.at(i)));
+ marker.color =
+ static_cast(common::color_scale::rainbow(normalize(scores.at(i))));
marker.color.a = 0.5;
marker.pose.position.x = position.x();
diff --git a/perception/map_based_prediction/src/path_generator.cpp b/perception/map_based_prediction/src/path_generator.cpp
index 838d7b1c8e316..52e104f572f76 100644
--- a/perception/map_based_prediction/src/path_generator.cpp
+++ b/perception/map_based_prediction/src/path_generator.cpp
@@ -157,7 +157,7 @@ PredictedPath PathGenerator::generatePathForOnLaneVehicle(
return generateStraightPath(object, duration);
}
- return generatePolynomialPath(object, ref_paths, speed_limit, duration, lateral_duration);
+ return generatePolynomialPath(object, ref_paths, duration, lateral_duration, speed_limit);
}
PredictedPath PathGenerator::generateStraightPath(
diff --git a/planning/.pages b/planning/.pages
index 849d117b73b71..29b0f6a2cde56 100644
--- a/planning/.pages
+++ b/planning/.pages
@@ -14,7 +14,7 @@ nav:
- 'Dynamic Obstacle Avoidance': planning/autoware_behavior_path_dynamic_obstacle_avoidance_module
- 'Goal Planner': planning/behavior_path_goal_planner_module
- 'Lane Change': planning/behavior_path_lane_change_module
- - 'Side Shift': planning/behavior_path_side_shift_module
+ - 'Side Shift': planning/autoware_behavior_path_side_shift_module
- 'Start Planner': planning/behavior_path_start_planner_module
- 'Static Obstacle Avoidance': planning/autoware_behavior_path_static_obstacle_avoidance_module
- 'Behavior Velocity Planner':
@@ -25,17 +25,17 @@ nav:
- 'Crosswalk': planning/behavior_velocity_crosswalk_module
- 'Detection Area': planning/behavior_velocity_detection_area_module
- 'Dynamic Obstacle Stop': planning/behavior_velocity_dynamic_obstacle_stop_module
- - 'Intersection': planning/behavior_velocity_intersection_module
+ - 'Intersection': planning/autoware_behavior_velocity_intersection_module
- 'No Drivable Lane': planning/behavior_velocity_no_drivable_lane_module
- 'No Stopping Area': planning/behavior_velocity_no_stopping_area_module
- 'Occlusion Spot': planning/behavior_velocity_occlusion_spot_module
- 'Out of Lane': planning/behavior_velocity_out_of_lane_module
- - 'Run Out': planning/behavior_velocity_run_out_module
+ - 'Run Out': planning/autoware_behavior_velocity_run_out_module
- 'Speed Bump': planning/behavior_velocity_speed_bump_module
- 'Stop Line': planning/behavior_velocity_stop_line_module
- 'Traffic Light': planning/behavior_velocity_traffic_light_module
- 'Virtual Traffic Light': planning/autoware_behavior_velocity_virtual_traffic_light_module
- - 'Walkway': planning/behavior_velocity_walkway_module
+ - 'Walkway': planning/autoware_behavior_velocity_walkway_module
- 'Parking':
- 'Freespace Planner':
- 'About Freespace Planner': planning/freespace_planner
@@ -56,13 +56,13 @@ nav:
- 'About Path Smoother': planning/path_smoother
- 'Elastic Band': planning/path_smoother/docs/eb
- 'Sampling Based Planner':
- - 'Path Sample': planning/sampling_based_planner/path_sampler
- - 'Common library': planning/sampling_based_planner/sampler_common
- - 'Frenet Planner': planning/sampling_based_planner/frenet_planner
- - 'Bezier Sampler': planning/sampling_based_planner/bezier_sampler
+ - 'Path Sample': planning/sampling_based_planner/autoware_path_sampler
+ - 'Common library': planning/sampling_based_planner/autoware_sampler_common
+ - 'Frenet Planner': planning/sampling_based_planner/autoware_frenet_planner
+ - 'Bezier Sampler': planning/sampling_based_planner/autoware_bezier_sampler
- 'Surround Obstacle Checker':
- - 'About Surround Obstacle Checker': planning/surround_obstacle_checker
- - 'About Surround Obstacle Checker (Japanese)': planning/surround_obstacle_checker/surround_obstacle_checker-design.ja
+ - 'About Surround Obstacle Checker': planning/autoware_surround_obstacle_checker
+ - 'About Surround Obstacle Checker (Japanese)': planning/autoware_surround_obstacle_checker/surround_obstacle_checker-design.ja
- 'Motion Velocity Planner':
- 'About Motion Velocity Planner': planning/autoware_motion_velocity_planner_node/
- 'Available Modules':
@@ -74,7 +74,7 @@ nav:
- 'Static Centerline Generator': planning/autoware_static_centerline_generator
- 'API and Library':
- 'Costmap Generator': planning/costmap_generator
- - 'External Velocity Limit Selector': planning/external_velocity_limit_selector
+ - 'External Velocity Limit Selector': planning/autoware_external_velocity_limit_selector
- 'Objects of Interest Marker Interface': planning/objects_of_interest_marker_interface
- 'Route Handler': planning/route_handler
- 'RTC Interface': planning/rtc_interface
@@ -86,5 +86,5 @@ nav:
- 'Stop Reason Visualizer': https://github.com/autowarefoundation/autoware_tools/blob/main/planning/planning_debug_tools/doc-stop-reason-visualizer.md
- 'Planning Test Utils': planning/planning_test_utils
- 'Planning Test Manager': planning/autoware_planning_test_manager
- - 'Planning Topic Converter': planning/planning_topic_converter
+ - 'Planning Topic Converter': planning/autoware_planning_topic_converter
- 'Planning Validator': planning/planning_validator
diff --git a/planning/behavior_path_side_shift_module/CMakeLists.txt b/planning/autoware_behavior_path_side_shift_module/CMakeLists.txt
similarity index 92%
rename from planning/behavior_path_side_shift_module/CMakeLists.txt
rename to planning/autoware_behavior_path_side_shift_module/CMakeLists.txt
index 28009e48a4cc4..c36a4ffd73254 100644
--- a/planning/behavior_path_side_shift_module/CMakeLists.txt
+++ b/planning/autoware_behavior_path_side_shift_module/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
-project(behavior_path_side_shift_module)
+project(autoware_behavior_path_side_shift_module)
find_package(autoware_cmake REQUIRED)
autoware_package()
diff --git a/planning/behavior_path_side_shift_module/README.md b/planning/autoware_behavior_path_side_shift_module/README.md
similarity index 100%
rename from planning/behavior_path_side_shift_module/README.md
rename to planning/autoware_behavior_path_side_shift_module/README.md
diff --git a/planning/behavior_path_side_shift_module/config/side_shift.param.yaml b/planning/autoware_behavior_path_side_shift_module/config/side_shift.param.yaml
similarity index 100%
rename from planning/behavior_path_side_shift_module/config/side_shift.param.yaml
rename to planning/autoware_behavior_path_side_shift_module/config/side_shift.param.yaml
diff --git a/planning/behavior_path_side_shift_module/images/side_shift_status.drawio.svg b/planning/autoware_behavior_path_side_shift_module/images/side_shift_status.drawio.svg
similarity index 100%
rename from planning/behavior_path_side_shift_module/images/side_shift_status.drawio.svg
rename to planning/autoware_behavior_path_side_shift_module/images/side_shift_status.drawio.svg
diff --git a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/data_structs.hpp b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/data_structs.hpp
similarity index 87%
rename from planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/data_structs.hpp
rename to planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/data_structs.hpp
index 8059c46423dac..227b81e3d006f 100644
--- a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/data_structs.hpp
+++ b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/data_structs.hpp
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef BEHAVIOR_PATH_SIDE_SHIFT_MODULE__DATA_STRUCTS_HPP_
-#define BEHAVIOR_PATH_SIDE_SHIFT_MODULE__DATA_STRUCTS_HPP_
+#ifndef AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__DATA_STRUCTS_HPP_
+#define AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__DATA_STRUCTS_HPP_
#include "autoware_behavior_path_planner_common/utils/path_shifter/path_shifter.hpp"
@@ -51,4 +51,4 @@ struct SideShiftDebugData
};
} // namespace behavior_path_planner
-#endif // BEHAVIOR_PATH_SIDE_SHIFT_MODULE__DATA_STRUCTS_HPP_
+#endif // AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__DATA_STRUCTS_HPP_
diff --git a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/manager.hpp b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/manager.hpp
similarity index 85%
rename from planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/manager.hpp
rename to planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/manager.hpp
index 21621e1c7128c..7e03c77c757e8 100644
--- a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/manager.hpp
+++ b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/manager.hpp
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef BEHAVIOR_PATH_SIDE_SHIFT_MODULE__MANAGER_HPP_
-#define BEHAVIOR_PATH_SIDE_SHIFT_MODULE__MANAGER_HPP_
+#ifndef AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__MANAGER_HPP_
+#define AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__MANAGER_HPP_
#include "autoware_behavior_path_planner_common/interface/scene_module_manager_interface.hpp"
-#include "behavior_path_side_shift_module/scene.hpp"
+#include "autoware_behavior_path_side_shift_module/scene.hpp"
#include
@@ -50,4 +50,4 @@ class SideShiftModuleManager : public SceneModuleManagerInterface
} // namespace behavior_path_planner
-#endif // BEHAVIOR_PATH_SIDE_SHIFT_MODULE__MANAGER_HPP_
+#endif // AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__MANAGER_HPP_
diff --git a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/scene.hpp b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/scene.hpp
similarity index 94%
rename from planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/scene.hpp
rename to planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/scene.hpp
index accba00b81439..5c8442284e513 100644
--- a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/scene.hpp
+++ b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/scene.hpp
@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef BEHAVIOR_PATH_SIDE_SHIFT_MODULE__SCENE_HPP_
-#define BEHAVIOR_PATH_SIDE_SHIFT_MODULE__SCENE_HPP_
+#ifndef AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__SCENE_HPP_
+#define AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__SCENE_HPP_
#include "autoware_behavior_path_planner_common/interface/scene_module_interface.hpp"
#include "autoware_behavior_path_planner_common/utils/path_shifter/path_shifter.hpp"
-#include "behavior_path_side_shift_module/data_structs.hpp"
+#include "autoware_behavior_path_side_shift_module/data_structs.hpp"
#include
@@ -131,4 +131,4 @@ class SideShiftModule : public SceneModuleInterface
} // namespace behavior_path_planner
-#endif // BEHAVIOR_PATH_SIDE_SHIFT_MODULE__SCENE_HPP_
+#endif // AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__SCENE_HPP_
diff --git a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/utils.hpp b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/utils.hpp
similarity index 88%
rename from planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/utils.hpp
rename to planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/utils.hpp
index f53bd42363b55..e5973948af9b3 100644
--- a/planning/behavior_path_side_shift_module/include/behavior_path_side_shift_module/utils.hpp
+++ b/planning/autoware_behavior_path_side_shift_module/include/autoware_behavior_path_side_shift_module/utils.hpp
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef BEHAVIOR_PATH_SIDE_SHIFT_MODULE__UTILS_HPP_
-#define BEHAVIOR_PATH_SIDE_SHIFT_MODULE__UTILS_HPP_
+#ifndef AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__UTILS_HPP_
+#define AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__UTILS_HPP_
#include
#include
@@ -41,4 +41,4 @@ Point transformToGrid(
} // namespace behavior_path_planner
-#endif // BEHAVIOR_PATH_SIDE_SHIFT_MODULE__UTILS_HPP_
+#endif // AUTOWARE_BEHAVIOR_PATH_SIDE_SHIFT_MODULE__UTILS_HPP_
diff --git a/planning/behavior_path_side_shift_module/package.xml b/planning/autoware_behavior_path_side_shift_module/package.xml
similarity index 91%
rename from planning/behavior_path_side_shift_module/package.xml
rename to planning/autoware_behavior_path_side_shift_module/package.xml
index af2b3c121f090..98d765fbe2fc7 100644
--- a/planning/behavior_path_side_shift_module/package.xml
+++ b/planning/autoware_behavior_path_side_shift_module/package.xml
@@ -1,9 +1,9 @@
- behavior_path_side_shift_module
+ autoware_behavior_path_side_shift_module
0.1.0
- The behavior_path_side_shift_module package
+ The autoware_behavior_path_side_shift_module package
Satoshi Ota
Fumiya Watanabe
diff --git a/planning/behavior_path_side_shift_module/plugins.xml b/planning/autoware_behavior_path_side_shift_module/plugins.xml
similarity index 71%
rename from planning/behavior_path_side_shift_module/plugins.xml
rename to planning/autoware_behavior_path_side_shift_module/plugins.xml
index 2688e3a17c2b6..7be57efc71739 100644
--- a/planning/behavior_path_side_shift_module/plugins.xml
+++ b/planning/autoware_behavior_path_side_shift_module/plugins.xml
@@ -1,3 +1,3 @@
-
+
diff --git a/planning/behavior_path_side_shift_module/src/manager.cpp b/planning/autoware_behavior_path_side_shift_module/src/manager.cpp
similarity index 97%
rename from planning/behavior_path_side_shift_module/src/manager.cpp
rename to planning/autoware_behavior_path_side_shift_module/src/manager.cpp
index fa8d579da3d09..bee9d3c78bafc 100644
--- a/planning/behavior_path_side_shift_module/src/manager.cpp
+++ b/planning/autoware_behavior_path_side_shift_module/src/manager.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "behavior_path_side_shift_module/manager.hpp"
+#include "autoware_behavior_path_side_shift_module/manager.hpp"
#include "tier4_autoware_utils/ros/update_param.hpp"
diff --git a/planning/behavior_path_side_shift_module/src/scene.cpp b/planning/autoware_behavior_path_side_shift_module/src/scene.cpp
similarity index 99%
rename from planning/behavior_path_side_shift_module/src/scene.cpp
rename to planning/autoware_behavior_path_side_shift_module/src/scene.cpp
index c2b239b5dd4fa..e5ea0e4cca29c 100644
--- a/planning/behavior_path_side_shift_module/src/scene.cpp
+++ b/planning/autoware_behavior_path_side_shift_module/src/scene.cpp
@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "behavior_path_side_shift_module/scene.hpp"
+#include "autoware_behavior_path_side_shift_module/scene.hpp"
#include "autoware_behavior_path_planner_common/marker_utils/utils.hpp"
#include "autoware_behavior_path_planner_common/utils/drivable_area_expansion/static_drivable_area.hpp"
#include "autoware_behavior_path_planner_common/utils/path_utils.hpp"
#include "autoware_behavior_path_planner_common/utils/utils.hpp"
-#include "behavior_path_side_shift_module/utils.hpp"
+#include "autoware_behavior_path_side_shift_module/utils.hpp"
#include
diff --git a/planning/behavior_path_side_shift_module/src/utils.cpp b/planning/autoware_behavior_path_side_shift_module/src/utils.cpp
similarity index 97%
rename from planning/behavior_path_side_shift_module/src/utils.cpp
rename to planning/autoware_behavior_path_side_shift_module/src/utils.cpp
index 888a2e9e24d9f..507259d9e6e23 100644
--- a/planning/behavior_path_side_shift_module/src/utils.cpp
+++ b/planning/autoware_behavior_path_side_shift_module/src/utils.cpp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "behavior_path_side_shift_module/utils.hpp"
+#include "autoware_behavior_path_side_shift_module/utils.hpp"
#include "autoware_behavior_path_planner_common/utils/utils.hpp"
diff --git a/planning/behavior_path_side_shift_module/test/test_behavior_path_planner_node_interface.cpp b/planning/autoware_behavior_path_side_shift_module/test/test_behavior_path_planner_node_interface.cpp
similarity index 87%
rename from planning/behavior_path_side_shift_module/test/test_behavior_path_planner_node_interface.cpp
rename to planning/autoware_behavior_path_side_shift_module/test/test_behavior_path_planner_node_interface.cpp
index db1f5ee3560b1..244c59bf5e6f9 100644
--- a/planning/behavior_path_side_shift_module/test/test_behavior_path_planner_node_interface.cpp
+++ b/planning/autoware_behavior_path_side_shift_module/test/test_behavior_path_planner_node_interface.cpp
@@ -57,14 +57,15 @@ std::shared_ptr generateNode()
node_options.parameter_overrides(params);
test_utils::updateNodeOptions(
- node_options, {planning_test_utils_dir + "/config/test_common.param.yaml",
- planning_test_utils_dir + "/config/test_nearest_search.param.yaml",
- planning_test_utils_dir + "/config/test_vehicle_info.param.yaml",
- behavior_path_planner_dir + "/config/behavior_path_planner.param.yaml",
- behavior_path_planner_dir + "/config/drivable_area_expansion.param.yaml",
- behavior_path_planner_dir + "/config/scene_module_manager.param.yaml",
- ament_index_cpp::get_package_share_directory("behavior_path_side_shift_module") +
- "/config/side_shift.param.yaml"});
+ node_options,
+ {planning_test_utils_dir + "/config/test_common.param.yaml",
+ planning_test_utils_dir + "/config/test_nearest_search.param.yaml",
+ planning_test_utils_dir + "/config/test_vehicle_info.param.yaml",
+ behavior_path_planner_dir + "/config/behavior_path_planner.param.yaml",
+ behavior_path_planner_dir + "/config/drivable_area_expansion.param.yaml",
+ behavior_path_planner_dir + "/config/scene_module_manager.param.yaml",
+ ament_index_cpp::get_package_share_directory("autoware_behavior_path_side_shift_module") +
+ "/config/side_shift.param.yaml"});
return std::make_shared(node_options);
}
diff --git a/planning/behavior_velocity_intersection_module/CMakeLists.txt b/planning/autoware_behavior_velocity_intersection_module/CMakeLists.txt
similarity index 93%
rename from planning/behavior_velocity_intersection_module/CMakeLists.txt
rename to planning/autoware_behavior_velocity_intersection_module/CMakeLists.txt
index c02b5a3852722..f3b31001978e9 100644
--- a/planning/behavior_velocity_intersection_module/CMakeLists.txt
+++ b/planning/autoware_behavior_velocity_intersection_module/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
-project(behavior_velocity_intersection_module)
+project(autoware_behavior_velocity_intersection_module)
find_package(autoware_cmake REQUIRED)
autoware_package()
diff --git a/planning/behavior_velocity_intersection_module/README.md b/planning/autoware_behavior_velocity_intersection_module/README.md
similarity index 100%
rename from planning/behavior_velocity_intersection_module/README.md
rename to planning/autoware_behavior_velocity_intersection_module/README.md
diff --git a/planning/behavior_velocity_intersection_module/config/intersection.param.yaml b/planning/autoware_behavior_velocity_intersection_module/config/intersection.param.yaml
similarity index 100%
rename from planning/behavior_velocity_intersection_module/config/intersection.param.yaml
rename to planning/autoware_behavior_velocity_intersection_module/config/intersection.param.yaml
diff --git a/planning/behavior_velocity_intersection_module/docs/data-structure.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/data-structure.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/data-structure.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/data-structure.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/intersection-attention-ll-rr.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention-ll-rr.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/intersection-attention-ll-rr.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention-ll-rr.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/intersection-attention-lr-rl.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention-lr-rl.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/intersection-attention-lr-rl.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention-lr-rl.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/intersection-attention-straight.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention-straight.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/intersection-attention-straight.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention-straight.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/intersection-attention.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/intersection-attention.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/intersection-attention.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/intersection-stoplines.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/intersection-stoplines.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/intersection-stoplines.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/intersection-stoplines.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/intersection-topology.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/intersection-topology.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/intersection-topology.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/intersection-topology.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/merge_from_private.png b/planning/autoware_behavior_velocity_intersection_module/docs/merge_from_private.png
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/merge_from_private.png
rename to planning/autoware_behavior_velocity_intersection_module/docs/merge_from_private.png
diff --git a/planning/behavior_velocity_intersection_module/docs/occlusion-with-tl.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/occlusion-with-tl.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/occlusion-with-tl.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/occlusion-with-tl.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/occlusion-without-tl.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/occlusion-without-tl.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/occlusion-without-tl.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/occlusion-without-tl.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/occlusion-wo-tl-creeping.png b/planning/autoware_behavior_velocity_intersection_module/docs/occlusion-wo-tl-creeping.png
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/occlusion-wo-tl-creeping.png
rename to planning/autoware_behavior_velocity_intersection_module/docs/occlusion-wo-tl-creeping.png
diff --git a/planning/behavior_velocity_intersection_module/docs/occlusion_grid.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/occlusion_grid.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/occlusion_grid.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/occlusion_grid.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/pass-judge-line.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/pass-judge-line.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/pass-judge-line.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/pass-judge-line.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/signal-phase-group.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/signal-phase-group.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/signal-phase-group.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/signal-phase-group.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/static-occlusion-timeout.png b/planning/autoware_behavior_velocity_intersection_module/docs/static-occlusion-timeout.png
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/static-occlusion-timeout.png
rename to planning/autoware_behavior_velocity_intersection_module/docs/static-occlusion-timeout.png
diff --git a/planning/behavior_velocity_intersection_module/docs/stuck-vehicle.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/stuck-vehicle.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/stuck-vehicle.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/stuck-vehicle.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/traffic-light-specific-behavior.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/traffic-light-specific-behavior.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/traffic-light-specific-behavior.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/traffic-light-specific-behavior.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/ttc.gif b/planning/autoware_behavior_velocity_intersection_module/docs/ttc.gif
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/ttc.gif
rename to planning/autoware_behavior_velocity_intersection_module/docs/ttc.gif
diff --git a/planning/behavior_velocity_intersection_module/docs/ugly-intersection.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/ugly-intersection.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/ugly-intersection.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/ugly-intersection.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/upstream-velocity.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/upstream-velocity.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/upstream-velocity.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/upstream-velocity.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/docs/yield-stuck.drawio.svg b/planning/autoware_behavior_velocity_intersection_module/docs/yield-stuck.drawio.svg
similarity index 100%
rename from planning/behavior_velocity_intersection_module/docs/yield-stuck.drawio.svg
rename to planning/autoware_behavior_velocity_intersection_module/docs/yield-stuck.drawio.svg
diff --git a/planning/behavior_velocity_intersection_module/package.xml b/planning/autoware_behavior_velocity_intersection_module/package.xml
similarity index 91%
rename from planning/behavior_velocity_intersection_module/package.xml
rename to planning/autoware_behavior_velocity_intersection_module/package.xml
index 3694a395b3a53..204a267594c03 100644
--- a/planning/behavior_velocity_intersection_module/package.xml
+++ b/planning/autoware_behavior_velocity_intersection_module/package.xml
@@ -1,9 +1,9 @@
- behavior_velocity_intersection_module
+ autoware_behavior_velocity_intersection_module
0.1.0
- The behavior_velocity_intersection_module package
+ The autoware_behavior_velocity_intersection_module package
Mamoru Sobue
Takayuki Murooka
diff --git a/planning/autoware_behavior_velocity_intersection_module/plugins.xml b/planning/autoware_behavior_velocity_intersection_module/plugins.xml
new file mode 100644
index 0000000000000..d30fbb46e050e
--- /dev/null
+++ b/planning/autoware_behavior_velocity_intersection_module/plugins.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/planning/behavior_velocity_intersection_module/scripts/ttc.py b/planning/autoware_behavior_velocity_intersection_module/scripts/ttc.py
similarity index 100%
rename from planning/behavior_velocity_intersection_module/scripts/ttc.py
rename to planning/autoware_behavior_velocity_intersection_module/scripts/ttc.py
diff --git a/planning/behavior_velocity_intersection_module/src/debug.cpp b/planning/autoware_behavior_velocity_intersection_module/src/debug.cpp
similarity index 100%
rename from planning/behavior_velocity_intersection_module/src/debug.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/debug.cpp
diff --git a/planning/behavior_velocity_intersection_module/src/decision_result.cpp b/planning/autoware_behavior_velocity_intersection_module/src/decision_result.cpp
similarity index 96%
rename from planning/behavior_velocity_intersection_module/src/decision_result.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/decision_result.cpp
index 7ed896d1b4b55..0dc0e3aab4b87 100644
--- a/planning/behavior_velocity_intersection_module/src/decision_result.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/decision_result.cpp
@@ -14,7 +14,7 @@
#include "decision_result.hpp"
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
std::string formatDecisionResult(const DecisionResult & decision_result)
{
@@ -65,4 +65,4 @@ std::string formatDecisionResult(const DecisionResult & decision_result)
return "";
}
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
diff --git a/planning/behavior_velocity_intersection_module/src/decision_result.hpp b/planning/autoware_behavior_velocity_intersection_module/src/decision_result.hpp
similarity index 97%
rename from planning/behavior_velocity_intersection_module/src/decision_result.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/decision_result.hpp
index 5f642db3a462d..bf0b5520f7a32 100644
--- a/planning/behavior_velocity_intersection_module/src/decision_result.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/decision_result.hpp
@@ -19,7 +19,7 @@
#include
#include
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
/**
@@ -172,6 +172,6 @@ using DecisionResult = std::variant<
std::string formatDecisionResult(const DecisionResult & decision_result);
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
#endif // DECISION_RESULT_HPP_
diff --git a/planning/behavior_velocity_intersection_module/src/interpolated_path_info.hpp b/planning/autoware_behavior_velocity_intersection_module/src/interpolated_path_info.hpp
similarity index 93%
rename from planning/behavior_velocity_intersection_module/src/interpolated_path_info.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/interpolated_path_info.hpp
index b6ae84aa8488b..c855164e24d5b 100644
--- a/planning/behavior_velocity_intersection_module/src/interpolated_path_info.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/interpolated_path_info.hpp
@@ -23,7 +23,7 @@
#include
#include
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
/**
@@ -43,6 +43,6 @@ struct InterpolatedPathInfo
std::optional> lane_id_interval{std::nullopt};
};
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
#endif // INTERPOLATED_PATH_INFO_HPP_
diff --git a/planning/behavior_velocity_intersection_module/src/intersection_lanelets.cpp b/planning/autoware_behavior_velocity_intersection_module/src/intersection_lanelets.cpp
similarity index 97%
rename from planning/behavior_velocity_intersection_module/src/intersection_lanelets.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/intersection_lanelets.cpp
index 555ea424dfef0..bf833ee07c155 100644
--- a/planning/behavior_velocity_intersection_module/src/intersection_lanelets.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/intersection_lanelets.cpp
@@ -21,7 +21,7 @@
#include
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
void IntersectionLanelets::update(
@@ -79,4 +79,4 @@ void IntersectionLanelets::update(
}
}
}
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
diff --git a/planning/behavior_velocity_intersection_module/src/intersection_lanelets.hpp b/planning/autoware_behavior_velocity_intersection_module/src/intersection_lanelets.hpp
similarity index 98%
rename from planning/behavior_velocity_intersection_module/src/intersection_lanelets.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/intersection_lanelets.hpp
index 9624d375de122..3682787237d42 100644
--- a/planning/behavior_velocity_intersection_module/src/intersection_lanelets.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/intersection_lanelets.hpp
@@ -27,7 +27,7 @@
#include
#include
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
/**
@@ -190,6 +190,6 @@ struct PathLanelets
// conflicting lanelets plus the next lane part of the
// path
};
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
#endif // INTERSECTION_LANELETS_HPP_
diff --git a/planning/behavior_velocity_intersection_module/src/intersection_stoplines.hpp b/planning/autoware_behavior_velocity_intersection_module/src/intersection_stoplines.hpp
similarity index 95%
rename from planning/behavior_velocity_intersection_module/src/intersection_stoplines.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/intersection_stoplines.hpp
index 99d79d4468b38..85876ffc98380 100644
--- a/planning/behavior_velocity_intersection_module/src/intersection_stoplines.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/intersection_stoplines.hpp
@@ -17,7 +17,7 @@
#include
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
/**
@@ -72,6 +72,6 @@ struct IntersectionStopLines
*/
size_t occlusion_wo_tl_pass_judge_line{0};
};
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
#endif // INTERSECTION_STOPLINES_HPP_
diff --git a/planning/behavior_velocity_intersection_module/src/manager.cpp b/planning/autoware_behavior_velocity_intersection_module/src/manager.cpp
similarity index 100%
rename from planning/behavior_velocity_intersection_module/src/manager.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/manager.cpp
diff --git a/planning/behavior_velocity_intersection_module/src/manager.hpp b/planning/autoware_behavior_velocity_intersection_module/src/manager.hpp
similarity index 100%
rename from planning/behavior_velocity_intersection_module/src/manager.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/manager.hpp
diff --git a/planning/behavior_velocity_intersection_module/src/object_manager.cpp b/planning/autoware_behavior_velocity_intersection_module/src/object_manager.cpp
similarity index 95%
rename from planning/behavior_velocity_intersection_module/src/object_manager.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/object_manager.cpp
index d2c905673cee9..8ca860e23c111 100644
--- a/planning/behavior_velocity_intersection_module/src/object_manager.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/object_manager.cpp
@@ -64,7 +64,7 @@ tier4_autoware_utils::Polygon2d createOneStepPolygon(
} // namespace
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
namespace bg = boost::geometry;
@@ -201,7 +201,7 @@ std::shared_ptr ObjectInfoManager::registerObject(
const bool belong_intersection_area, const bool is_parked_vehicle)
{
if (objects_info_.count(uuid) == 0) {
- auto object = std::make_shared(uuid);
+ auto object = std::make_shared(uuid);
objects_info_[uuid] = object;
}
auto object = objects_info_[uuid];
@@ -219,7 +219,7 @@ std::shared_ptr ObjectInfoManager::registerObject(
void ObjectInfoManager::registerExistingObject(
const unique_identifier_msgs::msg::UUID & uuid, const bool belong_attention_area,
const bool belong_intersection_area, const bool is_parked_vehicle,
- std::shared_ptr object)
+ std::shared_ptr object)
{
objects_info_[uuid] = object;
if (belong_attention_area) {
@@ -249,7 +249,7 @@ std::vector> ObjectInfoManager::allObjects() const
return all_objects;
}
-std::optional findPassageInterval(
+std::optional findPassageInterval(
const autoware_perception_msgs::msg::PredictedPath & predicted_path,
const autoware_perception_msgs::msg::Shape & shape, const lanelet::BasicPolygon2d & ego_lane_poly,
const std::optional & first_attention_lane_opt,
@@ -284,25 +284,25 @@ std::optional findPassageInterval(
if (lanelet::geometry::inside(
first_attention_lane_opt.value(),
lanelet::BasicPoint2d(first_itr->position.x, first_itr->position.y))) {
- return intersection::CollisionInterval::LanePosition::FIRST;
+ return CollisionInterval::LanePosition::FIRST;
}
}
if (second_attention_lane_opt) {
if (lanelet::geometry::inside(
second_attention_lane_opt.value(),
lanelet::BasicPoint2d(first_itr->position.x, first_itr->position.y))) {
- return intersection::CollisionInterval::LanePosition::SECOND;
+ return CollisionInterval::LanePosition::SECOND;
}
}
- return intersection::CollisionInterval::LanePosition::ELSE;
+ return CollisionInterval::LanePosition::ELSE;
}();
std::vector path;
for (const auto & pose : predicted_path.path) {
path.push_back(pose);
}
- return intersection::CollisionInterval{
+ return CollisionInterval{
lane_position, path, {enter_idx, exit_idx}, {object_enter_time, object_exit_time}};
}
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
diff --git a/planning/behavior_velocity_intersection_module/src/object_manager.hpp b/planning/autoware_behavior_velocity_intersection_module/src/object_manager.hpp
similarity index 96%
rename from planning/behavior_velocity_intersection_module/src/object_manager.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/object_manager.hpp
index 180496bd6b18d..3d1113656c3e3 100644
--- a/planning/behavior_velocity_intersection_module/src/object_manager.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/object_manager.hpp
@@ -52,7 +52,7 @@ struct hash
};
} // namespace std
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
/**
@@ -234,8 +234,7 @@ class ObjectInfoManager
void registerExistingObject(
const unique_identifier_msgs::msg::UUID & uuid, const bool belong_attention_area,
- const bool belong_intersection_area, const bool is_parked,
- std::shared_ptr object);
+ const bool belong_intersection_area, const bool is_parked, std::shared_ptr object);
void clearObjects();
@@ -282,12 +281,12 @@ class ObjectInfoManager
/**
* @brief return the CollisionInterval struct if the predicted path collides ego path geometrically
*/
-std::optional findPassageInterval(
+std::optional findPassageInterval(
const autoware_perception_msgs::msg::PredictedPath & predicted_path,
const autoware_perception_msgs::msg::Shape & shape, const lanelet::BasicPolygon2d & ego_lane_poly,
const std::optional & first_attention_lane_opt,
const std::optional & second_attention_lane_opt);
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
#endif // OBJECT_MANAGER_HPP_
diff --git a/planning/behavior_velocity_intersection_module/src/result.hpp b/planning/autoware_behavior_velocity_intersection_module/src/result.hpp
similarity index 93%
rename from planning/behavior_velocity_intersection_module/src/result.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/result.hpp
index 5d82183cee2fb..da89920e59a85 100644
--- a/planning/behavior_velocity_intersection_module/src/result.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/result.hpp
@@ -18,7 +18,7 @@
#include
#include
-namespace behavior_velocity_planner::intersection
+namespace behavior_velocity_planner
{
template
@@ -48,6 +48,6 @@ Result make_err(Args &&... args)
return Result(Error{std::forward(args)...});
}
-} // namespace behavior_velocity_planner::intersection
+} // namespace behavior_velocity_planner
#endif // RESULT_HPP_
diff --git a/planning/behavior_velocity_intersection_module/src/scene_intersection.cpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection.cpp
similarity index 93%
rename from planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_intersection.cpp
index c27483ea1fa51..8e50c140894e7 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection.cpp
@@ -42,9 +42,6 @@ namespace behavior_velocity_planner
{
namespace bg = boost::geometry;
-using intersection::make_err;
-using intersection::make_ok;
-using intersection::Result;
using motion_utils::VelocityFactorInterface;
IntersectionModule::IntersectionModule(
@@ -105,8 +102,8 @@ bool IntersectionModule::modifyPathVelocity(PathWithLaneId * path, StopReason *
prev_decision_result_ = decision_result;
{
- const std::string decision_type = "intersection" + std::to_string(module_id_) + " : " +
- intersection::formatDecisionResult(decision_result);
+ const std::string decision_type =
+ "intersection" + std::to_string(module_id_) + " : " + formatDecisionResult(decision_result);
internal_debug_data_.decision_type = decision_type;
}
@@ -147,7 +144,7 @@ static std::string formatOcclusionType(const IntersectionModule::OcclusionType &
return "RTCOccluded";
}
-intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
+DecisionResult IntersectionModule::modifyPathVelocityDetail(
PathWithLaneId * path, [[maybe_unused]] StopReason * stop_reason)
{
const auto prepare_data = prepareIntersectionData(path);
@@ -187,18 +184,18 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
// ego path has just entered the entry of this intersection
// ==========================================================================================
if (!intersection_lanelets.first_attention_area()) {
- return intersection::InternalError{"attention area is empty"};
+ return InternalError{"attention area is empty"};
}
const auto first_attention_area = intersection_lanelets.first_attention_area().value();
const auto default_stopline_idx_opt = intersection_stoplines.default_stopline;
if (!default_stopline_idx_opt) {
- return intersection::InternalError{"default stop line is null"};
+ return InternalError{"default stop line is null"};
}
const auto default_stopline_idx = default_stopline_idx_opt.value();
const auto first_attention_stopline_idx_opt = intersection_stoplines.first_attention_stopline;
const auto occlusion_peeking_stopline_idx_opt = intersection_stoplines.occlusion_peeking_stopline;
if (!first_attention_stopline_idx_opt || !occlusion_peeking_stopline_idx_opt) {
- return intersection::InternalError{"occlusion stop line is null"};
+ return InternalError{"occlusion stop line is null"};
}
const auto first_attention_stopline_idx = first_attention_stopline_idx_opt.value();
const auto occlusion_stopline_idx = occlusion_peeking_stopline_idx_opt.value();
@@ -275,9 +272,9 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
const auto closest_idx = intersection_stoplines.closest_idx;
const std::string evasive_diag = generateEgoRiskEvasiveDiagnosis(
*path, closest_idx, time_distance_array, too_late_detect_objects, misjudge_objects);
- return intersection::OverPassJudge{safety_diag, evasive_diag};
+ return OverPassJudge{safety_diag, evasive_diag};
}
- return intersection::OverPassJudge{
+ return OverPassJudge{
"no collision is detected", "ego can safely pass the intersection at this rate"};
}
@@ -288,8 +285,7 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
// ==========================================================================================
std::string safety_report = safety_diag;
if (const bool collision_on_1st_attention_lane =
- has_collision &&
- (collision_position == intersection::CollisionInterval::LanePosition::FIRST);
+ has_collision && (collision_position == CollisionInterval::LanePosition::FIRST);
is_over_1st_pass_judge_line && is_over_2nd_pass_judge_line.has_value() &&
!is_over_2nd_pass_judge_line.value() && collision_on_1st_attention_lane) {
safety_report +=
@@ -329,19 +325,18 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
collision_state_machine_.getState() == StateMachine::State::STOP;
if (is_prioritized) {
- return intersection::FullyPrioritized{
+ return FullyPrioritized{
has_collision_with_margin, closest_idx, collision_stopline_idx, occlusion_stopline_idx,
safety_report};
}
// Safe
if (!is_occlusion_state && !has_collision_with_margin) {
- return intersection::Safe{
- closest_idx, collision_stopline_idx, occlusion_stopline_idx, occlusion_diag};
+ return Safe{closest_idx, collision_stopline_idx, occlusion_stopline_idx, occlusion_diag};
}
// Only collision
if (!is_occlusion_state && has_collision_with_margin) {
- return intersection::NonOccludedCollisionStop{
+ return NonOccludedCollisionStop{
closest_idx, collision_stopline_idx, occlusion_stopline_idx, occlusion_diag};
}
// Occluded
@@ -400,16 +395,16 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
const auto closest_idx = intersection_stoplines.closest_idx;
const std::string evasive_diag = generateEgoRiskEvasiveDiagnosis(
*path, closest_idx, time_distance_array, too_late_detect_objects, misjudge_objects);
- return intersection::OverPassJudge{
+ return OverPassJudge{
"already passed maximum peeking line in the absence of traffic light.\n" +
safety_report,
evasive_diag};
}
- return intersection::OverPassJudge{
+ return OverPassJudge{
"already passed maximum peeking line in the absence of traffic light safely",
"no evasive action required"};
}
- return intersection::OccludedAbsenceTrafficLight{
+ return OccludedAbsenceTrafficLight{
is_occlusion_cleared_with_margin,
has_collision_with_margin,
temporal_stop_before_attention_required,
@@ -439,8 +434,7 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
const bool release_static_occlusion_stuck =
(static_occlusion_timeout_state_machine_.getState() == StateMachine::State::GO);
if (!has_collision_with_margin && release_static_occlusion_stuck) {
- return intersection::Safe{
- closest_idx, collision_stopline_idx, occlusion_stopline_idx, occlusion_diag};
+ return Safe{closest_idx, collision_stopline_idx, occlusion_stopline_idx, occlusion_diag};
}
// occlusion_status is either STATICALLY_OCCLUDED or DYNAMICALLY_OCCLUDED
const double max_timeout =
@@ -453,7 +447,7 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
occlusion_stop_state_machine_.getDuration())
: (is_static_occlusion ? std::make_optional(max_timeout) : std::nullopt);
if (has_collision_with_margin) {
- return intersection::OccludedCollisionStop{
+ return OccludedCollisionStop{
is_occlusion_cleared_with_margin,
temporal_stop_before_attention_required,
closest_idx,
@@ -463,7 +457,7 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
static_occlusion_timeout,
occlusion_diag};
} else {
- return intersection::PeekingTowardOcclusion{
+ return PeekingTowardOcclusion{
is_occlusion_cleared_with_margin,
temporal_stop_before_attention_required,
closest_idx,
@@ -478,7 +472,7 @@ intersection::DecisionResult IntersectionModule::modifyPathVelocityDetail(
(planner_param_.occlusion.temporal_stop_before_attention_area || !has_traffic_light_)
? first_attention_stopline_idx
: occlusion_stopline_idx;
- return intersection::FirstWaitBeforeOcclusion{
+ return FirstWaitBeforeOcclusion{
is_occlusion_cleared_with_margin, closest_idx, default_stopline_idx, occlusion_stopline,
occlusion_diag};
}
@@ -505,7 +499,7 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- [[maybe_unused]] const intersection::InternalError & result,
+ [[maybe_unused]] const InternalError & result,
[[maybe_unused]] const tier4_planning_msgs::msg::PathWithLaneId & path,
[[maybe_unused]] bool * default_safety, [[maybe_unused]] double * default_distance,
[[maybe_unused]] bool * occlusion_safety, [[maybe_unused]] double * occlusion_distance)
@@ -515,7 +509,7 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- [[maybe_unused]] const intersection::OverPassJudge & result,
+ [[maybe_unused]] const OverPassJudge & result,
[[maybe_unused]] const tier4_planning_msgs::msg::PathWithLaneId & path,
[[maybe_unused]] bool * default_safety, [[maybe_unused]] double * default_distance,
[[maybe_unused]] bool * occlusion_safety, [[maybe_unused]] double * occlusion_distance)
@@ -525,7 +519,7 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::StuckStop & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ const StuckStop & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
bool * default_safety, double * default_distance, bool * occlusion_safety,
double * occlusion_distance)
{
@@ -545,9 +539,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::YieldStuckStop & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, [[maybe_unused]] double * occlusion_distance)
+ const YieldStuckStop & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ [[maybe_unused]] double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "YieldStuckStop");
const auto closest_idx = result.closest_idx;
@@ -560,9 +554,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::NonOccludedCollisionStop & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, double * occlusion_distance)
+ const NonOccludedCollisionStop & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "NonOccludedCollisionStop");
const auto closest_idx = result.closest_idx;
@@ -579,9 +573,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::FirstWaitBeforeOcclusion & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, double * occlusion_distance)
+ const FirstWaitBeforeOcclusion & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "FirstWaitBeforeOcclusion");
const auto closest_idx = result.closest_idx;
@@ -598,9 +592,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::PeekingTowardOcclusion & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, double * occlusion_distance)
+ const PeekingTowardOcclusion & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "PeekingTowardOcclusion");
const auto closest_idx = result.closest_idx;
@@ -617,9 +611,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::OccludedAbsenceTrafficLight & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, double * occlusion_distance)
+ const OccludedAbsenceTrafficLight & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "OccludedAbsenceTrafficLight");
const auto closest_idx = result.closest_idx;
@@ -634,9 +628,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::OccludedCollisionStop & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, double * occlusion_distance)
+ const OccludedCollisionStop & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "OccludedCollisionStop");
const auto closest_idx = result.closest_idx;
@@ -653,9 +647,8 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::Safe & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
- bool * default_safety, double * default_distance, bool * occlusion_safety,
- double * occlusion_distance)
+ const Safe & result, const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
+ double * default_distance, bool * occlusion_safety, double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "Safe");
const auto closest_idx = result.closest_idx;
@@ -672,9 +665,9 @@ void prepareRTCByDecisionResult(
template <>
void prepareRTCByDecisionResult(
- const intersection::FullyPrioritized & result,
- const tier4_planning_msgs::msg::PathWithLaneId & path, bool * default_safety,
- double * default_distance, bool * occlusion_safety, double * occlusion_distance)
+ const FullyPrioritized & result, const tier4_planning_msgs::msg::PathWithLaneId & path,
+ bool * default_safety, double * default_distance, bool * occlusion_safety,
+ double * occlusion_distance)
{
RCLCPP_DEBUG(rclcpp::get_logger("prepareRTCByDecisionResult"), "FullyPrioritized");
const auto closest_idx = result.closest_idx;
@@ -690,8 +683,7 @@ void prepareRTCByDecisionResult(
}
void IntersectionModule::prepareRTCStatus(
- const intersection::DecisionResult & decision_result,
- const tier4_planning_msgs::msg::PathWithLaneId & path)
+ const DecisionResult & decision_result, const tier4_planning_msgs::msg::PathWithLaneId & path)
{
bool default_safety = true;
double default_distance = std::numeric_limits::lowest();
@@ -705,7 +697,7 @@ void IntersectionModule::prepareRTCStatus(
setSafe(default_safety);
setDistance(default_distance);
occlusion_first_stop_required_ =
- std::holds_alternative(decision_result);
+ std::holds_alternative(decision_result);
}
template
@@ -723,7 +715,7 @@ template <>
void reactRTCApprovalByDecisionResult(
[[maybe_unused]] const bool rtc_default_approved,
[[maybe_unused]] const bool rtc_occlusion_approved,
- [[maybe_unused]] const intersection::InternalError & decision_result,
+ [[maybe_unused]] const InternalError & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
[[maybe_unused]] const double baselink2front,
[[maybe_unused]] tier4_planning_msgs::msg::PathWithLaneId * path,
@@ -738,7 +730,7 @@ template <>
void reactRTCApprovalByDecisionResult(
[[maybe_unused]] const bool rtc_default_approved,
[[maybe_unused]] const bool rtc_occlusion_approved,
- [[maybe_unused]] const intersection::OverPassJudge & decision_result,
+ [[maybe_unused]] const OverPassJudge & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
[[maybe_unused]] const double baselink2front,
[[maybe_unused]] tier4_planning_msgs::msg::PathWithLaneId * path,
@@ -752,7 +744,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::StuckStop & decision_result,
+ const StuckStop & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -799,7 +791,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::YieldStuckStop & decision_result,
+ const YieldStuckStop & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -832,7 +824,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::NonOccludedCollisionStop & decision_result,
+ const NonOccludedCollisionStop & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -876,7 +868,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::FirstWaitBeforeOcclusion & decision_result,
+ const FirstWaitBeforeOcclusion & decision_result,
const IntersectionModule::PlannerParam & planner_param, const double baselink2front,
tier4_planning_msgs::msg::PathWithLaneId * path, StopReason * stop_reason,
VelocityFactorInterface * velocity_factor, IntersectionModule::DebugData * debug_data)
@@ -927,7 +919,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::PeekingTowardOcclusion & decision_result,
+ const PeekingTowardOcclusion & decision_result,
const IntersectionModule::PlannerParam & planner_param, const double baselink2front,
tier4_planning_msgs::msg::PathWithLaneId * path, StopReason * stop_reason,
VelocityFactorInterface * velocity_factor, IntersectionModule::DebugData * debug_data)
@@ -983,7 +975,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::OccludedCollisionStop & decision_result,
+ const OccludedCollisionStop & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -1031,7 +1023,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::OccludedAbsenceTrafficLight & decision_result,
+ const OccludedAbsenceTrafficLight & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -1084,8 +1076,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
- const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::Safe & decision_result,
+ const bool rtc_default_approved, const bool rtc_occlusion_approved, const Safe & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -1128,7 +1119,7 @@ void reactRTCApprovalByDecisionResult(
template <>
void reactRTCApprovalByDecisionResult(
const bool rtc_default_approved, const bool rtc_occlusion_approved,
- const intersection::FullyPrioritized & decision_result,
+ const FullyPrioritized & decision_result,
[[maybe_unused]] const IntersectionModule::PlannerParam & planner_param,
const double baselink2front, tier4_planning_msgs::msg::PathWithLaneId * path,
StopReason * stop_reason, VelocityFactorInterface * velocity_factor,
@@ -1170,8 +1161,8 @@ void reactRTCApprovalByDecisionResult(
}
void IntersectionModule::reactRTCApproval(
- const intersection::DecisionResult & decision_result,
- tier4_planning_msgs::msg::PathWithLaneId * path, StopReason * stop_reason)
+ const DecisionResult & decision_result, tier4_planning_msgs::msg::PathWithLaneId * path,
+ StopReason * stop_reason)
{
const double baselink2front = planner_data_->vehicle_info_.max_longitudinal_offset_m;
std::visit(
@@ -1293,7 +1284,7 @@ void IntersectionModule::updateTrafficSignalObservation()
IntersectionModule::PassJudgeStatus IntersectionModule::isOverPassJudgeLinesStatus(
const tier4_planning_msgs::msg::PathWithLaneId & path, const bool is_occlusion_state,
- const intersection::IntersectionStopLines & intersection_stoplines)
+ const IntersectionStopLines & intersection_stoplines)
{
const auto & current_pose = planner_data_->current_odometry->pose;
const auto closest_idx = intersection_stoplines.closest_idx;
@@ -1346,12 +1337,11 @@ IntersectionModule::PassJudgeStatus IntersectionModule::isOverPassJudgeLinesStat
// as "was_safe"
// ==========================================================================================
const bool was_safe = [&]() {
- if (std::holds_alternative(prev_decision_result_)) {
+ if (std::holds_alternative(prev_decision_result_)) {
return true;
}
- if (std::holds_alternative(prev_decision_result_)) {
- const auto & state =
- std::get(prev_decision_result_);
+ if (std::holds_alternative(prev_decision_result_)) {
+ const auto & state = std::get(prev_decision_result_);
return !state.collision_detected;
}
return false;
diff --git a/planning/behavior_velocity_intersection_module/src/scene_intersection.hpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection.hpp
similarity index 89%
rename from planning/behavior_velocity_intersection_module/src/scene_intersection.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_intersection.hpp
index b86fd77491f54..b1cfcdee04fa6 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_intersection.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection.hpp
@@ -295,11 +295,9 @@ class IntersectionModule : public SceneModuleInterface
BLAME_AT_SECOND_PASS_JUDGE,
};
const bool collision_detected;
- const intersection::CollisionInterval::LanePosition collision_position;
- const std::vector>>
- too_late_detect_objects;
- const std::vector>>
- misjudge_objects;
+ const CollisionInterval::LanePosition collision_position;
+ const std::vector>> too_late_detect_objects;
+ const std::vector>> misjudge_objects;
};
IntersectionModule(
@@ -377,7 +375,7 @@ class IntersectionModule : public SceneModuleInterface
*/
//! cache IntersectionLanelets struct
- std::optional intersection_lanelets_{std::nullopt};
+ std::optional intersection_lanelets_{std::nullopt};
//! cache discretized occlusion detection lanelets
std::optional> occlusion_attention_divisions_{
@@ -400,7 +398,7 @@ class IntersectionModule : public SceneModuleInterface
bool is_permanent_go_{false};
//! for checking if ego is over the pass judge lines because previously the situation was SAFE
- intersection::DecisionResult prev_decision_result_{intersection::InternalError{""}};
+ DecisionResult prev_decision_result_{InternalError{""}};
//! flag if ego passed the 1st_pass_judge_line while peeking. If this is true, 1st_pass_judge_line
//! is treated as the same position as occlusion_peeking_stopline
@@ -427,7 +425,7 @@ class IntersectionModule : public SceneModuleInterface
StateMachine collision_state_machine_;
//! container for storing safety status of objects on the attention area
- intersection::ObjectInfoManager object_info_manager_;
+ ObjectInfoManager object_info_manager_;
/** @} */
private:
@@ -506,21 +504,20 @@ class IntersectionModule : public SceneModuleInterface
/**
* @brief analyze traffic_light/occupancy/objects context and return DecisionResult
*/
- intersection::DecisionResult modifyPathVelocityDetail(
- PathWithLaneId * path, StopReason * stop_reason);
+ DecisionResult modifyPathVelocityDetail(PathWithLaneId * path, StopReason * stop_reason);
/**
* @brief set RTC value according to calculated DecisionResult
*/
void prepareRTCStatus(
- const intersection::DecisionResult &, const tier4_planning_msgs::msg::PathWithLaneId & path);
+ const DecisionResult &, const tier4_planning_msgs::msg::PathWithLaneId & path);
/**
* @brief act based on current RTC approval
*/
void reactRTCApproval(
- const intersection::DecisionResult & decision_result,
- tier4_planning_msgs::msg::PathWithLaneId * path, StopReason * stop_reason);
+ const DecisionResult & decision_result, tier4_planning_msgs::msg::PathWithLaneId * path,
+ StopReason * stop_reason);
/** @}*/
private:
@@ -536,9 +533,9 @@ class IntersectionModule : public SceneModuleInterface
*/
struct BasicData
{
- intersection::InterpolatedPathInfo interpolated_path_info;
- intersection::IntersectionStopLines intersection_stoplines;
- intersection::PathLanelets path_lanelets;
+ InterpolatedPathInfo interpolated_path_info;
+ IntersectionStopLines intersection_stoplines;
+ PathLanelets path_lanelets;
};
/**
@@ -549,31 +546,30 @@ class IntersectionModule : public SceneModuleInterface
*
* To simplify modifyPathVelocityDetail(), this function is used at first
*/
- intersection::Result prepareIntersectionData(
- PathWithLaneId * path);
+ Result prepareIntersectionData(PathWithLaneId * path);
/**
* @brief find the associated stopline road marking of assigned lanelet
*/
std::optional getStopLineIndexFromMap(
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
lanelet::ConstLanelet assigned_lanelet) const;
/**
* @brief generate IntersectionStopLines
*/
- std::optional generateIntersectionStopLines(
+ std::optional generateIntersectionStopLines(
lanelet::ConstLanelet assigned_lanelet,
const lanelet::CompoundPolygon3d & first_conflicting_area,
const lanelet::ConstLanelet & first_attention_lane,
const std::optional & second_attention_area_opt,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
tier4_planning_msgs::msg::PathWithLaneId * original_path) const;
/**
* @brief generate IntersectionLanelets
*/
- intersection::IntersectionLanelets generateObjectiveLanelets(
+ IntersectionLanelets generateObjectiveLanelets(
lanelet::LaneletMapConstPtr lanelet_map_ptr,
lanelet::routing::RoutingGraphPtr routing_graph_ptr,
const lanelet::ConstLanelet assigned_lanelet) const;
@@ -581,9 +577,9 @@ class IntersectionModule : public SceneModuleInterface
/**
* @brief generate PathLanelets
*/
- std::optional generatePathLanelets(
+ std::optional generatePathLanelets(
const lanelet::ConstLanelets & lanelets_on_path,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const lanelet::CompoundPolygon3d & first_conflicting_area,
const std::vector & conflicting_areas,
const std::optional & first_attention_area,
@@ -637,10 +633,9 @@ class IntersectionModule : public SceneModuleInterface
* @attention this function has access to value() of intersection_lanelets_,
* intersection_lanelets.first_conflicting_lane(). They are ensured in prepareIntersectionData()
*/
- std::optional isStuckStatus(
+ std::optional isStuckStatus(
const tier4_planning_msgs::msg::PathWithLaneId & path,
- const intersection::IntersectionStopLines & intersection_stoplines,
- const intersection::PathLanelets & path_lanelets) const;
+ const IntersectionStopLines & intersection_stoplines, const PathLanelets & path_lanelets) const;
bool isTargetStuckVehicleType(
const autoware_perception_msgs::msg::PredictedObject & object) const;
@@ -651,7 +646,7 @@ class IntersectionModule : public SceneModuleInterface
/**
* @brief check stuck
*/
- bool checkStuckVehicleInIntersection(const intersection::PathLanelets & path_lanelets) const;
+ bool checkStuckVehicleInIntersection(const PathLanelets & path_lanelets) const;
/** @} */
private:
@@ -667,16 +662,16 @@ class IntersectionModule : public SceneModuleInterface
* @attention this function has access to value() of intersection_lanelets_,
* intersection_stoplines.default_stopline, intersection_stoplines.first_attention_stopline
*/
- std::optional isYieldStuckStatus(
+ std::optional isYieldStuckStatus(
const tier4_planning_msgs::msg::PathWithLaneId & path,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
- const intersection::IntersectionStopLines & intersection_stoplines) const;
+ const InterpolatedPathInfo & interpolated_path_info,
+ const IntersectionStopLines & intersection_stoplines) const;
/**
* @brief check yield stuck
*/
bool checkYieldStuckVehicleInIntersection(
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const lanelet::ConstLanelets & attention_lanelets) const;
/** @} */
@@ -698,15 +693,14 @@ class IntersectionModule : public SceneModuleInterface
bool /* reconciled occlusion disapproval */>
getOcclusionStatus(
const TrafficPrioritizedLevel & traffic_prioritized_level,
- const intersection::InterpolatedPathInfo & interpolated_path_info);
+ const InterpolatedPathInfo & interpolated_path_info);
/**
* @brief calculate detected occlusion status(NOT | STATICALLY | DYNAMICALLY)
* @attention this function has access to value() of intersection_lanelets_,
* intersection_lanelets.first_attention_area(), occlusion_attention_divisions_
*/
- OcclusionType detectOcclusion(
- const intersection::InterpolatedPathInfo & interpolated_path_info) const;
+ OcclusionType detectOcclusion(const InterpolatedPathInfo & interpolated_path_info) const;
/** @} */
private:
@@ -726,7 +720,7 @@ class IntersectionModule : public SceneModuleInterface
*/
PassJudgeStatus isOverPassJudgeLinesStatus(
const tier4_planning_msgs::msg::PathWithLaneId & path, const bool is_occlusion_state,
- const intersection::IntersectionStopLines & intersection_stoplines);
+ const IntersectionStopLines & intersection_stoplines);
/** @} */
private:
@@ -751,7 +745,7 @@ class IntersectionModule : public SceneModuleInterface
* @attention this function has access to value() of intersection_lanelets_
*/
void updateObjectInfoManagerCollision(
- const intersection::PathLanelets & path_lanelets, const TimeDistanceArray & time_distance_array,
+ const PathLanelets & path_lanelets, const TimeDistanceArray & time_distance_array,
const TrafficPrioritizedLevel & traffic_prioritized_level,
const bool passed_1st_judge_line_first_time, const bool passed_2nd_judge_line_first_time,
tier4_debug_msgs::msg::Float64MultiArrayStamped * object_ttc_time_array);
@@ -768,20 +762,18 @@ class IntersectionModule : public SceneModuleInterface
* @attention this function has access to value() of
* intersection_stoplines.occlusion_peeking_stopline
*/
- std::optional isGreenPseudoCollisionStatus(
+ std::optional isGreenPseudoCollisionStatus(
const size_t closest_idx, const size_t collision_stopline_idx,
- const intersection::IntersectionStopLines & intersection_stoplines) const;
+ const IntersectionStopLines & intersection_stoplines) const;
/**
* @brief generate the message explaining why too_late_detect_objects/misjudge_objects exist and
* blame past perception fault
*/
std::string generateDetectionBlameDiagnosis(
- const std::vector<
- std::pair>> &
+ const std::vector>> &
too_late_detect_objects,
- const std::vector<
- std::pair>> &
+ const std::vector>> &
misjudge_objects) const;
/**
@@ -791,11 +783,9 @@ class IntersectionModule : public SceneModuleInterface
std::string generateEgoRiskEvasiveDiagnosis(
const tier4_planning_msgs::msg::PathWithLaneId & path, const size_t closest_idx,
const TimeDistanceArray & ego_time_distance_array,
- const std::vector<
- std::pair>> &
+ const std::vector>> &
too_late_detect_objects,
- const std::vector<
- std::pair>> &
+ const std::vector>> &
misjudge_objects) const;
/**
@@ -818,7 +808,7 @@ class IntersectionModule : public SceneModuleInterface
*/
TimeDistanceArray calcIntersectionPassingTime(
const tier4_planning_msgs::msg::PathWithLaneId & path, const bool is_prioritized,
- const intersection::IntersectionStopLines & intersection_stoplines,
+ const IntersectionStopLines & intersection_stoplines,
tier4_debug_msgs::msg::Float64MultiArrayStamped * debug_ttc_array) const;
/** @} */
diff --git a/planning/behavior_velocity_intersection_module/src/scene_intersection_collision.cpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_collision.cpp
similarity index 94%
rename from planning/behavior_velocity_intersection_module/src/scene_intersection_collision.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_collision.cpp
index 131081c5e8ca0..48387bc6aa398 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_intersection_collision.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_collision.cpp
@@ -140,7 +140,7 @@ void IntersectionModule::updateObjectInfoManagerArea()
}
void IntersectionModule::updateObjectInfoManagerCollision(
- const intersection::PathLanelets & path_lanelets,
+ const PathLanelets & path_lanelets,
const IntersectionModule::TimeDistanceArray & time_distance_array,
const IntersectionModule::TrafficPrioritizedLevel & traffic_prioritized_level,
const bool passed_1st_judge_line_first_time, const bool passed_2nd_judge_line_first_time,
@@ -243,8 +243,8 @@ void IntersectionModule::updateObjectInfoManagerCollision(
// path, both will be null, which is interpreted as SAFE. if any of the path is "normal", either
// of them has value, not both
// ==========================================================================================
- std::optional unsafe_interval{std::nullopt};
- std::optional safe_interval{std::nullopt};
+ std::optional unsafe_interval{std::nullopt};
+ std::optional safe_interval{std::nullopt};
std::optional> object_debug_info{std::nullopt};
for (const auto & predicted_path_ptr : sorted_predicted_paths) {
@@ -256,7 +256,7 @@ void IntersectionModule::updateObjectInfoManagerCollision(
}
cutPredictPathWithinDuration(
planner_data_->predicted_objects->header.stamp, passing_time, &predicted_path);
- const auto object_passage_interval_opt = intersection::findPassageInterval(
+ const auto object_passage_interval_opt = findPassageInterval(
predicted_path, predicted_object.shape, ego_poly,
intersection_lanelets.first_attention_lane(),
intersection_lanelets.second_attention_lane());
@@ -362,27 +362,25 @@ void IntersectionModule::updateObjectInfoManagerCollision(
}
object_info->update_safety(unsafe_interval, safe_interval, safe_under_traffic_control);
if (passed_1st_judge_line_first_time) {
- object_info->setDecisionAt1stPassJudgeLinePassage(intersection::CollisionKnowledge{
+ object_info->setDecisionAt1stPassJudgeLinePassage(CollisionKnowledge{
clock_->now(), // stamp
unsafe_interval
- ? intersection::CollisionKnowledge::SafeType::UNSAFE
- : (safe_under_traffic_control
- ? intersection::CollisionKnowledge::SafeType::SAFE_UNDER_TRAFFIC_CONTROL
- : intersection::CollisionKnowledge::SafeType::SAFE), // safe
- unsafe_interval ? unsafe_interval : safe_interval, // interval
+ ? CollisionKnowledge::SafeType::UNSAFE
+ : (safe_under_traffic_control ? CollisionKnowledge::SafeType::SAFE_UNDER_TRAFFIC_CONTROL
+ : CollisionKnowledge::SafeType::SAFE), // safe
+ unsafe_interval ? unsafe_interval : safe_interval, // interval
predicted_object.kinematics.initial_twist_with_covariance.twist.linear
.x // observed_velocity
});
}
if (passed_2nd_judge_line_first_time) {
- object_info->setDecisionAt2ndPassJudgeLinePassage(intersection::CollisionKnowledge{
+ object_info->setDecisionAt2ndPassJudgeLinePassage(CollisionKnowledge{
clock_->now(), // stamp
unsafe_interval
- ? intersection::CollisionKnowledge::SafeType::UNSAFE
- : (safe_under_traffic_control
- ? intersection::CollisionKnowledge::SafeType::SAFE_UNDER_TRAFFIC_CONTROL
- : intersection::CollisionKnowledge::SafeType::SAFE), // safe
- unsafe_interval ? unsafe_interval : safe_interval, // interval
+ ? CollisionKnowledge::SafeType::UNSAFE
+ : (safe_under_traffic_control ? CollisionKnowledge::SafeType::SAFE_UNDER_TRAFFIC_CONTROL
+ : CollisionKnowledge::SafeType::SAFE), // safe
+ unsafe_interval ? unsafe_interval : safe_interval, // interval
predicted_object.kinematics.initial_twist_with_covariance.twist.linear
.x // observed_velocity
});
@@ -415,10 +413,9 @@ void IntersectionModule::cutPredictPathWithinDuration(
}
}
-std::optional
-IntersectionModule::isGreenPseudoCollisionStatus(
+std::optional IntersectionModule::isGreenPseudoCollisionStatus(
const size_t closest_idx, const size_t collision_stopline_idx,
- const intersection::IntersectionStopLines & intersection_stoplines) const
+ const IntersectionStopLines & intersection_stoplines) const
{
// ==========================================================================================
// if there are any vehicles on the attention area when ego entered the intersection on green
@@ -440,7 +437,7 @@ IntersectionModule::isGreenPseudoCollisionStatus(
});
if (exist_close_vehicles) {
const auto occlusion_stopline_idx = intersection_stoplines.occlusion_peeking_stopline.value();
- return intersection::NonOccludedCollisionStop{
+ return NonOccludedCollisionStop{
closest_idx, collision_stopline_idx, occlusion_stopline_idx, std::string("")};
}
}
@@ -448,11 +445,11 @@ IntersectionModule::isGreenPseudoCollisionStatus(
}
std::string IntersectionModule::generateDetectionBlameDiagnosis(
- const std::vector>> &
+ const std::vector<
+ std::pair>> &
too_late_detect_objects,
- const std::vector>> &
+ const std::vector<
+ std::pair>> &
misjudge_objects) const
{
std::string diag;
@@ -598,11 +595,11 @@ std::string IntersectionModule::generateDetectionBlameDiagnosis(
std::string IntersectionModule::generateEgoRiskEvasiveDiagnosis(
const tier4_planning_msgs::msg::PathWithLaneId & path, const size_t closest_idx,
const IntersectionModule::TimeDistanceArray & ego_time_distance_array,
- const std::vector>> &
+ const std::vector<
+ std::pair>> &
too_late_detect_objects,
- [[maybe_unused]] const std::vector>> &
+ [[maybe_unused]] const std::vector<
+ std::pair>> &
misjudge_objects) const
{
static constexpr double min_vel = 1e-2;
@@ -684,9 +681,8 @@ IntersectionModule::CollisionStatus IntersectionModule::detectCollision(
// that case is both "too late to stop" and "too late to go" for the planner. and basically
// detection side is responsible for this fault
// ==========================================================================================
- std::vector>>
- misjudge_objects;
- std::vector>>
+ std::vector>> misjudge_objects;
+ std::vector>>
too_late_detect_objects;
for (const auto & object_info : object_info_manager_.attentionObjects()) {
if (object_info->is_safe_under_traffic_control()) {
@@ -709,14 +705,14 @@ IntersectionModule::CollisionStatus IntersectionModule::detectCollision(
// visualized as "misjudge"
// ==========================================================================================
auto * debug_container = &debug_data_.unsafe_targets.objects;
- if (unsafe_info.lane_position == intersection::CollisionInterval::LanePosition::FIRST) {
+ if (unsafe_info.lane_position == CollisionInterval::LanePosition::FIRST) {
collision_at_first_lane = true;
} else {
collision_at_non_first_lane = true;
}
if (
is_over_1st_pass_judge_line &&
- unsafe_info.lane_position == intersection::CollisionInterval::LanePosition::FIRST) {
+ unsafe_info.lane_position == CollisionInterval::LanePosition::FIRST) {
const auto & decision_at_1st_pass_judge_opt =
object_info->decision_at_1st_pass_judge_line_passage();
if (!decision_at_1st_pass_judge_opt) {
@@ -725,9 +721,7 @@ IntersectionModule::CollisionStatus IntersectionModule::detectCollision(
debug_container = &debug_data_.too_late_detect_targets.objects;
} else {
const auto & decision_at_1st_pass_judge = decision_at_1st_pass_judge_opt.value();
- if (
- decision_at_1st_pass_judge.safe_type !=
- intersection::CollisionKnowledge::SafeType::UNSAFE) {
+ if (decision_at_1st_pass_judge.safe_type != CollisionKnowledge::SafeType::UNSAFE) {
misjudge_objects.emplace_back(
CollisionStatus::BlameType::BLAME_AT_FIRST_PASS_JUDGE, object_info);
debug_container = &debug_data_.misjudge_targets.objects;
@@ -747,9 +741,7 @@ IntersectionModule::CollisionStatus IntersectionModule::detectCollision(
debug_container = &debug_data_.too_late_detect_targets.objects;
} else {
const auto & decision_at_2nd_pass_judge = decision_at_2nd_pass_judge_opt.value();
- if (
- decision_at_2nd_pass_judge.safe_type !=
- intersection::CollisionKnowledge::SafeType::UNSAFE) {
+ if (decision_at_2nd_pass_judge.safe_type != CollisionKnowledge::SafeType::UNSAFE) {
misjudge_objects.emplace_back(
CollisionStatus::BlameType::BLAME_AT_SECOND_PASS_JUDGE, object_info);
debug_container = &debug_data_.misjudge_targets.objects;
@@ -763,12 +755,11 @@ IntersectionModule::CollisionStatus IntersectionModule::detectCollision(
debug_container->emplace_back(object_info->predicted_object());
}
if (collision_at_first_lane) {
- return {
- true, intersection::CollisionInterval::FIRST, too_late_detect_objects, misjudge_objects};
+ return {true, CollisionInterval::FIRST, too_late_detect_objects, misjudge_objects};
} else if (collision_at_non_first_lane) {
- return {true, intersection::CollisionInterval::ELSE, too_late_detect_objects, misjudge_objects};
+ return {true, CollisionInterval::ELSE, too_late_detect_objects, misjudge_objects};
}
- return {false, intersection::CollisionInterval::ELSE, too_late_detect_objects, misjudge_objects};
+ return {false, CollisionInterval::ELSE, too_late_detect_objects, misjudge_objects};
}
std::optional IntersectionModule::checkAngleForTargetLanelets(
@@ -811,7 +802,7 @@ std::optional IntersectionModule::checkAngleForTargetLanelets(
IntersectionModule::TimeDistanceArray IntersectionModule::calcIntersectionPassingTime(
const tier4_planning_msgs::msg::PathWithLaneId & path, const bool is_prioritized,
- const intersection::IntersectionStopLines & intersection_stoplines,
+ const IntersectionStopLines & intersection_stoplines,
tier4_debug_msgs::msg::Float64MultiArrayStamped * ego_ttc_array) const
{
const double intersection_velocity =
diff --git a/planning/behavior_velocity_intersection_module/src/scene_intersection_occlusion.cpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_occlusion.cpp
similarity index 99%
rename from planning/behavior_velocity_intersection_module/src/scene_intersection_occlusion.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_occlusion.cpp
index b741d43bb025a..0fb6042e5aadb 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_intersection_occlusion.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_occlusion.cpp
@@ -34,7 +34,7 @@ std::tuple<
bool /* reconciled occlusion disapproval */>
IntersectionModule::getOcclusionStatus(
const TrafficPrioritizedLevel & traffic_prioritized_level,
- const intersection::InterpolatedPathInfo & interpolated_path_info)
+ const InterpolatedPathInfo & interpolated_path_info)
{
const auto & intersection_lanelets = intersection_lanelets_.value();
const auto & occlusion_attention_lanelets = intersection_lanelets.occlusion_attention();
@@ -99,7 +99,7 @@ IntersectionModule::getOcclusionStatus(
}
IntersectionModule::OcclusionType IntersectionModule::detectOcclusion(
- const intersection::InterpolatedPathInfo & interpolated_path_info) const
+ const InterpolatedPathInfo & interpolated_path_info) const
{
const auto & intersection_lanelets = intersection_lanelets_.value();
const auto & adjacent_lanelets = intersection_lanelets.adjacent();
diff --git a/planning/behavior_velocity_intersection_module/src/scene_intersection_prepare_data.cpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_prepare_data.cpp
similarity index 96%
rename from planning/behavior_velocity_intersection_module/src/scene_intersection_prepare_data.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_prepare_data.cpp
index 9ea5360c3a176..d4466c1e9431b 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_intersection_prepare_data.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_prepare_data.cpp
@@ -161,12 +161,8 @@ namespace behavior_velocity_planner
{
namespace bg = boost::geometry;
-using intersection::make_err;
-using intersection::make_ok;
-using intersection::Result;
-
-Result
-IntersectionModule::prepareIntersectionData(PathWithLaneId * path)
+Result IntersectionModule::prepareIntersectionData(
+ PathWithLaneId * path)
{
const auto lanelet_map_ptr = planner_data_->route_handler_->getLaneletMapPtr();
const auto routing_graph_ptr = planner_data_->route_handler_->getRoutingGraphPtr();
@@ -191,13 +187,12 @@ IntersectionModule::prepareIntersectionData(PathWithLaneId * path)
const auto interpolated_path_info_opt = util::generateInterpolatedPath(
lane_id_, associative_ids_, *path, planner_param_.common.path_interpolation_ds, logger_);
if (!interpolated_path_info_opt) {
- return make_err(
- "splineInterpolate failed");
+ return make_err("splineInterpolate failed");
}
const auto & interpolated_path_info = interpolated_path_info_opt.value();
if (!interpolated_path_info.lane_id_interval) {
- return make_err(
+ return make_err(
"Path has no interval on intersection lane " + std::to_string(lane_id_));
}
@@ -231,8 +226,7 @@ IntersectionModule::prepareIntersectionData(PathWithLaneId * path)
const auto & first_conflicting_lane_opt = intersection_lanelets.first_conflicting_lane();
if (conflicting_lanelets.empty() || !first_conflicting_area_opt || !first_conflicting_lane_opt) {
// this is abnormal
- return make_err(
- "conflicting area is empty");
+ return make_err("conflicting area is empty");
}
const auto & first_conflicting_lane = first_conflicting_lane_opt.value();
const auto & first_conflicting_area = first_conflicting_area_opt.value();
@@ -250,7 +244,7 @@ IntersectionModule::prepareIntersectionData(PathWithLaneId * path)
assigned_lanelet, first_conflicting_area, dummy_first_attention_lane, second_attention_area_opt,
interpolated_path_info, path);
if (!intersection_stoplines_opt) {
- return make_err(
+ return make_err(
"failed to generate intersection_stoplines");
}
const auto & intersection_stoplines = intersection_stoplines_opt.value();
@@ -265,7 +259,7 @@ IntersectionModule::prepareIntersectionData(PathWithLaneId * path)
lanelets_on_path, interpolated_path_info, first_conflicting_area, conflicting_area,
first_attention_area_opt, intersection_lanelets.attention_area(), closest_idx);
if (!path_lanelets_opt.has_value()) {
- return make_err(
+ return make_err(
"failed to generate PathLanelets");
}
const auto & path_lanelets = path_lanelets_opt.value();
@@ -294,13 +288,12 @@ IntersectionModule::prepareIntersectionData(PathWithLaneId * path)
}
}
- return make_ok(
+ return make_ok(
interpolated_path_info, intersection_stoplines, path_lanelets);
}
std::optional IntersectionModule::getStopLineIndexFromMap(
- const intersection::InterpolatedPathInfo & interpolated_path_info,
- lanelet::ConstLanelet assigned_lanelet) const
+ const InterpolatedPathInfo & interpolated_path_info, lanelet::ConstLanelet assigned_lanelet) const
{
const auto & path = interpolated_path_info.path;
const auto & lane_interval = interpolated_path_info.lane_id_interval.value();
@@ -350,12 +343,11 @@ std::optional IntersectionModule::getStopLineIndexFromMap(
planner_data_->ego_nearest_yaw_threshold);
}
-std::optional
-IntersectionModule::generateIntersectionStopLines(
+std::optional IntersectionModule::generateIntersectionStopLines(
lanelet::ConstLanelet assigned_lanelet, const lanelet::CompoundPolygon3d & first_conflicting_area,
const lanelet::ConstLanelet & first_attention_lane,
const std::optional & second_attention_area_opt,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
tier4_planning_msgs::msg::PathWithLaneId * original_path) const
{
const bool use_stuck_stopline = planner_param_.stuck_vehicle.use_stuck_stopline;
@@ -555,7 +547,7 @@ IntersectionModule::generateIntersectionStopLines(
intersection_stoplines_temp.default_stopline;
}
- intersection::IntersectionStopLines intersection_stoplines;
+ IntersectionStopLines intersection_stoplines;
intersection_stoplines.closest_idx = intersection_stoplines_temp.closest_idx;
if (stuck_stopline_valid) {
intersection_stoplines.stuck_stopline = intersection_stoplines_temp.stuck_stopline;
@@ -585,7 +577,7 @@ IntersectionModule::generateIntersectionStopLines(
return intersection_stoplines;
}
-intersection::IntersectionLanelets IntersectionModule::generateObjectiveLanelets(
+IntersectionLanelets IntersectionModule::generateObjectiveLanelets(
lanelet::LaneletMapConstPtr lanelet_map_ptr, lanelet::routing::RoutingGraphPtr routing_graph_ptr,
const lanelet::ConstLanelet assigned_lanelet) const
{
@@ -736,7 +728,7 @@ intersection::IntersectionLanelets IntersectionModule::generateObjectiveLanelets
auto [attention_lanelets, original_attention_lanelet_sequences] =
util::mergeLaneletsByTopologicalSort(detection_and_preceding_lanelets, routing_graph_ptr);
- intersection::IntersectionLanelets result;
+ IntersectionLanelets result;
result.attention_ = std::move(attention_lanelets);
for (const auto & original_attention_lanelet_seq : original_attention_lanelet_sequences) {
// NOTE: in mergeLaneletsByTopologicalSort(), sub_ids are empty checked, so it is ensured that
@@ -786,9 +778,9 @@ intersection::IntersectionLanelets IntersectionModule::generateObjectiveLanelets
return result;
}
-std::optional IntersectionModule::generatePathLanelets(
+std::optional IntersectionModule::generatePathLanelets(
const lanelet::ConstLanelets & lanelets_on_path,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const lanelet::CompoundPolygon3d & first_conflicting_area,
const std::vector & conflicting_areas,
const std::optional & first_attention_area,
@@ -804,7 +796,7 @@ std::optional IntersectionModule::generatePathLanele
const auto assigned_lane_interval = assigned_lane_interval_opt.value();
const auto & path = interpolated_path_info.path;
- intersection::PathLanelets path_lanelets;
+ PathLanelets path_lanelets;
// prev
path_lanelets.prev = ::getPrevLanelets(lanelets_on_path, associative_ids_);
path_lanelets.all = path_lanelets.prev;
diff --git a/planning/behavior_velocity_intersection_module/src/scene_intersection_stuck.cpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_stuck.cpp
similarity index 95%
rename from planning/behavior_velocity_intersection_module/src/scene_intersection_stuck.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_stuck.cpp
index 498a902c032db..c7de1805327c3 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_intersection_stuck.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_intersection_stuck.cpp
@@ -118,10 +118,9 @@ namespace behavior_velocity_planner
{
namespace bg = boost::geometry;
-std::optional IntersectionModule::isStuckStatus(
+std::optional IntersectionModule::isStuckStatus(
const tier4_planning_msgs::msg::PathWithLaneId & path,
- const intersection::IntersectionStopLines & intersection_stoplines,
- const intersection::PathLanelets & path_lanelets) const
+ const IntersectionStopLines & intersection_stoplines, const PathLanelets & path_lanelets) const
{
const auto closest_idx = intersection_stoplines.closest_idx;
auto fromEgoDist = [&](const size_t index) {
@@ -162,8 +161,7 @@ std::optional IntersectionModule::isStuckStatus(
}
}
if (stopline_idx) {
- return intersection::StuckStop{
- closest_idx, stopline_idx.value(), occlusion_peeking_stopline_idx_opt};
+ return StuckStop{closest_idx, stopline_idx.value(), occlusion_peeking_stopline_idx_opt};
}
}
}
@@ -230,8 +228,7 @@ bool IntersectionModule::isTargetYieldStuckVehicleType(
return false;
}
-bool IntersectionModule::checkStuckVehicleInIntersection(
- const intersection::PathLanelets & path_lanelets) const
+bool IntersectionModule::checkStuckVehicleInIntersection(const PathLanelets & path_lanelets) const
{
using lanelet::utils::getArcCoordinates;
using lanelet::utils::getLaneletLength3d;
@@ -306,10 +303,10 @@ bool IntersectionModule::checkStuckVehicleInIntersection(
return false;
}
-std::optional IntersectionModule::isYieldStuckStatus(
+std::optional IntersectionModule::isYieldStuckStatus(
const tier4_planning_msgs::msg::PathWithLaneId & path,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
- const intersection::IntersectionStopLines & intersection_stoplines) const
+ const InterpolatedPathInfo & interpolated_path_info,
+ const IntersectionStopLines & intersection_stoplines) const
{
const auto closest_idx = intersection_stoplines.closest_idx;
auto fromEgoDist = [&](const size_t index) {
@@ -342,14 +339,14 @@ std::optional IntersectionModule::isYieldStuckStat
}
}
if (stopline_idx) {
- return intersection::YieldStuckStop{closest_idx, stopline_idx.value(), std::string("")};
+ return YieldStuckStop{closest_idx, stopline_idx.value(), std::string("")};
}
}
return std::nullopt;
}
bool IntersectionModule::checkYieldStuckVehicleInIntersection(
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const lanelet::ConstLanelets & attention_lanelets) const
{
const bool yield_stuck_detection_direction = [&]() {
diff --git a/planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
similarity index 99%
rename from planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
index 67da3c7a759fe..be8d94c3b306d 100644
--- a/planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
@@ -52,7 +52,7 @@ MergeFromPrivateRoadModule::MergeFromPrivateRoadModule(
static std::optional getFirstConflictingLanelet(
const lanelet::ConstLanelets & conflicting_lanelets,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const tier4_autoware_utils::LinearRing2d & footprint, const double vehicle_length)
{
const auto & path_ip = interpolated_path_info.path;
diff --git a/planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.hpp b/planning/autoware_behavior_velocity_intersection_module/src/scene_merge_from_private_road.hpp
similarity index 100%
rename from planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/scene_merge_from_private_road.hpp
diff --git a/planning/behavior_velocity_intersection_module/src/util.cpp b/planning/autoware_behavior_velocity_intersection_module/src/util.cpp
similarity index 97%
rename from planning/behavior_velocity_intersection_module/src/util.cpp
rename to planning/autoware_behavior_velocity_intersection_module/src/util.cpp
index 9c492e7a64cde..a083185786e42 100644
--- a/planning/behavior_velocity_intersection_module/src/util.cpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/util.cpp
@@ -129,8 +129,7 @@ std::optional> findLaneIdsInterval(
}
std::optional getFirstPointInsidePolygonByFootprint(
- const lanelet::CompoundPolygon3d & polygon,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const lanelet::CompoundPolygon3d & polygon, const InterpolatedPathInfo & interpolated_path_info,
const tier4_autoware_utils::LinearRing2d & footprint, const double vehicle_length)
{
const auto & path_ip = interpolated_path_info.path;
@@ -154,7 +153,7 @@ std::optional>
getFirstPointInsidePolygonsByFootprint(
const std::vector & polygons,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const tier4_autoware_utils::LinearRing2d & footprint, const double vehicle_length)
{
const auto & path_ip = interpolated_path_info.path;
@@ -356,12 +355,12 @@ bool hasAssociatedTrafficLight(lanelet::ConstLanelet lane)
return tl_id.has_value();
}
-std::optional generateInterpolatedPath(
+std::optional generateInterpolatedPath(
const lanelet::Id lane_id, const std::set & associative_lane_ids,
const tier4_planning_msgs::msg::PathWithLaneId & input_path, const double ds,
const rclcpp::Logger logger)
{
- intersection::InterpolatedPathInfo interpolated_path_info;
+ InterpolatedPathInfo interpolated_path_info;
if (!splineInterpolate(input_path, ds, interpolated_path_info.path, logger)) {
return std::nullopt;
}
diff --git a/planning/behavior_velocity_intersection_module/src/util.hpp b/planning/autoware_behavior_velocity_intersection_module/src/util.hpp
similarity index 95%
rename from planning/behavior_velocity_intersection_module/src/util.hpp
rename to planning/autoware_behavior_velocity_intersection_module/src/util.hpp
index 878253e6943a7..27200e663503d 100644
--- a/planning/behavior_velocity_intersection_module/src/util.hpp
+++ b/planning/autoware_behavior_velocity_intersection_module/src/util.hpp
@@ -98,7 +98,7 @@ bool hasAssociatedTrafficLight(lanelet::ConstLanelet lane);
/**
* @brief interpolate PathWithLaneId
*/
-std::optional generateInterpolatedPath(
+std::optional generateInterpolatedPath(
const lanelet::Id lane_id, const std::set & associative_lane_ids,
const tier4_planning_msgs::msg::PathWithLaneId & input_path, const double ds,
const rclcpp::Logger logger);
@@ -124,8 +124,7 @@ mergeLaneletsByTopologicalSort(
* polygon
*/
std::optional getFirstPointInsidePolygonByFootprint(
- const lanelet::CompoundPolygon3d & polygon,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const lanelet::CompoundPolygon3d & polygon, const InterpolatedPathInfo & interpolated_path_info,
const tier4_autoware_utils::LinearRing2d & footprint, const double vehicle_length);
/**
@@ -136,7 +135,7 @@ std::optional>
getFirstPointInsidePolygonsByFootprint(
const std::vector & polygons,
- const intersection::InterpolatedPathInfo & interpolated_path_info,
+ const InterpolatedPathInfo & interpolated_path_info,
const tier4_autoware_utils::LinearRing2d & footprint, const double vehicle_length);
std::vector getPolygon3dFromLanelets(
diff --git a/planning/autoware_behavior_velocity_planner/README.md b/planning/autoware_behavior_velocity_planner/README.md
index 0bbc2fad3c5a8..acf4c1ce78e56 100644
--- a/planning/autoware_behavior_velocity_planner/README.md
+++ b/planning/autoware_behavior_velocity_planner/README.md
@@ -9,16 +9,16 @@ It loads modules as plugins. Please refer to the links listed below for detail o
- [Blind Spot](../behavior_velocity_blind_spot_module/README.md)
- [Crosswalk](../behavior_velocity_crosswalk_module/README.md)
-- [Walkway](../behavior_velocity_walkway_module/README.md)
+- [Walkway](../autoware_behavior_velocity_walkway_module/README.md)
- [Detection Area](../behavior_velocity_detection_area_module/README.md)
-- [Intersection](../behavior_velocity_intersection_module/README.md)
+- [Intersection](../autoware_behavior_velocity_intersection_module/README.md)
- [MergeFromPrivate](../behavior_velocity_intersection_module/README.md#merge-from-private)
- [Stop Line](../behavior_velocity_stop_line_module/README.md)
- [Virtual Traffic Light](../autoware_behavior_velocity_virtual_traffic_light_module/README.md)
- [Traffic Light](../behavior_velocity_traffic_light_module/README.md)
- [Occlusion Spot](../behavior_velocity_occlusion_spot_module/README.md)
- [No Stopping Area](../behavior_velocity_no_stopping_area_module/README.md)
-- [Run Out](../behavior_velocity_run_out_module/README.md)
+- [Run Out](../autoware_behavior_velocity_run_out_module/README.md)
- [Speed Bump](../behavior_velocity_speed_bump_module/README.md)
- [Out of Lane](../behavior_velocity_out_of_lane_module/README.md)
diff --git a/planning/autoware_behavior_velocity_planner/package.xml b/planning/autoware_behavior_velocity_planner/package.xml
index 3d51c6b855eb7..c90d4d01cbca5 100644
--- a/planning/autoware_behavior_velocity_planner/package.xml
+++ b/planning/autoware_behavior_velocity_planner/package.xml
@@ -65,21 +65,21 @@
ament_cmake_ros
ament_lint_auto
+ autoware_behavior_velocity_intersection_module
+ autoware_behavior_velocity_run_out_module
autoware_behavior_velocity_virtual_traffic_light_module
+ autoware_behavior_velocity_walkway_module
autoware_lint_common
behavior_velocity_blind_spot_module
behavior_velocity_crosswalk_module
behavior_velocity_detection_area_module
- behavior_velocity_intersection_module
behavior_velocity_no_drivable_lane_module
behavior_velocity_no_stopping_area_module
behavior_velocity_occlusion_spot_module
behavior_velocity_out_of_lane_module
- behavior_velocity_run_out_module
behavior_velocity_speed_bump_module
behavior_velocity_stop_line_module
behavior_velocity_traffic_light_module
- behavior_velocity_walkway_module
rosidl_interface_packages
diff --git a/planning/autoware_behavior_velocity_planner/test/src/test_node_interface.cpp b/planning/autoware_behavior_velocity_planner/test/src/test_node_interface.cpp
index 7cbe0f65a1fc2..2e971ed238751 100644
--- a/planning/autoware_behavior_velocity_planner/test/src/test_node_interface.cpp
+++ b/planning/autoware_behavior_velocity_planner/test/src/test_node_interface.cpp
@@ -69,9 +69,9 @@ std::shared_ptr generateNode()
std::vector module_names;
module_names.emplace_back("behavior_velocity_planner::CrosswalkModulePlugin");
- module_names.emplace_back("behavior_velocity_planner::WalkwayModulePlugin");
+ module_names.emplace_back("autoware::behavior_velocity_planner::WalkwayModulePlugin");
module_names.emplace_back("behavior_velocity_planner::TrafficLightModulePlugin");
- module_names.emplace_back("behavior_velocity_planner::IntersectionModulePlugin");
+ module_names.emplace_back("autoware::behavior_velocity_planner::IntersectionModulePlugin");
module_names.emplace_back("behavior_velocity_planner::MergeFromPrivateModulePlugin");
module_names.emplace_back("behavior_velocity_planner::BlindSpotModulePlugin");
module_names.emplace_back("behavior_velocity_planner::DetectionAreaModulePlugin");
@@ -79,7 +79,7 @@ std::shared_ptr generateNode()
module_names.emplace_back("behavior_velocity_planner::NoStoppingAreaModulePlugin");
module_names.emplace_back("behavior_velocity_planner::StopLineModulePlugin");
module_names.emplace_back("behavior_velocity_planner::OcclusionSpotModulePlugin");
- module_names.emplace_back("behavior_velocity_planner::RunOutModulePlugin");
+ module_names.emplace_back("autoware::behavior_velocity_planner::RunOutModulePlugin");
module_names.emplace_back("behavior_velocity_planner::SpeedBumpModulePlugin");
module_names.emplace_back("behavior_velocity_planner::OutOfLaneModulePlugin");
module_names.emplace_back("behavior_velocity_planner::NoDrivableLaneModulePlugin");
@@ -98,12 +98,12 @@ std::shared_ptr generateNode()
behavior_velocity_planner_dir + "/config/behavior_velocity_planner.param.yaml",
get_behavior_velocity_module_config_no_prefix("blind_spot"),
get_behavior_velocity_module_config_no_prefix("crosswalk"),
- get_behavior_velocity_module_config_no_prefix("walkway"),
+ get_behavior_velocity_module_config("walkway"),
get_behavior_velocity_module_config_no_prefix("detection_area"),
- get_behavior_velocity_module_config_no_prefix("intersection"),
+ get_behavior_velocity_module_config("intersection"),
get_behavior_velocity_module_config_no_prefix("no_stopping_area"),
get_behavior_velocity_module_config_no_prefix("occlusion_spot"),
- get_behavior_velocity_module_config_no_prefix("run_out"),
+ get_behavior_velocity_module_config("run_out"),
get_behavior_velocity_module_config_no_prefix("speed_bump"),
get_behavior_velocity_module_config_no_prefix("stop_line"),
get_behavior_velocity_module_config_no_prefix("traffic_light"),
diff --git a/planning/behavior_velocity_run_out_module/CMakeLists.txt b/planning/autoware_behavior_velocity_run_out_module/CMakeLists.txt
similarity index 89%
rename from planning/behavior_velocity_run_out_module/CMakeLists.txt
rename to planning/autoware_behavior_velocity_run_out_module/CMakeLists.txt
index 3ee589ba69740..bcbe4ea12a643 100644
--- a/planning/behavior_velocity_run_out_module/CMakeLists.txt
+++ b/planning/autoware_behavior_velocity_run_out_module/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
-project(behavior_velocity_run_out_module)
+project(autoware_behavior_velocity_run_out_module)
find_package(autoware_cmake REQUIRED)
autoware_package()
diff --git a/planning/behavior_velocity_run_out_module/README.md b/planning/autoware_behavior_velocity_run_out_module/README.md
similarity index 100%
rename from planning/behavior_velocity_run_out_module/README.md
rename to planning/autoware_behavior_velocity_run_out_module/README.md
diff --git a/planning/behavior_velocity_run_out_module/config/run_out.param.yaml b/planning/autoware_behavior_velocity_run_out_module/config/run_out.param.yaml
similarity index 100%
rename from planning/behavior_velocity_run_out_module/config/run_out.param.yaml
rename to planning/autoware_behavior_velocity_run_out_module/config/run_out.param.yaml
diff --git a/planning/behavior_velocity_run_out_module/docs/calculate_expected_target_velocity.svg b/planning/autoware_behavior_velocity_run_out_module/docs/calculate_expected_target_velocity.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/calculate_expected_target_velocity.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/calculate_expected_target_velocity.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/collision_detection_for_shape.svg b/planning/autoware_behavior_velocity_run_out_module/docs/collision_detection_for_shape.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/collision_detection_for_shape.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/collision_detection_for_shape.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/collision_points.svg b/planning/autoware_behavior_velocity_run_out_module/docs/collision_points.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/collision_points.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/collision_points.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/create_dynamic_obstacle.svg b/planning/autoware_behavior_velocity_run_out_module/docs/create_dynamic_obstacle.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/create_dynamic_obstacle.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/create_dynamic_obstacle.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/create_polygon_on_path_point.svg b/planning/autoware_behavior_velocity_run_out_module/docs/create_polygon_on_path_point.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/create_polygon_on_path_point.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/create_polygon_on_path_point.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/ego_cut_line.svg b/planning/autoware_behavior_velocity_run_out_module/docs/ego_cut_line.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/ego_cut_line.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/ego_cut_line.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/exclude_obstacles_by_partition.svg b/planning/autoware_behavior_velocity_run_out_module/docs/exclude_obstacles_by_partition.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/exclude_obstacles_by_partition.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/exclude_obstacles_by_partition.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/insert_velocity.svg b/planning/autoware_behavior_velocity_run_out_module/docs/insert_velocity.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/insert_velocity.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/insert_velocity.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/insert_velocity_to_approach.svg b/planning/autoware_behavior_velocity_run_out_module/docs/insert_velocity_to_approach.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/insert_velocity_to_approach.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/insert_velocity_to_approach.svg
diff --git a/planning/behavior_velocity_run_out_module/docs/run_out_overview.svg b/planning/autoware_behavior_velocity_run_out_module/docs/run_out_overview.svg
similarity index 100%
rename from planning/behavior_velocity_run_out_module/docs/run_out_overview.svg
rename to planning/autoware_behavior_velocity_run_out_module/docs/run_out_overview.svg
diff --git a/planning/behavior_velocity_run_out_module/package.xml b/planning/autoware_behavior_velocity_run_out_module/package.xml
similarity index 92%
rename from planning/behavior_velocity_run_out_module/package.xml
rename to planning/autoware_behavior_velocity_run_out_module/package.xml
index 40e55b3de1a17..cb2c2df58ffe2 100644
--- a/planning/behavior_velocity_run_out_module/package.xml
+++ b/planning/autoware_behavior_velocity_run_out_module/package.xml
@@ -1,9 +1,9 @@
- behavior_velocity_run_out_module
+ autoware_behavior_velocity_run_out_module
0.1.0
- The behavior_velocity_run_out_module package
+ The autoware_behavior_velocity_run_out_module package
Tomohito Ando
Makoto Kurihara
diff --git a/planning/autoware_behavior_velocity_run_out_module/plugins.xml b/planning/autoware_behavior_velocity_run_out_module/plugins.xml
new file mode 100644
index 0000000000000..1ddcaf8e620e1
--- /dev/null
+++ b/planning/autoware_behavior_velocity_run_out_module/plugins.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/planning/behavior_velocity_run_out_module/src/debug.cpp b/planning/autoware_behavior_velocity_run_out_module/src/debug.cpp
similarity index 99%
rename from planning/behavior_velocity_run_out_module/src/debug.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/debug.cpp
index 3f6935365c1a4..129d5299385fd 100644
--- a/planning/behavior_velocity_run_out_module/src/debug.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/debug.cpp
@@ -28,7 +28,7 @@ using tier4_autoware_utils::createMarkerOrientation;
using tier4_autoware_utils::createMarkerScale;
using tier4_autoware_utils::createPoint;
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
namespace
{
@@ -368,4 +368,4 @@ motion_utils::VirtualWalls RunOutModule::createVirtualWalls()
return debug_ptr_->createVirtualWalls();
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_run_out_module/src/debug.hpp b/planning/autoware_behavior_velocity_run_out_module/src/debug.hpp
similarity index 97%
rename from planning/behavior_velocity_run_out_module/src/debug.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/debug.hpp
index fbf682279e363..3c6d475950e7c 100644
--- a/planning/behavior_velocity_run_out_module/src/debug.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/debug.hpp
@@ -24,8 +24,9 @@
#include
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::Polygon2d;
using sensor_msgs::msg::PointCloud2;
using tier4_debug_msgs::msg::Float32MultiArrayStamped;
using tier4_debug_msgs::msg::Int32Stamped;
@@ -149,6 +150,6 @@ class RunOutDebug
double height_{0};
};
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // DEBUG_HPP_
diff --git a/planning/behavior_velocity_run_out_module/src/dynamic_obstacle.cpp b/planning/autoware_behavior_velocity_run_out_module/src/dynamic_obstacle.cpp
similarity index 99%
rename from planning/behavior_velocity_run_out_module/src/dynamic_obstacle.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/dynamic_obstacle.cpp
index edf1d8cf48b8e..d204c7ec6f2fc 100644
--- a/planning/behavior_velocity_run_out_module/src/dynamic_obstacle.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/dynamic_obstacle.cpp
@@ -30,8 +30,10 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::Point2d;
+using ::behavior_velocity_planner::splineInterpolate;
namespace
{
// create quaternion facing to the nearest trajectory point
@@ -600,4 +602,4 @@ void DynamicObstacleCreatorForPoints::onSynchronizedPointCloud(
std::lock_guard lock(mutex_);
obstacle_points_map_filtered_ = lateral_nearest_points;
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_run_out_module/src/dynamic_obstacle.hpp b/planning/autoware_behavior_velocity_run_out_module/src/dynamic_obstacle.hpp
similarity index 96%
rename from planning/behavior_velocity_run_out_module/src/dynamic_obstacle.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/dynamic_obstacle.hpp
index c7d8ef674aafd..b7ed815829a2b 100644
--- a/planning/behavior_velocity_run_out_module/src/dynamic_obstacle.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/dynamic_obstacle.hpp
@@ -42,11 +42,12 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
using autoware_perception_msgs::msg::ObjectClassification;
using autoware_perception_msgs::msg::PredictedObjects;
using autoware_perception_msgs::msg::Shape;
+using ::behavior_velocity_planner::PlannerData;
using run_out_utils::DynamicObstacle;
using run_out_utils::DynamicObstacleData;
using run_out_utils::DynamicObstacleParam;
@@ -55,6 +56,7 @@ using run_out_utils::PredictedPath;
using tier4_planning_msgs::msg::PathPointWithLaneId;
using tier4_planning_msgs::msg::PathWithLaneId;
using PathPointsWithLaneId = std::vector;
+using ::behavior_velocity_planner::Polygons2d;
/**
* @brief base class for creating dynamic obstacles from multiple types of input
@@ -171,6 +173,6 @@ class DynamicObstacleCreatorForPoints : public DynamicObstacleCreator
pcl::PointCloud obstacle_points_map_filtered_;
};
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // DYNAMIC_OBSTACLE_HPP_
diff --git a/planning/behavior_velocity_run_out_module/src/manager.cpp b/planning/autoware_behavior_velocity_run_out_module/src/manager.cpp
similarity index 97%
rename from planning/behavior_velocity_run_out_module/src/manager.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/manager.cpp
index fb6a70070749a..5ee50863fd162 100644
--- a/planning/behavior_velocity_run_out_module/src/manager.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/manager.cpp
@@ -20,10 +20,10 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::SceneModuleManagerInterface;
using tier4_autoware_utils::getOrDeclareParameter;
-
RunOutModuleManager::RunOutModuleManager(rclcpp::Node & node)
: SceneModuleManagerInterface(node, getModuleName())
{
@@ -198,8 +198,9 @@ void RunOutModuleManager::setDynamicObstacleCreator(
break;
}
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#include
PLUGINLIB_EXPORT_CLASS(
- behavior_velocity_planner::RunOutModulePlugin, behavior_velocity_planner::PluginInterface)
+ autoware::behavior_velocity_planner::RunOutModulePlugin,
+ behavior_velocity_planner::PluginInterface)
diff --git a/planning/behavior_velocity_run_out_module/src/manager.hpp b/planning/autoware_behavior_velocity_run_out_module/src/manager.hpp
similarity index 86%
rename from planning/behavior_velocity_run_out_module/src/manager.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/manager.hpp
index ad35caf98149a..f0c49b99c99e5 100644
--- a/planning/behavior_velocity_run_out_module/src/manager.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/manager.hpp
@@ -23,8 +23,11 @@
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::PluginWrapper;
+using ::behavior_velocity_planner::SceneModuleInterface;
+using ::behavior_velocity_planner::SceneModuleManagerInterface;
class RunOutModuleManager : public SceneModuleManagerInterface
{
public:
@@ -49,6 +52,6 @@ class RunOutModulePlugin : public PluginWrapper
{
};
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // MANAGER_HPP_
diff --git a/planning/behavior_velocity_run_out_module/src/path_utils.cpp b/planning/autoware_behavior_velocity_run_out_module/src/path_utils.cpp
similarity index 90%
rename from planning/behavior_velocity_run_out_module/src/path_utils.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/path_utils.cpp
index be7db13cd3ca3..346a10646e6bc 100644
--- a/planning/behavior_velocity_run_out_module/src/path_utils.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/path_utils.cpp
@@ -15,7 +15,7 @@
#include "path_utils.hpp"
#include
-namespace behavior_velocity_planner::run_out_utils
+namespace autoware::behavior_velocity_planner::run_out_utils
{
geometry_msgs::msg::Point findLongitudinalNearestPoint(
const std::vector & points,
@@ -36,4 +36,4 @@ geometry_msgs::msg::Point findLongitudinalNearestPoint(
return min_dist_point;
}
-} // namespace behavior_velocity_planner::run_out_utils
+} // namespace autoware::behavior_velocity_planner::run_out_utils
diff --git a/planning/behavior_velocity_run_out_module/src/path_utils.hpp b/planning/autoware_behavior_velocity_run_out_module/src/path_utils.hpp
similarity index 92%
rename from planning/behavior_velocity_run_out_module/src/path_utils.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/path_utils.hpp
index 8867778520bc7..62591af27af11 100644
--- a/planning/behavior_velocity_run_out_module/src/path_utils.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/path_utils.hpp
@@ -25,7 +25,7 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
namespace run_out_utils
{
@@ -36,5 +36,5 @@ geometry_msgs::msg::Point findLongitudinalNearestPoint(
const std::vector & target_points);
} // namespace run_out_utils
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // PATH_UTILS_HPP_
diff --git a/planning/behavior_velocity_run_out_module/src/scene.cpp b/planning/autoware_behavior_velocity_run_out_module/src/scene.cpp
similarity index 99%
rename from planning/behavior_velocity_run_out_module/src/scene.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/scene.cpp
index de50b3161ea6f..351ed8e7a09b8 100644
--- a/planning/behavior_velocity_run_out_module/src/scene.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/scene.cpp
@@ -34,10 +34,14 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
namespace bg = boost::geometry;
+using ::behavior_velocity_planner::PlanningBehavior;
using object_recognition_utils::convertLabelToString;
+namespace planning_utils = ::behavior_velocity_planner::planning_utils;
+using ::behavior_velocity_planner::getCrosswalksOnPath;
+using ::behavior_velocity_planner::Polygon2d;
RunOutModule::RunOutModule(
const int64_t module_id, const std::shared_ptr & planner_data,
@@ -1031,4 +1035,4 @@ bool RunOutModule::isMomentaryDetection()
return elapsed_time_since_detection < planner_param_.ignore_momentary_detection.time_threshold;
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_run_out_module/src/scene.hpp b/planning/autoware_behavior_velocity_run_out_module/src/scene.hpp
similarity index 95%
rename from planning/behavior_velocity_run_out_module/src/scene.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/scene.hpp
index 2f797a44d06f7..85da1340a5a5d 100644
--- a/planning/behavior_velocity_run_out_module/src/scene.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/scene.hpp
@@ -30,7 +30,7 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
using autoware_perception_msgs::msg::PredictedObjects;
using run_out_utils::PlannerParam;
@@ -39,6 +39,11 @@ using tier4_debug_msgs::msg::Float32Stamped;
using tier4_planning_msgs::msg::PathPointWithLaneId;
using tier4_planning_msgs::msg::PathWithLaneId;
using BasicPolygons2d = std::vector;
+using ::behavior_velocity_planner::PathWithLaneId;
+using ::behavior_velocity_planner::PlannerData;
+using ::behavior_velocity_planner::Polygon2d;
+using ::behavior_velocity_planner::SceneModuleInterface;
+using ::behavior_velocity_planner::StopReason;
class RunOutModule : public SceneModuleInterface
{
@@ -177,6 +182,6 @@ class RunOutModule : public SceneModuleInterface
bool isMomentaryDetection();
};
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // SCENE_HPP_
diff --git a/planning/behavior_velocity_run_out_module/src/state_machine.cpp b/planning/autoware_behavior_velocity_run_out_module/src/state_machine.cpp
similarity index 96%
rename from planning/behavior_velocity_run_out_module/src/state_machine.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/state_machine.cpp
index 322264cad8501..484a7cdcd95e3 100644
--- a/planning/behavior_velocity_run_out_module/src/state_machine.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/state_machine.cpp
@@ -14,7 +14,7 @@
#include "state_machine.hpp"
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
namespace run_out_utils
{
@@ -107,4 +107,4 @@ void StateMachine::updateState(const StateInput & state_input, rclcpp::Clock & c
}
} // namespace run_out_utils
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_run_out_module/src/state_machine.hpp b/planning/autoware_behavior_velocity_run_out_module/src/state_machine.hpp
similarity index 92%
rename from planning/behavior_velocity_run_out_module/src/state_machine.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/state_machine.hpp
index 7c0de8078f435..b88aa821548bb 100644
--- a/planning/behavior_velocity_run_out_module/src/state_machine.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/state_machine.hpp
@@ -19,7 +19,7 @@
#include
-namespace behavior_velocity_planner::run_out_utils
+namespace autoware::behavior_velocity_planner::run_out_utils
{
class StateMachine
@@ -53,6 +53,6 @@ class StateMachine
std::optional prev_obstacle_{};
std::optional target_obstacle_{};
};
-} // namespace behavior_velocity_planner::run_out_utils
+} // namespace autoware::behavior_velocity_planner::run_out_utils
#endif // STATE_MACHINE_HPP_
diff --git a/planning/behavior_velocity_run_out_module/src/utils.cpp b/planning/autoware_behavior_velocity_run_out_module/src/utils.cpp
similarity index 98%
rename from planning/behavior_velocity_run_out_module/src/utils.cpp
rename to planning/autoware_behavior_velocity_run_out_module/src/utils.cpp
index c6eda901a1424..ec1cd460e1bb0 100644
--- a/planning/behavior_velocity_run_out_module/src/utils.cpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/utils.cpp
@@ -33,8 +33,11 @@
#endif
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::DetectionRange;
+using ::behavior_velocity_planner::PathPointWithLaneId;
+namespace planning_utils = ::behavior_velocity_planner::planning_utils;
namespace run_out_utils
{
Polygon2d createBoostPolyFromMsg(const std::vector & input_poly)
@@ -450,4 +453,4 @@ Polygons2d createMandatoryDetectionAreaPolygon(
}
} // namespace run_out_utils
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_run_out_module/src/utils.hpp b/planning/autoware_behavior_velocity_run_out_module/src/utils.hpp
similarity index 97%
rename from planning/behavior_velocity_run_out_module/src/utils.hpp
rename to planning/autoware_behavior_velocity_run_out_module/src/utils.hpp
index 9208e57dcdc7f..10f856b257a61 100644
--- a/planning/behavior_velocity_run_out_module/src/utils.hpp
+++ b/planning/autoware_behavior_velocity_run_out_module/src/utils.hpp
@@ -29,7 +29,7 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
namespace run_out_utils
{
@@ -38,6 +38,8 @@ using autoware_perception_msgs::msg::ObjectClassification;
using autoware_perception_msgs::msg::PredictedObjects;
using autoware_perception_msgs::msg::Shape;
using autoware_planning_msgs::msg::PathPoint;
+using ::behavior_velocity_planner::PlannerData;
+using ::behavior_velocity_planner::Polygons2d;
using tier4_autoware_utils::Box2d;
using tier4_autoware_utils::LineString2d;
using tier4_autoware_utils::Point2d;
@@ -271,5 +273,5 @@ Polygons2d createMandatoryDetectionAreaPolygon(
const PathWithLaneId & path, const PlannerData & planner_data,
const PlannerParam & planner_param);
} // namespace run_out_utils
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // UTILS_HPP_
diff --git a/planning/behavior_velocity_walkway_module/CMakeLists.txt b/planning/autoware_behavior_velocity_walkway_module/CMakeLists.txt
similarity index 86%
rename from planning/behavior_velocity_walkway_module/CMakeLists.txt
rename to planning/autoware_behavior_velocity_walkway_module/CMakeLists.txt
index 351a240743402..11504d9c8999c 100644
--- a/planning/behavior_velocity_walkway_module/CMakeLists.txt
+++ b/planning/autoware_behavior_velocity_walkway_module/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
-project(behavior_velocity_walkway_module)
+project(autoware_behavior_velocity_walkway_module)
find_package(autoware_cmake REQUIRED)
autoware_package()
diff --git a/planning/behavior_velocity_walkway_module/README.md b/planning/autoware_behavior_velocity_walkway_module/README.md
similarity index 100%
rename from planning/behavior_velocity_walkway_module/README.md
rename to planning/autoware_behavior_velocity_walkway_module/README.md
diff --git a/planning/behavior_velocity_walkway_module/config/walkway.param.yaml b/planning/autoware_behavior_velocity_walkway_module/config/walkway.param.yaml
similarity index 100%
rename from planning/behavior_velocity_walkway_module/config/walkway.param.yaml
rename to planning/autoware_behavior_velocity_walkway_module/config/walkway.param.yaml
diff --git a/planning/behavior_velocity_walkway_module/package.xml b/planning/autoware_behavior_velocity_walkway_module/package.xml
similarity index 90%
rename from planning/behavior_velocity_walkway_module/package.xml
rename to planning/autoware_behavior_velocity_walkway_module/package.xml
index ea6c7803717f9..59fa84acefcbb 100644
--- a/planning/behavior_velocity_walkway_module/package.xml
+++ b/planning/autoware_behavior_velocity_walkway_module/package.xml
@@ -1,9 +1,9 @@
- behavior_velocity_walkway_module
+ autoware_behavior_velocity_walkway_module
0.1.0
- The behavior_velocity_walkway_module package
+ The autoware_behavior_velocity_walkway_module package
Satoshi Ota
Tomoya Kimura
diff --git a/planning/autoware_behavior_velocity_walkway_module/plugins.xml b/planning/autoware_behavior_velocity_walkway_module/plugins.xml
new file mode 100644
index 0000000000000..d7f9e948154c1
--- /dev/null
+++ b/planning/autoware_behavior_velocity_walkway_module/plugins.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/planning/behavior_velocity_walkway_module/src/debug.cpp b/planning/autoware_behavior_velocity_walkway_module/src/debug.cpp
similarity index 95%
rename from planning/behavior_velocity_walkway_module/src/debug.cpp
rename to planning/autoware_behavior_velocity_walkway_module/src/debug.cpp
index 8814fa8271866..d26a47e512bc4 100644
--- a/planning/behavior_velocity_walkway_module/src/debug.cpp
+++ b/planning/autoware_behavior_velocity_walkway_module/src/debug.cpp
@@ -22,7 +22,7 @@
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
using motion_utils::createSlowDownVirtualWallMarker;
@@ -34,6 +34,7 @@ using tier4_autoware_utils::createMarkerColor;
using tier4_autoware_utils::createMarkerScale;
using tier4_autoware_utils::createPoint;
using visualization_msgs::msg::Marker;
+namespace planning_utils = ::behavior_velocity_planner::planning_utils;
namespace
{
@@ -98,4 +99,4 @@ visualization_msgs::msg::MarkerArray WalkwayModule::createDebugMarkerArray()
return debug_marker_array;
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_walkway_module/src/manager.cpp b/planning/autoware_behavior_velocity_walkway_module/src/manager.cpp
similarity index 88%
rename from planning/behavior_velocity_walkway_module/src/manager.cpp
rename to planning/autoware_behavior_velocity_walkway_module/src/manager.cpp
index d427e57009cf6..1adea85788d5b 100644
--- a/planning/behavior_velocity_walkway_module/src/manager.cpp
+++ b/planning/autoware_behavior_velocity_walkway_module/src/manager.cpp
@@ -23,11 +23,15 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::SceneModuleManagerInterface;
using lanelet::autoware::Crosswalk;
using tier4_autoware_utils::getOrDeclareParameter;
+namespace planning_utils = ::behavior_velocity_planner::planning_utils;
+using ::behavior_velocity_planner::getCrosswalkIdSetOnPath;
+using ::behavior_velocity_planner::getCrosswalksOnPath;
WalkwayModuleManager::WalkwayModuleManager(rclcpp::Node & node)
: SceneModuleManagerInterface(node, getModuleName())
@@ -100,8 +104,9 @@ WalkwayModuleManager::getModuleExpiredFunction(const PathWithLaneId & path)
return walkway_id_set.count(scene_module->getModuleId()) == 0;
};
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#include
PLUGINLIB_EXPORT_CLASS(
- behavior_velocity_planner::WalkwayModulePlugin, behavior_velocity_planner::PluginInterface)
+ autoware::behavior_velocity_planner::WalkwayModulePlugin,
+ ::behavior_velocity_planner::PluginInterface)
diff --git a/planning/behavior_velocity_walkway_module/src/manager.hpp b/planning/autoware_behavior_velocity_walkway_module/src/manager.hpp
similarity index 86%
rename from planning/behavior_velocity_walkway_module/src/manager.hpp
rename to planning/autoware_behavior_velocity_walkway_module/src/manager.hpp
index 5228445bb4e03..d19bf9c1c1d5f 100644
--- a/planning/behavior_velocity_walkway_module/src/manager.hpp
+++ b/planning/autoware_behavior_velocity_walkway_module/src/manager.hpp
@@ -31,9 +31,11 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
-
+using ::behavior_velocity_planner::PluginWrapper;
+using ::behavior_velocity_planner::SceneModuleInterface;
+using ::behavior_velocity_planner::SceneModuleManagerInterface;
using tier4_planning_msgs::msg::PathWithLaneId;
class WalkwayModuleManager : public SceneModuleManagerInterface
@@ -56,6 +58,6 @@ class WalkwayModulePlugin : public PluginWrapper
{
};
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // MANAGER_HPP_
diff --git a/planning/behavior_velocity_walkway_module/src/scene_walkway.cpp b/planning/autoware_behavior_velocity_walkway_module/src/scene_walkway.cpp
similarity index 91%
rename from planning/behavior_velocity_walkway_module/src/scene_walkway.cpp
rename to planning/autoware_behavior_velocity_walkway_module/src/scene_walkway.cpp
index 4a777d49f4fe6..236654e598216 100644
--- a/planning/behavior_velocity_walkway_module/src/scene_walkway.cpp
+++ b/planning/autoware_behavior_velocity_walkway_module/src/scene_walkway.cpp
@@ -19,14 +19,22 @@
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
namespace bg = boost::geometry;
+using ::behavior_velocity_planner::getLinestringIntersects;
+using ::behavior_velocity_planner::getPolygonIntersects;
+using ::behavior_velocity_planner::getStopLineFromMap;
+using ::behavior_velocity_planner::PlanningBehavior;
+using ::behavior_velocity_planner::SceneModuleInterface;
+using ::behavior_velocity_planner::StopFactor;
+using ::behavior_velocity_planner::VelocityFactor;
using motion_utils::calcLongitudinalOffsetPose;
using motion_utils::calcSignedArcLength;
using motion_utils::findNearestSegmentIndex;
using tier4_autoware_utils::createPoint;
using tier4_autoware_utils::getPose;
+namespace planning_utils = ::behavior_velocity_planner::planning_utils;
WalkwayModule::WalkwayModule(
const int64_t module_id, const lanelet::LaneletMapPtr & lanelet_map_ptr,
@@ -165,4 +173,4 @@ bool WalkwayModule::modifyPathVelocity(PathWithLaneId * path, StopReason * stop_
return true;
}
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
diff --git a/planning/behavior_velocity_walkway_module/src/scene_walkway.hpp b/planning/autoware_behavior_velocity_walkway_module/src/scene_walkway.hpp
similarity index 88%
rename from planning/behavior_velocity_walkway_module/src/scene_walkway.hpp
rename to planning/autoware_behavior_velocity_walkway_module/src/scene_walkway.hpp
index c372a5835f795..1928466400134 100644
--- a/planning/behavior_velocity_walkway_module/src/scene_walkway.hpp
+++ b/planning/autoware_behavior_velocity_walkway_module/src/scene_walkway.hpp
@@ -31,8 +31,12 @@
#include
#include
-namespace behavior_velocity_planner
+namespace autoware::behavior_velocity_planner
{
+using ::behavior_velocity_planner::DebugData;
+using ::behavior_velocity_planner::PathWithLaneId;
+using ::behavior_velocity_planner::SceneModuleInterface;
+using ::behavior_velocity_planner::StopReason;
class WalkwayModule : public SceneModuleInterface
{
@@ -77,6 +81,6 @@ class WalkwayModule : public SceneModuleInterface
// flag to use regulatory element
const bool use_regulatory_element_;
};
-} // namespace behavior_velocity_planner
+} // namespace autoware::behavior_velocity_planner
#endif // SCENE_WALKWAY_HPP_
diff --git a/planning/external_velocity_limit_selector/CMakeLists.txt b/planning/autoware_external_velocity_limit_selector/CMakeLists.txt
similarity index 73%
rename from planning/external_velocity_limit_selector/CMakeLists.txt
rename to planning/autoware_external_velocity_limit_selector/CMakeLists.txt
index db83dcf3cad4a..40f0ebb2a3eba 100644
--- a/planning/external_velocity_limit_selector/CMakeLists.txt
+++ b/planning/autoware_external_velocity_limit_selector/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
-project(external_velocity_limit_selector)
+project(autoware_external_velocity_limit_selector)
find_package(autoware_cmake REQUIRED)
autoware_package()
@@ -9,7 +9,7 @@ ament_auto_add_library(external_velocity_limit_selector_node SHARED
)
rclcpp_components_register_node(external_velocity_limit_selector_node
- PLUGIN "ExternalVelocityLimitSelectorNode"
+ PLUGIN "autoware::external_velocity_limit_selector::ExternalVelocityLimitSelectorNode"
EXECUTABLE external_velocity_limit_selector
)
diff --git a/planning/external_velocity_limit_selector/README.md b/planning/autoware_external_velocity_limit_selector/README.md
similarity index 100%
rename from planning/external_velocity_limit_selector/README.md
rename to planning/autoware_external_velocity_limit_selector/README.md
diff --git a/planning/external_velocity_limit_selector/config/default.param.yaml b/planning/autoware_external_velocity_limit_selector/config/default.param.yaml
similarity index 100%
rename from planning/external_velocity_limit_selector/config/default.param.yaml
rename to planning/autoware_external_velocity_limit_selector/config/default.param.yaml
diff --git a/planning/external_velocity_limit_selector/config/default_common.param.yaml b/planning/autoware_external_velocity_limit_selector/config/default_common.param.yaml
similarity index 100%
rename from planning/external_velocity_limit_selector/config/default_common.param.yaml
rename to planning/autoware_external_velocity_limit_selector/config/default_common.param.yaml
diff --git a/planning/external_velocity_limit_selector/image/external_velocity_limit_selector.png b/planning/autoware_external_velocity_limit_selector/image/external_velocity_limit_selector.png
similarity index 100%
rename from planning/external_velocity_limit_selector/image/external_velocity_limit_selector.png
rename to planning/autoware_external_velocity_limit_selector/image/external_velocity_limit_selector.png
diff --git a/planning/external_velocity_limit_selector/include/external_velocity_limit_selector/external_velocity_limit_selector_node.hpp b/planning/autoware_external_velocity_limit_selector/include/autoware_external_velocity_limit_selector/external_velocity_limit_selector_node.hpp
similarity index 87%
rename from planning/external_velocity_limit_selector/include/external_velocity_limit_selector/external_velocity_limit_selector_node.hpp
rename to planning/autoware_external_velocity_limit_selector/include/autoware_external_velocity_limit_selector/external_velocity_limit_selector_node.hpp
index 93fad135ac678..e4043f1aeb986 100644
--- a/planning/external_velocity_limit_selector/include/external_velocity_limit_selector/external_velocity_limit_selector_node.hpp
+++ b/planning/autoware_external_velocity_limit_selector/include/autoware_external_velocity_limit_selector/external_velocity_limit_selector_node.hpp
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef EXTERNAL_VELOCITY_LIMIT_SELECTOR__EXTERNAL_VELOCITY_LIMIT_SELECTOR_NODE_HPP_
-#define EXTERNAL_VELOCITY_LIMIT_SELECTOR__EXTERNAL_VELOCITY_LIMIT_SELECTOR_NODE_HPP_
+#ifndef AUTOWARE_EXTERNAL_VELOCITY_LIMIT_SELECTOR__EXTERNAL_VELOCITY_LIMIT_SELECTOR_NODE_HPP_
+#define AUTOWARE_EXTERNAL_VELOCITY_LIMIT_SELECTOR__EXTERNAL_VELOCITY_LIMIT_SELECTOR_NODE_HPP_
#include
@@ -26,6 +26,9 @@
#include
#include
+namespace autoware::external_velocity_limit_selector
+{
+
using tier4_debug_msgs::msg::StringStamped;
using tier4_planning_msgs::msg::VelocityLimit;
using tier4_planning_msgs::msg::VelocityLimitClearCommand;
@@ -77,5 +80,6 @@ class ExternalVelocityLimitSelectorNode : public rclcpp::Node
VelocityLimit hardest_limit_{};
VelocityLimitTable velocity_limit_table_;
};
+} // namespace autoware::external_velocity_limit_selector
-#endif // EXTERNAL_VELOCITY_LIMIT_SELECTOR__EXTERNAL_VELOCITY_LIMIT_SELECTOR_NODE_HPP_
+#endif // AUTOWARE_EXTERNAL_VELOCITY_LIMIT_SELECTOR__EXTERNAL_VELOCITY_LIMIT_SELECTOR_NODE_HPP_
diff --git a/planning/external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml b/planning/autoware_external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml
similarity index 74%
rename from planning/external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml
rename to planning/autoware_external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml
index 5ef089f3d3ee7..42c8709b6663a 100644
--- a/planning/external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml
+++ b/planning/autoware_external_velocity_limit_selector/launch/external_velocity_limit_selector.launch.xml
@@ -1,7 +1,7 @@
-
-
+
+
@@ -10,7 +10,7 @@
-
+