Skip main navigation

Set movement

Watch Professor Richard Mitchell introduce a simulation where you can try specifying the speed in order to move a robot yourself.
1
OK. It’s time to do the second exercise, where you’re going to build on what you learnt from the first one. So this is the web page, same sort of layout as before. And now, on the basis of what you’ve already learnt, you know what sort of speed you need to put for the motors to make the robot go forward and to turn left and so forth. Well, now we’re going to put that in. So for instance, you would define here what to go forward. So perhaps I would say minus 4 and 4. And then if I press Go Forward, the robot moves forward.
37
If I then say turn right, he doesn’t do anything because at the moment, we’ve said that to turn right, you put 0 and 0. So what you need to do in this task, as it explains, you define what speeds you should do for all these different categories. And then you can press go forward, turn left, turn right, and the robot will then do what it is. Investigate it in an arena like this, but if you option for the track like so, then– I shall scroll up slightly so that you can see the bottom. If I then say Go Racing, the robot will start from the beginning there, and then you have to try and steer it around like so.
77.3
I’m going to cheat because I’ve only shown how you go forward by clicking there. And then what we see is the robot gets there and it tells me it got there after 13.7 seconds, but it was a cheat. So your task is, as I say, to first define the five speeds to the robot moves, check it works. Press T for the track. Go racing. See how quickly you can steer the robot so that it gets to the middle. Try it a few times. Note what your fastest one is. If you select Return Race and then press Go Racing, it goes in the opposite direction, and then you have to steer it around. And then I’m going to cheat again.
117.5
So you won’t perhaps be able to do quite as quickly as that unless you cheat like me. Again, you can see how you can use the keyboard to define things as well. Have fun.

In this second simulation, you will find out how to specify the speed in order to determine the movement of the robot. Before you get started, take a look at this video to learn how to change the command in order to direct the robot.

Once you’ve watched the video you’ll be ready to move on to the the next step, where you’ll be able command your robot around a racetrack.

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