Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to publish two synchronized messages?

Hi,

I build a robot which has two encoders. I want the encoders to publish their count at the exact same time.

Right now, the subscriber node is using the ApproximateTimeSynchronizer, since with the TimeSynchronizer I get nothing (as expected).

So, my question is, is there a way to publish the 2 messages at the exact same time? I'm looking for a code solution. (I build the robot using BBB, I'm not in a lab and I dont have signal generators, etc,.)

Thanks for the help, Ron

How to publish two synchronized messages?

Hi,

I build a robot which has two encoders. I want the encoders to publish their count at the exact same time.

Right now, the subscriber node is using the ApproximateTimeSynchronizer, since with the TimeSynchronizer I get nothing (as expected).

So, my question is, is there a way to publish the 2 messages at the exact same time? I'm looking for a code solution. (I build the robot using BBB, I'm not in a lab and I dont have signal generators, etc,.)

Thanks for the help, Ron