A method, device, equipment and medium for correcting a depth point cloud of a robot

By matching the time and unifying the coordinates of LiDAR and depth camera data, a pixel block parameter table is generated and bilinear interpolation correction is performed. This solves the problem of inconsistent ranging deviations at different pixel positions of the depth camera and improves the accuracy and consistency of robot point cloud correction.

CN123181578APending Publication Date: 2026-11-27HUNAN XINGYUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611684175.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The inconsistent ranging deviations at different pixel positions of depth cameras make it difficult to guarantee the accuracy and consistency of robot point cloud correction methods.

Method used

By performing time pairing and coordinate unification processing on lidar scanning data and depth camera point cloud data, the horizontal angle and pixel coordinates of camera points and lidar points are determined, a pixel block parameter table is generated, and bilinear interpolation is used to generate and apply correction parameters.

Benefits of technology

It achieves high-precision correction of robot point cloud data, eliminates matching errors caused by time misalignment and coordinate system differences, and improves the accuracy of robot's perception of depth information in the environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181578A_ABST
    Figure CN123181578A_ABST
Patent Text Reader

Abstract

The application discloses a kind of robot's depth point cloud correction method, device, equipment and medium, it is related to point cloud processing technical field, including: target robot's laser radar scanning data and depth camera point cloud data are time pairing and coordinate uniform processing, to determine that camera point and radar point are all located in camera coordinate system;Calculate horizontal angle and determine pixel coordinates, to pair camera point and radar point based on horizontal angle, determine reference depth sample, including the first forward depth of camera point, the second forward depth of radar point conversion to camera coordinate system and pixel coordinates;Linear fitting is carried out to sample in the pixel block that sample falls into respectively, to generate the pixel block parameter table for storing each pixel block block parameter;After receiving target depth point cloud, the target pixel coordinates of several target camera points are determined, and surrounding block parameter is obtained from pixel block parameter table;Bilinear interpolation is carried out to surrounding block parameter, and target depth point cloud is corrected based on target correction parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of point cloud processing technology, and in particular to a method, apparatus, device, and medium for depth point cloud correction of a robot. Background Technology

[0002] The ranging bias of depth cameras can vary with the imaging position. If the entire image uses only the same scale or offset, it is difficult to simultaneously adapt the center and edges of the image. Saving a separate calibration table for each pixel increases the workload of acquisition, storage, and maintenance. Controlled planes or moving calibration boards can provide reliable references, but for already assembled and operating robots, setting up additional multi-position calibration stations is cumbersome. Uniform compensation for the entire image is insufficient to describe the bias at different positions; directly using independent coefficients on a block-by-block basis may cause abrupt changes in point cloud depth at block boundaries. Two-dimensional radar on robots samples only on a single scanning plane; if the time, coordinates, and orientation are inconsistent, or if ranging measurements from different object surfaces are directly paired, incorrect calibration samples will be obtained. Therefore, the problem of inconsistent ranging bias at different pixel positions of depth cameras remains to be solved.

[0003] In summary, optimizing the depth point cloud correction method for robots to address the inconsistency in ranging deviations at different pixel positions of depth cameras is a pressing issue that needs to be resolved. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and medium for depth point cloud correction of a robot, which can optimize the depth point cloud correction method of the robot to solve the problem of inconsistent ranging deviations at different pixel positions of the depth camera. The specific solution is as follows: Firstly, this application provides a method for depth point cloud correction of a robot, including: The lidar scanning data and depth camera point cloud data of the target robot are processed by time pairing and coordinate unification to determine the corresponding camera points and radar points; the camera points and the radar points are both located in the camera coordinate system; The horizontal angles of the camera point and the radar point are calculated respectively, and the pixel coordinates of the camera point are determined. The camera point and the radar point are then paired based on the horizontal angles to determine a reference depth sample. The reference depth sample includes the first forward depth of the camera point, the second forward depth of the radar point transformed to the camera coordinate system, and the pixel coordinates. The pixel blocks of the depth image into which the reference depth sample falls are determined based on the pixel coordinates, and linear fitting is performed on the corresponding reference depth sample within each pixel block to generate a pixel block parameter table based on the obtained fitting results; the pixel block parameter table is used to store the block parameters corresponding to each pixel block, including scale parameters and bias parameters. After receiving the target depth point cloud output by the depth camera deployed on the target robot, the target pixel coordinates of several target camera points in the target depth point cloud are determined, and the surrounding block parameters are obtained from the pixel block parameter table based on the target pixel coordinates; the surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block into which the target camera point falls. The surrounding block parameters are bilinearly interpolated to obtain target correction parameters, and the target depth point cloud is corrected based on the target correction parameters.

[0005] Optionally, the step of performing time pairing and coordinate unification processing on the lidar scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points includes: The lidar scanning data and depth camera point cloud data of the target robot are time-paired using a preset approximate synchronization window; Using the base coordinate system of the target robot, the camera extrinsic parameters of the depth camera, and the radar extrinsic parameters of the lidar, the radar sampling points of the lidar scanning data are transformed into the camera coordinate system to determine the radar points after the coordinate system transformation; the lidar is deployed on the target robot. The camera points in the depth camera point cloud data are converted to the base coordinate system, and the camera points are filtered according to a preset height range to obtain the filtered camera points.

[0006] Optionally, determining the pixel coordinates of the camera point to pair the camera point and the radar point based on the horizontal angle to determine a reference depth sample includes: Determine the first forward depth of the camera point; If the first forward depth is within a preset depth distance range and the horizontal angle of the camera point is within a preset horizontal viewing angle range, then the pixel coordinates of the camera point are determined using the camera intrinsic parameters of the depth camera. Based on the horizontal angle, a pair of radar points with a horizontal angle difference between them and the camera point that does not exceed a preset angle difference threshold are determined to determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the pair of radar points transformed to the camera coordinate system, and the pixel coordinates.

[0007] Optionally, the step of performing linear fitting on the corresponding reference depth samples within the pixel block to generate a pixel block parameter table based on the obtained fitting results includes: An initial linear fit is performed on the corresponding reference depth sample within each pixel block to calculate the fitting residual of the reference depth sample during the initial linear fit, and to determine the first root mean square error of the pixel block. Outlier samples in the reference depth sample are removed based on the standard deviation of the fitted residuals to obtain the removed reference depth sample; the outlier samples are those whose absolute value of the fitted residuals is greater than a preset range of the standard deviation of the residuals. Linear fitting is performed on the corresponding removed reference depth samples within the pixel block to obtain the corresponding target fitting result, and the second root mean square error of the pixel block is determined. A pixel block parameter table is generated based on the first root mean square error, the second root mean square error, and the target fitting result.

