Skip to content

Commit

Permalink
Remove getInput on bt_action_node
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmassy committed Apr 3, 2023
1 parent 570f786 commit b20c93c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/behaviortree_ros2/bt_action_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,6 @@ template<class T> inline
// - we use the action_name in the port and it is a static string.
// - we use the action_name in the port and it is blackboard entry.

// Port must exist, even if empty, since we have a default value at least
if(!getInput<std::string>("action_name"))
{
throw std::logic_error(
"Can't find port [action_name]. "
"Did you forget to use RosActionNode::providedBasicPorts() "
"in your derived class?");
}

// check port remapping
auto portIt = config().input_ports.find("action_name");
if(portIt != config().input_ports.end())
Expand Down

0 comments on commit b20c93c

Please sign in to comment.