WO2022246826A1 - Extrinsic calibration method and apparatus, movable platform, and storage medium - Google Patents

Extrinsic calibration method and apparatus, movable platform, and storage medium Download PDF

Info

Publication number
WO2022246826A1
WO2022246826A1 PCT/CN2021/096900 CN2021096900W WO2022246826A1 WO 2022246826 A1 WO2022246826 A1 WO 2022246826A1 CN 2021096900 W CN2021096900 W CN 2021096900W WO 2022246826 A1 WO2022246826 A1 WO 2022246826A1
Authority
WO
WIPO (PCT)
Prior art keywords
map
external parameter
laser radar
initial value
submap
Prior art date
Application number
PCT/CN2021/096900
Other languages
French (fr)
Chinese (zh)
Inventor
宫正
李延召
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/096900 priority Critical patent/WO2022246826A1/en
Publication of WO2022246826A1 publication Critical patent/WO2022246826A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/93Lidar systems specially adapted for specific applications for anti-collision purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods

Definitions

  • the present application relates to the technical field of external reference calibration, and in particular to an external reference calibration method, device, movable platform and storage medium.
  • LiDAR can collect the point cloud data of the scene and provide the mobile platform with the ability to perceive the scene.
  • the movable platform is usually equipped with multiple lidars, and different lidars are installed at different positions of the movable platform. Since the point cloud data collected by each laser radar is based on its own coordinate system, these point cloud data based on different coordinate systems cannot be directly spliced or fused. It is necessary to unify the point cloud data collected by different laser radars into in the base coordinate system.
  • one of the purposes of the embodiments of the present application is to provide an external parameter calibration method that does not need to give an initial value of the external parameter, and can realize high-precision external parameter calibration quickly, conveniently, and robustly.
  • the first aspect of the embodiment of the present application provides an external parameter calibration method, including:
  • the initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  • the second aspect of the embodiment of the present application provides an external reference calibration device, including: a processor and a memory storing a computer program, and the processor implements the following steps when executing the computer program:
  • the initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  • the third aspect of the embodiment of the present application provides a mobile platform, including:
  • a driving device connected to the body for powering the movable platform
  • the first laser radar and the second laser radar fixed at different positions of the body are used to collect point cloud data of the scene;
  • a processor and a memory storing a computer program the processor, when executing the computer program, implements the following steps:
  • the initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  • the fourth aspect of the embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the external parameter calibration method provided in the embodiment of the present application is implemented.
  • the external parameter calibration method provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the method provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
  • Fig. 1 is a flow chart of the external parameter calibration method provided by the embodiment of the present application.
  • Fig. 2 is a top view of the movable platform provided by the embodiment of the present application.
  • Fig. 3 is a scene diagram of the movement of the movable platform provided by the embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of an external parameter calibration device provided in an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a mobile platform according to an embodiment of the present application.
  • LiDAR can collect the point cloud data of the scene and provide the mobile platform with the ability to perceive the scene.
  • the movable platform is usually equipped with multiple lidars, and different lidars are installed at different positions of the movable platform. Since the point cloud data collected by each laser radar is based on its own coordinate system, these point cloud data based on different coordinate systems cannot be directly spliced or fused. It is necessary to unify the point cloud data collected by different laser radars into in the base coordinate system.
  • the process of transforming the point cloud data collected by a laser radar into the reference coordinate system is the external parameter calibration of the laser radar, in other words, to determine an external parameter so that the point cloud data collected by the laser radar After the transformation of the parameters, it can be transformed into the reference coordinate system.
  • calibration can be performed using a calibration wall and a fixed turntable. This method has high requirements on the site and working environment, and it also needs to manually match the point cloud, which is troublesome to operate and high in labor costs.
  • the point cloud maps created by the two laser radars can be matched to obtain the external parameters between the two laser radars, but this method requires a relatively good initial value of the external parameters to converge. Accurate results, it is difficult to perform effective calibration when the initial value of the external reference is not ideal.
  • Fig. 1 is the flowchart of the external parameter calibration method that the present application embodiment provides, and this method comprises the following steps:
  • S104 Estimate the first movement track of the first laser radar according to the point cloud data collected by the first laser radar, and estimate the first movement trajectory of the second laser radar according to the point cloud data collected by the second laser radar. Two motion tracks.
  • the first laser radar and the second laser radar may be two radars mounted on the same movable platform. It can be understood that the movable platform may be equipped with multiple laser radars, the first laser radar may be any one of the multiple radars, and the second laser radar may be any one of the multiple laser radars that is different from the first laser radar.
  • the first laser radar and the second laser radar may be installed at different positions on the movable platform, and the field of view of the first laser radar may or may not overlap with the field of view of the second laser radar.
  • the mobile platform can be a variety of platforms with mobile capabilities such as vehicles, aircraft, ships, and robots.
  • the movable platform can be a vehicle, and the vehicle can be equipped with multiple laser radars, two of which are shown in the figure (lidar A and laser radar B), and two laser radars There is no overlap between the fields of view.
  • the point cloud data collected by the first laser radar and the point cloud data collected by the second laser radar can be collected in the same period. While moving, the first laser radar and the second laser radar on the movable platform can collect point cloud data respectively, so that the point cloud data collected by the first laser radar and the second laser radar are collected in the same period of time, and the two The point cloud data collected by the operator is the point cloud data corresponding to the same scene.
  • the movable platform may be triggered by a user to start moving.
  • the movable platform can automatically start moving according to the specified trajectory, and during the movement process, the lidar carried by itself can collect point cloud data.
  • the movable platform can also move along a specified trajectory under the control of the user.
  • the user can be prompted to control the movable platform. point cloud data.
  • the specified track can be displayed on the screen, or the operation matching the specified track can be played through voice.
  • the trajectory of the movable platform can be a preset trajectory, or a trajectory automatically planned according to a scene or an electronic map.
  • the lidar mounted on the movable platform can collect relatively complete point cloud data of the scene after the movable platform completes the movement along the specified trajectory.
  • the designated trajectory may include a U-shaped trajectory or an 8-shaped trajectory.
  • the U-shaped locus that is, the shape of the locus is approximately U-shaped
  • the figure-eight locus that is, the shape of the locus is approximately an 8-shape.
  • FIG. 3 shows the movement trajectories of the laser radar A and the laser radar B carried on the vehicle after the vehicle moves along the 8-shaped trajectory.
  • the first lidar and the second lidar on the movable platform do not overlap in the field of view, after the movable platform moves sufficiently, the first lidar and the second lidar can collect The point cloud data of the same area, so there is an overlap in the detection area on the point cloud data, therefore, in an embodiment of the following, the map established by the point cloud data collected by the two can be used to map the two corresponding The map is matched to calibrate the extrinsic parameters.
  • the first laser radar and the second laser radar mounted on the movable platform are also moving, therefore, the first laser radar has its own motion trajectory, and the second laser radar also has its own motion track.
  • the first motion track of the first laser radar can be estimated according to the point cloud data collected by the first laser radar
  • the second motion track of the second laser radar can be estimated according to the point cloud data collected by the second laser radar.
  • the initial value of the external parameters can be solved using the trajectory consistency constraint. Specifically, the estimated first trajectory and the second trajectory can be used to establish constraints, and the The constraint condition calculates the initial value of the external parameter.
  • SLAM Simultaneous Localization and Mapping
  • the first motion track of the first laser radar includes the pose (position and attitude) of the first laser radar at each moment, and the pose here is in the position of the first laser radar.
  • the pose in the world coordinate system.
  • the local coordinate system of the first laser radar changes in real time (the local coordinate system takes the real-time position of the first laser radar as the origin), so in an example, the first laser radar can be
  • the local coordinate system of the first frame where the lidar starts to move is the world coordinate system
  • the pose of the first lidar at the first moment can correspond to the origin of the world coordinate system
  • the point cloud of the first frame is completed in the first lidar
  • the point cloud data of the first frame can be used to establish the point cloud map corresponding to the first frame.
  • the point cloud map of the second frame can be used The cloud data establishes a point cloud map corresponding to the second frame, and can match the point cloud map of the second frame with the point cloud map of the first frame to calculate the pose of the first lidar at the second moment.
  • the point cloud map of the third frame can be matched with the point cloud map of the second frame to calculate the pose of the first lidar at the third moment. Repeat the above iterative calculation process, and finally the first lidar can be calculated.
  • the pose of the lidar at each moment is estimated to obtain the first motion track of the first lidar.
  • its calculation process can refer to the calculation process of the above-mentioned first motion track, which will not be repeated here.
  • the point cloud data collected by each laser radar needs to be unified into the reference coordinate system.
  • the world coordinate system of the first laser radar can be used as the reference coordinate system, and the target of external parameter calibration It is to determine an external parameter, so that the point cloud data collected by the second laser radar can be transformed from the world coordinate system of the second laser radar to the world coordinate system of the first laser radar through the transformation of the external parameter.
  • the constraints established by using the first motion trajectory and the second motion trajectory may include: the sum of the pose differences at each moment is the smallest, here, the position gap at a moment is the pose of the second lidar at that moment The difference between the pose of the first lidar and the first lidar at this moment after the transformation of the initial value of the external parameter.
  • the initial value of the external parameter can be optimized with the help of various optimization algorithms, and the gap between the initial value of the external parameter and the final target external parameter will not be too large, which can be used for subsequent corrections Get accurate target external parameters to provide guarantee.
  • extrinsic parameters generally include rotation parameters and/or translation parameters, so the transformation performed by the extrinsic parameters includes rotation transformation and/or translation transformation.
  • the optimized initial value of the extrinsic parameter still needs further correction.
  • the final target extrinsic parameter can be obtained.
  • the external parameter calibration method provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the method provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
  • a map can also be established based on the point cloud data.
  • the first map of the scene can be established according to the point cloud data collected by the first laser radar
  • the second map of the scene can be established according to the point cloud data collected by the first laser radar
  • the first map and the second map can be used Correct the initial value of the external parameter to obtain the target external parameter.
  • the established map can be a point cloud map or a feature point map.
  • maps including but not limited to SLAM mapping, feature point registration, and iterative closest point algorithm ICP (Iterative Closest Point), G-ICP and other registration algorithms for mapping.
  • the first map of the scene can be a point cloud map obtained by fusion of each frame of point clouds collected by the first laser radar
  • the second map of the scene can be a point cloud map of each frame collected by the second laser radar
  • the fused point cloud maps, that is, the first map and the second map are maps covering the entire scene.
  • the initial value of the external reference can be used to correct the
  • the second map is transformed, and the second map is transformed to the world coordinate system of the first lidar, so that the second map and the first map are in the same coordinate system, and then the transformed second map and the first map can be Matching is performed to determine an extrinsic correction value that enables the second map to coincide with the first map after transformation.
  • the target external parameter can be obtained.
  • the target extrinsic parameter may be obtained by multiplying the extrinsic parameter correction and the extrinsic initial value.
  • the second map of the scene may include N sub-maps, and each sub-map may correspond to a partial area in the scene.
  • each submap may be obtained by fusing several frames of point clouds collected by the second lidar.
  • each submap may be obtained by fusing five frames of point clouds collected by the second lidar. Then, when using the first map and the second map to correct the initial value of the external parameter, the first motion track and the initial value of the external parameter calculated based on the trajectory constraints can be used to transform the first sub-map, and the transformed first sub-map The map can be matched with the first map to obtain the correction value of the external parameter.
  • the correction result can be obtained, and the correction result can be used as a new initial value of the external parameter to participate in the correction of the first external parameter.
  • the transformation of the 2 submaps The above iterations are repeated until the matching of the last submap and the first map is completed, and the final correction result can be determined as the target extrinsic reference.
  • the point cloud data in the nth submap is based on the local coordinates corresponding to the several frames of point clouds system, the point cloud data in the nth sub-map needs to be transformed from the local coordinate system to the global coordinate system (that is, the world coordinate system of the second lidar).
  • the nth submap is obtained by fusion of several frames of point clouds, so the moment corresponding to a certain frame in the several frames can be used as the moment corresponding to the nth submap, here, the moment corresponding to the nth submap can be recorded as for t.
  • the pose corresponding to the first lidar at time t can be determined according to the first motion trajectory, and the pose corresponding to the time t can be used to transform the nth submap, so that the The point cloud data in the n submaps can be transformed from the local coordinate system to the global coordinate system, and quickly positioned near the target area of the first map.
  • the target area is the local area of the scene corresponding to the nth submap.
  • the nth submap can be transformed by the current initial value of the external parameter, and the nth submap can be transformed from the world coordinate system of the second lidar to the world coordinate system of the first lidar, so that the transformed submap can be The map is matched with the first map to obtain an extrinsic correction value.
  • the nearest neighbor point corresponding to each point in the submap can be searched in the first map using the nearest neighbor search algorithm, and the points formed by the searched nearest neighbor points
  • the set can be called the nearest neighbor point set, and the transformed submap can be matched with the nearest neighbor point set to obtain the extrinsic correction value.
  • the FOV of the lidar mounted on the movable platform is small, there may not be enough feature points between the front and rear frames collected by the lidar, resulting in incorrect matching results.
  • the nth submap corresponds to a part of the white wall in the scene
  • it is difficult to accurately find the part points corresponding to the nth submap in the first map Therefore, it is very likely to match the wrong external parameter correction value. If the wrong external parameter correction value is used to correct the external parameter initial value, it will cause the external parameter initial value to deviate in the wrong direction in this round of iterations, and eventually lead to The obtained target extrinsics are not accurate.
  • the matching score of the two can be calculated, and if the matching score of the two is higher than the preset threshold, the matching The obtained external parameter correction value is used to correct the external parameter initial value, and the correction result enters the next iteration as a new external parameter initial value. Conversely, if the matching score is lower than the preset threshold, the external parameter correction value obtained by the matching is not used to correct the external parameter initial value, and can directly enter the next iteration, and the external parameter initial value used in the next iteration is still the original The initial value of the external parameter. Filtering out unreliable matching results by matching scores can greatly improve the accuracy of external parameters and the robustness of external parameter calibration.
  • planar feature points in the point cloud data may be obtained to build the map, and non-planar feature points in the point cloud data may be removed.
  • this can improve the matching speed, on the one hand, it can avoid the introduction of non-planar noise, and improve the matching accuracy.
  • down-sampling may also be performed on point clouds belonging to the ground in the map. Due to the high density of point clouds on the ground in most scenes, the constraints on the matching process of ground points are too strong, and the constraints of other features are submerged. Therefore, the sparse processing of ground points by downsampling can reduce the constraints of the ground. Improve the accuracy of matching results.
  • the external parameter calibration method provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the method provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
  • FIG. 4 is a schematic structural diagram of an external parameter calibration device provided by an embodiment of the present application, which includes: a processor 410 and a memory 420 storing a computer program, and when the processor executes the computer program Implement the following steps:
  • the initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  • the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
  • the specified trajectory includes: a U-shaped trajectory or an 8-shaped trajectory.
  • the movable platform starts to move under the trigger of the user.
  • the first motion trajectory includes the pose of the first laser radar at each moment
  • the second motion trajectory includes the pose of the second laser radar at each moment
  • the constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
  • the processor corrects the initial value of the external parameter, and when obtaining the target external parameter, it is used for:
  • the second map is established based on the point cloud data collected by the second lidar.
  • the processor uses the first map and the second map to correct the initial value of the external parameter, it is used to:
  • the initial value of the external parameter is corrected by using the correction value of the external parameter.
  • the second map includes N submaps, each submap corresponds to a part of the scene, and N is an integer greater than 1.
  • the processor uses the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, it is used to:
  • the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
  • the processor uses the external parameter correction value to correct the current external parameter initial value, it is used to:
  • the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
  • the processor is also used for:
  • a nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
  • the first map and/or the second map have been processed to remove non-planar feature points.
  • the point clouds belonging to the ground in the first map and/or the second map have undergone down-sampling processing.
  • the transformation includes: rotation transformation and/or translation transformation.
  • the external parameter calibration device provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the device provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
  • FIG. 5 is a schematic structural diagram of a mobile platform provided by an embodiment of the present application.
  • the mobile platform includes:
  • a drive device connected to the body 510, used to provide power to the movable platform;
  • the first laser radar 520 and the second laser radar 530 fixed at different positions of the body 510 are used to collect point cloud data of the scene;
  • the initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  • the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
  • the specified trajectory includes: a U-shaped trajectory or an 8-shaped trajectory.
  • the movable platform starts to move under the trigger of the user.
  • the first motion trajectory includes the pose of the first laser radar at each moment
  • the second motion trajectory includes the pose of the second laser radar at each moment
  • the constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
  • the processor corrects the initial value of the external parameter, and when obtaining the target external parameter, it is used for:
  • the second map is established based on the point cloud data collected by the second lidar.
  • the processor uses the first map and the second map to correct the initial value of the external parameter, it is used to:
  • the initial value of the external parameter is corrected by using the correction value of the external parameter.
  • the second map includes N submaps, each submap corresponds to a part of the scene, and N is an integer greater than 1.
  • the processor uses the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, it is used to:
  • the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
  • the processor uses the external parameter correction value to correct the current external parameter initial value, it is used to:
  • the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
  • the processor is also used for:
  • a nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
  • the first map and/or the second map have been processed to remove non-planar feature points.
  • the point clouds belonging to the ground in the first map and/or the second map have undergone down-sampling processing.
  • the transformation includes: rotation transformation and/or translation transformation.
  • the mobile platform provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the initial value of the external parameter can be obtained. Accurate target extrinsic parameters are calculated based on the values. It can be seen that the mobile platform provided by the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes a fast and robust fully automatic external parameter. Reference calibration.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any external parameter calibration method provided in the embodiment of the present application.
  • Embodiments of the present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having program code embodied therein.
  • Computer usable storage media includes both volatile and non-permanent, removable and non-removable media, and may be implemented by any method or technology for information storage.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of storage media for computers include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • Flash memory or other memory technology
  • CD-ROM Compact Disc Read-Only Memory
  • DVD Digital Versatile Disc
  • Magnetic tape cartridge tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

Embodiments of the present application disclose an extrinsic calibration method, comprising: acquiring point cloud data of a scene collected by a first lidar and a second lidar in the same time period; estimating a first motion trajectory of the first lidar according to the point cloud data collected by the first lidar, and estimating a second motion trajectory of the second lidar according to the point cloud data collected by the second lidar; establishing a constraint condition by using the first motion trajectory and the second motion trajectory, and, on the basis of the constraint condition, calculating an initial value of an external parameter; correcting the initial value of the external parameter, and obtaining a target external parameter, the target external parameter being used for a transformation between the world coordinate system of the first lidar and the world coordinate system of the second lidar. Embodiments of the present application disclose an extrinsic calibration method not requiring a given initial value of an external parameter, which can achieve rapid, convenient and robust high-precision extrinsic calibration.

Description

外参标定方法、装置、可移动平台和存储介质External parameter calibration method, device, movable platform and storage medium 技术领域technical field
本申请涉及外参标定技术领域,尤其涉及一种外参标定方法、装置、可移动平台和存储介质。The present application relates to the technical field of external reference calibration, and in particular to an external reference calibration method, device, movable platform and storage medium.
背景技术Background technique
激光雷达可以采集场景的点云数据,为可移动平台提供对场景的感知能力。可移动平台通常搭载有多个激光雷达,不同的激光雷达安装在可移动平台的不同位置。由于每个激光雷达采集的点云数据都是基于其自身的坐标系的,因此,这些基于不同坐标系的点云数据无法直接进行拼接或者融合,需要将不同激光雷达采集的点云数据统一到基准坐标系下。LiDAR can collect the point cloud data of the scene and provide the mobile platform with the ability to perceive the scene. The movable platform is usually equipped with multiple lidars, and different lidars are installed at different positions of the movable platform. Since the point cloud data collected by each laser radar is based on its own coordinate system, these point cloud data based on different coordinate systems cannot be directly spliced or fused. It is necessary to unify the point cloud data collected by different laser radars into in the base coordinate system.
发明内容Contents of the invention
有鉴于此,本申请实施例的目的之一是提供一种无需给定外参初值的外参标定方法,可以快速、便捷、鲁棒的实现高精度的外参标定。In view of this, one of the purposes of the embodiments of the present application is to provide an external parameter calibration method that does not need to give an initial value of the external parameter, and can realize high-precision external parameter calibration quickly, conveniently, and robustly.
本申请实施例第一方面提供一种外参标定方法,包括:The first aspect of the embodiment of the present application provides an external parameter calibration method, including:
获取第一激光雷达和第二激光雷达在同一时段内采集的场景的点云数据,其中,所述第一激光雷达和所述第二激光雷达固定在同一可移动平台上;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time, wherein the first laser radar and the second laser radar are fixed on the same movable platform;
根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
本申请实施例第二方面提供一种外参标定装置,包括:处理器和存储有计算机程序的存储器,所述处理器在执行所述计算机程序时实现以下步骤:The second aspect of the embodiment of the present application provides an external reference calibration device, including: a processor and a memory storing a computer program, and the processor implements the following steps when executing the computer program:
获取第一激光雷达和第二激光雷达在同一时段内采集的场景的点云数据,其中, 所述第一激光雷达和所述第二激光雷达固定在同一可移动平台上;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time, wherein the first laser radar and the second laser radar are fixed on the same movable platform;
根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
本申请实施例第三方面提供一种可移动平台,包括:The third aspect of the embodiment of the present application provides a mobile platform, including:
机体;body;
与所述机体连接的驱动装置,用于给所述可移动平台提供动力;a driving device connected to the body for powering the movable platform;
固定在所述机体不同位置的第一激光雷达和第二激光雷达,用于采集场景的点云数据;The first laser radar and the second laser radar fixed at different positions of the body are used to collect point cloud data of the scene;
处理器和存储有计算机程序的存储器,所述处理器在执行所述计算机程序时实现以下步骤:A processor and a memory storing a computer program, the processor, when executing the computer program, implements the following steps:
获取所述第一激光雷达和所述第二激光雷达在同一时段内采集的场景的点云数据;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time;
根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供的外参标定方法。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the external parameter calibration method provided in the embodiment of the present application is implemented.
本申请实施例提供的外参标定方法,可以利用第一运动轨迹和第二运动轨迹之间的一致性建立约束条件,并可以基于该约束条件计算得到外参初值,从而可以在该外参初值的基础上计算得到准确的目标外参。可见,本申请实施例提供的方法,可以自动利用激光雷达采集的点云数据计算出合适的外参初值,无需人工给定外参初值,实现了快速且鲁棒的全自动外参标定。The external parameter calibration method provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the method provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请实施例提供的外参标定方法的流程图。Fig. 1 is a flow chart of the external parameter calibration method provided by the embodiment of the present application.
图2是本申请实施例提供的可移动平台的俯视图。Fig. 2 is a top view of the movable platform provided by the embodiment of the present application.
图3是本申请实施例提供的可移动平台运动的场景图。Fig. 3 is a scene diagram of the movement of the movable platform provided by the embodiment of the present application.
图4是本申请实施例提供的外参标定装置的结构示意图。Fig. 4 is a schematic structural diagram of an external parameter calibration device provided in an embodiment of the present application.
图5是本申请实施例可移动平台的结构示意图。Fig. 5 is a schematic structural diagram of a mobile platform according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
激光雷达可以采集场景的点云数据,为可移动平台提供对场景的感知能力。可移动平台通常搭载有多个激光雷达,不同的激光雷达安装在可移动平台的不同位置。由于每个激光雷达采集的点云数据都是基于其自身的坐标系的,因此,这些基于不同坐标系的点云数据无法直接进行拼接或者融合,需要将不同激光雷达采集的点云数据统一到基准坐标系下。而将某个激光雷达采集的点云数据变换到基准坐标系下的过程即是该激光雷达的外参标定,换言之,即确定一个外参,使得该激光雷达采集的点云数据在通过该外参的变换后可以变换至该基准坐标系下。LiDAR can collect the point cloud data of the scene and provide the mobile platform with the ability to perceive the scene. The movable platform is usually equipped with multiple lidars, and different lidars are installed at different positions of the movable platform. Since the point cloud data collected by each laser radar is based on its own coordinate system, these point cloud data based on different coordinate systems cannot be directly spliced or fused. It is necessary to unify the point cloud data collected by different laser radars into in the base coordinate system. The process of transforming the point cloud data collected by a laser radar into the reference coordinate system is the external parameter calibration of the laser radar, in other words, to determine an external parameter so that the point cloud data collected by the laser radar After the transformation of the parameters, it can be transformed into the reference coordinate system.
多激光雷达外参标定的方式有多种。在一种实施方式中,可以利用标定墙和固定转台进行标定。这种方式对场地、工作环境均有很高的要求,还需要手工匹配点云,操作麻烦,人工成本高。在一种实施方式中,可以将两个激光雷达各自建立的点云地图进行匹配,以获得这两个激光雷达间的外参,但这种方式需要比较好的外参初值才能够收敛得到准确的结果,在外参初值不理想时难以进行有效的标定。There are many ways to calibrate the external parameters of multi-lidar. In one embodiment, calibration can be performed using a calibration wall and a fixed turntable. This method has high requirements on the site and working environment, and it also needs to manually match the point cloud, which is troublesome to operate and high in labor costs. In one embodiment, the point cloud maps created by the two laser radars can be matched to obtain the external parameters between the two laser radars, but this method requires a relatively good initial value of the external parameters to converge. Accurate results, it is difficult to perform effective calibration when the initial value of the external reference is not ideal.
本申请实施例提供了一种外参标定方法,可以参考图1,图1是本申请实施例提 供的外参标定方法的流程图,该方法包括以下步骤:The embodiment of the present application provides a kind of external parameter calibration method, can refer to Fig. 1, and Fig. 1 is the flowchart of the external parameter calibration method that the present application embodiment provides, and this method comprises the following steps:
S102、获取第一激光雷达和第二激光雷达采集的场景的点云数据。S102. Acquire point cloud data of the scene collected by the first lidar and the second lidar.
S104、根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹。S104. Estimate the first movement track of the first laser radar according to the point cloud data collected by the first laser radar, and estimate the first movement trajectory of the second laser radar according to the point cloud data collected by the second laser radar. Two motion tracks.
S106、利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值。S106. Establish constraint conditions by using the first motion trajectory and the second motion trajectory, and calculate an initial value of an external parameter based on the constraint conditions.
S107、对所述外参初值进行修正,得到目标外参。S107. Correct the initial value of the external parameter to obtain the target external parameter.
第一激光雷达和第二激光雷达可以是同一可移动平台上搭载的两个雷达。可以理解的,可移动平台可以搭载有多个激光雷达,第一激光雷达可以是多个雷达中的任一个,第二激光雷达可以是多个激光雷达中区别于第一激光雷达的任一个。第一激光雷达和第二激光雷达可以安装在该可移动平台上的不同位置,第一激光雷达的视场与第二激光雷达的视场可以存在重叠,也可以不存在重叠。The first laser radar and the second laser radar may be two radars mounted on the same movable platform. It can be understood that the movable platform may be equipped with multiple laser radars, the first laser radar may be any one of the multiple radars, and the second laser radar may be any one of the multiple laser radars that is different from the first laser radar. The first laser radar and the second laser radar may be installed at different positions on the movable platform, and the field of view of the first laser radar may or may not overlap with the field of view of the second laser radar.
可移动平台可以是车辆、飞行器、船只、机器人等各种具有移动能力的平台。在一个例子中,可以参考图2,可移动平台可以是车辆,车辆可以搭载有多个激光雷达,图中示出其中的两个激光雷达(激光雷达A和激光雷达B),两个激光雷达的视场之间没有重叠部分。The mobile platform can be a variety of platforms with mobile capabilities such as vehicles, aircraft, ships, and robots. In one example, refer to FIG. 2 , the movable platform can be a vehicle, and the vehicle can be equipped with multiple laser radars, two of which are shown in the figure (lidar A and laser radar B), and two laser radars There is no overlap between the fields of view.
第一激光雷达采集的点云数据和第二激光雷达采集的点云数据可以是在同一时段内采集的,例如,在一种实施方式中,可移动平台可以沿指定轨迹运动,在可移动平台运动的同时,可移动平台上的第一激光雷达和第二激光雷达可以分别采集点云数据,从而第一激光雷达和第二激光雷达采集的点云数据是在同一时段内采集的,并且两者采集的点云数据是同一个场景对应的点云数据。The point cloud data collected by the first laser radar and the point cloud data collected by the second laser radar can be collected in the same period. While moving, the first laser radar and the second laser radar on the movable platform can collect point cloud data respectively, so that the point cloud data collected by the first laser radar and the second laser radar are collected in the same period of time, and the two The point cloud data collected by the operator is the point cloud data corresponding to the same scene.
在一种实施方式中,可移动平台可以是在用户的触发下开始运动的。例如,在获取到用户输入的开始标定指令后,可移动平台可以自动的按照指定轨迹开始运动,并在运动过程使自身搭载的激光雷达采集点云数据。在一个例子中,可移动平台也可以是在用户的控制下沿指定轨迹运动的。具体的,在获取到户输入的开始标定指令后,可以提示用户对可移动平台进行操控,在用户的操控下,可移动平台可以沿指定轨迹运动,其上搭载的激光雷达可以采集到需要的点云数据。这里,提示用户的方式有多种,比如可以在屏幕上显示指定轨迹,又比如可以通过语音播放与指定轨迹匹配的操作。In one embodiment, the movable platform may be triggered by a user to start moving. For example, after obtaining the start calibration instruction input by the user, the movable platform can automatically start moving according to the specified trajectory, and during the movement process, the lidar carried by itself can collect point cloud data. In one example, the movable platform can also move along a specified trajectory under the control of the user. Specifically, after obtaining the start calibration instruction input by the user, the user can be prompted to control the movable platform. point cloud data. Here, there are many ways to prompt the user, for example, the specified track can be displayed on the screen, or the operation matching the specified track can be played through voice.
可移动平台的运动轨迹可以是预先设定的轨迹,也可以是根据场景或者电子地图 自动规划的轨迹。在一种实施方式中,通过对指定轨迹进行设计,可以使可移动平台在完成沿指定轨迹的运动后,其上搭载的激光雷达可以采集到相对完整的场景的点云数据。在一种实施方式中,指定轨迹可以包括U字型轨迹或8字型轨迹。这里,U字型轨迹即轨迹的形状大致呈U字型,8字型轨迹即轨迹的形状大致呈8字型。可以参考图3,图3示出车辆沿8字型轨迹运动后,该车辆上搭载的激光雷达A和激光雷达B的运动轨迹。The trajectory of the movable platform can be a preset trajectory, or a trajectory automatically planned according to a scene or an electronic map. In one embodiment, by designing the specified trajectory, the lidar mounted on the movable platform can collect relatively complete point cloud data of the scene after the movable platform completes the movement along the specified trajectory. In one embodiment, the designated trajectory may include a U-shaped trajectory or an 8-shaped trajectory. Here, the U-shaped locus, that is, the shape of the locus is approximately U-shaped, and the figure-eight locus, that is, the shape of the locus is approximately an 8-shape. Reference can be made to FIG. 3 , which shows the movement trajectories of the laser radar A and the laser radar B carried on the vehicle after the vehicle moves along the 8-shaped trajectory.
可以理解的,即便可移动平台上搭载的第一激光雷达和第二激光雷达没有视场上的重叠,但在可移动平台进行充分的运动后,第一激光雷达和第二激光雷达可以采集到相同区域的点云数据,从而在点云数据上存在探测区域上的重叠,因此,在后文的一种实施方式中,可以利用两者采集的点云数据建立的地图,将两者对应的地图进行匹配来进行外参的标定。Understandably, even if the first lidar and the second lidar on the movable platform do not overlap in the field of view, after the movable platform moves sufficiently, the first lidar and the second lidar can collect The point cloud data of the same area, so there is an overlap in the detection area on the point cloud data, therefore, in an embodiment of the following, the map established by the point cloud data collected by the two can be used to map the two corresponding The map is matched to calibrate the extrinsic parameters.
在可移动平台的运动过程中,搭载在可移动平台上的第一激光雷达和第二激光雷达也在运动,因此,第一激光雷达有其自身的运动轨迹,第二激光雷达也有其自身的运动轨迹。这里,可以根据第一激光雷达采集的点云数据估计出第一激光雷达的第一运动轨迹,可以根据第二激光雷达采集的点云数据估计出第二激光雷达的第二运动轨迹。在估计出第一运动轨迹和第二运动轨迹后,可以利用轨迹一致性约束求解外参初值,具体的,即可以利用估计出的第一运动轨迹和第二运动轨迹建立约束条件,利用该约束条件计算外参初值。During the movement of the movable platform, the first laser radar and the second laser radar mounted on the movable platform are also moving, therefore, the first laser radar has its own motion trajectory, and the second laser radar also has its own motion track. Here, the first motion track of the first laser radar can be estimated according to the point cloud data collected by the first laser radar, and the second motion track of the second laser radar can be estimated according to the point cloud data collected by the second laser radar. After estimating the first trajectory and the second trajectory, the initial value of the external parameters can be solved using the trajectory consistency constraint. Specifically, the estimated first trajectory and the second trajectory can be used to establish constraints, and the The constraint condition calculates the initial value of the external parameter.
根据点云数据估计运动轨迹的方式有多种。在一种实施方式中,可以利用SLAM(同步定位与建图)技术进行运动轨迹的估计。这里以第一激光雷达为例,可以理解的,第一激光雷达的第一运动轨迹包括第一激光雷达在各个时刻的位姿(位置和姿态),这里的位姿是在第一激光雷达的世界坐标系下的位姿。在第一激光雷达的运动过程中,第一激光雷达自身的局部坐标系是实时变化的(该局部坐标系以第一激光雷达的实时位置为原点),因此在一个例子中,可以以第一激光雷达在开始运动的第一帧的局部坐标系为世界坐标系,则第一激光雷达在第1时刻的位姿可以对应世界坐标系的原点,在第一激光雷达完成第一帧的点云数据的采集后,可以利用该第一帧的点云数据建立第一帧对应的点云地图,在第一激光雷达完成第二帧的点云数据的采集后,可以利用该第二帧的点云数据建立第二帧对应的点云地图,并可以将该第二帧的点云地图与第一帧的点云地图进行匹配,计算出第一激光雷达在第2时刻的位姿。之后,可以利用第三帧的点云地图和第二帧的点云地图进行匹配,计算出第一激光雷达在第3时刻的位姿……重复上述迭代计算的过程,最终可以计算得到第一激光雷达在各个时刻的位 姿,即估计得到第一激光雷达的第一运动轨迹。关于第二激光雷达的第二运动轨迹,其计算过程可以参考上述第一运动轨迹的计算过程,在此不再赘述。There are many ways to estimate motion trajectory from point cloud data. In one embodiment, SLAM (Simultaneous Localization and Mapping) technology can be used to estimate the motion trajectory. Taking the first laser radar as an example here, it can be understood that the first motion track of the first laser radar includes the pose (position and attitude) of the first laser radar at each moment, and the pose here is in the position of the first laser radar. The pose in the world coordinate system. During the movement of the first laser radar, the local coordinate system of the first laser radar changes in real time (the local coordinate system takes the real-time position of the first laser radar as the origin), so in an example, the first laser radar can be The local coordinate system of the first frame where the lidar starts to move is the world coordinate system, then the pose of the first lidar at the first moment can correspond to the origin of the world coordinate system, and the point cloud of the first frame is completed in the first lidar After the data is collected, the point cloud data of the first frame can be used to establish the point cloud map corresponding to the first frame. After the first lidar completes the collection of the point cloud data of the second frame, the point cloud map of the second frame can be used The cloud data establishes a point cloud map corresponding to the second frame, and can match the point cloud map of the second frame with the point cloud map of the first frame to calculate the pose of the first lidar at the second moment. Afterwards, the point cloud map of the third frame can be matched with the point cloud map of the second frame to calculate the pose of the first lidar at the third moment... Repeat the above iterative calculation process, and finally the first lidar can be calculated. The pose of the lidar at each moment is estimated to obtain the first motion track of the first lidar. Regarding the second motion track of the second lidar, its calculation process can refer to the calculation process of the above-mentioned first motion track, which will not be repeated here.
如前所述,各个激光雷达采集的点云数据需要统一到基准坐标系下,在一种实施方式中,可以以第一激光雷达的世界坐标系作为该基准坐标系,则外参标定的目标在于确定一个外参,使第二激光雷达采集的点云数据通过该外参的变换可以从第二激光雷达的世界坐标系下变换到第一激光雷达的世界坐标系下。可以将最终想要获得的外参称为目标外参,假设该目标外参为T,T=[R,t],其中R为旋转参数,t为平移参数,则基于轨迹一致性的约束,可以得到以下推导:As mentioned above, the point cloud data collected by each laser radar needs to be unified into the reference coordinate system. In one embodiment, the world coordinate system of the first laser radar can be used as the reference coordinate system, and the target of external parameter calibration It is to determine an external parameter, so that the point cloud data collected by the second laser radar can be transformed from the world coordinate system of the second laser radar to the world coordinate system of the first laser radar through the transformation of the external parameter. The extrinsic parameter that you want to finally obtain can be called the target extrinsic parameter. Assuming that the target extrinsic parameter is T, T=[R,t], where R is the rotation parameter and t is the translation parameter, then based on the constraint of trajectory consistency, The following derivation can be obtained:
Figure PCTCN2021096900-appb-000001
Figure PCTCN2021096900-appb-000001
Figure PCTCN2021096900-appb-000002
Figure PCTCN2021096900-appb-000002
Figure PCTCN2021096900-appb-000003
Figure PCTCN2021096900-appb-000003
Figure PCTCN2021096900-appb-000004
Figure PCTCN2021096900-appb-000004
其中,
Figure PCTCN2021096900-appb-000005
是第二激光雷达在第n时刻的姿态,
Figure PCTCN2021096900-appb-000006
是第二激光雷达在第n时刻的位置,
Figure PCTCN2021096900-appb-000007
是第一激光雷达在第n时刻的姿态,
Figure PCTCN2021096900-appb-000008
是第一激光雷达在第n时刻的姿态。
in,
Figure PCTCN2021096900-appb-000005
is the attitude of the second lidar at the nth moment,
Figure PCTCN2021096900-appb-000006
is the position of the second lidar at the nth moment,
Figure PCTCN2021096900-appb-000007
is the attitude of the first lidar at the nth moment,
Figure PCTCN2021096900-appb-000008
is the attitude of the first lidar at the nth moment.
在上述推导中,利用第一运动轨迹和第二运动轨迹建立的约束条件可以包括:各个时刻的位姿差距的总和最小,这里,一个时刻的位置差距是第二激光雷达在该时刻的位姿在经过外参初值的变换后与第一激光雷达在该时刻的位姿的差距。以各个时刻的位姿差距的总和最小为目标,借助各种优化算法可以优化得到外参初值,并且该外参初值与最终需要的目标外参的差距不会太大,可以为后续修正得到准确的目标外参提供保障。In the above derivation, the constraints established by using the first motion trajectory and the second motion trajectory may include: the sum of the pose differences at each moment is the smallest, here, the position gap at a moment is the pose of the second lidar at that moment The difference between the pose of the first lidar and the first lidar at this moment after the transformation of the initial value of the external parameter. With the goal of minimizing the sum of the pose differences at each moment, the initial value of the external parameter can be optimized with the help of various optimization algorithms, and the gap between the initial value of the external parameter and the final target external parameter will not be too large, which can be used for subsequent corrections Get accurate target external parameters to provide guarantee.
可以理解的,外参通常包括旋转参数和/或平移参数,因此通过外参进行的变换包括旋转变换和/或平移变换。It can be understood that the extrinsic parameters generally include rotation parameters and/or translation parameters, so the transformation performed by the extrinsic parameters includes rotation transformation and/or translation transformation.
考虑到估计出的第一运动轨迹和第二运动轨迹不可避免存在误差,因此,优化得到的外参初值仍然需要进一步的修正,通过对外参初值进行修正,即可得到最终的目标外参。Considering that there are inevitable errors in the estimated first and second motion trajectories, the optimized initial value of the extrinsic parameter still needs further correction. By correcting the initial value of the external parameter, the final target extrinsic parameter can be obtained. .
本申请实施例提供的外参标定方法,可以利用第一运动轨迹和第二运动轨迹之间的一致性建立约束条件,并可以基于该约束条件计算得到外参初值,从而可以在该外参初值的基础上计算得到准确的目标外参。可见,本申请实施例提供的方法,可以自动利用激光雷达采集的点云数据计算出合适的外参初值,无需人工给定外参初值,实 现了快速且鲁棒的全自动外参标定。The external parameter calibration method provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the method provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
对外参初值进行修正可以有多种方式。在一种实施方式中,在获取到第一激光雷达和第二激光雷达各自采集的点云数据后,除了根据点云数据估计运动轨迹外,还可以根据点云数据建立地图。具体的,可以根据第一激光雷达采集的点云数据建立场景的第一地图,并可以根据第一激光雷达采集的点云数据建立场景的第二地图,利用该第一地图和第二地图可以对外参初值进行修正,得到目标外参。这里,建立的地图可以是点云地图,也可以是特征点地图。建立地图的方式有多种,包括但不限于SLAM建图、采用特征点配准的方式建图、利用迭代最近点算法ICP(Iterative Closest Point)、G-ICP等配准算法进行建图。There are many ways to modify the initial value of the external parameter. In one embodiment, after acquiring the point cloud data collected by the first laser radar and the second laser radar respectively, in addition to estimating the motion trajectory based on the point cloud data, a map can also be established based on the point cloud data. Specifically, the first map of the scene can be established according to the point cloud data collected by the first laser radar, and the second map of the scene can be established according to the point cloud data collected by the first laser radar, and the first map and the second map can be used Correct the initial value of the external parameter to obtain the target external parameter. Here, the established map can be a point cloud map or a feature point map. There are many ways to create maps, including but not limited to SLAM mapping, feature point registration, and iterative closest point algorithm ICP (Iterative Closest Point), G-ICP and other registration algorithms for mapping.
在一种实施方式中,场景的第一地图可以是利用第一激光雷达采集的各帧点云融合得到的点云地图,场景的第二地图可以是利用第二激光雷达采集的各帧点云融合得到的点云地图,即第一地图和第二地图均是覆盖整个场景的地图。那么,在利用第一地图和第二地图对外参初值进行修正时,由于第二地图中的点云数据是基于第二激光雷达的世界坐标系下的,因此,可以通过外参初值对该第二地图进行变换,将第二地图变换至第一激光雷达的世界坐标系下,使第二地图与第一地图处于相同的坐标系,之后可以将变换后的第二地图与第一地图进行匹配,确定使第二地图在变换后可以与第一地图重合的外参修正值。利用该外参修正值对外参初值进行修正,即可得到目标外参。这里,在一个例子中,目标外参可以是外参修正与外参初值相乘得到的。In one embodiment, the first map of the scene can be a point cloud map obtained by fusion of each frame of point clouds collected by the first laser radar, and the second map of the scene can be a point cloud map of each frame collected by the second laser radar The fused point cloud maps, that is, the first map and the second map are maps covering the entire scene. Then, when using the first map and the second map to correct the initial value of the external reference, since the point cloud data in the second map is based on the world coordinate system of the second lidar, the initial value of the external reference can be used to correct the The second map is transformed, and the second map is transformed to the world coordinate system of the first lidar, so that the second map and the first map are in the same coordinate system, and then the transformed second map and the first map can be Matching is performed to determine an extrinsic correction value that enables the second map to coincide with the first map after transformation. Using the external parameter correction value to correct the external parameter initial value, the target external parameter can be obtained. Here, in an example, the target extrinsic parameter may be obtained by multiplying the extrinsic parameter correction and the extrinsic initial value.
在一种实施方式中,场景的第二地图可以包括N个子地图,每个子地图可以对应场景中的部分区域。具体的,每个子地图可以是利用第二激光雷达采集的若干帧点云融合得到的,比如,在一个例子中,每个子地图可以是融合第二激光雷达采集的5帧点云得到的。那么,在利用第一地图和第二地图对外参初值进行修正时,可以利用第一运动轨迹和基于轨迹约束计算出的外参初值对第1个子地图进行变换,变换后的第1个子地图可以与第一地图进行匹配,得到外参修正值,利用外参修正值对外参初值进行修正后,可以得到修正结果,而该修正结果可以作为新的外参初值,参与到对第2个子地图的变换当中。重复上述的迭代,直至完成最后一个子地图与第一地图的匹配后,可以将最终的修正结果确定为目标外参。In an implementation manner, the second map of the scene may include N sub-maps, and each sub-map may correspond to a partial area in the scene. Specifically, each submap may be obtained by fusing several frames of point clouds collected by the second lidar. For example, in an example, each submap may be obtained by fusing five frames of point clouds collected by the second lidar. Then, when using the first map and the second map to correct the initial value of the external parameter, the first motion track and the initial value of the external parameter calculated based on the trajectory constraints can be used to transform the first sub-map, and the transformed first sub-map The map can be matched with the first map to obtain the correction value of the external parameter. After using the correction value of the external parameter to correct the initial value of the external parameter, the correction result can be obtained, and the correction result can be used as a new initial value of the external parameter to participate in the correction of the first external parameter. During the transformation of the 2 submaps. The above iterations are repeated until the matching of the last submap and the first map is completed, and the final correction result can be determined as the target extrinsic reference.
对于第n个子地图,由于该第n个子地图是利用第二激光雷达采集的若干帧点云融合得到的,因此该第n个子地图中的点云数据是基于该若干帧点云对应的局部坐标系的,需要先将该第n个子地图中的点云数据从局部坐标系变换至全局坐标系(即第二激光雷达的世界坐标系)。第n个子地图是若干帧点云融合得到的,因此可以将该若 干帧中的某一帧对应的时刻作为该第n个子地图对应的时刻,这里,可以将该第n个子地图对应的时刻记为t。在对第n个子地图进行变换时,可以根据第一运动轨迹确定第一激光雷达在t时刻对应的位姿,并可以利用该t时刻对应的位姿对第n个子地图进行变换,使该第n个子地图中的点云数据可以从局部坐标系变换至全局坐标系,快速定位至第一地图的目标区域附近,目标区域是第n个子地图对应的场景的局部区域。之后可以通过当前的外参初值对第n个子地图进行变换,将第n个子地图从第二激光雷达的世界坐标系变换到第一激光雷达的世界坐标系下,从而可以将变换后的子地图与第一地图进行匹配,得到外参修正值。For the nth submap, since the nth submap is obtained by fusion of several frames of point clouds collected by the second lidar, the point cloud data in the nth submap is based on the local coordinates corresponding to the several frames of point clouds system, the point cloud data in the nth sub-map needs to be transformed from the local coordinate system to the global coordinate system (that is, the world coordinate system of the second lidar). The nth submap is obtained by fusion of several frames of point clouds, so the moment corresponding to a certain frame in the several frames can be used as the moment corresponding to the nth submap, here, the moment corresponding to the nth submap can be recorded as for t. When transforming the nth submap, the pose corresponding to the first lidar at time t can be determined according to the first motion trajectory, and the pose corresponding to the time t can be used to transform the nth submap, so that the The point cloud data in the n submaps can be transformed from the local coordinate system to the global coordinate system, and quickly positioned near the target area of the first map. The target area is the local area of the scene corresponding to the nth submap. Afterwards, the nth submap can be transformed by the current initial value of the external parameter, and the nth submap can be transformed from the world coordinate system of the second lidar to the world coordinate system of the first lidar, so that the transformed submap can be The map is matched with the first map to obtain an extrinsic correction value.
在将变换后的子地图与第一地图进行匹配时,可以利用最近邻搜索算法在第一地图中搜索该子地图中每个点对应的最近邻点,搜索到的各个最近邻点构成的点集可以称为最近邻点集,可以将变换后的子地图与该最近邻点集进行匹配,匹配得到外参修正值。When matching the transformed submap with the first map, the nearest neighbor point corresponding to each point in the submap can be searched in the first map using the nearest neighbor search algorithm, and the points formed by the searched nearest neighbor points The set can be called the nearest neighbor point set, and the transformed submap can be matched with the nearest neighbor point set to obtain the extrinsic correction value.
在一种情况中,若可移动平台上搭载的激光雷达的视场FOV较小,则该激光雷达采集的前后帧之间可能因为没有足够的特征点导致匹配结果错误。比如,若第n个子地图对应场景中的白墙的一部分,则该第n个子地图在与第一地图进行匹配时,由于难以在第一地图中准确找到与该第n个子地图对应的部分点云,因此很可能匹配出错误的外参修正值,若用该错误的外参修正值对外参初值进行修正,则会导致外参初值在该轮迭代中往错误的方向偏离,最终导致求解出的目标外参不准确。In one case, if the FOV of the lidar mounted on the movable platform is small, there may not be enough feature points between the front and rear frames collected by the lidar, resulting in incorrect matching results. For example, if the nth submap corresponds to a part of the white wall in the scene, when the nth submap is matched with the first map, it is difficult to accurately find the part points corresponding to the nth submap in the first map Therefore, it is very likely to match the wrong external parameter correction value. If the wrong external parameter correction value is used to correct the external parameter initial value, it will cause the external parameter initial value to deviate in the wrong direction in this round of iterations, and eventually lead to The obtained target extrinsics are not accurate.
考虑到上述问题,在一种实施方式中,可以在第n个子地图与第一地图进行匹配时,计算出两者的匹配得分,若两者的匹配得分高于预设阈值,则可以将匹配得到的外参修正值用于对外参初值进行修正,修正结果作为新的外参初值进入下一轮迭代。反之,若匹配得分低于预设阈值,则该匹配得到的外参修正值不用于对外参初值进行修正,可以直接进入下一轮迭代,下一轮迭代所用的外参初值仍然是原来的外参初值。通过匹配得分将不可靠的匹配结果滤除,可以极大提升外参的精度和外参标定的鲁棒性。Considering the above problems, in one embodiment, when the nth sub-map is matched with the first map, the matching score of the two can be calculated, and if the matching score of the two is higher than the preset threshold, the matching The obtained external parameter correction value is used to correct the external parameter initial value, and the correction result enters the next iteration as a new external parameter initial value. Conversely, if the matching score is lower than the preset threshold, the external parameter correction value obtained by the matching is not used to correct the external parameter initial value, and can directly enter the next iteration, and the external parameter initial value used in the next iteration is still the original The initial value of the external parameter. Filtering out unreliable matching results by matching scores can greatly improve the accuracy of external parameters and the robustness of external parameter calibration.
在一种实施方式中,在建立场景的第一地图和/或第二地图时,可以获取点云数据中的平面特征点以建立地图,对点云数据中的非平面特征点进行去除。这一方面可以提高匹配速度,一方面可以避免引入非平面的噪声,提升匹配的精度。In one embodiment, when building the first map and/or the second map of the scene, planar feature points in the point cloud data may be obtained to build the map, and non-planar feature points in the point cloud data may be removed. On the one hand, this can improve the matching speed, on the one hand, it can avoid the introduction of non-planar noise, and improve the matching accuracy.
在一种实施方式中,在建立场景的第一地图和/或第二地图时,还可以对地图中属于地面的点云进行降采样的处理。由于大多数场景中地面的点云密度较大,导致地面点对匹配过程的约束过强,淹没了其他特征的约束,因此,对地面点通过降采样进行 稀疏化处理,可以降低地面的约束,提高匹配结果的精度。In an implementation manner, when establishing the first map and/or the second map of the scene, down-sampling may also be performed on point clouds belonging to the ground in the map. Due to the high density of point clouds on the ground in most scenes, the constraints on the matching process of ground points are too strong, and the constraints of other features are submerged. Therefore, the sparse processing of ground points by downsampling can reduce the constraints of the ground. Improve the accuracy of matching results.
本申请实施例提供的外参标定方法,可以利用第一运动轨迹和第二运动轨迹之间的一致性建立约束条件,并可以基于该约束条件计算得到外参初值,从而可以在该外参初值的基础上计算得到准确的目标外参。可见,本申请实施例提供的方法,可以自动利用激光雷达采集的点云数据计算出合适的外参初值,无需人工给定外参初值,实现了快速且鲁棒的全自动外参标定。The external parameter calibration method provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the method provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
下面可以参考图4,图4是本申请实施例提供的外参标定装置的结构示意图,该装置包括:处理器410和存储有计算机程序的存储器420,所述处理器在执行所述计算机程序时实现以下步骤:Reference can be made to FIG. 4 below. FIG. 4 is a schematic structural diagram of an external parameter calibration device provided by an embodiment of the present application, which includes: a processor 410 and a memory 420 storing a computer program, and when the processor executes the computer program Implement the following steps:
获取第一激光雷达和第二激光雷达在同一时段内采集的场景的点云数据,其中,所述第一激光雷达和所述第二激光雷达固定在同一可移动平台上;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time, wherein the first laser radar and the second laser radar are fixed on the same movable platform;
根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
可选的,所述点云数据是所述第一激光雷达和所述第二激光雷达在所述可移动平台沿指定轨迹运动时采集的。Optionally, the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
可选的,所述指定轨迹包括:U字型轨迹或8字型轨迹。Optionally, the specified trajectory includes: a U-shaped trajectory or an 8-shaped trajectory.
可选的,所述可移动平台是在用户的触发下开始运动的。Optionally, the movable platform starts to move under the trigger of the user.
可选的,所述第一运动轨迹包括所述第一激光雷达在各个时刻的位姿,所述第二运动轨迹包括所述第二激光雷达在各个时刻的位姿;Optionally, the first motion trajectory includes the pose of the first laser radar at each moment, and the second motion trajectory includes the pose of the second laser radar at each moment;
所述约束条件包括:各个时刻对应的位姿差距的总和最小,所述位姿差距是所述第二激光雷达的位姿在经过外参初值变换后与所述第一激光雷达的位姿之间的差距。The constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
可选的,所述处理器对所述外参初值进行修正,得到目标外参时用于:Optionally, the processor corrects the initial value of the external parameter, and when obtaining the target external parameter, it is used for:
利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参,其中,所述第一地图是根据所述第一激光雷达采集的点云数据建立的,所述第二地图是根据所述第二激光雷达采集的点云数据建立的。Using the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, wherein the first map is a point cloud collected according to the first lidar The second map is established based on the point cloud data collected by the second lidar.
可选的,所述处理器在利用所述第一地图和所述第二地图对所述外参初值进行修正时用于:Optionally, when the processor uses the first map and the second map to correct the initial value of the external parameter, it is used to:
利用所述外参初值对所述第二地图进行变换,并将变换后的第二地图与所述第一地图匹配,得到外参修正值;transforming the second map by using the initial value of the external parameter, and matching the transformed second map with the first map to obtain a correction value of the external parameter;
利用所述外参修正值对所述外参初值进行修正。The initial value of the external parameter is corrected by using the correction value of the external parameter.
可选的,所述第二地图包括N个子地图,每个子地图对应所述场景中的部分区域,所述N为大于1的整数。Optionally, the second map includes N submaps, each submap corresponds to a part of the scene, and N is an integer greater than 1.
可选的,所述处理器在利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参时用于:Optionally, when the processor uses the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, it is used to:
在进入第n个子地图的迭代后,根据所述第一运动轨迹和当前的外参初值对第n个子地图进行变换,并将变换后的子地图与所述第一地图匹配,得到外参修正值;After entering the iteration of the nth submap, transform the nth submap according to the first motion track and the current initial value of the external parameter, and match the transformed submap with the first map to obtain the external parameter correction value;
利用所述外参修正值对当前的外参初值进行修正,并将修正结果作为新的外参初值,进入第n+1个子地图的迭代;Using the external parameter correction value to correct the current external parameter initial value, and using the correction result as a new external parameter initial value, enter the iteration of the n+1th sub-map;
在完成最后一个子地图的迭代后,将最后的修正结果作为目标外参,其中,所述n为大于0小于N的整数。After the iteration of the last submap is completed, the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
可选的,所述处理器在利用所述外参修正值对当前的外参初值进行修正时用于:Optionally, when the processor uses the external parameter correction value to correct the current external parameter initial value, it is used to:
若所述变换后的子地图与所述第一地图的匹配得分高于预设阈值,利用所述外参修正值对当前的外参初值进行修正。If the matching score between the transformed sub-map and the first map is higher than a preset threshold, the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
可选的,所述处理器还用于:Optionally, the processor is also used for:
若所述变换后的子地图与所述第一地图的匹配得分低于预设阈值,直接进入第n+1个子地图的迭代。If the matching score between the transformed submap and the first map is lower than the preset threshold, directly enter into iteration of the n+1th submap.
可选的,所述处理器将变换后的子地图与所述第一地图匹配时用于:Optionally, when the processor matches the transformed submap with the first map:
在所述第一地图中确定所述变换后的子地图对应的最近邻点集,将所述变换后的子地图与所述最近邻点集进行匹配。A nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
可选的,所述第一地图和/或所述第二地图经过了去除非平面特征点的处理。Optionally, the first map and/or the second map have been processed to remove non-planar feature points.
可选的,所述第一地图和/或所述第二地图中属于地面的点云经过了降采样的处理。Optionally, the point clouds belonging to the ground in the first map and/or the second map have undergone down-sampling processing.
可选的,所述变换包括:旋转变换和/或平移变换。Optionally, the transformation includes: rotation transformation and/or translation transformation.
可选的,所述第一激光雷达的视场与所述第二激光雷达的视场不存在重叠部分。Optionally, there is no overlap between the field of view of the first laser radar and the field of view of the second laser radar.
以上提供了外参标定装置的各种实施方式,其具体实现可以参考前文方法中的相关说明,在此不再赘述。Various implementations of the external reference calibration device have been provided above. For specific implementation, reference may be made to relevant descriptions in the foregoing methods, and details are not repeated here.
本申请实施例提供的外参标定装置,可以利用第一运动轨迹和第二运动轨迹之间的一致性建立约束条件,并可以基于该约束条件计算得到外参初值,从而可以在该外参初值的基础上计算得到准确的目标外参。可见,本申请实施例提供的装置,可以自 动利用激光雷达采集的点云数据计算出合适的外参初值,无需人工给定外参初值,实现了快速且鲁棒的全自动外参标定。The external parameter calibration device provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the external parameter Accurate target extrinsic parameters are calculated on the basis of initial values. It can be seen that the device provided in the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes fast and robust automatic external parameter calibration .
下面可以参考图5,图5是本申请实施例提供的可移动平台的结构示意图,该可移动平台包括:Reference can be made to FIG. 5 below. FIG. 5 is a schematic structural diagram of a mobile platform provided by an embodiment of the present application. The mobile platform includes:
机体510; Body 510;
与所述机体510连接的驱动装置,用于给所述可移动平台提供动力;A drive device connected to the body 510, used to provide power to the movable platform;
固定在所述机体510不同位置的第一激光雷达520和第二激光雷达530,用于采集场景的点云数据;The first laser radar 520 and the second laser radar 530 fixed at different positions of the body 510 are used to collect point cloud data of the scene;
处理器540和存储有计算机程序的存储器550,所述处理器在执行所述计算机程序时实现以下步骤:A processor 540 and a memory 550 storing a computer program, the processor implements the following steps when executing the computer program:
获取所述第一激光雷达和所述第二激光雷达在同一时段内采集的场景的点云数据;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time;
根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
可选的,所述点云数据是所述第一激光雷达和所述第二激光雷达在所述可移动平台沿指定轨迹运动时采集的。Optionally, the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
可选的,所述指定轨迹包括:U字型轨迹或8字型轨迹。Optionally, the specified trajectory includes: a U-shaped trajectory or an 8-shaped trajectory.
可选的,所述可移动平台是在用户的触发下开始运动的。Optionally, the movable platform starts to move under the trigger of the user.
可选的,所述第一运动轨迹包括所述第一激光雷达在各个时刻的位姿,所述第二运动轨迹包括所述第二激光雷达在各个时刻的位姿;Optionally, the first motion trajectory includes the pose of the first laser radar at each moment, and the second motion trajectory includes the pose of the second laser radar at each moment;
所述约束条件包括:各个时刻对应的位姿差距的总和最小,所述位姿差距是所述第二激光雷达的位姿在经过外参初值变换后与所述第一激光雷达的位姿之间的差距。The constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
可选的,所述处理器对所述外参初值进行修正,得到目标外参时用于:Optionally, the processor corrects the initial value of the external parameter, and when obtaining the target external parameter, it is used for:
利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参,其中,所述第一地图是根据所述第一激光雷达采集的点云数据建立的,所述第二地图是根据所述第二激光雷达采集的点云数据建立的。Using the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, wherein the first map is a point cloud collected according to the first lidar The second map is established based on the point cloud data collected by the second lidar.
可选的,所述处理器在利用所述第一地图和所述第二地图对所述外参初值进行修正时用于:Optionally, when the processor uses the first map and the second map to correct the initial value of the external parameter, it is used to:
利用所述外参初值对所述第二地图进行变换,并将变换后的第二地图与所述第一地图匹配,得到外参修正值;transforming the second map by using the initial value of the external parameter, and matching the transformed second map with the first map to obtain a correction value of the external parameter;
利用所述外参修正值对所述外参初值进行修正。The initial value of the external parameter is corrected by using the correction value of the external parameter.
可选的,所述第二地图包括N个子地图,每个子地图对应所述场景中的部分区域,所述N为大于1的整数。Optionally, the second map includes N submaps, each submap corresponds to a part of the scene, and N is an integer greater than 1.
可选的,所述处理器在利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参时用于:Optionally, when the processor uses the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, it is used to:
在进入第n个子地图的迭代后,根据所述第一运动轨迹和当前的外参初值对第n个子地图进行变换,并将变换后的子地图与所述第一地图匹配,得到外参修正值;After entering the iteration of the nth submap, transform the nth submap according to the first motion track and the current initial value of the external parameter, and match the transformed submap with the first map to obtain the external parameter correction value;
利用所述外参修正值对当前的外参初值进行修正,并将修正结果作为新的外参初值,进入第n+1个子地图的迭代;Using the external parameter correction value to correct the current external parameter initial value, and using the correction result as a new external parameter initial value, enter the iteration of the n+1th sub-map;
在完成最后一个子地图的迭代后,将最后的修正结果作为目标外参,其中,所述n为大于0小于N的整数。After the iteration of the last submap is completed, the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
可选的,所述处理器在利用所述外参修正值对当前的外参初值进行修正时用于:Optionally, when the processor uses the external parameter correction value to correct the current external parameter initial value, it is used to:
若所述变换后的子地图与所述第一地图的匹配得分高于预设阈值,利用所述外参修正值对当前的外参初值进行修正。If the matching score between the transformed sub-map and the first map is higher than a preset threshold, the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
可选的,所述处理器还用于:Optionally, the processor is also used for:
若所述变换后的子地图与所述第一地图的匹配得分低于预设阈值,直接进入第n+1个子地图的迭代。If the matching score between the transformed submap and the first map is lower than the preset threshold, directly enter into iteration of the n+1th submap.
可选的,所述处理器将变换后的子地图与所述第一地图匹配时用于:Optionally, when the processor matches the transformed submap with the first map:
在所述第一地图中确定所述变换后的子地图对应的最近邻点集,将所述变换后的子地图与所述最近邻点集进行匹配。A nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
可选的,所述第一地图和/或所述第二地图经过了去除非平面特征点的处理。Optionally, the first map and/or the second map have been processed to remove non-planar feature points.
可选的,所述第一地图和/或所述第二地图中属于地面的点云经过了降采样的处理。Optionally, the point clouds belonging to the ground in the first map and/or the second map have undergone down-sampling processing.
可选的,所述变换包括:旋转变换和/或平移变换。Optionally, the transformation includes: rotation transformation and/or translation transformation.
可选的,所述第一激光雷达的视场与所述第二激光雷达的视场不存在重叠部分。Optionally, there is no overlap between the field of view of the first laser radar and the field of view of the second laser radar.
以上提供了可移动平台的各种实施方式,其具体实现可以参考前文方法中的相关说明,在此不再赘述。Various implementations of the mobile platform are provided above, and for the specific implementation, reference may be made to relevant descriptions in the foregoing methods, and details will not be repeated here.
本申请实施例提供的可移动平台,可以利用第一运动轨迹和第二运动轨迹之间的一致性建立约束条件,并可以基于该约束条件计算得到外参初值,从而可以在该外参初值的基础上计算得到准确的目标外参。可见,本申请实施例提供的可移动平台,可 以自动利用激光雷达采集的点云数据计算出合适的外参初值,无需人工给定外参初值,实现了快速且鲁棒的全自动外参标定。The mobile platform provided by the embodiment of the present application can use the consistency between the first motion trajectory and the second motion trajectory to establish a constraint condition, and can calculate the initial value of the external parameter based on the constraint condition, so that the initial value of the external parameter can be obtained. Accurate target extrinsic parameters are calculated based on the values. It can be seen that the mobile platform provided by the embodiment of the present application can automatically calculate the appropriate initial value of the external parameter by using the point cloud data collected by the laser radar, without manually setting the initial value of the external parameter, and realizes a fast and robust fully automatic external parameter. Reference calibration.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行实现本申请实施例提供的任一种外参标定方法。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any external parameter calibration method provided in the embodiment of the present application.
以上针对每个保护主题均提供了多种实施方式,在不存在冲突或矛盾的基础上,本领域技术人员可以根据实际情况自由对各种实施方式进行组合,由此构成各种不同的技术方案。而本申请文件限于篇幅,未能对所有组合而得的技术方案展开说明,但可以理解的是,这些未能展开的技术方案也属于本申请实施例公开的范围。A variety of implementations are provided above for each protection subject. On the basis of no conflict or contradiction, those skilled in the art can freely combine various implementations according to actual conditions, thus forming various technical solutions. . However, the document of the present application is limited in length, and it is not possible to explain all the combined technical solutions, but it can be understood that these technical solutions that cannot be developed also belong to the scope of the disclosure of the embodiments of the present application.
本申请实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Embodiments of the present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer usable storage media includes both volatile and non-permanent, removable and non-removable media, and may be implemented by any method or technology for information storage. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for computers include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. The term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements but also other elements not expressly listed elements, or also elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上对本发明实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对 本发明的限制。The methods and devices provided by the embodiments of the present invention have been described in detail above. The principles and implementation methods of the present invention have been explained by using specific examples in this paper. The descriptions of the above embodiments are only used to help understand the methods and methods of the present invention. core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as limiting the present invention .

