Template Class AllocatorMemoryStrategy
Defined in File allocator_memory_strategy.hpp
Inheritance Relationships
Base Type
public rclcpp::memory_strategy::MemoryStrategy
(Class MemoryStrategy)
Class Documentation
-
template<typename Alloc = std::allocator<void>>
class AllocatorMemoryStrategy : public rclcpp::memory_strategy::MemoryStrategy Delegate for handling memory allocations while the Executor is executing.
By default, the memory strategy dynamically allocates memory for structures that come in from the rmw implementation after the executor waits for work, based on the number of entities that come through.
Public Types
-
using VoidAllocTraits = typename allocator::AllocRebind<void*, Alloc>
-
using VoidAlloc = typename VoidAllocTraits::allocator_type
Public Functions
-
inline AllocatorMemoryStrategy()
-
inline virtual void add_guard_condition(const rclcpp::GuardCondition &guard_condition) override
-
inline virtual void remove_guard_condition(const rclcpp::GuardCondition *guard_condition) override
-
inline virtual void clear_handles() override
-
inline virtual void remove_null_handles(rcl_wait_set_t *wait_set) override
-
inline virtual bool collect_entities(const WeakCallbackGroupsToNodesMap &weak_groups_to_nodes) override
-
inline virtual bool add_handles_to_wait_set(rcl_wait_set_t *wait_set) override
-
inline virtual void get_next_subscription(rclcpp::AnyExecutable &any_exec, const WeakCallbackGroupsToNodesMap &weak_groups_to_nodes) override
-
inline virtual void get_next_service(rclcpp::AnyExecutable &any_exec, const WeakCallbackGroupsToNodesMap &weak_groups_to_nodes) override
-
inline virtual void get_next_client(rclcpp::AnyExecutable &any_exec, const WeakCallbackGroupsToNodesMap &weak_groups_to_nodes) override
-
inline virtual void get_next_timer(rclcpp::AnyExecutable &any_exec, const WeakCallbackGroupsToNodesMap &weak_groups_to_nodes) override
-
inline virtual void get_next_waitable(rclcpp::AnyExecutable &any_exec, const WeakCallbackGroupsToNodesMap &weak_groups_to_nodes) override
-
inline virtual rcl_allocator_t get_allocator() override
-
inline virtual size_t number_of_ready_subscriptions() const override
-
inline virtual size_t number_of_ready_services() const override
-
inline virtual size_t number_of_ready_events() const override
-
inline virtual size_t number_of_ready_clients() const override
-
inline virtual size_t number_of_guard_conditions() const override
-
inline virtual size_t number_of_ready_timers() const override
-
inline virtual size_t number_of_waitables() const override
-
using VoidAllocTraits = typename allocator::AllocRebind<void*, Alloc>