Skip main navigation

What you should expect to see in the simulations

Watch what happens when Professor Richard Mitchell tries the robot simulations in Week three of Begin Robotics - a free course from Reading University
1.7
Let’s look at the exercises in the third week. And we’ll start with the robot keeping away from a particular object. So, here is my solution. So when the objects not seen, both motors are going forward. I’ve got the reverse left motor option on there, so the object will approach it. When the object just see something on the left, it turns towards it. But if the object is much closer on the left, the robot effectively runs away. Put the object speed to two and start. And we see, yes, robot is tracking it quite well.
42.4
Key point here is that the beams are staying red, which suggests that the robot is a fixed distance away from the object, so it is tracking it. But if I then put the speed up to ten, it’s no good. Even if I put the robot at the start again. Nope. It gets eaten.
63.5
So to deal with a faster object, I had to change the speed– effectively, I’ve just upped them from what we had before. So that we now have a speed of 32 for going forward, and instead of being minus six to go back, it’s minus 32. And as we see the robot is managing to cope.
84.2
So that was the first exercise. Okay, let’s move on to the command example. And I won’t show you the experimentation, just the results. So for this size of the web page, and if you rescale the web page, you might find you need to put slightly different numbers in. To get around the rectangular path, this is what I do.
108.3
So it’s going toward, turned right, turns right. See, we’ve got back to where we were.
119.7
For the race track, these are the commands I needed to do. So we can see forward for 146 at 15, and turn right, forward, right, forward. And we’ve got there. That’s worked okay. But, if we put the hill track in, put the robot back, and do it, we shall find that it doesn’t work. It crashed into the wall. So, to cope with the uphill bit here, I’ve had to go forward for a bit longer and changed some of the other numbers. And as we can see now, it’s working okay, going uphill, turns right, goes downhill a bit, so it goes a bit faster, and it has succeeded.
171.4
But it’s a bit tedious having to put in two different sets of speeds, whether you’re on the flat or on the hill. If we’ve got control, can we do better? So, if I now put speed control on. Put some slightly different numbers in. We can see the robot is going along quite happily, turning, going uphill all right, but still going far enough up. And it gets there. And then if I have the flat track, reset the robot and obey. We shall see that the robot, with the same commands, works with the hills and with a flat, demonstrating the benefit of feedback control.
219
Finally for those who had a little play with doing it by distance rather than the iterations. These are the commands who are going around the track. So forward for 460 units, turn right 90 degrees, forward, right not quite 90 degrees, because things aren’t perfect. Hey, presto, we’ve got there. Did you do as well?

We hope that you enjoyed playing around with this week’s simulations. If you want to find out how Richard got on when he used them, or you weren’t able to do the simulations, then have a look at this video.

This article is from the free online

Begin Robotics

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education