The purpose of this project is to integrate vision (face detection), obstacle avoidance, and wandering into a single interative robot application.
Follow the directions from last week to set up your working directory with gcm-devel, nav-devel, Mage, svm, and svm-artk. If you have any problems making svm-artk or svm on the netbooks, let me know ASAP.
Make and test out the vision module, svm. You'll need three terminals
to run svm and view the current display.
- Start central in one display.
- cd to the modules subdirectory of svm. Make sure the first two parameters in camera0.conf are 1 (camera active) and 0 (PTZ inactive). In camera1.conf, the camera should be inactive.
Run svm-v4l2 in the second terminal using:
Run dispipc in the third terminal using:
You may have to substitute the name of the netbook for localhost.
- Turn on streaming video (2) and then turn on the face detector (r). Use the x key to shut down both the vision module and dispipc.
Copy your control module from the prior assignment to a new file,
control2.c, and edit it to subscribe to data messages from the vision
module. In the handler function, print out any information you receive
from the vision moduel. Then have your control module turn on the
face detector when the robot starts wandering and turn it off when
it's done wandering. See if it will recognize any faces while
Look at dispipc.c to see how to turn on the face detector ('r' case) and how to subscribe to vision module messages.
Develop a new control module (control3.c) that has the robot wander
until it sees a face. Then it should interact with the user in some
way (say something, take a picture of them, etc) and then move back
into a wander state.
When your robot has detected a person, it should approach the person detected by the vision module and use its sonar/IR information to stop at a reasonable distance before initiating an interaction.
- Do something more intentional than a simple wander.
- Set it up to enter a follow mode once it has detected a person.
- Make the interaction more interesting.
- Use another capability of the vision module to interact with the environment.
The writeup for each project should be a brief summary of what you did along with some code examples, terminal output, or screen shots, depending upon the assignment. Please organize the writeup as follows.
- Title of the project and your name
- An abstract describing what you did in 200 words or less.
- A brief description of code you wrote and experiments you ran.
- A brief description of what you learned.
In addition, you will demo your programs during the following lab.
Make your writeup for the project a wiki page in your personal space. If you have questions about making a wiki page, stop by my office or ask in class.
Once you have written up your assignment, give the page the label:
You can give any page a label when you're editing it using the label field at the bottom of the page.
Do not put code on your writeup page or anywhere it can be publicly accessed. To hand in code, attach it to an email and send it to the prof.