Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only T&Cs apply

Find out more

Define motor speeds so the robot tracks a moving object

Watch how you can define motor speeds so the robot tracks a moving object in a simulation developed by Professor Richard Mitchell.
0.8
It’s time for another exercise. This one is about a robot interacting with a moving object.
10.5
So here we see the web page. We’ve got our robot as usual, and that’s the object that moves. And the idea is you command the robot so that it moves, gets close enough to this object, which moves, but then if the object gets a bit too close, it backs away. And you need to do that because if you’re not careful, the object will eat your robot. So move down so we can see all the controls. You can specify what the speeds are of the left and the right motor when the object’s not seen, or when it’s just visible on the left, or when it’s much closer on the left, and similarly on the right.
47.4
And as ever, you can press the Reverse Left Motor option. If I put in, say, four and four, and press Start, the robot’s moving around. The object is moving. In this case we’re speed two. And we’re not doing exactly what we need to do, because you’ve got to work that out. But here we see, whoops, the object has eaten your robot. So you can put the robot in initial position. You can have wider beams as well. So investigate. See if you can get the speed so that your robot doesn’t get eaten. Try the effect of narrow beams and wide beams.
86
And then once you’re happy with that, change the speed of the object to 10, and then you’ll need to change the speed of your robot if it’s still to remain safe. Enjoy.

In this exercise you will need to track the robot so that it gets close to an object but not too close! In this video, Richard explains how the simulation works to show how a robot can interact with a moving object.

Once you’re ready please move on to the next Step.

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