diff --git a/app/other/behaviour_tree_car/include/behaviour_tree/node/custom/CarCustomNodeParser.hpp b/app/other/behaviour_tree_car/include/behaviour_tree/node/custom/CarCustomNodeParser.hpp index eb268087..e2b304bf 100644 --- a/app/other/behaviour_tree_car/include/behaviour_tree/node/custom/CarCustomNodeParser.hpp +++ b/app/other/behaviour_tree_car/include/behaviour_tree/node/custom/CarCustomNodeParser.hpp @@ -213,8 +213,8 @@ namespace behaviour_tree::node::custom const double percentage = node.attribute("percentage").as_double(); if (percentage < 0 || percentage > 100) return tl::unexpected(fmt::format(R"(Invalid percentage: '{}' | Condition:SucceedOnAverageColour:['{}',{}])", percentage, name_attribute, index)); - return std::make_shared( - custom::condition::SucceedOnAnyNearbyScan( + return std::make_shared( + custom::condition::SucceedOnAverageColour( name_attribute, hex, percentage