how to create periodic timer event

3 posts / 0 new
Last post
Offline
Last seen: 5 months 1 week ago
Joined: 05/20/2020
Posts: 1
how to create periodic timer event

new to rti dds, would like to know how to create a periodic timer event in dds which will invoke a callback function?

irwin's picture
Offline
Last seen: 3 months 1 week ago
Joined: 08/14/2010
Posts: 42

Hi,

 Good question. However, we have no API that that is device independant that will provide that. You will have to utilize your platform specific OS calls to provide that. That being said, there is a way. I would create a topic with a deadline

and publish it to myself. However, I would not send any samples. You will then get on_deadline_missed callbacks. Kinnd of hokey, biut it should work.

 

                                                   Irwin

KP Singh's picture
Offline
Last seen: 8 hours 8 min ago
Joined: 03/05/2020
Posts: 11

Hi Irwin

Just to clarify in the thread,

if Data Writer has not published any instance. Deadline will not be triggered.

It is triggered only when a particular instance is not re written  in a time duration.

 

Regards

KP Singh