Skip to content

Commit 0cc2da2

Browse files
Update bt_action_node.hpp (#89)
Fix to avoid crashing the BT
1 parent 3fbb45a commit 0cc2da2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ inline NodeStatus RosActionNode<T>::tick()
426426
if(!goal_handle_)
427427
{
428428
RCLCPP_ERROR(logger(), "Goal was rejected by server");
429+
return onFailure(GOAL_REJECTED_BY_SERVER);
429430
}
430431
else
431432
{

0 commit comments

Comments
 (0)