Hi,
For synchonization, RTAB-Map use
MessageFilters of ROS with either approximate time or exact time policy selected by
approx_sync parameter set to true or false respectively.
However, if you want to record another image along realsense RGB-D data in the database, you would have to use user_data input (see this
tutorial). When reading back the user_data, you have to convert it back in format your need, rtabmap won't know what kind of data is saved in this field.
cheers,
Mathieu