diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index d48fe8263c..f69b0ddb8e 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -2379,16 +2379,11 @@ bool ControllerManager::controller_sorting( // If there is no common parent, then they belong to 2 different sets auto following_ctrls_b = get_following_controller_names(ctrl_b.info.name, controllers); -<<<<<<< HEAD - if (following_ctrls_b.empty()) return true; - auto find_first_element = [&](const auto & controllers_list) -======= if (following_ctrls_b.empty()) { return true; } - auto find_first_element = [&](const auto & controllers_list) -> size_t ->>>>>>> 562f36d (Reformat with braces added (#1209)) + auto find_first_element = [&](const auto & controllers_list) -> int64_t { auto it = std::find_if( controllers.begin(), controllers.end(),