[0008] Optionally, the target fitting result includes block parameters of the pixel block; the block parameters include scale parameters and bias parameters; Accordingly, generating the pixel block parameter table based on the first root mean square error, the second root mean square error, and the target fitting result includes: Determine the number of samples of the removed reference depth sample that fall into the pixel block; Remove the block parameter of the target pixel block in the target fitting result to obtain the target fitting result after removal; the target pixel block is a pixel block in which the number of samples is lower than a preset number threshold, the scale parameter exceeds the preset parameter range, or the second root mean square error is not lower than the first root mean square error; A pixel block parameter table is generated based on the target fitting result after removal. During the generation process, for the pixel block with missing parameters in the depth image, the block parameter of the nearest valid block in the target fitting result after removal is determined as the block parameter of the pixel block with missing parameters. Wherein, the parameter missing pixel block is a pixel block that has no corresponding block parameter in the target fitting result after removal; the nearest valid block is the pixel block that is closest to the parameter missing pixel block in the pixel space.

[0009] Optionally, determining the target pixel coordinates of several target camera points in the target depth point cloud, and obtaining surrounding block parameters from the pixel block parameter table based on the target pixel coordinates, includes: Based on the camera intrinsic parameters of the depth camera, determine the target pixel coordinates of several target camera points of the target depth point cloud, and determine the target depth image corresponding to the target depth point cloud. The plurality of target camera points are mapped onto the target depth image to determine the falling pixel block into which the target camera points fall; Based on the target pixel coordinates, determine the relative pixel coordinates of the target camera point with respect to the center of the pixel block that falls into the pixel block; The surrounding block parameters are obtained from the pixel block parameter table using the relative pixel coordinates; Accordingly, the step of performing bilinear interpolation on the surrounding block parameters to obtain the target correction parameters includes: Based on the relative pixel coordinates and the target pixel coordinates, bilinear interpolation is performed on the surrounding block parameters to obtain the target correction parameters.

[0010] Optionally, the step of correcting the target depth point cloud based on the target correction parameters includes: The original forward depth of the plurality of target camera points is corrected using the target correction parameters to obtain an initial corrected depth; If the initial correction depth exceeds the preset depth range, the initial correction depth is limited to obtain the target correction depth. Determine the depth ratio between the target correction depth and the original forward depth, and use the depth ratio to scale and correct the target pixel coordinates of the target camera point to correct the target depth point cloud.

[0011] Secondly, this application provides a depth point cloud correction device for a robot, comprising: The data processing module is used to perform time matching and coordinate unification processing on the LiDAR scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points; the camera points and the radar points are both located in the camera coordinate system; A coordinate determination module is used to calculate the horizontal angles of the camera point and the radar point respectively, and determine the pixel coordinates of the camera point, so as to pair the camera point and the radar point based on the horizontal angles and determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the radar point transformed to the camera coordinate system, and the pixel coordinates; A linear fitting module is used to determine the pixel blocks of the depth image in which the reference depth sample falls based on the pixel coordinates, and to perform linear fitting on the corresponding reference depth sample within each pixel block to generate a pixel block parameter table based on the obtained fitting results; the pixel block parameter table is used to store the block parameters corresponding to each pixel block, including scale parameters and bias parameters. The parameter acquisition module is used to determine the target pixel coordinates of several target camera points in the target depth point cloud after receiving the target depth point cloud output by the depth camera deployed on the target robot, and to obtain the surrounding block parameters from the pixel block parameter table based on the target pixel coordinates; the surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block into which the target camera point falls. The point cloud correction module is used to perform bilinear interpolation on the surrounding block parameters to obtain target correction parameters, and to correct the target depth point cloud based on the target correction parameters.

[0012] Thirdly, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute the computer program to implement the aforementioned depth point cloud correction method for the robot.

[0013] Fourthly, this application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned method for correcting the depth point cloud of a robot.

[0014] In this application, time pairing and coordinate unification processing are performed on the LiDAR scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points. Both the camera points and radar points are located in the camera coordinate system. The horizontal angles of the camera points and radar points are calculated respectively, and the pixel coordinates of the camera points are determined. Based on the horizontal angles, the camera points and radar points are paired to determine a reference depth sample. The reference depth sample includes the first forward depth of the camera points, the second forward depth of the radar points transformed to the camera coordinate system, and the pixel coordinates. The pixel blocks of the depth image into which the reference depth sample falls are determined according to the pixel coordinates, and the corresponding pixel points are processed within the pixel blocks. The reference depth sample is linearly fitted to generate a pixel block parameter table based on the fitting result. The pixel block parameter table stores the block parameters corresponding to each pixel block, including scale parameters and bias parameters. After receiving the target depth point cloud output by the depth camera deployed on the target robot, the target pixel coordinates of several target camera points in the target depth point cloud are determined, and the surrounding block parameters are obtained from the pixel block parameter table based on the target pixel coordinates. The surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block in which the target camera point falls. The surrounding block parameters are bilinearly interpolated to obtain target correction parameters, and the target depth point cloud is corrected based on the target correction parameters. As can be seen from the above, this application performs time pairing and coordinate unification on the LiDAR scanning data and depth camera point cloud data of the target robot, unifying the two types of data into the camera coordinate system. By matching camera points and radar points at horizontal angles, a reference depth sample is constructed, which includes the first forward depth of the camera points, the second forward depth of the radar points transformed into the camera coordinate system, and the pixel coordinates. Based on the pixel coordinates, the reference depth sample is mapped to the pixel blocks corresponding to the depth image. Linear fitting is performed on the reference depth sample within the pixel blocks to generate a pixel block parameter table for storing the scale parameters and bias parameters corresponding to the pixel blocks. When the depth camera outputs the target depth point cloud, the peripheral block parameters of the adjacent pixel blocks are read based on the target pixel coordinates, and the target correction parameters are obtained through bilinear interpolation. The target correction parameters are then used to complete the correction of the target depth point cloud.In this way, through the above-described process of this application, the lidar scanning data and depth camera point cloud data are time-paired and their coordinates are unified to the camera coordinate system. This enables the establishment of comparable depth samples from the two types of sensors, eliminating matching errors caused by time misalignment and coordinate system differences. By pairing camera points and radar points based on horizontal angles to construct reference depth samples, effective comparison samples can be efficiently screened for calibrating the depth deviation of the depth camera. By linearly fitting the reference depth samples to pixel blocks to generate a pixel block parameter table, the local distribution characteristics of depth error in image space can be characterized, adapting to the nonlinear deviation of the depth camera as pixel position changes. By performing bilinear interpolation on the peripheral block parameters of adjacent pixel blocks to obtain target correction parameters, pixel-level smooth transition parameter solving can be achieved, avoiding boundary jumps caused by block correction. Ultimately, this improves the measurement accuracy of the robot's depth point cloud, provides more accurate depth information for the robot to perceive the environment, and optimizes the robot's depth point cloud correction method to solve the problem of inconsistent ranging deviations at different pixel positions of the depth camera. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0016] Figure 1 This is a flowchart of a depth point cloud correction method for a robot disclosed in this application; Figure 2 This is a schematic diagram of the processing flow of a depth point cloud correction method for a robot disclosed in this application; Figure 3 This is a schematic diagram of the offline acquisition and fitting stage processing flow disclosed in this application; Figure 4 This is a schematic diagram of the processing flow for an online point cloud correction stage disclosed in this application; Figure 5 This is a schematic diagram of the structure of a depth point cloud correction device for a robot disclosed in this application; Figure 6 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] The ranging bias of depth cameras can vary with the imaging position. If the entire image uses only the same scale or offset, it is difficult to simultaneously adapt the center and edges of the image. Saving a separate calibration table for each pixel increases the workload of acquisition, storage, and maintenance. Controlled planes or moving calibration boards can provide reliable references, but for already assembled and operating robots, setting up additional multi-position calibration stations is cumbersome. Uniform compensation for the entire image is insufficient to describe the bias at different positions; directly using independent coefficients on a block-by-block basis may cause abrupt changes in point cloud depth at block boundaries. Two-dimensional radar on robots samples only on a single scanning plane; if the time, coordinates, and orientation are inconsistent, or if ranging measurements from different object surfaces are directly paired, incorrect calibration samples will be obtained. Therefore, the problem of inconsistent ranging bias at different pixel positions of depth cameras remains to be solved.

