A moving robot comprising: a first location recognition module configured to extract a straight line in a driving process and recognize a location using the extracted straight line; and a second location recognition module configured to recognize a location based on the location recognized by the first location recognition module and based on image information obtained from surroundings, wherein the moving robot further comprises a distance sensor and a memory configured to store the straight line extracted by the first location recognition module, and wherein the first location recognition module includes: a straight line information extracting unit configured to extract straight line information from values output from the distance sensor; a straight line information matching unit configured to determine whether the straight line extracted from the straight line information extracting unit is the same as the previously extracted straight line stored in the memory; a straight line information registering unit configured to store the straight line in the memory when the extracted straight line is a new straight line and extend the previously extracted straight line when the extracted straight line is the same as the previously extracted straight line; and a first location recognizing unit configured to recognize a current location using the straight line registered by the straight line information registering unit. a first location recognition module configured to extract a straight line in a driving process and recognize a location using the extracted straight line; and a second location recognition module configured to recognize a location based on the location recognized by the first location recognition module and based on image information obtained from surroundings, wherein the moving robot further comprises a distance sensor and a memory configured to store the straight line extracted by the first location recognition module, and wherein the first location recognition module includes: a straight line information extracting unit configured to extract straight line information from values output from the distance sensor; a straight line information matching unit configured to determine whether the straight line extracted from the straight line information extracting unit is the same as the previously extracted straight line stored in the memory; a straight line information registering unit configured to store the straight line in the memory when the extracted straight line is a new straight line and extend the previously extracted straight line when the extracted straight line is the same as the previously extracted straight line; and a first location recognizing unit configured to recognize a current location using the straight line registered by the straight line information registering unit. a straight line information extracting unit configured to extract straight line information from values output from the distance sensor; a straight line information matching unit configured to determine whether the straight line extracted from the straight line information extracting unit is the same as the previously extracted straight line stored in the memory; a straight line information registering unit configured to store the straight line in the memory when the extracted straight line is a new straight line and extend the previously extracted straight line when the extracted straight line is the same as the previously extracted straight line; and a first location recognizing unit configured to recognize a current location using the straight line registered by the straight line information registering unit.