From 12b65d83de5dc21125a9e6b499b6fbf99aecebeb Mon Sep 17 00:00:00 2001 From: Zulfaqar Azmi Date: Wed, 31 Jan 2024 19:30:55 +0900 Subject: [PATCH] add const Signed-off-by: Zulfaqar Azmi --- .../include/behavior_path_dynamic_avoidance_module/scene.hpp | 2 +- .../include/behavior_path_lane_change_module/interface.hpp | 2 +- .../interface/scene_module_interface.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp b/planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp index 5cae89a04a539..696df7f7971ea 100644 --- a/planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp +++ b/planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp @@ -345,7 +345,7 @@ class DynamicAvoidanceModule : public SceneModuleInterface bool canTransitFailureState() override { return false; } - ModuleStatus setInitState() override { return ModuleStatus::IDLE; } + ModuleStatus setInitState() const override { return ModuleStatus::IDLE; } bool isLabelTargetObstacle(const uint8_t label) const; void updateTargetObjects(); diff --git a/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/interface.hpp b/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/interface.hpp index 2ea62c09174a6..757ccd3a3116d 100644 --- a/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/interface.hpp +++ b/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/interface.hpp @@ -126,7 +126,7 @@ class LaneChangeInterface : public SceneModuleInterface bool canTransitFailureState() override; - ModuleStatus setInitState() override { return ModuleStatus::WAITING_APPROVAL; }; + ModuleStatus setInitState() const override { return ModuleStatus::WAITING_APPROVAL; }; void updateDebugMarker() const; diff --git a/planning/behavior_path_planner_common/include/behavior_path_planner_common/interface/scene_module_interface.hpp b/planning/behavior_path_planner_common/include/behavior_path_planner_common/interface/scene_module_interface.hpp index e6e5b84a8ce34..73f7448133ee7 100644 --- a/planning/behavior_path_planner_common/include/behavior_path_planner_common/interface/scene_module_interface.hpp +++ b/planning/behavior_path_planner_common/include/behavior_path_planner_common/interface/scene_module_interface.hpp @@ -459,7 +459,7 @@ class SceneModuleInterface /** * @brief Explicitly set the initial state */ - virtual ModuleStatus setInitState() { return ModuleStatus::RUNNING; } + virtual ModuleStatus setInitState() const { return ModuleStatus::RUNNING; } /** * @brief Get candidate path. This information is used for external judgement.