[0019] To overcome the aforementioned technical problems, this application provides a depth point cloud correction method for robots, which can optimize the depth point cloud correction method for robots to solve the problem of inconsistent ranging deviations at different pixel positions of depth cameras.

[0020] See Figure 1 As shown in the figure, an embodiment of the present invention discloses a method for depth point cloud correction of a robot, including: Step S11: Perform time pairing and coordinate unification processing on the LiDAR scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points; the camera points and radar points are both located in the camera coordinate system.

[0021] In this embodiment, LiDAR scanning data and depth camera point cloud data are acquired using a LiDAR and depth camera mounted on the target robot. Time pairing and coordinate unification processing are then performed on the acquired LiDAR scanning data and depth camera point cloud data to obtain camera points and LiDAR points unified to the camera coordinate system of the depth camera. The LiDAR is a two-dimensional LiDAR.

[0022] It should be noted that the ranging bias of a depth camera may vary with the imaging position. If the entire image uses only the same scale or bias, it is difficult to simultaneously adapt the center and edges of the image. Saving a separate calibration table for each pixel increases the workload of acquisition, storage, and maintenance. When a mobile robot is already equipped with a 2D LiDAR and a depth camera, it is possible to try to establish spatial partitioning calibration parameters using the ranging correspondence between the two sensors in the common observation area, but time pairing, coordinate transformation, mismatch, and partition boundaries must be handled. In response, this application proposes a depth point cloud calibration method for robots. This method uses the robot's existing 2D LiDAR to acquire depth reference samples, generates camera pixel block parameters, and calibrates the point cloud. Using the robot's existing 2D LiDAR and depth camera, a reference depth sample with pixel positions is formed in the common observation area of ​​both. The depth scale and bias are estimated according to the pixel blocks, and subsequent point clouds are calibrated with a continuous parameter field. Specifically, it addresses the problems of sample pairing, interference from outliers on local fitting, parameter loss in insufficient sample blocks, discontinuous block boundaries, and destroying the point cloud's line of sight by only modifying the depth. Figure 2 The diagram shows a schematic of the processing flow of a depth point cloud correction method for a robot provided in this application. This method includes a time pairing and common coordinate module, a common viewpoint sample generation module, a pixel block fitting and completion module, and an online parameter interpolation and point cloud correction module. The basic idea is as follows: the scheme is divided into two stages: offline acquisition and fitting, and online point cloud correction. Figure 3 The diagram illustrates a processing flow for the offline acquisition and fitting stage provided in this application. In the offline stage, two-dimensional radar scans and camera point clouds with similar timeframes are acquired, and both are represented in the camera coordinate system using extrinsic parameters. Camera points calculate pixel positions based on intrinsic parameters and are then paired with radar points according to the horizontal observation direction. Each pixel block independently fits the scale and offset between the reference depth and the camera depth. During fitting, samples with excessively large residuals are discarded, and the sample size, scale range, and error are checked for improvement. Unfitted blocks borrow parameters from neighboring valid blocks. In the online stage, pixels are calculated for camera points, and the scale and offset of the point are determined by interpolation using surrounding block parameters. The optical axis depth is corrected, and the horizontal and vertical coordinates are synchronously scaled according to the depth ratio to generate a corrected point cloud.

[0023] It should be noted that the processing flow for time pairing and coordinate unification of the LiDAR scanning data and depth camera point cloud data of the target robot is as follows: Time pairing is performed on the LiDAR scanning data and depth camera point cloud data of the target robot using a preset approximate synchronization window; the radar sampling points of the LiDAR scanning data are transformed to the camera coordinate system using the base coordinate system of the target robot, the camera extrinsic parameters of the depth camera, and the radar extrinsic parameters of the LiDAR, to determine the radar points after coordinate transformation; the LiDAR is deployed on the target robot; the camera points of the depth camera point cloud data are transformed to the base coordinate system, and the camera points are filtered according to a preset height range to obtain the filtered camera points. That is, the time pairing and common coordinate module acquires LaserScan (the scanning data message output by the LiDAR, i.e., the LiDAR scanning data), PointCloud2 (the point cloud message output by the depth camera, i.e., the depth camera point cloud data), and CameraInfo (the camera information message of the depth camera, which saves the camera calibration parameters). An approximate time synchronizer can be used to pair radar scans and camera point cloud timestamps. The example implementation uses an approximate synchronization window of 0.1 seconds and a queue length of 10. If the synchronization module is unavailable, the most recently received radar and point cloud message timestamps are used for pairing; this degradation method requires additional time difference verification. Then, using the target robot's base coordinate system and the extrinsic parameters of the two sensors (camera and radar extrinsic parameters), the radar sampling points are transformed from the base coordinate system to the camera coordinate system. Camera points can also be transformed to the base coordinate system for height range filtering. This module determines whether subsequent samples have comparable temporal and geometric foundations. In this way, this embodiment utilizes a preset approximate synchronization window to time-pair LiDAR scanning data and depth camera point cloud data, which can tolerate slight deviations in the sampling times of the two types of sensors, adapt to the non-strictly synchronized acquisition characteristics of different sensors, and determine LiDAR scanning data and depth camera point cloud data with similar times. By using multi-coordinate system extrinsic parameters to unify radar points to the camera coordinate system, the misalignment between radar data and camera data in terms of spatial reference is eliminated, allowing camera points and radar points to have a comparable spatial reference, laying the foundation for subsequent sample pairing. By filtering camera points by height range under the base coordinate system, irrelevant points on the ground and at high altitudes are filtered out in advance, reducing the amount of subsequent pairing calculations.

