Skip to content

Commit

Permalink
Add intra_process_action_server_is_available to IPC Client
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Passerino committed Aug 6, 2024
1 parent 4ddaaca commit a2bfddf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rclcpp_action/include/rclcpp_action/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ class ClientBase : public rclcpp::Waitable
);
}

/// Return true if there is an intra-process action server that is ready to take goal requests.
bool
intra_process_action_server_is_available()
{
if (auto ipm = weak_ipm_.lock()) {
return ipm->action_server_is_available(ipc_action_client_id_);
}
return false;
}

// -------------
// Waitables API

Expand Down

0 comments on commit a2bfddf

Please sign in to comment.