In this paper, we present a method to measurement a distance using a laser-pointer. This method calculated the distance from obstacles for the robot to transverse to its target location, while avoiding obstacles along the way. The environment is first captured as an image using a webcam. Image processing are then calculate to identify the existence of obstacles within the environment. Using the laser-pointer, ditance locations with obstacles are identified which laser-pointer consist of the webcam and the laser-pointer. It measure the distace mobile robot to the obstacles is identified. The program is written in MATLAB with the Image processing toolbox.