Function rmw_fastrtps_cpp::get_datawriter

Function Documentation

eprosima::fastdds::dds::DataWriter *rmw_fastrtps_cpp::get_datawriter(rmw_publisher_t *publisher)

Return a native Fast DDS DataWriter handle.

The function returns NULL when either the publisher handle is NULL or when the publisher handle is from a different rmw implementation.

Returns:

native Fast DDS DataWriter handle if successful, otherwise NULL