Claims (49)

  1. 一种外参标定方法,其特征在于,包括:An external parameter calibration method is characterized in that it comprises:
    获取第一激光雷达和第二激光雷达在同一时段内采集的场景的点云数据,其中,所述第一激光雷达和所述第二激光雷达固定在同一可移动平台上;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time, wherein the first laser radar and the second laser radar are fixed on the same movable platform;
    根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
    利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
    对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  2. 根据权利要求1所述的方法,其特征在于,所述点云数据是所述第一激光雷达和所述第二激光雷达在所述可移动平台沿指定轨迹运动时采集的。The method according to claim 1, wherein the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
  3. 根据权利要求2所述的方法,其特征在于,所述指定轨迹包括:U字型轨迹或8字型轨迹。The method according to claim 2, characterized in that the specified trajectory comprises: a U-shaped trajectory or an 8-shaped trajectory.
  4. 根据权利要求2所述的方法,其特征在于,所述可移动平台是在用户的触发下开始运动的。The method according to claim 2, wherein the movable platform starts to move under the trigger of a user.
  5. 根据权利要求1所述的方法,其特征在于,所述第一运动轨迹包括所述第一激光雷达在各个时刻的位姿,所述第二运动轨迹包括所述第二激光雷达在各个时刻的位姿;The method according to claim 1, wherein the first motion trajectory includes the pose of the first laser radar at each moment, and the second motion trajectory includes the pose of the second laser radar at each moment. pose;
    所述约束条件包括:各个时刻对应的位姿差距的总和最小,所述位姿差距是所述第二激光雷达的位姿在经过外参初值变换后与所述第一激光雷达的位姿之间的差距。The constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
  6. 根据权利要求1所述的方法,其特征在于,所述对所述外参初值进行修正,得到目标外参,包括:The method according to claim 1, wherein said modifying the initial value of said external parameter to obtain a target external parameter comprises:
    利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参,其中,所述第一地图是根据所述第一激光雷达采集的点云数据建立的,所述第二地图是根据所述第二激光雷达采集的点云数据建立的。Using the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, wherein the first map is a point cloud collected according to the first lidar The second map is established based on the point cloud data collected by the second lidar.
  7. 根据权利要求6所述的方法,其特征在于,所述利用所述第一地图和所述第二地图对所述外参初值进行修正,包括:The method according to claim 6, wherein the modifying the initial value of the external reference by using the first map and the second map includes:
    利用所述外参初值对所述第二地图进行变换,并将变换后的第二地图与所述第一地图匹配,得到外参修正值;transforming the second map by using the initial value of the external parameter, and matching the transformed second map with the first map to obtain a correction value of the external parameter;
    利用所述外参修正值对所述外参初值进行修正。The initial value of the external parameter is corrected by using the correction value of the external parameter.
  8. 根据权利要求6所述的方法,其特征在于,所述第二地图包括N个子地图,每个子地图对应所述场景中的部分区域,所述N为大于1的整数。The method according to claim 6, wherein the second map includes N submaps, each submap corresponds to a partial area in the scene, and the N is an integer greater than 1.
  9. 根据权利要求8所述的方法,其特征在于,所述利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参,包括:The method according to claim 8, wherein said using the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter comprises:
    在进入第n个子地图的迭代后,根据所述第一运动轨迹和当前的外参初值对第n个子地图进行变换,并将变换后的子地图与所述第一地图匹配,得到外参修正值;After entering the iteration of the nth submap, transform the nth submap according to the first motion track and the current initial value of the external parameter, and match the transformed submap with the first map to obtain the external parameter correction value;
    利用所述外参修正值对当前的外参初值进行修正,并将修正结果作为新的外参初值,进入第n+1个子地图的迭代;Using the external parameter correction value to correct the current external parameter initial value, and using the correction result as a new external parameter initial value, enter the iteration of the n+1th sub-map;
    在完成最后一个子地图的迭代后,将最后的修正结果作为目标外参,其中,所述n为大于0小于N的整数。After the iteration of the last submap is completed, the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
  10. 根据权利要求9所述的方法,其特征在于,所述利用所述外参修正值对当前的外参初值进行修正,包括:The method according to claim 9, characterized in that, using the external parameter correction value to correct the current external parameter initial value comprises:
    若所述变换后的子地图与所述第一地图的匹配得分高于预设阈值,利用所述外参修正值对当前的外参初值进行修正。If the matching score between the transformed sub-map and the first map is higher than a preset threshold, the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method according to claim 10, characterized in that the method further comprises:
    若所述变换后的子地图与所述第一地图的匹配得分低于预设阈值,直接进入第n+1个子地图的迭代。If the matching score between the transformed submap and the first map is lower than the preset threshold, directly enter into iteration of the n+1th submap.
  12. 根据权利要求9所述的方法,其特征在于,所述将变换后的子地图与所述第一地图匹配,包括:The method according to claim 9, wherein said matching the transformed submap with the first map comprises:
    在所述第一地图中确定所述变换后的子地图对应的最近邻点集,将所述变换后的子地图与所述最近邻点集进行匹配。A nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
  13. 根据权利要求6所述的方法,其特征在于,所述第一地图和/或所述第二地图经过了去除非平面特征点的处理。The method according to claim 6, characterized in that, the first map and/or the second map are processed to remove non-planar feature points.
  14. 根据权利要求6所述的方法,其特征在于,所述第一地图和/或所述第二地图中属于地面的点云经过了降采样的处理。The method according to claim 6, characterized in that, the point cloud belonging to the ground in the first map and/or the second map has undergone down-sampling processing.
  15. 根据权利要求1所述的方法,其特征在于,所述变换包括:旋转变换和/或平移变换。The method according to claim 1, wherein the transformation comprises: rotation transformation and/or translation transformation.
  16. 根据权利要求1所述的方法,其特征在于,所述第一激光雷达的视场与所述第二激光雷达的视场不存在重叠部分。The method according to claim 1, wherein the field of view of the first laser radar does not overlap with the field of view of the second laser radar.
  17. 一种外参标定装置,其特征在于,包括:处理器和存储有计算机程序的存储 器,所述处理器在执行所述计算机程序时实现以下步骤:An external reference calibration device is characterized in that it comprises: a processor and a memory that stores a computer program, and the processor implements the following steps when executing the computer program:
    获取第一激光雷达和第二激光雷达在同一时段内采集的场景的点云数据,其中,所述第一激光雷达和所述第二激光雷达固定在同一可移动平台上;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time, wherein the first laser radar and the second laser radar are fixed on the same movable platform;
    根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
    利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
    对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  18. 根据权利要求17所述的装置,其特征在于,所述点云数据是所述第一激光雷达和所述第二激光雷达在所述可移动平台沿指定轨迹运动时采集的。The device according to claim 17, wherein the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
  19. 根据权利要求18所述的装置,其特征在于,所述指定轨迹包括:U字型轨迹或8字型轨迹。The device according to claim 18, characterized in that, the specified trajectory comprises: a U-shaped trajectory or an 8-shaped trajectory.
  20. 根据权利要求18所述的装置,其特征在于,所述可移动平台是在用户的触发下开始运动的。The apparatus according to claim 18, wherein the movable platform is initiated to move by a user.
  21. 根据权利要求17所述的装置,其特征在于,所述第一运动轨迹包括所述第一激光雷达在各个时刻的位姿,所述第二运动轨迹包括所述第二激光雷达在各个时刻的位姿;The device according to claim 17, wherein the first motion trajectory includes the pose of the first laser radar at each moment, and the second motion trajectory includes the pose of the second laser radar at each moment. pose;
    所述约束条件包括:各个时刻对应的位姿差距的总和最小,所述位姿差距是所述第二激光雷达的位姿在经过外参初值变换后与所述第一激光雷达的位姿之间的差距。The constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
  22. 根据权利要求17所述的装置,其特征在于,所述处理器对所述外参初值进行修正,得到目标外参时用于:The device according to claim 17, wherein the processor corrects the initial value of the external parameter, and when obtaining the target external parameter is used for:
    利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参,其中,所述第一地图是根据所述第一激光雷达采集的点云数据建立的,所述第二地图是根据所述第二激光雷达采集的点云数据建立的。Using the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, wherein the first map is a point cloud collected according to the first lidar The second map is established based on the point cloud data collected by the second lidar.
  23. 根据权利要求22所述的装置,其特征在于,所述处理器在利用所述第一地图和所述第二地图对所述外参初值进行修正时用于:The device according to claim 22, wherein the processor is configured to: when using the first map and the second map to correct the initial value of the external parameter:
    利用所述外参初值对所述第二地图进行变换,并将变换后的第二地图与所述第一地图匹配,得到外参修正值;transforming the second map by using the initial value of the external parameter, and matching the transformed second map with the first map to obtain a correction value of the external parameter;
    利用所述外参修正值对所述外参初值进行修正。The initial value of the external parameter is corrected by using the correction value of the external parameter.
  24. 根据权利要求22所述的装置,其特征在于,所述第二地图包括N个子地图, 每个子地图对应所述场景中的部分区域,所述N为大于1的整数。The device according to claim 22, wherein the second map includes N submaps, each submap corresponds to a part of the scene, and N is an integer greater than 1.
  25. 根据权利要求24所述的装置,其特征在于,所述处理器在利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参时用于:The device according to claim 24, wherein the processor uses the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter. At:
    在进入第n个子地图的迭代后,根据所述第一运动轨迹和当前的外参初值对第n个子地图进行变换,并将变换后的子地图与所述第一地图匹配,得到外参修正值;After entering the iteration of the nth submap, transform the nth submap according to the first motion track and the current initial value of the external parameter, and match the transformed submap with the first map to obtain the external parameter correction value;
    利用所述外参修正值对当前的外参初值进行修正,并将修正结果作为新的外参初值,进入第n+1个子地图的迭代;Using the external parameter correction value to correct the current external parameter initial value, and using the correction result as a new external parameter initial value, enter the iteration of the n+1th sub-map;
    在完成最后一个子地图的迭代后,将最后的修正结果作为目标外参,其中,所述n为大于0小于N的整数。After the iteration of the last submap is completed, the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
  26. 根据权利要求25所述的装置,其特征在于,所述处理器在利用所述外参修正值对当前的外参初值进行修正时用于:The device according to claim 25, wherein the processor is used for: when using the external parameter correction value to correct the current external parameter initial value:
    若所述变换后的子地图与所述第一地图的匹配得分高于预设阈值,利用所述外参修正值对当前的外参初值进行修正。If the matching score between the transformed sub-map and the first map is higher than a preset threshold, the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
  27. 根据权利要求26所述的装置,其特征在于,所述处理器还用于:The device according to claim 26, wherein the processor is further configured to:
    若所述变换后的子地图与所述第一地图的匹配得分低于预设阈值,直接进入第n+1个子地图的迭代。If the matching score between the transformed submap and the first map is lower than the preset threshold, directly enter into iteration of the n+1th submap.
  28. 根据权利要求25所述的装置,其特征在于,所述处理器将变换后的子地图与所述第一地图匹配时用于:The device according to claim 25, wherein the processor matches the transformed submap with the first map for:
    在所述第一地图中确定所述变换后的子地图对应的最近邻点集,将所述变换后的子地图与所述最近邻点集进行匹配。A nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
  29. 根据权利要求22所述的装置,其特征在于,所述第一地图和/或所述第二地图经过了去除非平面特征点的处理。The device according to claim 22, characterized in that, the first map and/or the second map have been processed to remove non-planar feature points.
  30. 根据权利要求22所述的装置,其特征在于,所述第一地图和/或所述第二地图中属于地面的点云经过了降采样的处理。The device according to claim 22, characterized in that, the point clouds belonging to the ground in the first map and/or the second map have undergone down-sampling processing.
  31. 根据权利要求17所述的装置,其特征在于,所述变换包括:旋转变换和/或平移变换。The device according to claim 17, wherein the transformation comprises: rotation transformation and/or translation transformation.
  32. 根据权利要求17所述的装置,其特征在于,所述第一激光雷达的视场与所述第二激光雷达的视场不存在重叠部分。The device according to claim 17, wherein the field of view of the first laser radar does not overlap with the field of view of the second laser radar.
  33. 一种可移动平台,其特征在于,包括:A mobile platform, characterized in that it comprises:
    机体;body;
    与所述机体连接的驱动装置,用于给所述可移动平台提供动力;a driving device connected to the body for powering the movable platform;
    固定在所述机体不同位置的第一激光雷达和第二激光雷达,用于采集场景的点云数据;The first laser radar and the second laser radar fixed at different positions of the body are used to collect point cloud data of the scene;
    处理器和存储有计算机程序的存储器,所述处理器在执行所述计算机程序时实现以下步骤:A processor and a memory storing a computer program, the processor, when executing the computer program, implements the following steps:
    获取所述第一激光雷达和所述第二激光雷达在同一时段内采集的场景的点云数据;Obtaining point cloud data of scenes collected by the first laser radar and the second laser radar within the same period of time;
    根据所述第一激光雷达采集的点云数据,估计所述第一激光雷达的第一运动轨迹,根据所述第二激光雷达采集的点云数据,估计所述第二激光雷达的第二运动轨迹;Estimating a first motion track of the first laser radar according to the point cloud data collected by the first laser radar, and estimating a second motion of the second laser radar according to the point cloud data collected by the second laser radar track;
    利用所述第一运动轨迹和所述第二运动轨迹建立约束条件,并基于所述约束条件计算外参初值;Establishing constraints by using the first trajectory and the second trajectory, and calculating an initial value of an external parameter based on the constraints;
    对所述外参初值进行修正,得到目标外参,所述目标外参用于所述第一激光雷达的世界坐标系和所述第二激光雷达的世界坐标系之间的变换。The initial value of the external parameter is corrected to obtain a target external parameter, and the target external parameter is used for transformation between the world coordinate system of the first laser radar and the world coordinate system of the second laser radar.
  34. 根据权利要求33所述的可移动平台,其特征在于,所述点云数据是所述第一激光雷达和所述第二激光雷达在所述可移动平台沿指定轨迹运动时采集的。The movable platform according to claim 33, wherein the point cloud data is collected by the first laser radar and the second laser radar when the movable platform moves along a specified track.
  35. 根据权利要求34所述的可移动平台,其特征在于,所述指定轨迹包括:U字型轨迹或8字型轨迹。The movable platform according to claim 34, wherein the specified trajectory comprises: a U-shaped trajectory or an 8-shaped trajectory.
  36. 根据权利要求34所述的可移动平台,其特征在于,所述可移动平台是在用户的触发下开始运动的。The movable platform according to claim 34, wherein the movable platform starts to move when triggered by a user.
  37. 根据权利要求33所述的可移动平台,其特征在于,所述第一运动轨迹包括所述第一激光雷达在各个时刻的位姿,所述第二运动轨迹包括所述第二激光雷达在各个时刻的位姿;The movable platform according to claim 33, wherein the first motion trajectory includes the pose of the first laser radar at each moment, and the second motion trajectory includes the poses of the second laser radar at each moment. pose at the moment;
    所述约束条件包括:各个时刻对应的位姿差距的总和最小,所述位姿差距是所述第二激光雷达的位姿在经过外参初值变换后与所述第一激光雷达的位姿之间的差距。The constraint conditions include: the sum of the pose differences corresponding to each moment is the smallest, and the pose difference is the pose of the second laser radar after the initial value transformation of the external parameters and the pose of the first laser radar gap between.
  38. 根据权利要求33所述的可移动平台,其特征在于,所述处理器对所述外参初值进行修正,得到目标外参时用于:The mobile platform according to claim 33, wherein the processor corrects the initial value of the external parameter, and when obtaining the target external parameter is used for:
    利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参,其中,所述第一地图是根据所述第一激光雷达采集的点云数据建立的,所述第二地图是根据所述第二激光雷达采集的点云数据建立的。Using the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter, wherein the first map is a point cloud collected according to the first lidar The second map is established based on the point cloud data collected by the second lidar.
  39. 根据权利要求38所述的可移动平台,其特征在于,所述处理器在利用所述第一地图和所述第二地图对所述外参初值进行修正时用于:The movable platform according to claim 38, wherein the processor is configured to: when using the first map and the second map to correct the initial value of the external reference:
    利用所述外参初值对所述第二地图进行变换,并将变换后的第二地图与所述第一地图匹配,得到外参修正值;transforming the second map by using the initial value of the external parameter, and matching the transformed second map with the first map to obtain a correction value of the external parameter;
    利用所述外参修正值对所述外参初值进行修正。The initial value of the external parameter is corrected by using the correction value of the external parameter.
  40. 根据权利要求38所述的可移动平台,其特征在于,所述第二地图包括N个子地图,每个子地图对应所述场景中的部分区域,所述N为大于1的整数。The mobile platform according to claim 38, wherein the second map includes N submaps, each submap corresponds to a part of the scene, and N is an integer greater than 1.
  41. 根据权利要求40所述的可移动平台,其特征在于,所述处理器在利用所述场景的第一地图和所述场景的第二地图对所述外参初值进行修正,得到目标外参时用于:The movable platform according to claim 40, wherein the processor uses the first map of the scene and the second map of the scene to correct the initial value of the external parameter to obtain the target external parameter when used in:
    在进入第n个子地图的迭代后,根据所述第一运动轨迹和当前的外参初值对第n个子地图进行变换,并将变换后的子地图与所述第一地图匹配,得到外参修正值;After entering the iteration of the nth submap, transform the nth submap according to the first motion track and the current initial value of the external parameter, and match the transformed submap with the first map to obtain the external parameter correction value;
    利用所述外参修正值对当前的外参初值进行修正,并将修正结果作为新的外参初值,进入第n+1个子地图的迭代;Using the external parameter correction value to correct the current external parameter initial value, and using the correction result as a new external parameter initial value, enter the iteration of the n+1th sub-map;
    在完成最后一个子地图的迭代后,将最后的修正结果作为目标外参,其中,所述n为大于0小于N的整数。After the iteration of the last submap is completed, the final correction result is used as the target external parameter, wherein the n is an integer greater than 0 and less than N.
  42. 根据权利要求41所述的可移动平台,其特征在于,所述处理器在利用所述外参修正值对当前的外参初值进行修正时用于:The movable platform according to claim 41, wherein the processor is used for: when using the external parameter correction value to correct the current external parameter initial value:
    若所述变换后的子地图与所述第一地图的匹配得分高于预设阈值,利用所述外参修正值对当前的外参初值进行修正。If the matching score between the transformed sub-map and the first map is higher than a preset threshold, the current initial value of the extrinsic parameter is corrected using the extrinsic correction value.
  43. 根据权利要求42所述的可移动平台,其特征在于,所述处理器还用于:The mobile platform according to claim 42, wherein the processor is further used for:
    若所述变换后的子地图与所述第一地图的匹配得分低于预设阈值,直接进入第n+1个子地图的迭代。If the matching score between the transformed submap and the first map is lower than the preset threshold, directly enter into iteration of the n+1th submap.
  44. 根据权利要求41所述的可移动平台,其特征在于,所述处理器将变换后的子地图与所述第一地图匹配时用于:The mobile platform according to claim 41, wherein the processor matches the transformed sub-map with the first map for:
    在所述第一地图中确定所述变换后的子地图对应的最近邻点集,将所述变换后的子地图与所述最近邻点集进行匹配。A nearest neighbor point set corresponding to the transformed submap is determined in the first map, and the transformed submap is matched with the nearest neighbor point set.
  45. 根据权利要求38所述的可移动平台,其特征在于,所述第一地图和/或所述第二地图经过了去除非平面特征点的处理。The mobile platform according to claim 38, characterized in that, the first map and/or the second map have been processed to remove non-planar feature points.
  46. 根据权利要求38所述的可移动平台,其特征在于,所述第一地图和/或所述第二地图中属于地面的点云经过了降采样的处理。The mobile platform according to claim 38, characterized in that, the point clouds belonging to the ground in the first map and/or the second map have undergone down-sampling processing.
  47. 根据权利要求33所述的可移动平台,其特征在于,所述变换包括:旋转变换和/或平移变换。The movable platform according to claim 33, wherein the transformation comprises: rotation transformation and/or translation transformation.
  48. 根据权利要求33所述的可移动平台,其特征在于,所述第一激光雷达的视场与所述第二激光雷达的视场不存在重叠部分。The movable platform according to claim 33, wherein the field of view of the first laser radar does not overlap with the field of view of the second laser radar.
  49. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计 算机程序,所述计算机程序被处理器执行时实现如权利要求1-16任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1-16 is implemented.
