A robot system includes transport means which transports an object, first detecting means which detects a three-dimensional shape of the object transported on a transport path by the transport means, a robot which performs a predetermined task on the object transported on the transport path by the transport means, means which generates an operation command to the robot, and means which corrects the operation command based on a detection result by the first detecting means.