It is impressive how wrong is the depth image in the middle part when clip distance is enabled:
Clipping (far part is closer):
![](http://official-rtab-map-forum.206.s1.nabble.com/file/n6789/Screenshot_from_2020-07-17_12-12-35.png)
Max (the reflection of the floor causes wrong depth estimation):
![](http://official-rtab-map-forum.206.s1.nabble.com/file/n6789/Screenshot_from_2020-07-17_12-14-52.png)
Create a node to filter depth pixels over your maximum range, set 0 value so that they are ignored by rtabmap.