diff --git a/system/mrm_emergency_stop_operator/src/mrm_emergency_stop_operator/mrm_emergency_stop_operator_core.cpp b/system/mrm_emergency_stop_operator/src/mrm_emergency_stop_operator/mrm_emergency_stop_operator_core.cpp index 1dead64c568e1..7914428900a61 100644 --- a/system/mrm_emergency_stop_operator/src/mrm_emergency_stop_operator/mrm_emergency_stop_operator_core.cpp +++ b/system/mrm_emergency_stop_operator/src/mrm_emergency_stop_operator/mrm_emergency_stop_operator_core.cpp @@ -115,9 +115,7 @@ void MrmEmergencyStopOperator::onTimer() Control MrmEmergencyStopOperator::compensateControlCommand(const Control & prev_control_cmd) const { - auto control_cmd = Control(); - - control_cmd = prev_control_cmd; + auto control_cmd = prev_control_cmd; const auto dt = (this->now() - prev_control_cmd.stamp).seconds(); control_cmd.stamp = this->now();