[0024] Step S12: Calculate the horizontal angles of the camera point and the radar point respectively, and determine the pixel coordinates of the camera point, so as to pair the camera point and the radar point based on the horizontal angles and determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the radar point transformed to the camera coordinate system, and the pixel coordinates.

[0025] In this embodiment, the common viewpoint sample generation module calculates the horizontal angles of the camera point and the radar point in the camera coordinate system, determines the pixel coordinates of the camera point, and generates a reference depth sample based on the horizontal angles of the camera point and the radar point. The sample includes the first forward depth of the camera point, the converted second forward depth of the radar point, and the pixel coordinates.

[0026] It should be noted that the specific formula for calculating the horizontal angle is as follows: ; Where θ is the horizontal angle (horizontal azimuth angle); atan2 is the arctangent function in the four quadrants; x represents the left-right coordinates of the point in the camera coordinate system, and z represents the forward depth of the point from the camera in the camera coordinate system, i.e., the distance along the camera's optical axis. It should be further noted that the process of determining the pixel coordinates of the camera point to pair the camera point and the radar point based on the horizontal angle and determine the reference depth sample is as follows: Determine the first forward depth of the camera point; if the first forward depth is within a preset depth distance range, and the horizontal angle of the camera point is within a preset horizontal viewing angle range, then determine the pixel coordinates of the camera point using the camera intrinsic parameters of the depth camera; determine paired radar points whose horizontal angle difference with the camera point does not exceed a preset angle difference threshold based on the horizontal angle, thereby determining the reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the paired radar point transformed to the camera coordinate system, and the pixel coordinates. That is, the camera point is taken as having a forward depth z_c (first forward depth) in the camera coordinate system, and the radar point is first transformed from the base coordinate system to the camera coordinate system, and its forward coordinate z_l (second forward depth) is taken. When the camera point is within the effective distance, horizontal viewing angle, and base height range, it is determined to be a valid point, and the pixel coordinates (u,v) are calculated using the camera intrinsic parameters. ; ; Where x, y, and z are the X, Y, and Z coordinates of the point in the camera coordinate system, respectively. The positive X direction is to the right of the camera, the positive Y direction is downward of the camera, and the depth value along the optical axis is Z; u and v are the column coordinates and row coordinates of the image pixels, respectively. and These are the equivalent focal lengths in the x and y directions, respectively. and These are the horizontal and vertical pixel coordinates of the principal point (optical center). The camera point and the radar point are paired as nearest neighbors at a common horizontal angle θ = atan2(x,z). The nearest radar point is found for each horizontal angle of the camera point. Only when the angle difference does not exceed a threshold (e.g., 1°) is a pair of camera forward depth z_c, radar-converted camera forward depth z_l, and pixel coordinates formed. This matching does not automatically prove that the two points are on the same physical surface. Sample collection should select scenes with common visibility and minimal occlusion, and the impact of incorrect pairings should be considered in conjunction with fitting acceptance constraints. Thus, this embodiment limits the depth distance, horizontal view range, and height range to filter valid camera points, eliminating invalid points outside the perception range. Using the horizontal angle as the matching criterion, camera points and radar points are paired to construct reference depth samples, quickly matching corresponding spatial target sampling points, efficiently constructing a sample set for calibrating depth errors, improving the accuracy of sample pairing, and reducing the inclusion of incorrectly paired samples. Reference samples are established using the ranging of existing 2D LiDAR in a common view, allowing the generation of camera depth correction parameters within the robot sensor assembly.

[0027] Step S13: Determine the pixel blocks of the depth image into which the reference depth sample falls based on the pixel coordinates, and perform linear fitting on the corresponding reference depth sample within each pixel block to generate a pixel block parameter table based on the obtained fitting results; the pixel block parameter table is used to store the block parameters corresponding to each pixel block, including scale parameters and bias parameters.

[0028] In this embodiment, the pixel block fitting and completion module divides the image into R rows and C columns to obtain a depth image including multiple pixel blocks. The pixel blocks to which the reference depth sample belongs are determined according to the pixel coordinates. Linear fitting is performed on the reference depth sample within each pixel block to generate a pixel block parameter table storing the scale parameters and bias parameters of each pixel block.

[0029] It should be noted that the process of performing linear fitting on the corresponding reference depth samples within the pixel block to generate a pixel block parameter table based on the obtained fitting results is as follows: Initial linear fitting is performed on the corresponding reference depth samples within the pixel block to calculate the fitting residual of the reference depth samples during the initial linear fitting, and the first root mean square error of the pixel block is determined; outlier samples in the reference depth samples are removed according to the standard deviation of the residuals to obtain the removed reference depth samples; the outlier samples are those whose absolute value of the fitting residual is greater than a preset amplitude of the standard deviation of the residuals; linear fitting is performed on the corresponding removed reference depth samples within the pixel block to obtain the corresponding target fitting results, and the second root mean square error of the pixel block is determined; a pixel block parameter table is generated based on the first root mean square error, the second root mean square error, and the target fitting results. That is, each set of matched samples (reference depth samples) falls into a pixel block according to pixel (u,v), and an initial linear fitting z_l = s·z_c + b is performed within the pixel block. s is the scaling parameter, and b is the bias parameter. Calculate the fitting residuals for the initial linear fit. : ; Where i is the index of the i-th reference depth sample; It is the radar reference forward depth of the i-th sample; This is the original forward depth measured by the depth camera for the i-th sample. Simultaneously, the first root mean square error (RMSE) of the pixel block during the initial linear fitting is determined. Outliers with |e_i| > 2.5σ are removed using the standard deviation σ of the fitting residuals as a scale, and the fit is re-performed to obtain the corresponding target fitting result. The second root mean square error of the pixel block is then determined. A pixel block parameter table is generated based on the first root mean square error, the second root mean square error, and the target fitting result. The root mean square error is calculated based on the retained samples.

