Hi,
If you just want to display the 3D point cloud, you can use the rtabmap's MapCloud plugin in rviz to show it, and use Grid/FromDepth=false to have the 2D map created from lidar. This is similar to the
robot mapping with RVIZ demo.
If you need an octomap, you may use
rtabmap_util/map_assembler with regenerate_local_grids=true and Grid/FromDepth=True.
cheers,
Mathieu