A robot comprising: a body; a driving unit configured to drive the body such that the body travels within an operation region defined by a wire formed as a closed curve or a closed loop; a sensing unit including a GPS module and configured to sense coordinate information related to a current position of the robot at a time interval, the sensing unit further comprising a sensor for sensing the wire; and a controller configured to convert the coordinate information to generate information corresponding to a point where the wire is installed, and thereby generate map information corresponding to the operation region, the controller setting first information corresponding to at least one reference line using first coordinate information corresponding to vertices included in a polygon forming the operation region, and the controller, using the first information, setting second information corresponding to a plurality of regions such that the operation region is divided into the plurality of regions, wherein the controller is configured to, using the second information, control the driving unit such that the body travels according to a preset movement pattern for each of the plurality of divided regions; compare second coordinate information corresponding to a plurality of vertices included in one of the divided regions in the operation region; calculate a maximum length of the one of the divided regions with respect to a preset traveling direction based on the comparison, wherein when the maximum length of the one of the divided regions along the preset traveling direction is greater than a predetermined maximum traveling distance value for the robot, the controller is further configured to reset the second information such that the divided region is divided into a plurality of sub-regions (SIa, S1b), and wherein the reset second information includes information related to an additional reference line defining the sub-regions, wherein the controller is further configured to control the driving unit such that the robot moves according to a preset movement pattern inside an extended region, said extended region being a sub-region extended by a predetermined additional distance (r, r') from the additional reference line defining the sub-regions. a body; a driving unit configured to drive the body such that the body travels within an operation region defined by a wire formed as a closed curve or a closed loop; a sensing unit including a GPS module and configured to sense coordinate information related to a current position of the robot at a time interval, the sensing unit further comprising a sensor for sensing the wire; and a controller configured to convert the coordinate information to generate information corresponding to a point where the wire is installed, and thereby generate map information corresponding to the operation region, the controller setting first information corresponding to at least one reference line using first coordinate information corresponding to vertices included in a polygon forming the operation region, and the controller, using the first information, setting second information corresponding to a plurality of regions such that the operation region is divided into the plurality of regions, wherein the controller is configured to, using the second information, control the driving unit such that the body travels according to a preset movement pattern for each of the plurality of divided regions; compare second coordinate information corresponding to a plurality of vertices included in one of the divided regions in the operation region; calculate a maximum length of the one of the divided regions with respect to a preset traveling direction based on the comparison, wherein when the maximum length of the one of the divided regions along the preset traveling direction is greater than a predetermined maximum traveling distance value for the robot, the controller is further configured to reset the second information such that the divided region is divided into a plurality of sub-regions (SIa, S1b), and wherein the reset second information includes information related to an additional reference line defining the sub-regions, wherein the controller is further configured to control the driving unit such that the robot moves according to a preset movement pattern inside an extended region, said extended region being a sub-region extended by a predetermined additional distance (r, r') from the additional reference line defining the sub-regions.