DataWriter

3 posts / 0 new
Last post
Offline
Last seen: 2 weeks 2 days ago
Joined: 02/15/2019
Posts: 44
Are data samples queued and if so, where?

My understanding is that DDS DataWriters communicate CacheChanges to the HistoryCaches of the associated RTPS Writer. This CacheChange is then propagated to the mapped RTPS Readers before notifying their associated DDS DataReaders.

From the above statement, there are queues (the HistoryCache) on the RTPS Writers and Readers.

3 posts / 0 new
Last post
Offline
Last seen: 2 years 7 months ago
Joined: 07/30/2021
Posts: 1
Why would a write cause this error?

I'm getting this error when running my application.

    terminate called after throwing an instance of 'dds::core::TimeoutError'
      what():  write
    terminate called after throwing an instance of 'dds::core::TimeoutError'
      what():  write

And from the `what(): write`, I'm guessing that's when I write out a message like so

    my_writer->write(msg);
    

2 posts / 0 new
Last post
Offline
Last seen: 3 years 4 months ago
Joined: 11/16/2019
Posts: 2
Publish and Subscribe on the same Topic, prevent catching own data

Hi,

My application needs to write and read on the same "TopicA". It works fine, but I don't want to catch data from my own dataWriter. Is there a way (QoS or ReadCondition) to prevent fire data to myself?

ReadCondition would be the best because I do not have the full control of the QoS, but I can't figure out how to deal with it.

Regars

JB 

Organization:
22 posts / 0 new
Last post
His Nerdship's picture
Offline
Last seen: 4 years 10 months ago
Joined: 05/08/2019
Posts: 18
Check if a DataWriter is ready to write

Following on from my previous post re unreliable WiFi connections, I found that the problem was caused by calling DataWriter::write()too soon after creating the DataWriter.  Because write()is non-blocking it returned immediately without doing anything.  Also, because it is void, there is no error return code.

So the publishing app was not in fact sending anything, and I had no way of knowing.

It obviously needed more time to assemble its plumbing, so I put in a 2 second sleep, after which it worked.

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 4 years 12 months ago
Joined: 09/06/2018
Posts: 22
sending only fields that have changed

Hi,

 

We are using RHEL7.5 and RTI DDS 5.3.1.

I've done some searching already.  I was wondering if it was possible for a datawriter to only send the fields that have changed in a message and a datareader to only act on those 'changed' fields.  Am I correct that this feature does not exist in RTI DDS currently?

2 posts / 0 new
Last post
Offline
Last seen: 5 years 6 months ago
Joined: 03/25/2018
Posts: 10
Can we dynamically create and free data writer?

Hi,

Currently, all data writers are created before use and that consumes memory. Some topics (and thus data writers) are events that only be invoked under certain scenarios, and can be created when necessary and release after used.

Is there a way to support dynamic creation and release of data writers, just like malloc() and free() ?

Organization:
5 posts / 0 new
Last post
Offline
Last seen: 5 years 3 months ago
Joined: 10/14/2018
Posts: 5
DataWriter pause problem

Hello ~
We are using version 5.2.2 of DDS.
We have delivered the program using DDS.
But when the customer tells us that our program is kill process
The customer's DataWriter pauses and then resends after a few seconds.
We think this is due to the Qos configuration, but we are not sure.
Could you give me some advice on this situation?

Keywords:
3 posts / 0 new
Last post
Offline
Last seen: 6 years 9 months ago
Joined: 03/03/2015
Posts: 19
DataWriter callback when writer queue is available for writing

Hey,

I'm have a DDS_DataWriter configured to keep history with a depth of 128. After 128 written samples, the DDS_DataWriter returns a "DDS_RETCODE_TIMEOUT" error, which is expected because the buffer is full and no DDS_DataReader has read anything from it.

Organization:
2 posts / 0 new
Last post
Offline
Last seen: 4 years 10 months ago
Joined: 12/07/2016
Posts: 10
Multiple threads publishing on the same topic

Hello:

I'm developing a multithreaded application which publishes data on a DDS topic using write. My questions about this method are this:

Organization:
9 posts / 0 new
Last post
Offline
Last seen: 7 years 8 months ago
Joined: 07/26/2016
Posts: 6
Writer error

Hi,

 

I get the error below when trying to write -   Writer.write(instance, ref instance_handle);

What is the problem?

Subscribe to RSS - DataWriter