Assignment1 LineFollowing
Assignment1 LineFollowing
Engineering
Assignment 1
Notes:
2. The sample World is given in the attachments. Please save the world named
“Line_Following_2_e-puck_with_floor_sensors.wbt and line track texture named
“Line_cross_3.png” into the same directory (Webots ” projectsà Worlds)
3. I strongly recommend that you work on and complete Webots Tutorial- 4 before starting
your assignment. https://cyberbotics.com/doc/guide/tutorial-4-more-about-controllers?tab-
language=python
4. To detect the floor line, use the ground sensors, which are treated as distance sensors in
the simulator due to their infrared nature. Acces them in Python as shown below:
5. Create a new controller and implement a line following behaviour using three states, namely
forward, turn left and turn right. You may add one extra state to stop when no line is
detected.