#include <subscription_intra_process.hpp>
◆ MessageAllocTraits
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ MessageAlloc
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ ConstMessageSharedPtr
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ MessageUniquePtr
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ BufferUniquePtr
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ SubscriptionIntraProcess()
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ ~SubscriptionIntraProcess()
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ is_ready()
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ take_data()
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
Take the data so that it can be consumed with execute
.
NOTE: take_data is a partial fix to a larger design issue with the multithreaded executor. This method is likely to be removed when a more permanent fix is implemented. A longterm fix is currently being discussed here: https://github.com/ros2/rclcpp/pull/1276
This method takes the data from the underlying data structure and writes it to the void shared pointer data
that is passed into the method. The data
can then be executed with the execute
method.
Before calling this method, the Waitable should be added to a wait set, waited on, and then updated.
Example usage:
bool add_ret = waitable.add_to_wait_set(wait_set);
waitable.update(wait_set);
Implements rclcpp::experimental::SubscriptionIntraProcessBase.
◆ execute()
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
Execute data that is passed in.
Before calling this method, the Waitable should be added to a wait set, waited on, and then updated - and the take_data
method should be called.
Example usage:
bool add_ret = waitable.add_to_wait_set(wait_set);
waitable.update(wait_set);
waitable.execute(data);
Implements rclcpp::experimental::SubscriptionIntraProcessBase.
◆ provide_intra_process_message() [1/2]
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ provide_intra_process_message() [2/2]
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
◆ use_take_shared_method()
template<typename MessageT , typename Alloc = std::allocator<void>, typename Deleter = std::default_delete<MessageT>, typename CallbackMessageT = MessageT>
The documentation for this class was generated from the following file: