From f5448a751db22f985367b9b12c16efb254ac4b50 Mon Sep 17 00:00:00 2001 From: 1moule <1961466188@qq.com> Date: Thu, 25 May 2023 00:20:40 +0800 Subject: [PATCH] Modify node handle to get pos_threshold. --- .../src/mechanical_calibration_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;