rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__GUARD_CONDITION_HPP_
16 #define RCLCPP__GUARD_CONDITION_HPP_
49 rclcpp::Context::SharedPtr context =
58 rclcpp::Context::SharedPtr
100 #endif // RCLCPP__GUARD_CONDITION_HPP_
A condition that can be waited on in a single wait set and asynchronously triggered.
Definition: guard_condition.hpp:31
void trigger()
Notify the wait set waiting on this condition, if any, that the condition had been met.
const rcl_guard_condition_t & get_rcl_guard_condition() const
Return the underlying rcl guard condition structure.
rclcpp::Context::SharedPtr context_
Definition: guard_condition.hpp:93
GuardCondition(rclcpp::Context::SharedPtr context=rclcpp::contexts::get_global_default_context())
Construct the guard condition, optionally specifying which Context to use.
std::atomic< bool > in_use_by_wait_set_
Definition: guard_condition.hpp:95
rcl_guard_condition_t rcl_guard_condition_
Definition: guard_condition.hpp:94
DefaultContext::SharedPtr get_global_default_context()
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
rclcpp::Context::SharedPtr get_context() const
Return the context used when creating this guard condition.
bool exchange_in_use_by_wait_set_state(bool in_use_state)
Exchange the "in use by wait set" state for this guard condition.
virtual ~GuardCondition()
#define RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(...)
Definition: macros.hpp:51