15 #include "rclcpp/detail/add_guard_condition_to_rcl_wait_set.hpp"
16 #include "rclcpp/exceptions.hpp"
24 add_guard_condition_to_rcl_wait_set(
33 rclcpp::exceptions::throw_from_rcl_error(
34 ret,
"failed to add guard condition to wait set");
A condition that can be waited on in a single wait set and asynchronously triggered.
RCLCPP_PUBLIC rcl_guard_condition_t & get_rcl_guard_condition()
Return the underlying rcl guard condition structure.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.
Container for subscription's, guard condition's, etc to be waited on.
#define RCL_RET_OK
Success return code.
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_wait_set_add_guard_condition(rcl_wait_set_t *wait_set, const rcl_guard_condition_t *guard_condition, size_t *index)
Store a pointer to the guard condition in the next empty spot in the set.