diff --git a/nav2_core/include/nav2_core/behavior_tree_navigator.hpp b/nav2_core/include/nav2_core/behavior_tree_navigator.hpp index 1a35aa66869..2989a140db9 100644 --- a/nav2_core/include/nav2_core/behavior_tree_navigator.hpp +++ b/nav2_core/include/nav2_core/behavior_tree_navigator.hpp @@ -204,7 +204,7 @@ class BehaviorTreeNavigator : public NavigatorBase // Create the Behavior Tree Action Server for this navigator bt_action_server_ = std::make_unique>( node, - getName(), + node->get_name(), plugin_lib_names, default_bt_xml_filename, std::bind(&BehaviorTreeNavigator::onGoalReceived, this, std::placeholders::_1),