Abstract In this paper, the robot analyses a path from its current position to a…