Introduction:
Using V-REP, I designed a line follower robots simulation. In the video below, I set a camera on the floor to monitor the robots more closely, also, I adjusted the path and made each turn smooth so that they are more likely to stay on the lines. Those 4 robots are put on the lines first; they can track the lines and when they detect an obstacle on the route ahead, they dodge it then find the lines again.