[0030] It should be further noted that the target fitting result includes the block parameters of the pixel block; the block parameters include scale parameters and bias parameters. Accordingly, the process of generating a pixel block parameter table based on the first root mean square error, the second root mean square error, and the target fitting result is as follows: Determine the number of samples of the removed reference depth samples falling into the pixel block; remove the block parameters of the target pixel block from the target fitting result to obtain the removed target fitting result; the target pixel block is a pixel block whose sample number is lower than a preset threshold, whose scale parameter exceeds a preset parameter range, or whose second root mean square error is not lower than the first root mean square error; generate a pixel block parameter table based on the removed target fitting result, and during the generation process, for parameter-deficient pixel blocks in the depth image, determine the block parameters of the nearest valid block in the removed target fitting result as the block parameters of the parameter-deficient pixel block; wherein, the parameter-deficient pixel block is a pixel block without corresponding block parameters in the removed target fitting result; the nearest valid block is the pixel block that is closest to the parameter-deficient pixel block in pixel space. That is, only blocks with sufficient retained samples, a scale s within a set positive range, and a root mean square error (RMSE) after correction less than that before correction are accepted. For example, blocks with fewer than 30 retained samples, s≤0 or s>3, or a refitted RMSE (second RMSE) not lower than the original RMSE (first RMSE) after correction are removed. Removed blocks are not accepted for quadratic linear fitting. If there is at least one valid block, the s and b values ​​of the spatially nearest valid block can be used as filler parameters for blocks that fail acceptance, ultimately forming a two-dimensional parameter table (pixel block parameter table) that can be looked up by online nodes. The configuration file stores the s and b values ​​of each block row by row. If there are no valid blocks, no correction parameter table (pixel block parameter table) is generated. For example, a 320×240 pixel image is divided into 8 columns and 6 rows, with each block being 40×40 pixels. A block has no fewer than 30 pairs of valid matching depth samples. After initial fitting, pairs with residuals greater than 2.5σ are removed, and then refitting is performed. Assuming the refitted values ​​for this block are s=0.96 and b=-0.02 m, and meet the scale and RMSE acceptance criteria, then when the camera measures z=1.00 m at the block center, the uncropped correction depth is 0.94 m. If a point lies between blocks, the actual online value is interpolated from the parameters of adjacent blocks; a single block's example value cannot be directly used for the entire image. The x and y values ​​for that point need to be multiplied by 0.94 / 1.00 to maintain consistent projection directions.In this embodiment, the reference depth sample is divided into pixel blocks according to pixel coordinates and linearly fitted to each block. Pixel block fitting allows different scales and biases for different imaging positions, which can characterize the local distribution of depth error as the image pixel position changes. The scale and bias parameters are used to characterize the depth deviation model of each region. The residual is obtained from the initial fitting, and then outlier samples are removed based on the standard deviation of the residuals. The removed samples are linearly fitted again and the root mean square error of the two fittings is compared to remove the interference of abnormal samples on the fitting results, verify the fitting quality, and improve the reliability of the block parameters obtained by block fitting. Invalid pixel block parameters are filtered out under multiple conditions such as the number of samples, parameter range, and root mean square error before and after fitting. Only blocks with improved error and meeting the sample size and scale constraints are accepted. This can prevent obviously unqualified fitting results from being directly included in the online table. The missing pixel blocks are filled with the nearest valid block parameters to ensure that every pixel region of the entire depth image has usable correction parameters and avoid parameter gaps in the correction process.

[0031] Step S14: After receiving the target depth point cloud output by the depth camera deployed on the target robot, determine the target pixel coordinates of several target camera points in the target depth point cloud, and obtain the surrounding block parameters from the pixel block parameter table based on the target pixel coordinates; the surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block into which the target camera point falls.

[0032] In this embodiment, the target depth point cloud output by the depth camera of the target robot is received, the target pixel coordinates corresponding to several target camera points in the target depth point cloud are calculated, and the peripheral block parameters of the adjacent pixel blocks of the pixel block where the target camera point is located are read from the pixel block parameter table based on the target pixel coordinates.

[0033] Understandably, the online parameter interpolation and point cloud correction module performs online point cloud correction. For example... Figure 4 The diagram illustrates the processing flow of an online point cloud correction stage provided in this application. The online node reads the block parameter table (pixel block parameter table) and CameraInfo. It inversely calculates the pixels for each camera point, determines the scale and offset of that point using interpolation of surrounding block parameters, corrects the optical axis depth, and synchronously scales the horizontal and vertical coordinates according to the depth ratio to generate a corrected point cloud.

[0034] It should be noted that the process of determining the target pixel coordinates of several target camera points in the target depth point cloud and obtaining the surrounding block parameters from the pixel block parameter table based on the target pixel coordinates is as follows: Based on the camera intrinsics of the depth camera, determine the target pixel coordinates of several target camera points in the target depth point cloud and determine the target depth image corresponding to the target depth point cloud; map the several target camera points onto the target depth image to determine the pixel block into which the target camera points fall; based on the target pixel coordinates, determine the relative pixel coordinates of the target camera point relative to the center of the pixel block into which it falls; and use the relative pixel coordinates to obtain the surrounding block parameters from the pixel block parameter table. That is, the several target camera points in the target depth point cloud are filtered by depth distance, horizontal viewing angle range, and height range to determine valid points. For the valid points, the target pixel coordinates are calculated inversely according to the camera intrinsics. The valid points are mapped onto the target depth image. For the pixel block into which they fall, the relative pixel coordinates of the valid target camera point relative to the center of the pixel block into which it falls are determined, i.e., the continuous coordinates of the pixel relative to the center of the block. Based on this, the surrounding block parameters are obtained. For example, for block width w and height h, the following formula is used to represent the continuous row and column positions (relative pixel coordinates) relative to the block center: ; ; Where u and v are the pixel column coordinates and row coordinates, respectively; w and h are the pixel block width and height, respectively; and c and r are the row position and column position, respectively. Based on the relative pixel coordinates, s and b of four adjacent blocks are selected from the pixel block parameter table, which are the surrounding block parameters. In this way, this embodiment retrieves the surrounding block parameters of adjacent pixel blocks based on the target camera point pixel coordinates, preparing neighborhood parameters for subsequent interpolation calculations of continuously smooth correction parameters, supporting pixel-level continuous depth correction; by using camera intrinsic parameters to map 3D points to the depth image pixel space and solve for the relative pixel coordinates, the position of the target point within the pixel block can be accurately located, ensuring the accurate spatial correspondence between the selection of the surrounding block parameters and the interpolation calculation.

