![]() |
Industrial Calibration
1.0.0
|
This application performs camera intrinsic calibration based on 2D camera images and measured poses from the camera to the target. The application requires a file that specifies the configuration of the calibration problem and the observation data to be used in the calibration. The outputs of this calibration are:
Run the application by executing the compiled executable from the install directory of the colcon
workspace in which it was built:
Alternatively, use ROS2 to start the application:
The observation data for this application consists of:
The observation data and YAML file can be generated by the calibration data collector node in industrial_calibration_ros
. Alternatively, users can collect calibration data manually and generate the observation YAML file by hand.
Pose files should be specified as a position vector in meters and quaternion, in the following format:
The observations should be collated into a YAML file (e.g., cal_data.yaml
) that lists each corresponding pair of image and pose files. The image and pose files should be specified by their local directory, relative to the location of this file.
Additional configuration information about the system also needs to be provided in order to perform the calibration. This configuration can be generated and saved to YAML file from the GUI using the icons and menu options. The format of the YAML configuration file is as follows:
Estimated camera intrinsic parameters for a pinhole model camera, without distortion
Plugin configuration for target finder used to detect the calibration target in the image observations
Here is an example configuration for a ModifiedCircleGridTargetFinder:
Here is an example configuration for a CharucoGridBoardTargetFinder:
In general, we want to ensure that the calibration target features observed in an image matches closely to the known geometry of the target. For planar calibration targets and 2D images, we can do this by computing a homography transform between the known target features and the observed target features. This homography transform projects the known target features onto the observed target features, allowing us to measure the average distance between corresponding features (in pixels). If the average homography error is above a specified threshold value, we want to exclude that observation from the calibration because the observed target match close enough to our known target geometry.
If true, use the measured camera to target poses to seed the optimization. It is highly recommended to use measured poses for the extrinsic guesses. If false, an arbitrary static camera to target transform will be used to seed the optimization.
Flag indicating whether to use the OpenCV intrinsic calibration algorithm over the one provided in industrial_calibration
.
Here is an example of a calibration configuration YAML file: