Docsity

Mobile Robotics Assignment 7L: Ranging, Navigation and Open-Loop Controller - Prof. Mong-Y, Assignments of Robotics

Toggle sidebar
bg1
MEM455: Mobile Robotics
Assignment 7L: Basic Ranging and Navigation
Prof. Ani Hsieh
Due: Wed 11/26 at 11:59pm
1 Objectives
The objectives of this exercise are to 1) develop a way to copmute the robot’s distance to a given
object using the robot’s camera and lasers, and 2) using your results from 1), develop a controller
that will enable the robot to drive (open-loop) from one location to any other location in a known
workspace.
2 Task 1
Let (x, y, z) denote the world coordinate and (u, v ) denote the image coordinates. Based on the
standard camera geometry shown in Figure 2 we get the following relationship:
(u, v) = (fx
z, f y
z) (1)
where fis the focal length of our camera. While we do not know f, we can determine fas follows:
1. Pick a value for z, say 1 m.
2. Place the robot 1 m away from an object.
3. Measure the distance between the two lazers on the robot, lets denote this as δx =b. Note b
is measured in meters.
4. Let δu denote the distance between the two laser points on our image.
5. Using 1, we can determine f. Note fwill be given in pixels.
Once we have f, for any δu, we can use 1 to find z,i.e. the distance of the robot to the object
where the lasers are pointing.
Figure 1: Standard camera geomtry.
1
pf2

Partial preview of the text

Download Mobile Robotics Assignment 7L: Ranging, Navigation and Open-Loop Controller - Prof. Mong-Y and more Assignments Robotics in PDF only on Docsity!

MEM455: Mobile Robotics

Assignment 7L: Basic Ranging and Navigation

Prof. Ani Hsieh

Due: Wed 11/26 at 11:59pm

1 Objectives

The objectives of this exercise are to 1) develop a way to copmute the robot’s distance to a given object using the robot’s camera and lasers, and 2) using your results from 1), develop a controller that will enable the robot to drive (open-loop) from one location to any other location in a known workspace.

2 Task 1

Let (x, y, z) denote the world coordinate and (u, v) denote the image coordinates. Based on the standard camera geometry shown in Figure 2 we get the following relationship:

(u, v) = (f x z

, f y z

where f is the focal length of our camera. While we do not know f , we can determine f as follows:

  1. Pick a value for z, say 1 m.
  2. Place the robot 1 m away from an object.
  3. Measure the distance between the two lazers on the robot, lets denote this as δx = b. Note b is measured in meters.
  4. Let δu denote the distance between the two laser points on our image.
  5. Using 1, we can determine f. Note f will be given in pixels.

Once we have f , for any δu, we can use 1 to find z, i.e. the distance of the robot to the object where the lasers are pointing.

Figure 1: Standard camera geomtry.

Hint 1: One easy way to find the locations of the laser points on your image is to take one image, I 1 , with the lasers on and second image, I 2 , with the lasers off. Convert your images to YUV and looking at the Y channel of both images, generate a new image In such that In = I 1 (Y ) − I 2 (Y ). Your laser points should be the brightest spots in In.

Hint 2: Additionally, keep in mind, to get a good estimate of f you may need to repeat the above steps multiple times with varying distances.

3 Task 2

Given a rectangular workspace, develop an open-loop controller such that the robot can drive itself to a goal location for any initial position. Each wall of the workspace will have a specific color strip to enable the robot to determine its location within the workspace. There will be four distinct colors: blue, flourescent orange, flourescent yellow, and flourescent pink. The goal configuration/location will be given as di cm from wall ci and dj cm from wall cj. Your task is to develop a controller to enable the robot to navigate to the desired location from any initial position within the workspace.

For your report: Describe in 2 pages or less (excluding tables, pseudocode, figures, etc.) your methodology and how it works. Include any tables, pseudocode, figures and other supporting materials in a separate section. If you choose to do the extra credit, describe your approach in 1 page or less (excluding supporting materials).

Grading: Your grade for this assignment will depend on how well your robot is at accomplishing the given tasks. Please set up a time with Nick Kitten so you can demo your robot navigation. Your team should not take more than 10 minutes. You can have at most 3 tries.