If you make a ROS driver, there would be no code to modify to make it work with rtabmap_ros. If you want to integrate in the main library / standalone app, look at the examples here. Some drivers work as "on request" frame, other drivers are callback driven.
I use my own RGBD camera, What code should I add or modify so that my camera could Integrate your software?