Hi,
To have both point clouds from camera and lidar in OctoMap, you should merge them before sending the merged PointCloud2 to rtabmap point cloud input (scan_cloud:=/mergedPointcloud with subscribe_scan_cloud:=true). With Grid/FromDepth=false, the OctoMap will be created from that cloud. You could also get the OctoMap projection 2D occupancy grid map from /rtabmap/octomap_grid topic.
However, why do you need an OctoMap? the 2D occupancy grid from RPLidar is not enough? If you need to avoid 3D obstacles not detected by the lidar, that can be done by feeding the camera cloud to local costmap of move_base (possibly using
obstacles_detection nodelet to feed obstacle cloud that marks obstacles and ground cloud that clears obstacles, similarly to this
configuration).
cheers,
Mathieu