Actions

Robotics Class 2011/Assignment 2

From HacDC Wiki

Revision as of 19:50, 18 June 2011 by Andrewtron3000 (talk | contribs) (Created page with "Write a ROS node that subscribes to the image topic /stereo/left/image_rect (which has message type sensor_msgs/Image), and publish two topics. The first topic is a topic named ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Write a ROS node that subscribes to the image topic /stereo/left/image_rect (which has message type sensor_msgs/Image), and publish two topics. The first topic is a topic named /face_view that is an image topic that has a rectangle around any face that is seen. The second topic is a PointStamped message that has point.x and point.y set to the center of the identified face if there is one face. If there are more than one face, the behavior can be implementation dependent. You can learn about the structure of the PointStamped message by typing:

rosmsg show PointStamped

The bag file distributed in class contains the image data that should be used to test your face detector. The bag file can be played back by typing:

rosbag play -l 2011-06-18-12-38-55.bag

Note that the additional "-l" argument allows the bag file to be looped indefinitely.