A robot system (1, 1A) comprising: a robot (2, 2A), in which adjacent links (26a to 26c) are connected via a joint (29a to 29c), and a motor and a speed reducer, which transmits a driving force of the motor to the link (26a to 26c), are provided in the joint (29a to 29c); and a robot control apparatus (3, 3A) that controls the robot (2, 2A) by driving the motor, wherein the robot (2, 2A) includes a first detecting unit (13a to 13c) that detects a rotation angle of the motor, and a second detecting unit (14a to 14c) that detects a rotation angle of an output shaft of the speed reducer, the robot control apparatus (3, 3A) includes: a position command generating unit that generates a position command of the motor based on a predetermined command profile: and a position command correcting unit (31, 31A) that corrects the position command of the motor based on a difference value between a detection result by the first detecting unit (13a to 13c) and a detection result by the second detecting unit (14a to 14c); and the position command correcting unit (31, 31A) includes: a position compensation integrating unit that integrates a position compensation value computed based on the difference value to generate a position compensation integrated value: a position compensation value calculating unit that subtracts the position compensation integrated value from the difference value to generate the position compensation value; and a compensation position command calculating unit that adds the position compensation value obtained from the position compensation value calculating unit to the position command obtained from the position command generating unit to correct the position command of the motor. a robot (2, 2A), in which adjacent links (26a to 26c) are connected via a joint (29a to 29c), and a motor and a speed reducer, which transmits a driving force of the motor to the link (26a to 26c), are provided in the joint (29a to 29c); and a robot control apparatus (3, 3A) that controls the robot (2, 2A) by driving the motor, wherein the robot (2, 2A) includes a first detecting unit (13a to 13c) that detects a rotation angle of the motor, and a second detecting unit (14a to 14c) that detects a rotation angle of an output shaft of the speed reducer, the robot control apparatus (3, 3A) includes: a position command generating unit that generates a position command of the motor based on a predetermined command profile: and a position command correcting unit (31, 31A) that corrects the position command of the motor based on a difference value between a detection result by the first detecting unit (13a to 13c) and a detection result by the second detecting unit (14a to 14c); and a position command generating unit that generates a position command of the motor based on a predetermined command profile: and a position command correcting unit (31, 31A) that corrects the position command of the motor based on a difference value between a detection result by the first detecting unit (13a to 13c) and a detection result by the second detecting unit (14a to 14c); and the position command correcting unit (31, 31A) includes: a position compensation integrating unit that integrates a position compensation value computed based on the difference value a position compensation integrating unit that integrates a position compensation value computed based on the difference value to generate a position compensation integrated value: a position compensation value calculating unit that subtracts the position compensation integrated value from the difference value to generate the position compensation value; and a compensation position command calculating unit that adds the position compensation value obtained from the position compensation value calculating unit to the position command obtained from the position command generating unit to correct the position command of the motor. a position compensation value calculating unit that subtracts the position compensation integrated value from the difference value to generate the position compensation value; and a compensation position command calculating unit that adds the position compensation value obtained from the position compensation value calculating unit to the position command obtained from the position command generating unit to correct the position command of the motor.