Skip to content

Commit

Permalink
Update CarCustomNodeParser.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Apr 16, 2024
1 parent 8b1612e commit 799c29e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
custom::condition::SucceedOnAnyNearbyScan(
return std::make_shared<custom::condition::SucceedOnAverageColour>(
custom::condition::SucceedOnAverageColour(
name_attribute,
hex,
percentage
Expand Down

0 comments on commit 799c29e

Please sign in to comment.