Skip to content

Fix action node halt - #134

Open
KmakD wants to merge 1 commit into
BehaviorTree:humblefrom
KmakD:patch-1
Open

Fix action node halt#134
KmakD wants to merge 1 commit into
BehaviorTree:humblefrom
KmakD:patch-1

Conversation

@KmakD

@KmakD KmakD commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

The halt() method cancels the ROS action goal but lefts the node's NodeStatus at RUNNING. BT::Tree's destructor always calls haltTree(), so if the tree is explicitly halted and then destroyed, halt() is called twice. Calling the cancelGoal for the second time throws an uncaught rclcpp_action::exceptions::UnknownGoalHandleError and crashes the process.

This is already done in bt_service_node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant