15 #ifndef RCLCPP__EXPERIMENTAL__CREATE_INTRA_PROCESS_BUFFER_HPP_ 16 #define RCLCPP__EXPERIMENTAL__CREATE_INTRA_PROCESS_BUFFER_HPP_ 19 #include <type_traits> 30 namespace experimental
46 size_t buffer_size = qos.
depth;
51 switch (buffer_type) {
54 using BufferT = MessageSharedPtr;
56 auto buffer_implementation =
57 std::make_unique<rclcpp::experimental::buffers::RingBufferImplementation<BufferT>>(
71 using BufferT = MessageUniquePtr;
73 auto buffer_implementation =
74 std::make_unique<rclcpp::experimental::buffers::RingBufferImplementation<BufferT>>(
99 #endif // RCLCPP__EXPERIMENTAL__CREATE_INTRA_PROCESS_BUFFER_HPP_ Definition: intra_process_buffer.hpp:73
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
Set the data type used in the intra-process buffer as std::shared_ptr<MessageT>
IntraProcessBufferType
Definition: intra_process_buffer_type.hpp:23
typename std::conditional< std::is_same< typename std::allocator_traits< Alloc >::template rebind_alloc< T >, typename std::allocator< void >::template rebind< T >::other >::value, std::default_delete< T >, AllocatorDeleter< Alloc > >::type Deleter
Definition: allocator_deleter.hpp:101
Set the data type used in the intra-process buffer as std::unique_ptr<MessageT>
rclcpp::experimental::buffers::IntraProcessBuffer< MessageT, Alloc, Deleter >::UniquePtr create_intra_process_buffer(IntraProcessBufferType buffer_type, rmw_qos_profile_t qos, std::shared_ptr< Alloc > allocator)
Definition: create_intra_process_buffer.hpp:38
Definition: intra_process_buffer.hpp:51