FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix cancel goal with empty goal handle by vicmassy · Pull Request #53 · BehaviorTree/BehaviorTree.ROS2 · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .hpp  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ template<class T> inline
template<class T> inline
void RosActionNode<T>::cancelGoal()
{
if (!goal_handle_)
{
RCLCPP_WARN( node_->get_logger(), "cancelGoal called on an empty goal_handle");
return;
}

auto future_result = action_client_->async_get_result(goal_handle_);
auto future_cancel = action_client_->async_cancel_goal(goal_handle_);

Expand Down

Back | FazBrowse Home | New Git URL