rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__WAIT_SET_POLICIES__STATIC_STORAGE_HPP_
16 #define RCLCPP__WAIT_SET_POLICIES__STATIC_STORAGE_HPP_
35 namespace wait_set_policies
78 NumberOfGuardCondtions
119 template<
class ArrayOfExtraGuardConditions>
124 const ArrayOfExtraGuardConditions & extra_guard_conditions,
129 rclcpp::Context::SharedPtr context
134 extra_guard_conditions,
150 template<
class ArrayOfExtraGuardConditions>
157 extra_guard_conditions,
202 #endif // RCLCPP__WAIT_SET_POLICIES__STATIC_STORAGE_HPP_
std::shared_ptr< rclcpp::Waitable > waitable
Definition: static_storage.hpp:110
Common structure for storage policies, which provides rcl wait set access.
Definition: storage_policy_common.hpp:39
Options used to determine what parts of a subscription get added to or removed from a wait set.
Definition: subscription_wait_set_mask.hpp:24
std::array< std::shared_ptr< rclcpp::ServiceBase >, NumberOfServices > ArrayOfServices
Definition: static_storage.hpp:97
rclcpp::SubscriptionWaitSetMask mask
Definition: static_storage.hpp:60
std::array< SubscriptionEntry, NumberOfSubscriptions > ArrayOfSubscriptions
Definition: static_storage.hpp:73
std::array< WaitableEntry, NumberOfWaitables > ArrayOfWaitables
Definition: static_storage.hpp:116
WaitSet policy that explicitly provides fixed sized storage only.
Definition: static_storage.hpp:51
std::shared_ptr< void > associated_entity
Definition: static_storage.hpp:111
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
WaitableEntry(std::shared_ptr< rclcpp::Waitable > waitable_in=nullptr, std::shared_ptr< void > associated_entity_in=nullptr) noexcept
Conversion constructor, which is intentionally not marked explicit.
Definition: static_storage.hpp:103
SubscriptionEntry(std::shared_ptr< rclcpp::SubscriptionBase > subscription_in=nullptr, rclcpp::SubscriptionWaitSetMask mask_in={})
Conversion constructor, which is intentionally not marked explicit.
Definition: static_storage.hpp:63
std::shared_ptr< rclcpp::SubscriptionBase > subscription
Definition: static_storage.hpp:59
const ArrayOfServices services_
Definition: static_storage.hpp:195
void storage_release_ownerships()
Definition: static_storage.hpp:186
const ArrayOfSubscriptions subscriptions_
Definition: static_storage.hpp:191
const ArrayOfGuardConditions guard_conditions_
Definition: static_storage.hpp:192
Definition: static_storage.hpp:100
const ArrayOfTimers timers_
Definition: static_storage.hpp:193
const ArrayOfClients clients_
Definition: static_storage.hpp:194
std::array< std::shared_ptr< rclcpp::GuardCondition >, NumberOfGuardCondtions > ArrayOfGuardConditions
Definition: static_storage.hpp:79
void storage_rebuild_rcl_wait_set(const ArrayOfExtraGuardConditions &extra_guard_conditions)
Definition: static_storage.hpp:152
Definition: static_storage.hpp:56
const ArrayOfWaitables waitables_
Definition: static_storage.hpp:196
std::array< std::shared_ptr< rclcpp::ClientBase >, NumberOfClients > ArrayOfClients
Definition: static_storage.hpp:91
StoragePolicyCommon(const SubscriptionsIterable &subscriptions, const GuardConditionsIterable &guard_conditions, const ExtraGuardConditionsIterable &extra_guard_conditions, const TimersIterable &timers, const ClientsIterable &clients, const ServicesIterable &services, const WaitablesIterable &waitables, rclcpp::Context::SharedPtr context)
Definition: storage_policy_common.hpp:52
void storage_acquire_ownerships()
Definition: static_storage.hpp:180
StaticStorage(const ArrayOfSubscriptions &subscriptions, const ArrayOfGuardConditions &guard_conditions, const ArrayOfExtraGuardConditions &extra_guard_conditions, const ArrayOfTimers &timers, const ArrayOfClients &clients, const ArrayOfServices &services, const ArrayOfWaitables &waitables, rclcpp::Context::SharedPtr context)
Definition: static_storage.hpp:121
void storage_rebuild_rcl_wait_set_with_sets(const SubscriptionsIterable &subscriptions, const GuardConditionsIterable &guard_conditions, const ExtraGuardConditionsIterable &extra_guard_conditions, const TimersIterable &timers, const ClientsIterable &clients, const ServicesIterable &services, const WaitablesIterable &waitables)
Rebuild the wait set, preparing it for the next wait call.
Definition: storage_policy_common.hpp:168
std::array< std::shared_ptr< rclcpp::TimerBase >, NumberOfTimers > ArrayOfTimers
Definition: static_storage.hpp:85