Generate Pose from Sphere Fitting Result

Description

This operator generates a pose matrix by using the pose information of three spheres, specifically the sphere center positions. It calculates the average size (average distance between sphere centers) and the pose matrix (including rotation and translation).

Overview

Calculates the overall pose and feature scale based on three sphere center coordinates, typically used for the three-sphere positioning method of calibration boards.

Scenarios

Suitable for scenarios involving the localization of a three-sphere calibration board.

Inputs and Outputs

Inputs

Sphere parameters: A list containing parameters for three spheres. Each sphere parameter is [center.x, center.y, center.z, radius], making it a list with a total of n*4 elements.

Outputs

Current size: The average distance between the three sphere centers, representing the object size.

Current pose matrix: A 4x4 pose matrix, containing the rotation matrix (derived from sphere center positions) and the translation vector (average position of sphere centers).