Analysis of the surrounding environment using an innovative algorithm based on lidar data on a modular mobile robot