Writing /var/lib/dokuwiki/data/meta/tutorials/camera_arm_calibration.meta failed
tutorials:camera_arm_calibration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:camera_arm_calibration [2019/11/08 21:42] – [Executing the calibration script] dgarcia | tutorials:camera_arm_calibration [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 53: | Line 53: | ||
- Enable auto white Balance | - Enable auto white Balance | ||
- Auto Exposure Priority | - Auto Exposure Priority | ||
+ | - Set White Balance to: 3760 | ||
* Close '' | * Close '' | ||
* Remember to source tour workspace before executing the following commands. | * Remember to source tour workspace before executing the following commands. | ||
Line 111: | Line 112: | ||
</ | </ | ||
- | * THen you need to provide a configuration file for the calibration board, like so: | + | * Then you need to provide a configuration file for the calibration board, like so: |
<code yaml> | <code yaml> | ||
Line 118: | Line 119: | ||
cols: 10 | cols: 10 | ||
spacing: 0.01861 | spacing: 0.01861 | ||
+ | </ | ||
+ | |||
+ | * Now we have to create a separate directory for images and poses. | ||
+ | |||
+ | <code bash> | ||
+ | mv < | ||
+ | cd < | ||
+ | mkdir images | ||
+ | mkdir poses | ||
+ | mv *.yml poses | ||
+ | mv *.png images | ||
+ | </ | ||
+ | |||
+ | * Now we have to crate a YAML listing all the files that have to be taken into consideration by the calibration script, in the '' | ||
+ | |||
+ | <code yaml> | ||
+ | # TODO: Fix this exxample | ||
+ | - pose: " | ||
+ | image: " | ||
+ | - pose: " | ||
+ | image: " | ||
+ | . | ||
+ | . | ||
+ | . | ||
+ | </ | ||
+ | |||
+ | * Launch the static calibration script. | ||
+ | <code bash> | ||
+ | roslaunch oms-cylinder/ | ||
+ | </ | ||
+ | |||
+ | * This will start the calibration script. This will open a window that will show you the photos that were taken, you should see some color dots. If your data set is small, you will have to press '' | ||
+ | * You must wait when you press '' | ||
+ | * Once the algorithm converges you will see a lot of results like the one shown below. The calibration result is the first one. | ||
+ | |||
+ | < | ||
+ | Did converge?: 1 | ||
+ | Initial cost?: 47853.2 (pixels per dot) | ||
+ | Final cost?: 0.655122 (pixels per dot) | ||
+ | |||
+ | BASE TO CAMERA: | ||
+ | | ||
+ | | ||
+ | 0.144021 | ||
+ | | ||
+ | |||
+ | --- URDF Format Base to Camera --- | ||
+ | xyz=" | ||
+ | rpy=" | ||
+ | qxyzw=" | ||
+ | |||
+ | BASE TO CAMERA: | ||
+ | | ||
+ | -0.00618554 | ||
+ | 0.99981 | ||
+ | 0 | ||
+ | |||
+ | --- URDF Format Base to Camera --- | ||
+ | xyz=" | ||
+ | rpy=" | ||
+ | qxyzw=" | ||
</ | </ | ||
==== Verify that the calibration is correct ==== | ==== Verify that the calibration is correct ==== | ||
tutorials/camera_arm_calibration.1573249364.txt.gz · Last modified: 2022/09/20 00:08 (external edit)