Ask Your Question

Revision history [back]

The best practice I believe is to use message_filters. You have several options:

The first would be similar to what you sketch in your question, but a bit more robust and explicit, while the latter is a different approach, but it might be even more appropriate, depending on the temporal relationship there is between the incoming messages.