template<bool HasStrongOwnership>
class rclcpp::wait_set_policies::detail::StoragePolicyCommon< HasStrongOwnership >
Common structure for storage policies, which provides rcl wait set access.
template<bool HasStrongOwnership>
template<class SubscriptionsIterable , class GuardConditionsIterable , class ExtraGuardConditionsIterable , class TimersIterable , class ClientsIterable , class ServicesIterable , class WaitablesIterable >
rclcpp::wait_set_policies::detail::StoragePolicyCommon< HasStrongOwnership >::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 |
|
) |
| |
|
inlineexplicitprotected |
template<bool HasStrongOwnership>
template<class SubscriptionsIterable , class GuardConditionsIterable , class ExtraGuardConditionsIterable , class TimersIterable , class ClientsIterable , class ServicesIterable , class WaitablesIterable >
void rclcpp::wait_set_policies::detail::StoragePolicyCommon< HasStrongOwnership >::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 |
|
) |
| |
|
inlineprotected |
Rebuild the wait set, preparing it for the next wait call.
The wait set is rebuilt by:
- resizing the wait set if needed,
- clearing the wait set if not already done by resizing, and
- re-adding the entities.