ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.