Skip to content

Commit 570f786

Browse files
Merge pull request BehaviorTree#8 from umdlife/hotfix/action-input-port
Rename default port value for the bt action node wrapper to action_name
2 parents f063439 + 7abe38f commit 570f786

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/behaviortree_ros2/bt_action_node.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class RosActionNode : public BT::ActionNodeBase
167167
bool goal_received_;
168168
WrappedResult result_;
169169

170-
bool createClient(const std::string &server_name);
170+
bool createClient(const std::string &action_name);
171171
};
172172

173173
//----------------------------------------------------------------
@@ -188,10 +188,10 @@ template<class T> inline
188188
// - we use the action_name in the port and it is blackboard entry.
189189

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

0 commit comments

Comments
 (0)