Contact FutureLearn for Support
Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.

Skip to 0 minutes and 1 secondIt's time for another exercise. This one is about a robot interacting with a moving object.

Skip to 0 minutes and 11 secondsSo 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.

Skip to 0 minutes and 47 secondsAnd 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.

Skip to 1 minute and 26 secondsAnd 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.

Define motor speeds so the robot tracks a moving object

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.

Share this video:

This video is from the free online course:

Begin Robotics

University of Reading