Skip to content

Commit

Permalink
safe blocker bug on action cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloinigoblasco committed May 31, 2024
1 parent b1cfb1f commit 04ab109
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class SmaccActionClientBase : public ISmaccActionClient

std::optional<std::shared_future<typename GoalHandle::SharedPtr>> lastRequest_;
// typename GoalHandle::SharedPtr goalHandle_;
std::optional<std::shared_future<typename CancelResponse::SharedPtr>> lastCancelResponse_;


SmaccActionResultSignal onSucceeded_;
SmaccActionResultSignal onAborted_;
Expand Down Expand Up @@ -217,8 +219,8 @@ class SmaccActionClientBase : public ISmaccActionClient

virtual bool cancelGoal() override
{
auto fut = this->client_->async_cancel_all_goals();
fut.wait();
lastCancelResponse_= this->client_->async_cancel_all_goals();


// if (lastRequest_ && lastRequest_->valid())
// {
Expand Down

0 comments on commit 04ab109

Please sign in to comment.