Ask Your Question

Revision history [back]

The simplest solution is to create two different image callbacks as methods of a class and store the images in member variables when they are received.

A better solution is to use a synchronizer provided by the message_filters package. Have a look at the TimeSynchronizer example.