ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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.