From 93e040a090fdf2bcff5e75dde5b6cda9dfa64818 Mon Sep 17 00:00:00 2001 From: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com> Date: Mon, 10 Apr 2023 22:13:11 +0900 Subject: [PATCH] fix(behavior_path_planner): use snake case for debug marker (#3342) Signed-off-by: satoshi-ota --- .../scene_module/scene_module_interface.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 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 aa5378a921147..52a7e71b760d8 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 @@ -67,11 +67,7 @@ class SceneModuleInterface rtc_interface_ptr_map_(rtc_interface_ptr_map) { #ifdef USE_OLD_ARCHITECTURE - std::string module_ns; - module_ns.resize(name.size()); - std::transform(name.begin(), name.end(), module_ns.begin(), tolower); - - const auto ns = std::string("~/debug/") + module_ns; + const auto ns = std::string("~/debug/") + util::convertToSnakeCase(name); pub_debug_marker_ = node.create_publisher(ns, 20); #endif