To provide a robot system capable of reducing the burden of a setting operator regardless of conditions such as setting conditions of a robot and the complexity of a work space at the time of setting an operable-inoperable area of the robot. A robot system has a robot capable of detecting contact with an obstacle. The robot moves inside a predetermined search area in a predetermined posture along a previously-determined scheduled search route and sets an operable-inoperable area of the robot inside the search area based on position-posture data with respect to the robot having come into contact with the obstacle during moving of the robot.