A work machine comprising: a work implement; a first hydraulic actuator that drives the work implement; an operation device that outputs a first control signal for the first hydraulic actuator in accordance with an operation by an operator; a controller that, while the operation device is being operated, calculates a second control signal for operating the first hydraulic actuator in accordance with a predetermined condition, and controls the first hydraulic actuator on a basis of either the first control signal or the second control signal; and a switching device that can select a switch position of either an ON position enabling control of the first hydraulic actuator or an OFF position disabling control of the first hydraulic actuator, the first hydraulic actuator control being based on the second control signal, wherein the controller controls the first hydraulic actuator on a basis of either the first control signal or the second control signal when the switching device is switched to the ON position, and controls the first hydraulic actuator on a basis of the first control signal when the switching device is switched to the OFF position, characterized in that the controller limits, to a predetermined change rate, a control-signal temporal change rate at which one of the first and second control signals is changed to the other of the first and second control signals, the controller controlling the first hydraulic actuator on a basis of a control signal obtained after the limitation, when a control signal for controlling the first hydraulic actuator has been switched from the one control signal to the other control signal by a switching operation on the switching device, and controls an operation speed of the first hydraulic actuator as to be a value lower than a maximum speed when the switching device is switched to the ON position. a work implement; a first hydraulic actuator that drives the work implement; an operation device that outputs a first control signal for the first hydraulic actuator in accordance with an operation by an operator; a controller that, while the operation device is being operated, calculates a second control signal for operating the first hydraulic actuator in accordance with a predetermined condition, and controls the first hydraulic actuator on a basis of either the first control signal or the second control signal; and a switching device that can select a switch position of either an ON position enabling control of the first hydraulic actuator or an OFF position disabling control of the first hydraulic actuator, the first hydraulic actuator control being based on the second control signal, wherein the controller controls the first hydraulic actuator on a basis of either the first control signal or the second control signal when the switching device is switched to the ON position, and controls the first hydraulic actuator on a basis of the first control signal when the switching device is switched to the OFF position, characterized in that the controller limits, to a predetermined change rate, a control-signal temporal change rate at which one of the first and second control signals is changed to the other of the first and second control signals, the controller controlling the first hydraulic actuator on a basis of a control signal obtained after the limitation, when a control signal for controlling the first hydraulic actuator has been switched from the one control signal to the other control signal by a switching operation on the switching device, and controls an operation speed of the first hydraulic actuator as to be a value lower than a maximum speed when the switching device is switched to the ON position. controls the first hydraulic actuator on a basis of either the first control signal or the second control signal when the switching device is switched to the ON position, and controls the first hydraulic actuator on a basis of the first control signal when the switching device is switched to the OFF position, characterized in that the controller limits, to a predetermined change rate, a control-signal temporal change rate at which one of the first and second control signals is changed to the other of the first and second control signals, the controller controlling the first hydraulic actuator on a basis of a control signal obtained after the limitation, when a control signal for controlling the first hydraulic actuator has been switched from the one control signal to the other control signal by a switching operation on the switching device, and controls an operation speed of the first hydraulic actuator as to be a value lower than a maximum speed when the switching device is switched to the ON position.