mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 18:10:47 +02:00
print an error message in calibration and exit when connection cannot be established
This commit is contained in:
@@ -183,6 +183,8 @@ int main(int argc, char* argv[])
|
|||||||
ros::init(argc, argv, "ur_calibration");
|
ros::init(argc, argv, "ur_calibration");
|
||||||
ros::NodeHandle nh("~");
|
ros::NodeHandle nh("~");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
CalibrationCorrection my_calibration_correction(nh);
|
CalibrationCorrection my_calibration_correction(nh);
|
||||||
my_calibration_correction.run();
|
my_calibration_correction.run();
|
||||||
if (!my_calibration_correction.writeCalibrationData())
|
if (!my_calibration_correction.writeCalibrationData())
|
||||||
@@ -191,5 +193,10 @@ int main(int argc, char* argv[])
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ROS_INFO("Calibration correction done");
|
ROS_INFO("Calibration correction done");
|
||||||
|
}
|
||||||
|
catch (const UrException& e)
|
||||||
|
{
|
||||||
|
ROS_ERROR_STREAM(e.what());
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user