PCT/CN2021/096900 2021-05-28 2021-05-28 Extrinsic calibration method and apparatus, movable platform, and storage medium WO2022246826A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/096900 WO2022246826A1 (en) 2021-05-28 2021-05-28 Extrinsic calibration method and apparatus, movable platform, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/096900 WO2022246826A1 (en) 2021-05-28 2021-05-28 Extrinsic calibration method and apparatus, movable platform, and storage medium

Publications (1)

Publication Number Publication Date
WO2022246826A1 true WO2022246826A1 (en) 2022-12-01

Family

ID=84228366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096900 WO2022246826A1 (en) 2021-05-28 2021-05-28 Extrinsic calibration method and apparatus, movable platform, and storage medium

Country Status (1)

Country Link
WO (1) WO2022246826A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116184369A (en) * 2023-04-26 2023-05-30 长沙智能驾驶研究院有限公司 External parameter calibration method, device, equipment, medium and product of laser radar
US20230196611A1 (en) * 2021-12-22 2023-06-22 Aptiv Technologies Limited Feature describing the shape of spatially distributed data set
CN117470280A (en) * 2023-12-21 2024-01-30 绘见科技(深圳)有限公司 Laser SLAM real-time precision evaluation method, device, medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106872963A (en) * 2017-03-31 2017-06-20 厦门大学 A kind of automatic Calibration algorithm of multigroup multi-line laser radar
CN110596683A (en) * 2019-10-25 2019-12-20 中山大学 Multi-group laser radar external parameter calibration system and method thereof
CN110741282A (en) * 2019-08-21 2020-01-31 深圳市速腾聚创科技有限公司 External parameter calibration method and device, computing equipment and computer storage medium
CN111965627A (en) * 2020-08-18 2020-11-20 湖北亿咖通科技有限公司 Multi-laser radar calibration method for vehicle
CN112731358A (en) * 2021-01-08 2021-04-30 奥特酷智能科技(南京)有限公司 Multi-laser-radar external parameter online calibration method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106872963A (en) * 2017-03-31 2017-06-20 厦门大学 A kind of automatic Calibration algorithm of multigroup multi-line laser radar
CN110741282A (en) * 2019-08-21 2020-01-31 深圳市速腾聚创科技有限公司 External parameter calibration method and device, computing equipment and computer storage medium
CN110596683A (en) * 2019-10-25 2019-12-20 中山大学 Multi-group laser radar external parameter calibration system and method thereof
CN111965627A (en) * 2020-08-18 2020-11-20 湖北亿咖通科技有限公司 Multi-laser radar calibration method for vehicle
CN112731358A (en) * 2021-01-08 2021-04-30 奥特酷智能科技(南京)有限公司 Multi-laser-radar external parameter online calibration method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230196611A1 (en) * 2021-12-22 2023-06-22 Aptiv Technologies Limited Feature describing the shape of spatially distributed data set
US11699245B1 (en) * 2021-12-22 2023-07-11 Aptiv Technologies Limited Feature describing the shape of spatially distributed data set
CN116184369A (en) * 2023-04-26 2023-05-30 长沙智能驾驶研究院有限公司 External parameter calibration method, device, equipment, medium and product of laser radar
CN116184369B (en) * 2023-04-26 2023-09-12 长沙智能驾驶研究院有限公司 External parameter calibration method, device, equipment, medium and product of laser radar
CN117470280A (en) * 2023-12-21 2024-01-30 绘见科技(深圳)有限公司 Laser SLAM real-time precision evaluation method, device, medium and equipment
CN117470280B (en) * 2023-12-21 2024-04-05 绘见科技(深圳)有限公司 Laser SLAM real-time precision evaluation method, device, medium and equipment

