Hi,
Do you use a D400? It looks like that those obstacles are coming from the error in the depth image over the edge of objects. There are noise parameters in Grid/ group that could be used to filter that noise before adding the points to map.
rtabmap --params | grep Grid/
cheers,
Mathieu