Hi,
it is possible. What are the warnings? I suspect that you should set approx_sync argument to true. Note that even if the topics are taken by rtabmap, it doesn't mean it will work. TF between the cameras should be accurate and your depth image should be transformed in color camera frame (depth registration) prior to send it to rtabmap. Once Tf between the cameras is known, you may use
rtabmap_ros/pointcloud_to_depthimage node to create the registered depth. IF your depth sensor doesn't provide a point cloud, you can use
rtabmap_ros/point_cloud_xyz to make one.
cheers,
Mathieu