[0035] Step S15: Perform bilinear interpolation on the surrounding block parameters to obtain target correction parameters, and correct the target depth point cloud based on the target correction parameters.

[0036] In this embodiment, bilinear interpolation is performed on the surrounding block parameters to obtain target correction parameters, and the target depth point cloud is corrected using the target correction parameters.

[0037] It should be noted that the process of performing bilinear interpolation on the surrounding block parameters to obtain the target correction parameters is as follows: Based on the relative pixel coordinates and the target pixel coordinates, bilinear interpolation is performed on the surrounding block parameters to obtain the target correction parameters. That is, when inter-block interpolation is enabled, bilinear interpolation is performed using the s and b values ​​of the four adjacent blocks respectively; the index of the image edge is limited to the effective block range. When disabled, the nearest block is used directly.

[0038] It should be further noted that the processing flow for correcting the target depth point cloud based on the target correction parameters is as follows: The original forward depth of the plurality of target camera points is corrected using the target correction parameters to obtain an initial corrected depth; if the initial corrected depth exceeds a preset depth range, the range of the initial corrected depth is limited to obtain a target corrected depth; the depth ratio between the target corrected depth and the original forward depth is determined, and the target pixel coordinates of the target camera points are scaled and corrected using the depth ratio to correct the target depth point cloud. That is, let... Let z' = s(u,v)·z + b(u,v), and then restrict z' to the allowed depth range. That is, after the output range constraint, let... , This ensures that the corrected 3D points remain in the original camera ray direction. This module (online parameter interpolation and point cloud correction module) publishes a PointCloud2 that retains the original message header, field definitions, and point step size. If the online node has not yet obtained valid camera intrinsic parameters, the example implementation forwards the input point cloud as is; this is a rollback and does not mean that the frame has completed correction. Table 1 below shows an example of the key technical parameter configurations for this embodiment: Table 1. Examples of Key Technical Parameter Configurations

[0039] The 6×8 block, sample threshold, and error acceptance criteria in the parameter table are used to illustrate the actual implementation. Block size, synchronization tolerance, and angle tolerance should be calibrated according to camera resolution, LiDAR angular resolution, installation extrinsic parameters, and observation scene. The repository contains calibration acquisition scripts, online calibration nodes, and generated block parameter configurations; the configuration records 114 acquisition locations, 889,241 samples, and a set of non-unit scale, non-zero biases. The current camera startup file only starts the camera publishing node and the point cloud temporal filtering node, not the online calibration node. If this solution is used for navigation, the online calibration node should be explicitly started, and the downstream layer actually using the calibration results should subscribe to the calibrated point cloud, then the timestamp, coordinate system, point cloud fields, and obstacle removal link should be verified. Save the original radar and camera data before and after synchronization, extrinsic parameters, camera intrinsic parameters, number of pixel block samples, proportion of discarded samples, and the depth error of each block before and after calibration in an independent test scene. RMSE and maximum error are calculated for near field, far field, image center, edge, and block boundary respectively; samples with occlusion and radar scanning planes that do not correspond to camera points are analyzed separately. Only after online nodes are connected and verified can the changes in obstacle grid positions and navigation behavior be further evaluated. In this way, this embodiment uses bilinear interpolation to obtain target correction parameters for the block parameters surrounding adjacent pixel blocks, allowing online parameters to change continuously at block boundaries. This achieves continuously changing pixel position correction parameter output, eliminating the block boundary jump phenomenon caused by block correction and ensuring smooth point cloud correction results. It corrects the original forward depth and limits the range of depths exceeding limits to avoid unreasonable extreme values ​​in the corrected depth. It uses depth scaling to correct pixel coordinates, simultaneously correcting pixel position offsets caused by depth deviations, ensuring the output point maintains the original observation ray direction. This achieves joint correction of depth values ​​and pixel coordinates, improving the measurement accuracy of depth point clouds and solving the problem of inconsistent ranging deviations at different pixel positions of the depth camera.

[0040] As can be seen from the above, the embodiments of this application perform time pairing and coordinate unification on the LiDAR scanning data and depth camera point cloud data of the target robot, unifying the two types of data into the camera coordinate system. By matching camera points and radar points at horizontal angles, a reference depth sample is constructed, which includes the first forward depth of the camera points, the second forward depth of the radar points transformed into the camera coordinate system, and the pixel coordinates. Based on the pixel coordinates, the reference depth sample is mapped to the pixel blocks corresponding to the depth image. Linear fitting is performed on the reference depth sample within the pixel blocks to generate a pixel block parameter table for storing the scale parameters and bias parameters corresponding to the pixel blocks. When the depth camera outputs the target depth point cloud, the peripheral block parameters of the adjacent pixel blocks are read based on the target pixel coordinates, and the target correction parameters are obtained through bilinear interpolation. The target correction parameters are used to complete the correction of the target depth point cloud. In this way, through the above-described process of the embodiments of this application, the lidar scanning data and the depth camera point cloud data are time-paired and their coordinates are unified to the camera coordinate system. This enables the establishment of comparable depth samples from the two types of sensors, eliminating matching errors caused by time misalignment and coordinate system differences. By pairing camera points and radar points based on horizontal angles to construct reference depth samples, effective comparison samples can be efficiently screened for calibrating the depth deviation of the depth camera. By linearly fitting the reference depth samples to pixel blocks to generate a pixel block parameter table, the local distribution characteristics of depth error in the image space can be characterized, adapting to the nonlinear deviation of the depth camera as pixel position changes. By performing bilinear interpolation on the peripheral block parameters of adjacent pixel blocks to obtain target correction parameters, pixel-level smooth transition parameter solving can be achieved, avoiding boundary jumps caused by block correction. Ultimately, this improves the measurement accuracy of the robot's depth point cloud, provides more accurate depth information for the robot to perceive the environment, and optimizes the robot's depth point cloud correction method to solve the problem of inconsistent ranging deviations at different pixel positions of the depth camera.

[0041] Accordingly, see Figure 5 As shown in the illustration, this application also provides a depth point cloud correction device for a robot, comprising: Data processing module 11 is used to perform time matching and coordinate unification processing on the lidar scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points; the camera points and the radar points are both located in the camera coordinate system; The coordinate determination module 12 is used to calculate the horizontal angles of the camera point and the radar point respectively, and determine the pixel coordinates of the camera point, so as to pair the camera point and the radar point based on the horizontal angles and determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the radar point transformed to the camera coordinate system, and the pixel coordinates; The linear fitting module 13 is used to determine the pixel blocks of the depth image in which the reference depth sample falls based on the pixel coordinates, and to perform linear fitting on the corresponding reference depth sample within the pixel blocks respectively, so as to generate a pixel block parameter table based on the obtained fitting results; the pixel block parameter table is used to store the block parameters corresponding to each pixel block, including scale parameters and bias parameters. The parameter acquisition module 14 is used to determine the target pixel coordinates of several target camera points in the target depth point cloud after receiving the target depth point cloud output by the depth camera deployed on the target robot, and to obtain the surrounding block parameters from the pixel block parameter table based on the target pixel coordinates; the surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block into which the target camera point falls. The point cloud correction module 15 is used to perform bilinear interpolation on the surrounding block parameters to obtain target correction parameters, and to correct the target depth point cloud based on the target correction parameters.

[0042] In some specific embodiments, the data processing module 11 may specifically include: The time pairing unit is used to perform time pairing of the LiDAR scanning data and depth camera point cloud data of the target robot using a preset approximate synchronization window; The first coordinate system transformation unit is used to transform the radar sampling points of the LiDAR scanning data to the camera coordinate system using the base coordinate system of the target robot, the camera extrinsic parameters of the depth camera, and the radar extrinsic parameters of the LiDAR, so as to determine the radar points after the coordinate system transformation; the LiDAR is deployed on the target robot; The second coordinate system transformation unit is used to transform the camera points of the depth camera point cloud data to the base coordinate system, so as to filter the camera points according to the preset height range and obtain the filtered camera points.

[0043] In some specific embodiments, the coordinate determination module 12 may specifically include: A depth determination unit is used to determine the first forward depth of the camera point; The first coordinate determination unit is used to determine the pixel coordinates of the camera point using the camera intrinsic parameters of the depth camera if the first forward depth is within a preset depth distance range and the horizontal angle of the camera point is within a preset horizontal viewing angle range. The sample determination unit is used to determine a pair of radar points whose horizontal angle difference with the camera point does not exceed a preset angle difference threshold based on the horizontal angle, so as to determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the pair of radar points transformed to the camera coordinate system, and the pixel coordinates.

[0044] In some specific embodiments, the linear fitting module 13 may specifically include: The first linear fitting unit is used to perform initial linear fitting on the corresponding reference depth sample within the pixel block, so as to calculate the fitting residual of the reference depth sample during the initial linear fitting and determine the first root mean square error of the pixel block. The sample elimination unit is used to eliminate outlier samples from the reference depth sample based on the standard deviation of the residuals of the fitting residuals, so as to obtain the reference depth sample after elimination; the outlier sample is a sample whose absolute value of the fitting residual is greater than a preset range of the standard deviation of the residuals; The second linear fitting unit is used to perform linear fitting on the corresponding removed reference depth samples within the pixel block to obtain the corresponding target fitting result and determine the second root mean square error of the pixel block. The parameter table generation submodule is used to generate a pixel block parameter table based on the first root mean square error, the second root mean square error, and the target fitting result.

[0045] In some specific embodiments, the target fitting result includes block parameters of the pixel block; the block parameters include scale parameters and bias parameters; Accordingly, the parameter table generation submodule may specifically include: A quantity determination unit is used to determine the number of samples of the removed reference depth sample that fall into the pixel block; A block parameter removal unit is used to remove the block parameters of the target pixel blocks in the target fitting result to obtain the target fitting result after removal; the target pixel block is a pixel block in which the number of samples is lower than a preset number threshold, the scale parameter exceeds the preset parameter range, or the second root mean square error is not lower than the first root mean square error. The block parameter determination unit is used to generate a pixel block parameter table based on the target fitting result after removal, and during the generation process, for the parameter missing pixel block in the depth image, the block parameter of the nearest valid block in the target fitting result after removal is determined as the block parameter of the parameter missing pixel block; Wherein, the parameter missing pixel block is a pixel block that has no corresponding block parameter in the target fitting result after removal; the nearest valid block is the pixel block that is closest to the parameter missing pixel block in the pixel space.

[0046] In some specific embodiments, the parameter acquisition module 14 may specifically include: The image determination unit is used to determine the target pixel coordinates of a number of target camera points of the target depth point cloud based on the camera intrinsic parameters of the depth camera, and to determine the target depth image corresponding to the target depth point cloud. A camera point mapping unit is used to map the plurality of target camera points onto the target depth image to determine the falling pixel block into which the target camera point falls. The second coordinate determination unit is used to determine the relative pixel coordinates of the target camera point relative to the center of the pixel block based on the target pixel coordinates; A block parameter acquisition unit is used to obtain surrounding block parameters from the pixel block parameter table using the relative pixel coordinates; Accordingly, the point cloud correction module 15 may specifically include: A block parameter interpolation unit is used to perform bilinear interpolation on the surrounding block parameters based on the relative pixel coordinates and the target pixel coordinates to obtain the target correction parameters.

[0047] In some specific embodiments, the point cloud correction module 15 may specifically include: A depth correction unit is used to correct the original forward depth of the plurality of target camera points using the target correction parameters to obtain an initial corrected depth. A range limiting unit is used to limit the initial correction depth to a target correction depth if the initial correction depth exceeds a preset depth range. A coordinate correction unit is used to determine the depth ratio between the target correction depth and the original forward depth, and to scale and correct the target pixel coordinates of the target camera point using the depth ratio, so as to correct the target depth point cloud.

[0048] Furthermore, embodiments of this application also disclose an electronic device, Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the depth point cloud correction method for robots disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0049] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0050] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0051] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the depth point cloud correction method for the robot executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.

[0052] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned depth point cloud correction method for a robot. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0053] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0054] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0055] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0056] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0057] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for depth point cloud correction of a robot, characterized in that, include: The lidar scanning data and depth camera point cloud data of the target robot are processed by time pairing and coordinate unification to determine the corresponding camera points and radar points; the camera points and the radar points are both located in the camera coordinate system; The horizontal angles of the camera point and the radar point are calculated respectively, and the pixel coordinates of the camera point are determined. The camera point and the radar point are then paired based on the horizontal angles to determine a reference depth sample. The reference depth sample includes the first forward depth of the camera point, the second forward depth of the radar point transformed to the camera coordinate system, and the pixel coordinates. The pixel blocks of the depth image into which the reference depth sample falls are determined based on the pixel coordinates, and the corresponding reference depth sample is linearly fitted within the pixel blocks respectively, so as to generate a pixel block parameter table based on the obtained fitting results. The pixel block parameter table is used to store the block parameters corresponding to each pixel block, including scale parameters and offset parameters; After receiving the target depth point cloud output by the depth camera deployed on the target robot, the target pixel coordinates of several target camera points in the target depth point cloud are determined, and the surrounding block parameters are obtained from the pixel block parameter table based on the target pixel coordinates; the surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block into which the target camera point falls. The surrounding block parameters are bilinearly interpolated to obtain target correction parameters, and the target depth point cloud is corrected based on the target correction parameters.

2. The depth point cloud correction method for a robot according to claim 1, characterized in that, The process of performing time pairing and coordinate unification on the LiDAR scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points includes: The lidar scanning data and depth camera point cloud data of the target robot are time-paired using a preset approximate synchronization window; Using the base coordinate system of the target robot, the camera extrinsic parameters of the depth camera, and the radar extrinsic parameters of the lidar, the radar sampling points of the lidar scanning data are transformed into the camera coordinate system to determine the radar points after the coordinate system transformation; the lidar is deployed on the target robot. The camera points in the depth camera point cloud data are converted to the base coordinate system, and the camera points are filtered according to a preset height range to obtain the filtered camera points.

3. The depth point cloud correction method for a robot according to claim 2, characterized in that, The step of determining the pixel coordinates of the camera point, pairing the camera point and the radar point based on the horizontal angle, and determining the reference depth sample includes: Determine the first forward depth of the camera point; If the first forward depth is within a preset depth distance range and the horizontal angle of the camera point is within a preset horizontal viewing angle range, then the pixel coordinates of the camera point are determined using the camera intrinsic parameters of the depth camera. Based on the horizontal angle, a pair of radar points with a horizontal angle difference between them and the camera point that does not exceed a preset angle difference threshold are determined to determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the pair of radar points transformed to the camera coordinate system, and the pixel coordinates.

4. The depth point cloud correction method for a robot according to claim 1, characterized in that, The step of performing linear fitting on the corresponding reference depth samples within the pixel block to generate a pixel block parameter table based on the obtained fitting results includes: An initial linear fit is performed on the corresponding reference depth sample within each pixel block to calculate the fitting residual of the reference depth sample during the initial linear fit, and to determine the first root mean square error of the pixel block. Outlier samples in the reference depth sample are removed based on the standard deviation of the fitted residuals to obtain the removed reference depth sample; the outlier samples are those whose absolute value of the fitted residuals is greater than a preset range of the standard deviation of the residuals. Linear fitting is performed on the corresponding removed reference depth samples within the pixel block to obtain the corresponding target fitting result, and the second root mean square error of the pixel block is determined. A pixel block parameter table is generated based on the first root mean square error, the second root mean square error, and the target fitting result.

5. The depth point cloud correction method for a robot according to claim 4, characterized in that, The target fitting result includes block parameters of the pixel block; the block parameters include scale parameters and bias parameters; Accordingly, generating the pixel block parameter table based on the first root mean square error, the second root mean square error, and the target fitting result includes: Determine the number of samples of the removed reference depth sample that fall into the pixel block; Remove the block parameter of the target pixel block in the target fitting result to obtain the target fitting result after removal; the target pixel block is a pixel block in which the number of samples is lower than a preset number threshold, the scale parameter exceeds the preset parameter range, or the second root mean square error is not lower than the first root mean square error; A pixel block parameter table is generated based on the target fitting result after removal. During the generation process, for the pixel block with missing parameters in the depth image, the block parameter of the nearest valid block in the target fitting result after removal is determined as the block parameter of the pixel block with missing parameters. Wherein, the parameter missing pixel block is a pixel block that has no corresponding block parameter in the target fitting result after removal; the nearest valid block is the pixel block that is closest to the parameter missing pixel block in the pixel space.

6. The depth point cloud correction method for a robot according to claim 1, characterized in that, The step of determining the target pixel coordinates of several target camera points in the target depth point cloud, and obtaining the surrounding block parameters from the pixel block parameter table based on the target pixel coordinates, includes: Based on the camera intrinsic parameters of the depth camera, determine the target pixel coordinates of several target camera points of the target depth point cloud, and determine the target depth image corresponding to the target depth point cloud. The plurality of target camera points are mapped onto the target depth image to determine the falling pixel block into which the target camera points fall; Based on the target pixel coordinates, determine the relative pixel coordinates of the target camera point with respect to the center of the pixel block that falls into the pixel block; The surrounding block parameters are obtained from the pixel block parameter table using the relative pixel coordinates; Accordingly, the step of performing bilinear interpolation on the surrounding block parameters to obtain the target correction parameters includes: Based on the relative pixel coordinates and the target pixel coordinates, bilinear interpolation is performed on the surrounding block parameters to obtain the target correction parameters.

7. The depth point cloud correction method for a robot according to any one of claims 1 to 6, characterized in that, The step of correcting the target depth point cloud based on the target correction parameters includes: The original forward depth of the plurality of target camera points is corrected using the target correction parameters to obtain an initial corrected depth; If the initial correction depth exceeds the preset depth range, the initial correction depth is limited to obtain the target correction depth. Determine the depth ratio between the target correction depth and the original forward depth, and use the depth ratio to scale and correct the target pixel coordinates of the target camera point to correct the target depth point cloud.

8. A depth point cloud correction device for a robot, characterized in that, include: The data processing module is used to perform time matching and coordinate unification processing on the LiDAR scanning data and depth camera point cloud data of the target robot to determine the corresponding camera points and radar points; the camera points and the radar points are both located in the camera coordinate system; A coordinate determination module is used to calculate the horizontal angles of the camera point and the radar point respectively, and determine the pixel coordinates of the camera point, so as to pair the camera point and the radar point based on the horizontal angles and determine a reference depth sample; the reference depth sample includes the first forward depth of the camera point, the second forward depth of the radar point transformed to the camera coordinate system, and the pixel coordinates; The linear fitting module is used to determine the pixel block of the depth image in which the reference depth sample falls based on the pixel coordinates, and to perform linear fitting on the corresponding reference depth sample within the pixel block respectively, so as to generate a pixel block parameter table based on the obtained fitting results. The pixel block parameter table is used to store the block parameters corresponding to each pixel block, including scale parameters and offset parameters; The parameter acquisition module is used to determine the target pixel coordinates of several target camera points in the target depth point cloud after receiving the target depth point cloud output by the depth camera deployed on the target robot, and to obtain the surrounding block parameters from the pixel block parameter table based on the target pixel coordinates; the surrounding block parameters are the block parameters of each pixel block adjacent to the pixel block into which the target camera point falls. The point cloud correction module is used to perform bilinear interpolation on the surrounding block parameters to obtain target correction parameters, and to correct the target depth point cloud based on the target correction parameters.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the depth point cloud correction method for a robot as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the depth point cloud correction method for a robot as described in any one of claims 1 to 7.