Skip main navigation

Hurry, only 3 days left to get one year of Unlimited learning for £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Robot learning

How do robots learn? Watch Professor Richard Mitchell explain how to make a robot with two sensors learn a task.

In this video Richard explains how to make a robot with two sensors learn a task.

Key concepts include:

  • Setting the scene – how a robot avoids obstacles.
  • Rules of Behaviour
  • Instincts and Learning
  • How do we get a robot to learn?
  • Demo of robotlearn
  • Shared Experience Learning

The robot’s sensors detect the distance of the nearest object, and check to see if the distance measurement is large (i.e. the object is too far away) or not. We’ve included the instructions from the video below, for further information.

If left_sensor and right_sensor is Large // no near obstacle

 Left_motor = Forward
Right_motor = Forward **// go forward**

Else if left_sensor is Large // obstacle nearer right sensor

 Left_motor = Backward
Right_motor = Forward **// turn to left**

Else if right_sensor is Large // obstacle nearer left sensor

 Left_motor = Forward
Right_motor = Backward **// turn to right**

Else: //obstacle close to both

 Left_motor = Backward
Right_motor = Backward **//retreat**

If you would like, you can try out the Learning Robot web page mentioned in this video.

This article is from the free online

Begin Robotics

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now