From a29c7da82355f265505b30d48a297dd798e2e3b5 Mon Sep 17 00:00:00 2001 From: Kosuke Takeuchi <kosuke.tnp@gmail.com> Date: Tue, 7 Nov 2023 12:57:26 +0900 Subject: [PATCH] refactor(behavior_path_planner): add const to interface methods (#5497) rafactor(behavior_path_planner): add const to interface methods Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> --- .../scene_module/scene_module_interface.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planning/behavior_path_planner/include/behavior_path_planner/scene_module/scene_module_interface.hpp b/planning/behavior_path_planner/include/behavior_path_planner/scene_module/scene_module_interface.hpp index 7f24683e5680c..534594d93445c 100644 --- a/planning/behavior_path_planner/include/behavior_path_planner/scene_module/scene_module_interface.hpp +++ b/planning/behavior_path_planner/include/behavior_path_planner/scene_module/scene_module_interface.hpp @@ -289,7 +289,7 @@ class SceneModuleInterface return calcOffsetPose(dead_pose_.get(), base_link2front, 0.0, 0.0); } - void resetWallPoses() + void resetWallPoses() const { stop_pose_ = boost::none; slow_pose_ = boost::none; @@ -477,7 +477,7 @@ class SceneModuleInterface * @brief Return true if the activation command is received from the RTC interface. * If no RTC interface is registered, return true. */ - bool isActivated() + bool isActivated() const { if (rtc_interface_ptr_map_.empty()) { return true;