Hi,
If you are using ICP odometry, you could enable color (uncheck "Use IR for RGB image (may work better in dark areas)."). Odometry will still be computed with geometry, but you will have color at the same time. The downside is that you lose IR field of view (in general larger on those kind of sensors).
However, if you want to do vidual odometry with IR while recording RGB image for visualization purpose, it is not possible. This is something I wanted to explore last Christmas but I didn't have time to do. It would be useful for D435 camera too, where IR visual odometry is a lot more accurate than using the color camera, but we also lack of color afterwards in the generated 3D map. It can be done with ROS, as odometry and rtambap nodes can use different topics. For standalone, we would have to find a way to send IR data to odometry thread, then color data + odometry to rtabmap thread.
Not sure which rtabmap version you tried, there was a fix in this
commit to improve RGB visual odometry with K4A.
I also published in latest
0.20.8 new default parameters that help a lot with HD images for smoother odometry (in particular for K4A). With older version, look at the Release Notes and update the corresponding parameters in your ini file.
cheers,
Mathieu