In this thesis, the method of image feature detecting and tracking is utilized to develop the sensor module of a robot, and provided for robot simultaneous self-localization and mapping, as well as detection of the position and orientation of an object. The research is divided into three stages: including the detection and tracking of image region features; the algorithm of feature initialization; and the task of simultaneous localization and mapping, as well as the detection of the position and orientation for a moving object. The developed vision module is applied to a small-size humanoid robot system with a frontal camera.