Hello all,
I'm trying to use an async publisher as described in:
https://community.rti.com/examples/asynchronous-publisher
My application runs fine with all dds features as long as I am not using the async publisher, but when adding the following line:
topic_qos << rti::core::policy::PublishMode::Asynchronous();
I get the following linker error:
undefined reference to `rti::core::policy::PublishMode& rti::topic::qos::TopicQosImpl::policy()'
Is this feature not available in community the community version?
Best regards
Andreas
Hi Andreas,
TopicQos only contains policies that are common to the DataWriter and DataReader.
Since Asynchronous publisher only applies to DataWriters, you can only set it in DataWriterQos.
You can still start from your topic qos. For example:
Then create your DataWriter using writer_qos instead of topic_qos.
Regards,
Alex