Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ class AreErrorCodesPresent : public BT::ConditionNode
const BT::NodeConfiguration & conf)
: BT::ConditionNode(condition_name, conf)
{
getInput<std::set<uint16_t>>("error_codes_to_check", error_codes_to_check_); //NOLINT
std::vector<int> error_codes_to_check_vector;
getInput("error_codes_to_check", error_codes_to_check_vector); //NOLINT

error_codes_to_check_ = std::set<uint16_t>(
error_codes_to_check_vector.begin(),
error_codes_to_check_vector.end());
}

AreErrorCodesPresent() = delete;
Expand All @@ -55,7 +60,7 @@ class AreErrorCodesPresent : public BT::ConditionNode
return
{
BT::InputPort<uint16_t>("error_code", "The active error codes"), //NOLINT
BT::InputPort<std::set<uint16_t>>("error_codes_to_check", "Error codes to check")//NOLINT
BT::InputPort<std::vector<int>>("error_codes_to_check", "Error codes to check")//NOLINT
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AreErrorCodesPresentFixture : public nav2_behavior_tree::BehaviorTreeTestF
void SetUp()
{
uint16_t error_code = ActionResult::NONE;
std::set<uint16_t> error_codes_to_check = {ActionResult::UNKNOWN}; //NOLINT
std::vector<int> error_codes_to_check = {ActionResult::UNKNOWN}; //NOLINT
config_->blackboard->set("error_code", error_code);
config_->blackboard->set("error_codes_to_check", error_codes_to_check);

Expand Down
Loading