Skip to content

Commit

Permalink
More descriptive warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
PositiveBeat committed Sep 27, 2024
1 parent 7de7f5f commit 8ff5090
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions behaviour_manager/nodes/behaviour_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ class BehaviourManager : public rclcpp::Node

if (node_map_.count(node_name) == 0)
{
std::string message;
message = node_name + " is not a managed lifecylce node, valid nodes are: \n";
for (auto &node_name : node_names_)
{
message += " " + node_name + '\n';
}
RCLCPP_WARN_STREAM(this->get_logger(), message);

response->success = false;
return;
}
Expand Down

0 comments on commit 8ff5090

Please sign in to comment.