Skip to content

Commit b20c93c

Browse files
author
vicmassy
committed
Remove getInput on bt_action_node
1 parent 570f786 commit b20c93c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/behaviortree_ros2/bt_action_node.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,6 @@ template<class T> inline
187187
// - we use the action_name in the port and it is a static string.
188188
// - we use the action_name in the port and it is blackboard entry.
189189

190-
// Port must exist, even if empty, since we have a default value at least
191-
if(!getInput<std::string>("action_name"))
192-
{
193-
throw std::logic_error(
194-
"Can't find port [action_name]. "
195-
"Did you forget to use RosActionNode::providedBasicPorts() "
196-
"in your derived class?");
197-
}
198-
199190
// check port remapping
200191
auto portIt = config().input_ports.find("action_name");
201192
if(portIt != config().input_ports.end())

0 commit comments

Comments
 (0)