diff --git a/rm_calibration_controllers/src/mechanical_calibration_controller.cpp b/rm_calibration_controllers/src/mechanical_calibration_controller.cpp index 78bfe2f7..a35642e9 100644 --- a/rm_calibration_controllers/src/mechanical_calibration_controller.cpp +++ b/rm_calibration_controllers/src/mechanical_calibration_controller.cpp @@ -67,7 +67,7 @@ bool MechanicalCalibrationController::init(hardware_interface::RobotHW* robot_hw ROS_ERROR("Position value was not specified (namespace: %s)", nh_return.getNamespace().c_str()); return false; } - if (!controller_nh.getParam("pos_threshold", position_threshold_)) + if (!nh_return.getParam("pos_threshold", position_threshold_)) { ROS_ERROR("Position value was not specified (namespace: %s)", nh_return.getNamespace().c_str()); return false;