Similar Documents

Publication Publication Date Title
WO2022246826A1 (en) Extrinsic calibration method and apparatus, movable platform, and storage medium
JP6915209B2 (en) How to create a map of a mobile robot and how to plan a route based on the map
CN111076733B (en) Robot indoor map building method and system based on vision and laser slam
CN110703268B (en) Air route planning method and device for autonomous positioning navigation
CN111257909B (en) Multi-2D laser radar fusion mapping and positioning method and system
CN115290097B (en) BIM-based real-time accurate map construction method, terminal and storage medium
CN111650598A (en) External parameter calibration method and device for vehicle-mounted laser scanning system
CN111524194B (en) Positioning method and terminal for mutually fusing laser radar and binocular vision
CN112183171A (en) Method and device for establishing beacon map based on visual beacon
KR102338763B1 (en) Method and device for ego-vehicle localization to update hd map by using v2x information fusion
CN112837383A (en) Camera and laser radar recalibration method and device and computer readable storage medium
WO2021195939A1 (en) Calibrating method for external parameters of binocular photographing device, movable platform and system
WO2022179094A1 (en) Vehicle-mounted lidar external parameter joint calibration method and system, medium and device
CN115077541A (en) Positioning method and device for automatic driving vehicle, electronic equipment and storage medium
CN115661262A (en) Internal and external parameter calibration method and device and electronic equipment
CN112731354A (en) Self-calibration method for laser radar pose on AGV
CN111047652B (en) Rapid multi-TOF camera external parameter calibration method and device
CN110634183A (en) Map construction method and device and unmanned equipment
CN114266821A (en) Online positioning method and device, terminal equipment and storage medium
CN113665591A (en) Unmanned control method, device, equipment and medium
CN112612034A (en) Pose matching method based on laser frame and probability map scanning
CN116681733A (en) Near-distance real-time pose tracking method for space non-cooperative target
CN113324550B (en) Track correction method based on improved track integration and storage medium
CN117170354A (en) Wheel type robot positioning method and system
CN115164887A (en) Pedestrian navigation positioning method and device based on laser radar and inertia combination

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21942400

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21942400

Country of ref document: EP

Kind code of ref document: A1