rmw
master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
|
Options that can be used to configure the creation of a publisher in rmw. More...
#include <types.h>
Public Attributes | |
void * | rmw_specific_publisher_payload |
Used to pass rmw implementation specific resources during publisher creation. More... | |
Options that can be used to configure the creation of a publisher in rmw.
void* rmw_publisher_options_t::rmw_specific_publisher_payload |
Used to pass rmw implementation specific resources during publisher creation.
This field is type erased (rather than forward declared) because it will usually be a non-owned reference to an language specific object, e.g. C++ it may be a polymorphic class that only the rmw implementation can use.
The resource pointed to here needs to outlive this options structure, and any rmw_publisher objects that are created using it, as they copy this structure and may use this payload throughout their lifetime.