Skip to content

Commit 25bbede

Browse files
authored
improve docs around usage of extracted calibration info (#1214)
1 parent 473cdee commit 25bbede

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

ur_robot_driver/doc/installation/robot_setup.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ Prepare the ROS PC
6969
For using the driver make sure it is installed (either by the debian package or built from source
7070
inside a colcon workspace).
7171

72+
.. _calibration_extraction:
73+
7274
Extract calibration information
7375
-------------------------------
7476

75-
.. _calibration_extraction:
76-
7777
Each UR robot is calibrated inside the factory giving exact forward and inverse kinematics. To also
7878
make use of this in ROS, you first have to extract the calibration information from the robot.
7979

@@ -87,5 +87,11 @@ For this, there exists a helper script:
8787
$ ros2 launch ur_calibration calibration_correction.launch.py \
8888
robot_ip:=<robot_ip> target_filename:="${HOME}/my_robot_calibration.yaml"
8989
90+
.. note::
91+
The robot must be powered on (can be idle) before executing this script.
92+
93+
9094
For the parameter ``robot_ip`` insert the IP address on which the ROS pc can reach the robot. As
9195
``target_filename`` provide an absolute path where the result will be saved to.
96+
97+
See :ref:`ur_robot_driver_startup` for instructions on using the extracted calibration information.

ur_robot_driver/doc/usage/startup.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Allowed ``ur_type`` strings: ``ur3``, ``ur3e``, ``ur5``, ``ur5e``, ``ur10``, ``u
2828
Other important arguments are:
2929

3030

31+
* ``kinematics_params_file`` (default: *None*) - Path to the calibration file extracted from the robot, as described in :ref:`calibration_extraction`.
3132
* ``use_mock_hardware`` (default: *false* ) - Use simple hardware emulator from ros2_control. Useful for testing launch files, descriptions, etc.
3233
* ``headless_mode`` (default: *false*) - Start driver in :ref:`headless_mode`.
3334
* ``launch_rviz`` (default: *true*) - Start RViz together with the driver.
@@ -72,6 +73,31 @@ Depending on the :ref:`robot control mode<operation_modes>` do the following:
7273

7374
.. _continuation_after_interruptions:
7475

76+
Verify calibration info is being used correctly
77+
-----------------------------------------------
78+
79+
.. _verify_calibration:
80+
81+
If you passed a path to an extracted calibration via the *kinematics_params_file*
82+
parameter, ensure that the loaded calibration matches that of the robot by inspecting the console
83+
output after launching the ``ur_robot_driver``. If the calibration does not match, you will see an error:
84+
85+
.. code-block::
86+
87+
[INFO] [1694437690.406932381] [URPositionHardwareInterface]: Calibration checksum: 'calib_xxxxxxxxxxxxxxxxxxx'
88+
[ERROR] [1694437690.516957265] [URPositionHardwareInterface]: The calibration parameters of the connected robot don't match the ones from the given kinematics config file.
89+
90+
With the correct calibration you should see:
91+
92+
.. code-block::
93+
94+
[INFO] [1694437690.406932381] [URPositionHardwareInterface]: Calibration checksum: 'calib_xxxxxxxxxxxxxxxxxxx'
95+
[INFO] [1694437690.516957265] [URPositionHardwareInterface]: Calibration checked successfully.
96+
97+
Alternatively, search for the term *checksum* in the console output after launching the driver.
98+
Verify that the printed checksum matches that on the final line of your extracted calibration file.
99+
100+
75101
Continuation after interruptions
76102
--------------------------------
77103

0 commit comments

Comments
 (0)