[go: up one dir, main page]

CN113933818A - Method, device, storage medium and program product for calibration of external parameters of lidar - Google Patents

Method, device, storage medium and program product for calibration of external parameters of lidar Download PDF

Info

Publication number
CN113933818A
CN113933818A CN202111335620.7A CN202111335620A CN113933818A CN 113933818 A CN113933818 A CN 113933818A CN 202111335620 A CN202111335620 A CN 202111335620A CN 113933818 A CN113933818 A CN 113933818A
Authority
CN
China
Prior art keywords
radar
data
point cloud
adjacent frames
inertial navigation
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111335620.7A
Other languages
Chinese (zh)
Inventor
丁文东
秦莹莹
杨瀚
高巍
彭亮
万国伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Intelligent Technology Beijing Co Ltd
Original Assignee
Apollo Intelligent Technology Beijing Co Ltd
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 Apollo Intelligent Technology Beijing Co Ltd filed Critical Apollo Intelligent Technology Beijing Co Ltd
Priority to CN202111335620.7A priority Critical patent/CN113933818A/en
Publication of CN113933818A publication Critical patent/CN113933818A/en
Pending legal-status Critical Current

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
    • 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
    • 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
    • G01S17/931Lidar systems specially adapted for specific applications for anti-collision purposes of land vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Navigation (AREA)
  • Traffic Control Systems (AREA)

Abstract

本公开提供的激光雷达外参的标定的方法、设备、存储介质及程序产品,涉及高精地图和自动驾驶技术,本公开提供的方案基于惯性测量单元的轨迹推测惯性测量单元在相邻数据帧之间的相对位姿,根据雷达数据推测雷达在相邻帧之间的相对位姿,从而可以基于相邻数据帧之间的惯性测量单元相对位姿和雷达相对位姿,对雷达和惯性测量单元进行标定,通过位姿变化能够标定出雷达和惯性测量单元之间的旋转参数以及平移参数,进而能够提高标定成功率。

Figure 202111335620

The method, device, storage medium and program product for calibrating lidar external parameters provided by the present disclosure relate to high-precision maps and automatic driving technologies. The solution provided by the present disclosure is based on the trajectory of the inertial measurement unit. Based on the relative pose of the radar between adjacent frames, the relative pose of the radar between adjacent frames can be estimated based on the relative pose of the inertial measurement unit and the relative pose of the radar between the adjacent data frames. The unit is calibrated, and the rotation parameters and translation parameters between the radar and the inertial measurement unit can be calibrated through the pose change, which can improve the calibration success rate.

Figure 202111335620

Description

激光雷达外参的标定的方法、设备、存储介质及程序产品Method, device, storage medium and program product for calibration of external parameters of lidar

技术领域technical field

本公开涉及数据处理技术中的高精地图和自动驾驶技术,尤其涉及一种激光雷达外参的标定的方法、设备、存储介质及程序产品。The present disclosure relates to high-precision maps and automatic driving technologies in data processing technology, and in particular, to a method, device, storage medium and program product for calibrating external parameters of lidar.

背景技术Background technique

随着无人驾驶和智能驾驶技术的发展,对于高精地图的规模和场景提出了更高的要求。制作高精地图时需要利用车辆上的激光雷达采集点云数据,再根据点云数据进行三维重建,进而得到高精地图。在三维重建过程中,对车辆雷达的外参的精确度要求比较高。With the development of unmanned driving and intelligent driving technology, higher requirements are put forward for the scale and scene of high-precision maps. When making a high-precision map, it is necessary to use the lidar on the vehicle to collect point cloud data, and then perform 3D reconstruction based on the point cloud data to obtain a high-precision map. In the process of 3D reconstruction, the accuracy of the external parameters of the vehicle radar is relatively high.

现有技术中存在基于B样条连续轨迹的外参数估计方案,这种方案使用B样条参数化轨迹,对参数化方程求导构建目标函数来估计车辆的IMU(Inertial Measurement Unit,惯性测量单元)的轨迹,以及使用雷达里程计估计雷达的轨迹,再基于IMU的轨迹和雷达的轨迹来标定雷达外参。There is an external parameter estimation scheme based on a B-spline continuous trajectory in the prior art. This scheme uses a B-spline parameterized trajectory to derive the parameterized equation to construct an objective function to estimate the IMU (Inertial Measurement Unit, inertial measurement unit) of the vehicle. ) trajectory, and use the radar odometry to estimate the radar trajectory, and then calibrate the radar external parameters based on the IMU trajectory and the radar trajectory.

这种标定方式中,只能够估计出雷达的旋转外参,导致标定系统的误差较大,降低标定的成功率。In this calibration method, only the rotating external parameters of the radar can be estimated, which leads to a large error in the calibration system and reduces the success rate of calibration.

发明内容SUMMARY OF THE INVENTION

本公开提供了一种激光雷达外参的标定的方法、设备、存储介质及程序产品,以提高雷达外参标定的准确性和成功率。The present disclosure provides a method, device, storage medium and program product for calibrating external parameters of a laser radar, so as to improve the accuracy and success rate of external parameter calibration of the radar.

根据本公开的第一方面,提供了一种激光雷达外参的标定方法,包括:According to a first aspect of the present disclosure, a method for calibrating external parameters of a lidar is provided, including:

获取在车辆上设置的雷达传感器采集的雷达数据、在所述车辆上设置的惯性测量单元采集的惯导数据、以及在所述车辆上设置的定位系统采集的定位数据;acquiring radar data collected by a radar sensor set on the vehicle, inertial navigation data collected by an inertial measurement unit set on the vehicle, and positioning data collected by a positioning system set on the vehicle;

根据所述定位数据和所述惯导数据,确定所述惯性测量单元的惯导轨迹;determining the inertial navigation trajectory of the inertial measurement unit according to the positioning data and the inertial navigation data;

根据所述惯导轨迹确定惯性测量单元在相邻帧间的惯导相对位姿,并根据所述雷达数据确定雷达在相邻帧间的雷达相对位姿;Determine the inertial relative pose of the inertial measurement unit between adjacent frames according to the inertial navigation trajectory, and determine the radar relative pose of the radar between adjacent frames according to the radar data;

根据所述惯导相对位姿和所述雷达相对位姿,确定所述雷达相对于所述惯性测量单元的标定参数。According to the relative pose of the inertial navigation and the relative pose of the radar, the calibration parameters of the radar relative to the inertial measurement unit are determined.

根据本公开的第二方面,提供了一种激光雷达外参的标定装置,包括:According to a second aspect of the present disclosure, a device for calibrating external parameters of a lidar is provided, including:

数据获取单元,用于获取在车辆上设置的雷达传感器采集的雷达数据、在所述车辆上设置的惯性测量单元采集的惯导数据、以及在所述车辆上设置的定位系统采集的定位数据;a data acquisition unit, configured to acquire radar data collected by a radar sensor set on the vehicle, inertial navigation data collected by an inertial measurement unit set on the vehicle, and positioning data collected by a positioning system set on the vehicle;

轨迹确定单元,用于根据所述定位数据和所述惯导数据,确定所述惯性测量单元的惯导轨迹;a trajectory determination unit, configured to determine the inertial navigation trajectory of the inertial measurement unit according to the positioning data and the inertial navigation data;

位姿确定单元,用于根据所述惯导轨迹确定惯性测量单元在相邻帧间的惯导相对位姿,并根据所述雷达数据确定雷达在相邻帧间的雷达相对位姿;a pose determination unit, configured to determine the inertial navigation relative pose of the inertial measurement unit between adjacent frames according to the inertial navigation trajectory, and determine the radar relative pose of the radar between adjacent frames according to the radar data;

标定单元,用于根据所述惯导相对位姿和所述雷达相对位姿,确定所述雷达相对于所述惯性测量单元的标定参数。A calibration unit, configured to determine calibration parameters of the radar relative to the inertial measurement unit according to the inertial navigation relative pose and the radar relative pose.

根据本公开的第三方面,提供了一种电子设备,包括:According to a third aspect of the present disclosure, there is provided an electronic device, comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如第一方面所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.

根据本公开的第四方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行如第一方面所述的方法。According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method of the first aspect.

根据本公开的第五方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序,所述计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得电子设备执行第一方面所述的方法。According to a fifth aspect of the present disclosure, there is provided a computer program product, the computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can Reading the storage medium reads the computer program, and executing the computer program by the at least one processor causes the electronic device to perform the method of the first aspect.

本公开提供的激光雷达外参的标定的方法、设备、存储介质及程序产品,可以基于惯性测量单元的轨迹推测惯性测量单元在相邻数据帧之间的相对位姿,根据雷达数据推测雷达在相邻帧之间的相对位姿,从而可以基于相邻数据帧之间的惯性测量单元相对位姿和雷达相对位姿,对雷达和惯性测量单元进行标定,通过位姿变化能够标定出雷达和惯性测量单元之间的旋转参数以及平移参数,进而能够提高标定成功率。The method, device, storage medium and program product for calibrating external parameters of lidar provided by the present disclosure can infer the relative pose of the inertial measurement unit between adjacent data frames based on the trajectory of the inertial measurement unit, and estimate the relative pose of the inertial measurement unit between adjacent data frames according to the radar data. The relative pose between adjacent frames, so that the radar and the inertial measurement unit can be calibrated based on the relative pose of the inertial measurement unit and the relative pose of the radar between adjacent data frames. The rotation parameters and translation parameters between the inertial measurement units can improve the calibration success rate.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present disclosure. in:

图1为一示例性实施例示出的车辆示意图;FIG. 1 is a schematic diagram of a vehicle shown in an exemplary embodiment;

图2为本公开一示例性实施例示出的激光雷达外参的标定方法的流程示意图;FIG. 2 is a schematic flowchart of a method for calibrating external parameters of a lidar according to an exemplary embodiment of the present disclosure;

图3为本公开另一示例性实施例示出的激光雷达外参的标定方法的流程示意图;FIG. 3 is a schematic flowchart of a method for calibrating external parameters of a lidar according to another exemplary embodiment of the present disclosure;

图4为本公开一示例性实施例示出的激光雷达外参的标定装置的结构示意图;FIG. 4 is a schematic structural diagram of an apparatus for calibrating external parameters of a lidar according to an exemplary embodiment of the present disclosure;

图5为本公开另一示例性实施例示出的激光雷达外参的标定装置的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for calibrating external parameters of a lidar according to another exemplary embodiment of the present disclosure;

图6是用来实现本公开实施例的方法的电子设备的框图。6 is a block diagram of an electronic device used to implement the method of an embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

图1为一示例性实施例示出的车辆示意图。FIG. 1 is a schematic diagram of a vehicle according to an exemplary embodiment.

在车辆上设置有雷达传感器11和惯性测量单元IMU12,雷达传感器11具有坐标系O1X1Y1Z1,惯性测量单元12也具有坐标系O2X2Y2Z2。激光雷达与IMU之间存在安装误差角和位置误差,因此两个传感器测量得到的同一组标志点的三维坐标不同。A radar sensor 11 and an inertial measurement unit IMU12 are provided on the vehicle, the radar sensor 11 has a coordinate system O1X1Y1Z1, and the inertial measurement unit 12 also has a coordinate system O2X2Y2Z2. There are installation error angles and position errors between the lidar and the IMU, so the three-dimensional coordinates of the same set of marker points measured by the two sensors are different.

利用设置有雷达和IMU的车辆采集道路数据时,需要根据雷达采集的点云数据进行三维重建,还需要确定三维重建道路环境的位置信息。在确定位置信息时可以采用激光雷达和IMU进行组合的定位方式。由于激光雷达和IMU的坐标系不完全相同,会导致两个传感器测量得到的同一组标志点的三维坐标不同。因此,为了满足定位系统的定位精度,需要标定雷达和IMU之间的参数。When collecting road data with a vehicle equipped with a radar and an IMU, it is necessary to perform 3D reconstruction according to the point cloud data collected by the radar, and it is also necessary to determine the location information of the 3D reconstructed road environment. When determining the location information, a combined positioning method of lidar and IMU can be used. Since the coordinate systems of the lidar and the IMU are not exactly the same, the three-dimensional coordinates of the same set of marker points measured by the two sensors are different. Therefore, in order to meet the positioning accuracy of the positioning system, it is necessary to calibrate the parameters between the radar and the IMU.

现有技术中存在基于B样条连续轨迹的外参数估计方案,这种方案使用B样条参数化轨迹,对参数化方程求导构建目标函数来估计车辆的IMU的轨迹,以及使用雷达里程计估计雷达的轨迹,再基于IMU的轨迹和雷达的轨迹来标定雷达外参。这种标定方式中,只能够估计出雷达的旋转外参,导致标定系统的误差较大,降低标定的成功率。There is an external parameter estimation scheme based on a B-spline continuous trajectory in the prior art. This scheme uses a B-spline parameterized trajectory, derives the parameterized equation to construct an objective function to estimate the trajectory of the vehicle's IMU, and uses a radar odometer. The trajectory of the radar is estimated, and the external parameters of the radar are calibrated based on the trajectory of the IMU and the trajectory of the radar. In this calibration method, only the rotating external parameters of the radar can be estimated, which leads to a large error in the calibration system and reduces the success rate of calibration.

为了解决上述技术问题,本公开提供的方案利用相邻数据帧之间的IMU相对位姿和雷达相对位姿对雷达和IMU进行标定,相对位姿用于表征传感器在两帧数据中位姿的变化,由于雷达和IMU是设置在同一辆车上的,因此,在车辆行驶过程中两个传感器的位置变换应当是相同的,基于此,可以标定雷达和IMU之间的参数,这种方式能够标定出雷达和IMU之间的旋转参数以及平移参数,能够提高标定成功率。In order to solve the above technical problems, the solution provided by the present disclosure utilizes the relative pose of the IMU and the relative pose of the radar between adjacent data frames to calibrate the radar and the IMU, and the relative pose is used to characterize the pose of the sensor in the two frames of data. Change, since the radar and the IMU are set on the same vehicle, the position transformation of the two sensors should be the same during the driving process of the vehicle. Based on this, the parameters between the radar and the IMU can be calibrated. This method can Calibration of the rotation parameters and translation parameters between the radar and the IMU can improve the success rate of calibration.

图2为本公开一示例性实施例示出的激光雷达外参的标定方法的流程示意图。FIG. 2 is a schematic flowchart of a method for calibrating external parameters of a lidar according to an exemplary embodiment of the present disclosure.

如图2所示,本公开提供的激光雷达外参的标定方法,包括:As shown in FIG. 2 , the method for calibrating external parameters of lidar provided by the present disclosure includes:

步骤201,获取在车辆上设置的雷达传感器采集的雷达数据、在车辆上设置的惯性测量单元采集的惯导数据、以及在车辆上设置的定位系统采集的定位数据。Step 201 , acquiring radar data collected by a radar sensor set on the vehicle, inertial navigation data collected by an inertial measurement unit set on the vehicle, and positioning data collected by a positioning system set on the vehicle.

其中,本公开提供的方法可以由具备计算能力的电子设备执行,该电子设备例如可以是车载设备。Wherein, the method provided by the present disclosure may be executed by an electronic device with computing capability, and the electronic device may be, for example, a vehicle-mounted device.

具体的,车辆上设置有雷达传感器,还可以设置IMU以及定位系统。进一步的,在车辆行驶时雷达传感器能够采集点云数据,IMU可以采集惯导数据,定位系统可以采集定位数据,定位系统例如可以是GPS(Global Positioning System,全球定位系统)。Specifically, a radar sensor is provided on the vehicle, and an IMU and a positioning system may also be provided. Further, when the vehicle is running, the radar sensor can collect point cloud data, the IMU can collect inertial navigation data, and the positioning system can collect positioning data. The positioning system can be, for example, GPS (Global Positioning System, global positioning system).

进一步的,雷达传感器的工作原理是向目标发射探测信号(激光束),然后将接收到的从目标反射回来的信号(目标回波)与发射信号进行比较得到点云数据。点云数据中可以包括目标的有关信息,如目标距离、方位、高度、速度、姿态、甚至形状等参数。Further, the working principle of the radar sensor is to transmit a detection signal (laser beam) to the target, and then compare the received signal (target echo) reflected from the target with the transmitted signal to obtain point cloud data. Point cloud data can include information about the target, such as target distance, orientation, altitude, speed, attitude, and even shape and other parameters.

实际应用时,IMU可以包括三个单轴的加速度计和三个单轴的陀螺仪,加速度计检测三轴的加速度信号,而陀螺仪检测角速度信号,测量物体在三维空间中的角速度和加速度,从而可以确定出物体的姿态。In practical applications, the IMU can include three single-axis accelerometers and three single-axis gyroscopes. The accelerometer detects the three-axis acceleration signal, and the gyroscope detects the angular velocity signal to measure the angular velocity and acceleration of the object in three-dimensional space. Thus, the pose of the object can be determined.

其中,雷达传感器、IMU和定位系统可以分别将采集的数据发送给电子设备,使得电子设备能够获取惯导数据、雷达数据和定位数据。Among them, the radar sensor, IMU and positioning system can respectively send the collected data to the electronic device, so that the electronic device can obtain inertial navigation data, radar data and positioning data.

一种可选的实施方式中,车辆行驶时可能是直线运动也可能时曲线运动,可以在各个传感器采集的数据中筛选出一定数量的直线运动的数据,以及一定数量的曲线运动的数据。In an optional implementation manner, the vehicle may move in a straight line or in a curve while driving, and a certain amount of data of linear motion and a certain amount of data of curvilinear motion may be screened out from the data collected by each sensor.

步骤202,根据定位数据和惯导数据,确定惯性测量单元的惯导轨迹。Step 202: Determine the inertial navigation trajectory of the inertial measurement unit according to the positioning data and the inertial navigation data.

具体的,电子设备可以利用定位数据和惯导数据确定出IMU的惯导轨迹。定位数据中记录的是车辆当前所在的位置,惯导数据中记录的是车辆的姿态变化情况,因此,可以结合定位数据和惯导数据确定出惯导轨迹。Specifically, the electronic device can determine the inertial navigation trajectory of the IMU by using the positioning data and the inertial navigation data. The current position of the vehicle is recorded in the positioning data, and the attitude change of the vehicle is recorded in the inertial navigation data. Therefore, the inertial navigation trajectory can be determined by combining the positioning data and the inertial navigation data.

进一步的,在某些特定情况下定位系统信号不好的情况下,获取的定位数据也会不准确,因此,可以利用信号较好的定位数据结合惯导数据,确定出车辆的行驶轨迹,可以再根据行驶轨迹确定出IMU的惯导轨迹。比如,在A点定位系统信号较好,可以根据A点定位数据确定车辆位置,此后定位系统信号不好时,可以根据惯导数据确定车辆的姿态变化,并结合A点的位置生成车辆行驶轨迹。Further, in some specific cases when the signal of the positioning system is not good, the obtained positioning data will also be inaccurate. Therefore, the positioning data with better signal can be combined with the inertial navigation data to determine the driving trajectory of the vehicle. Then determine the inertial navigation trajectory of the IMU according to the driving trajectory. For example, when the signal of the positioning system at point A is good, the position of the vehicle can be determined according to the positioning data of point A. After that, when the signal of the positioning system is not good, the attitude change of the vehicle can be determined according to the inertial navigation data, and the driving trajectory of the vehicle can be generated according to the position of point A. .

实际应用时,可以预先标定IMU与定位系统的相对位置,进而根据IMU与定位系统的相对位置以及车辆行驶轨迹生成惯导轨迹。惯导轨迹用于表征车辆行驶时,惯导的位置变换情况。In practical applications, the relative position of the IMU and the positioning system can be pre-calibrated, and then the inertial navigation trajectory can be generated according to the relative position of the IMU and the positioning system and the driving trajectory of the vehicle. The inertial navigation trajectory is used to characterize the position change of the inertial navigation when the vehicle is driving.

步骤203,根据惯导轨迹确定惯性测量单元在相邻帧间的惯导相对位姿,并根据雷达数据确定雷达在相邻帧间的雷达相对位姿。Step 203: Determine the inertial navigation relative pose of the inertial measurement unit between adjacent frames according to the inertial navigation trajectory, and determine the radar relative pose of the radar between adjacent frames according to radar data.

其中,惯导轨迹中包括多帧数据,这些数据组成了惯导在一段时间内的多个位置信息。电子设备可以根据惯导轨迹中的多帧数据,确定出相邻的数据帧之间的惯导的相对位姿。Among them, the inertial navigation trajectory includes multiple frames of data, and these data constitute multiple position information of the inertial navigation within a period of time. The electronic device can determine the relative pose of the inertial navigation between adjacent data frames according to the multiple frames of data in the inertial navigation trajectory.

具体的,根据惯导在连续两帧的惯导数据中的位置信息,确定出惯导的位姿变换信息,比如,第二帧惯导数据相较于第一帧惯导数据,惯导在惯导坐标系的X轴方向移动了距离L。Specifically, according to the position information of the inertial navigation in the inertial navigation data of two consecutive frames, the pose transformation information of the inertial navigation is determined. For example, compared with the inertial navigation data of the first frame, the inertial navigation data of the second frame is The X-axis direction of the inertial navigation coordinate system has moved a distance L.

进一步的,电子设备还可以根据雷达数据确定雷达在相邻帧间的雷达相对位姿。Further, the electronic device may also determine the radar relative pose and attitude of the radar between adjacent frames according to the radar data.

实际应用时,电子设备获取的雷达数据中包括多帧数据,电子设备可以根据连续两帧的雷达数据中的位姿信息,确定出雷达的位姿变换信息。比如,第二帧雷达数据相较于第一帧雷达数据,雷达在雷达坐标系的X轴方向移动了距离H。In practical application, the radar data acquired by the electronic device includes multiple frames of data, and the electronic device can determine the pose transformation information of the radar according to the pose information in the radar data of two consecutive frames. For example, compared with the first frame of radar data in the second frame of radar data, the radar moves a distance H in the X-axis direction of the radar coordinate system.

其中,惯导数据和雷达数据都可以具有帧标识信息,从而可以根据帧标识确定出同一时刻采集的惯导数据和雷达数据,进而利用同时刻采集的惯导数据和雷达数据标定参数。帧标识信息例如可以是帧号,还可以是时间信息。Among them, both the inertial navigation data and the radar data may have frame identification information, so that the inertial navigation data and radar data collected at the same time can be determined according to the frame identification, and then the inertial navigation data and radar data collected at the same time can be used to calibrate parameters. The frame identification information may be, for example, a frame number or time information.

步骤204,根据惯导相对位姿和雷达相对位姿,确定雷达相对于惯性测量单元的标定参数。Step 204: Determine the calibration parameters of the radar relative to the inertial measurement unit according to the relative pose of the inertial navigation and the relative pose of the radar.

具体的,电子设备可以根据惯导相对位姿和雷达相对位姿对雷达进行标定,从而确定雷达相对于IMU的参数。Specifically, the electronic device can calibrate the radar according to the inertial navigation relative pose and the radar relative pose, so as to determine the parameters of the radar relative to the IMU.

进一步的,雷达和IMU被设置在车辆上,因此,雷达和IMU之间的相对位置不变,雷达相对于惯性测量单元的标定参数也不会变,且雷达和IMU被设置在同一车辆上,二者的位姿变化也是相同的。Further, the radar and the IMU are set on the vehicle, so the relative position between the radar and the IMU does not change, and the calibration parameters of the radar relative to the inertial measurement unit will not change, and the radar and IMU are set on the same vehicle, The pose changes of the two are also the same.

实际应用时,车辆行驶过程中,在两个相邻时刻雷达和IMU的姿态变化应当是相同的,因此,可以根据相邻帧之间雷达相对位姿和IMU相对位姿确定雷达相对于IMU的参数。In practical applications, the attitude changes of the radar and the IMU should be the same at two adjacent moments during the driving process of the vehicle. Therefore, the relative attitude of the radar relative to the IMU can be determined according to the relative pose of the radar and the relative pose of the IMU between adjacent frames. parameter.

比如,可以根据第一组相邻帧之间雷达相对位姿和IMU相对位姿确定雷达相对于IMU的第一参数,还可以根据第而组相邻帧之间雷达相对位姿和IMU相对位姿确定雷达相对于IMU的第二参数,通过这种方式能够得到多组相邻帧数据对应的参数,可以拟合这些参数,进而得到雷达相对于IMU的参数。For example, the first parameter of the radar relative to the IMU can be determined according to the relative pose of the radar and the relative pose of the IMU between the first group of adjacent frames, and the relative pose of the radar and the relative position of the IMU between the second group of adjacent frames can also be determined. The attitude determines the second parameter of the radar relative to the IMU. In this way, the parameters corresponding to multiple sets of adjacent frame data can be obtained, and these parameters can be fitted to obtain the parameters of the radar relative to the IMU.

本公开提供的这种标定方式可以避免繁琐严格的标定流程,可以在三维重建过程中进行外参标定,利用三维重建时采集的数据自动优化补偿外参,有利于高精度的生产采集效率的提升。The calibration method provided by the present disclosure can avoid the cumbersome and strict calibration process, and can perform external parameter calibration during the three-dimensional reconstruction process, and use the data collected during the three-dimensional reconstruction to automatically optimize and compensate the external parameters, which is conducive to the improvement of high-precision production and acquisition efficiency .

本公开提供的激光雷达外参的标定方法,包括:获取在车辆上设置的雷达传感器采集的雷达数据、在车辆上设置的惯性测量单元采集的惯导数据、以及在车辆上设置的定位系统采集的定位数据;根据定位数据和惯导数据,确定惯性测量单元的惯导轨迹;根据惯导轨迹确定惯性测量单元在相邻帧间的惯导相对位姿,并根据雷达数据确定雷达在相邻帧间的雷达相对位姿;根据惯导相对位姿和雷达相对位姿,确定雷达相对于惯性测量单元的标定参数。这种实施方式中,电子设备可以基于IMU轨迹推测IMU在相邻数据帧之间的相对位姿,根据雷达数据推测雷达在相邻帧之间的相对位姿,从而可以基于相邻数据帧之间的IMU相对位姿和雷达相对位姿对雷达和IMU进行标定,通过位姿变化能够标定出雷达和IMU之间的旋转参数以及平移参数,进而能够提高标定成功率。The method for calibrating external parameters of lidar provided by the present disclosure includes: acquiring radar data collected by a radar sensor set on a vehicle, inertial navigation data collected by an inertial measurement unit set on the vehicle, and collected by a positioning system set on the vehicle According to the positioning data and inertial navigation data, the inertial navigation trajectory of the inertial measurement unit is determined; according to the inertial navigation trajectory, the inertial navigation relative pose of the inertial measurement unit between adjacent frames is determined, and the radar is determined according to the radar data. The relative pose of the radar between frames; according to the relative pose of the inertial navigation and the relative pose of the radar, the calibration parameters of the radar relative to the inertial measurement unit are determined. In this embodiment, the electronic device can infer the relative pose of the IMU between adjacent data frames based on the IMU trajectory, and infer the relative pose of the radar between adjacent frames based on the radar data, so that the relative pose of the radar between adjacent data frames can be inferred based on the difference between the adjacent data frames. The relative pose of the IMU and the relative pose of the radar are used to calibrate the radar and the IMU. The rotation parameters and translation parameters between the radar and the IMU can be calibrated through the change of the pose, which can improve the success rate of calibration.

图3为本公开另一示例性实施例示出的激光雷达外参的标定方法的流程示意图。FIG. 3 is a schematic flowchart of a method for calibrating external parameters of a lidar according to another exemplary embodiment of the present disclosure.

如图3所示,本公开提供的激光雷达外参的标定方法,包括:As shown in FIG. 3 , the method for calibrating external parameters of lidar provided by the present disclosure includes:

步骤301,获取车辆行驶时雷达传感器采集的初始雷达数据、惯性测量单元采集的初始惯导数据以及定位系统采集的初始定位数据。Step 301: Acquire initial radar data collected by a radar sensor when the vehicle is running, initial inertial navigation data collected by an inertial measurement unit, and initial positioning data collected by a positioning system.

其中,车辆行驶时雷达传感器采集的数据为初始雷达数据,比如,车辆行驶20分钟,可以将这段时间内雷达传感器采集的数据作为初始雷达数据。Among them, the data collected by the radar sensor when the vehicle is running is the initial radar data. For example, if the vehicle is running for 20 minutes, the data collected by the radar sensor during this period can be used as the initial radar data.

具体的,车辆行驶时IMU采集的数据为初始惯导数据,比如,车辆行驶20分钟,可以将这段时间内IMU采集的数据作为初始惯导数据。Specifically, the data collected by the IMU when the vehicle is running is the initial inertial navigation data. For example, if the vehicle runs for 20 minutes, the data collected by the IMU during this period can be used as the initial inertial navigation data.

进一步的,车辆行驶时定位系统采集的数据为初始定位数据,比如,车辆行驶20分钟,可以将这段时间内定位系统采集的数据作为初始定位数据。Further, the data collected by the positioning system when the vehicle is running is the initial positioning data. For example, when the vehicle is running for 20 minutes, the data collected by the positioning system during this period can be used as the initial positioning data.

实际应用时,电子设备可以获取车辆行驶时通过雷达传感器、IMU和定位系统采集的初始雷达数据、初始惯导数据和初始定位数据。In practical applications, the electronic device can obtain the initial radar data, initial inertial navigation data and initial positioning data collected by the radar sensor, IMU and positioning system when the vehicle is running.

步骤302,在初始雷达数据中筛选出满足预设行驶状态的雷达数据,在初始惯导数据筛选出满足预设行驶状态的惯导数据,在初始定位数据筛选出满足预设行驶状态的定位数据。Step 302: Select the radar data satisfying the preset driving state from the initial radar data, select the inertial navigation data satisfying the preset driving state from the initial inertial navigation data, and select the positioning data satisfying the preset driving state from the initial positioning data .

实际应用时,可以预先设置预设行驶状态。车辆在道路行驶时可能存在多种行驶状态,不同行驶状态下传感器采集的数据可能也会不同。因此,为了提高参数标定的准确性,可以在初始雷达数据、初始惯导数据、初始定位数据中筛选出满足预设行驶状态的雷达数据、惯导数据和定位数据。In practical application, the preset driving state can be set in advance. There may be various driving states when a vehicle is driving on the road, and the data collected by the sensors may be different in different driving states. Therefore, in order to improve the accuracy of parameter calibration, the radar data, inertial navigation data and positioning data that satisfy the preset driving state can be selected from the initial radar data, initial inertial navigation data and initial positioning data.

其中,预设行驶状态比如可以包括直线运动和旋转运动。可以在初始雷达数据、初始惯导数据和初始定位数据中筛选出较多的直线运动和旋转运动的数据。但是,若数据过多,可能会导致计算量过大,因此,可以选择一段连续轨迹的雷达数据、惯导数据和定位数据,这段连续轨迹中可以包括直线行驶轨迹和旋转行驶轨迹。Here, the preset driving state may include, for example, a linear movement and a rotational movement. More linear motion and rotational motion data can be filtered out from initial radar data, initial inertial navigation data and initial positioning data. However, if there is too much data, the amount of calculation may be too large. Therefore, radar data, inertial navigation data and positioning data of a continuous trajectory can be selected, and this continuous trajectory can include straight driving trajectory and rotating driving trajectory.

筛选出的雷达数据、惯导数据、定位数据是同一时段的数据,比如,是采集的数据中时刻t1到t2这段时间的数据。这段时间的连续轨迹中既包括直线运动,又包括旋转运动。The filtered radar data, inertial navigation data, and positioning data are data of the same time period, for example, data from time t1 to t2 in the collected data. The continuous trajectory during this time includes both linear motion and rotational motion.

步骤303,在定位数据中筛选出置信度达到预设值的可靠定位数据,并根据可靠定位数据确定车辆的初始行驶轨迹。Step 303: Screen out reliable positioning data whose confidence reaches a preset value from the positioning data, and determine the initial driving trajectory of the vehicle according to the reliable positioning data.

具体的,电子设备获取了定位数据之后,可以在其中筛选出信号较好的可靠定位数据。比如,可以根据定位系统输出的定位数据的置信度,在定位数据中确定出可靠定位数据,若定位数据的置信度达到预设值,则可以确定该定位数据是可靠定位数据。Specifically, after obtaining the positioning data, the electronic device can screen out reliable positioning data with better signals. For example, reliable positioning data can be determined in the positioning data according to the confidence of the positioning data output by the positioning system. If the confidence of the positioning data reaches a preset value, it can be determined that the positioning data is reliable positioning data.

进一步的,可以根据可靠定位数据确定出车辆的初始行驶轨迹。比如,可以根据可靠定位数据确定出一段连续的车辆的行驶轨迹,将其作为初始行驶轨迹。例如,可以根据可靠定位数据确定车辆的位置,进而得到车辆的行驶轨迹,还可以在这段行驶轨迹中确定出连续的初始行驶轨迹。Further, the initial driving trajectory of the vehicle can be determined according to the reliable positioning data. For example, a continuous driving trajectory of the vehicle can be determined according to the reliable positioning data, and used as the initial driving trajectory. For example, the position of the vehicle can be determined according to the reliable positioning data, and then the driving trajectory of the vehicle can be obtained, and a continuous initial driving trajectory can also be determined in this driving trajectory.

步骤304,根据初始行驶轨迹、惯导数据,确定惯性测量单元的惯导轨迹。Step 304: Determine the inertial navigation trajectory of the inertial measurement unit according to the initial driving trajectory and the inertial navigation data.

实际应用时,惯导数据用于表征IMU的位姿状态,IMU设置在车辆上,因此,惯导数据能够表征出车辆的位姿状态。当确定出车辆的一个时刻的定位信息之后,基于该时刻之后车辆的位姿状态能够推测出车辆此后的行驶轨迹。In practical applications, the inertial navigation data is used to characterize the pose state of the IMU, and the IMU is set on the vehicle. Therefore, the inertial navigation data can represent the pose state of the vehicle. After the positioning information of the vehicle at one time is determined, the subsequent driving trajectory of the vehicle can be inferred based on the posture state of the vehicle after the time.

其中,可以认为通过可靠定位数据得到的初始行驶轨迹是准确的,因此,可以结合初始行驶轨迹和惯导数据,推测出车辆的完整行驶轨迹,进而确定出IMU的准确惯导轨迹。Among them, it can be considered that the initial driving trajectory obtained by reliable positioning data is accurate. Therefore, the complete driving trajectory of the vehicle can be inferred by combining the initial driving trajectory and inertial navigation data, and then the accurate inertial navigation trajectory of the IMU can be determined.

这种实施方式中,电子设备能够根据较为准确的定位数据和惯导数据还原出车辆准确的行驶轨迹,进而推测出IMU的惯导轨迹,通过这种方式能够得到较为准确的惯导轨迹。In this embodiment, the electronic device can restore the accurate driving trajectory of the vehicle according to the relatively accurate positioning data and inertial navigation data, and then infer the inertial navigation trajectory of the IMU. In this way, a relatively accurate inertial navigation trajectory can be obtained.

比如,可以根据初始行驶轨迹、惯导数据,确定车辆的完整行驶轨迹;根据定位系统与惯性测量单元之间的相对位置,对完整行驶轨迹进行偏移处理,得到惯性测量单元的惯导轨迹。For example, the complete driving trajectory of the vehicle can be determined according to the initial driving trajectory and inertial navigation data; according to the relative position between the positioning system and the inertial measurement unit, the complete driving trajectory can be offset to obtain the inertial navigation trajectory of the inertial measurement unit.

其中,可以根据信号较好的定位数据生成初始行驶轨迹,再根据车辆经过该初始行驶轨迹之后的惯导数据生成车辆的完整行驶轨迹。比如,初始行驶轨迹的尾端为位置A,在经过这段行驶轨迹后可以根据惯导数据推测车辆位置姿态的变化情况,例如车辆向X轴方向移动了第一距离,则可以确定出车辆的下一个位置,基于此,能够得到车辆的完整行驶轨迹。Wherein, the initial driving trajectory can be generated according to the positioning data with better signal, and then the complete driving trajectory of the vehicle can be generated according to the inertial navigation data after the vehicle passes through the initial driving trajectory. For example, the tail end of the initial driving trajectory is position A. After passing through this driving trajectory, it is possible to infer the change of the vehicle's position and attitude according to the inertial navigation data. The next position, based on this, the complete travel trajectory of the vehicle can be obtained.

具体的,电子设备可以根据定位系统和IMU的相对位置,对完整行驶轨迹进行偏移处理得到惯导轨迹。比如,IMU设置在定位系统第一方向20厘米处,则可以将完整行驶轨迹向第一方向偏移20厘米,得到惯导轨迹。Specifically, the electronic device can perform offset processing on the complete driving trajectory according to the relative position of the positioning system and the IMU to obtain the inertial navigation trajectory. For example, if the IMU is set at 20 centimeters in the first direction of the positioning system, the complete driving trajectory can be shifted by 20 centimeters in the first direction to obtain the inertial navigation trajectory.

这种实施方式中,能够根据置信度较高的定位数据以及惯导数据,这种方式不采用推导参数的方式得到IMU的轨迹,确定出的惯导轨迹更加准确,进而基于该惯导轨迹确定出的标定参数也更加准确。In this embodiment, the trajectory of the IMU can be obtained according to the positioning data and inertial navigation data with a high degree of confidence. This method does not use the method of deriving parameters to obtain the trajectory of the IMU, and the determined inertial navigation trajectory is more accurate. The calibration parameters are also more accurate.

步骤305,根据惯导轨迹确定惯性测量单元在相邻帧间的惯导相对位姿。Step 305: Determine the inertial navigation relative pose of the inertial measurement unit between adjacent frames according to the inertial navigation trajectory.

步骤305与步骤203的实现方式类似,不再赘述。The implementation manner of step 305 is similar to that of step 203, and details are not repeated here.

步骤306,对相邻帧的点云数据进行配准,得到相邻帧间的雷达相对位姿;其中,雷达数据中包括点云数据。Step 306 , register the point cloud data of adjacent frames, and obtain the radar relative pose between adjacent frames; wherein, the radar data includes point cloud data.

进一步的,电子设备获取的雷达数据中包括点云数据,电子设备可以根据连续多帧的点云数据确定雷达相对位姿的变化。Further, the radar data acquired by the electronic device includes point cloud data, and the electronic device can determine the change of the relative pose of the radar according to the point cloud data of consecutive multiple frames.

点云配准指的是确定一个变换矩阵,使得一幅点云能够和另一幅点重合程度尽可能高。车辆行驶时雷达传感器的位姿在变化,因此,雷达采集的连续两帧点云也不重合。可以通过对连续两帧点云数据进行配准,确定雷达在这两帧数据中的位姿变换,进而得到雷达相对位姿。通过点云配准的方式能够准确的确定出雷达的姿态变化过程。Point cloud registration refers to determining a transformation matrix so that one point cloud can coincide with another point as high as possible. The pose of the radar sensor changes when the vehicle is driving, so the point clouds of two consecutive frames collected by the radar do not overlap. By registering two consecutive frames of point cloud data, the pose transformation of the radar in the two frames of data can be determined, and then the relative pose of the radar can be obtained. The attitude change process of the radar can be accurately determined by means of point cloud registration.

实际应用时,点云配准是一个迭代的过程,通过不断迭代优化变换矩阵,使得两幅点云趋近于重合。为了更快速的确定出连续两帧点云数据之间的变换矩阵,本公开提供的方案采用分级配准的方式进行优化迭代,从而提高配准速度。In practical application, point cloud registration is an iterative process, and the transformation matrix is optimized by continuous iteration, so that the two point clouds are close to coincidence. In order to determine the transformation matrix between two consecutive frames of point cloud data more quickly, the solution provided by the present disclosure adopts a hierarchical registration method to perform optimization iteration, thereby improving the registration speed.

其中,针对任意相邻的两帧点云数据,都可以采用分级配准的方式。Among them, for any two adjacent frames of point cloud data, a hierarchical registration method can be adopted.

具体的,可以对相邻帧的点云数据进行多级采样处理,得到相邻帧的精度不同的多级点云采样数据。Specifically, multi-level sampling processing may be performed on point cloud data of adjacent frames to obtain multi-level point cloud sampling data with different precisions of adjacent frames.

相邻的两帧点云数据中包括第一点云和第二点云。可以分别对第一点云和第二点云进行多级采用处理,具体可以按照不同的分辨率进行下采样处理。比如,可以按照低分辨率、中分辨率、高分辨率这三级分辨率分别对第一点云和第二点云进行下采样处理,得到第一低点云、第一中点云、第一高点云,以及第二低点云、第二中点云、第二高点云。The adjacent two frames of point cloud data include the first point cloud and the second point cloud. The first point cloud and the second point cloud may be processed in multiple stages respectively, and specifically, down-sampling processing may be performed according to different resolutions. For example, the first point cloud and the second point cloud can be down-sampled according to the three-level resolution of low resolution, medium resolution and high resolution, respectively, to obtain the first low point cloud, the first middle point cloud, the first point cloud and the second point cloud. A high point cloud, and a second low point cloud, a second mid point cloud, and a second high point cloud.

例如,可以按照60%的概率从点云数据中采样,还可以按照80%的概率从点云数据中采样,还可以按照90%的概率从点云数据中采样。For example, point cloud data may be sampled with a probability of 60%, point cloud data may be sampled with a probability of 80%, and point cloud data may be sampled with a probability of 90%.

进一步的,电子设备可以按照从低级别精度到高级别精度的顺序,依次对相邻帧的点云采样数据进行配准,再对精度最高的点云数据进行配准,该精度最高的点云数据是指采样前的点云数据。Further, the electronic device can register the point cloud sampling data of adjacent frames in order from low-level accuracy to high-level accuracy, and then register the point cloud data with the highest accuracy. Data refers to point cloud data before sampling.

比如,电子设备可以先对低分辨率的点云采样数据进行配准,得到配准结果,其中,对低分辨率的点云采样数据进行配准时,可以随机生成初始值,再基于该初始值进行配准。再将低分辨率的配准结果作为初始值,对中分辨率的点云采样数据配准时进行配准,得到配准结果。再将高分辨率的配准结果作为初始值,对高分辨率的点云采样数据配准时进行配准,得到配准结果。此后,可以利用高分辨率的配准结果作为初始值,对采样前的点云数据进行配准,得到相邻帧间的雷达相对位姿。For example, the electronic device can first register the low-resolution point cloud sampling data to obtain a registration result. When registering the low-resolution point cloud sampling data, an initial value can be randomly generated, and then based on the initial value Registration is performed. Then, the low-resolution registration result is used as the initial value, and the registration is performed when the medium-resolution point cloud sampling data is registered, and the registration result is obtained. Then, the high-resolution registration result is used as the initial value, and the high-resolution point cloud sampling data is registered to obtain the registration result. After that, the high-resolution registration result can be used as the initial value to register the point cloud data before sampling to obtain the relative pose of the radar between adjacent frames.

实际应用时,电子设备可以获取相邻帧的相同精度级别的第一点云数据和第二点云数据。其中,第一点云数据和第二点云数据可以是点云采样数据,也可以是雷达数据中包括的点云数据。比如,配准过程中,对各级点云采样数据进行配准时,获取的就是相邻帧的点云采样数据,对采样数据依次配准结束后,需要对采样前的点云数据进行配准时,获取的就是采样前相邻帧的点云数据。In practical application, the electronic device can acquire the first point cloud data and the second point cloud data of the same precision level of adjacent frames. The first point cloud data and the second point cloud data may be point cloud sampling data, or may be point cloud data included in radar data. For example, in the registration process, when registering the point cloud sampling data at all levels, the point cloud sampling data of adjacent frames is obtained. After the sequential registration of the sampling data, the point cloud data before sampling needs to be registered. , which is the point cloud data of adjacent frames before sampling.

其中,第一点云数据表征的和第二点云数据均为三维数据,可以将三维的第一点云数据和第二点云数据投影到二维平面,得到二维的点云数据,进而可以对二维点云进行配准,提高配准速度。The first point cloud data and the second point cloud data are both three-dimensional data, and the three-dimensional first point cloud data and the second point cloud data can be projected onto a two-dimensional plane to obtain two-dimensional point cloud data, and then The two-dimensional point cloud can be registered to improve the registration speed.

具体的,可以根据第一点云数据将第一三维点云映射到二维平面,得到第一二维点云,根据第二点云数据将第二三维点云映射到二维平面,得到第二二维点云。比如,可以以三维点云相对雷达传感器中心的角度作为坐标,将点云投影到2D平面上。比如,可以采用圆柱投影的方式对点云进行投影处理。Specifically, the first three-dimensional point cloud can be mapped to the two-dimensional plane according to the first point cloud data to obtain the first two-dimensional point cloud, and the second three-dimensional point cloud can be mapped to the two-dimensional plane according to the second point cloud data to obtain the first two-dimensional point cloud. Two-dimensional point cloud. For example, the angle of the 3D point cloud relative to the center of the radar sensor can be used as the coordinate to project the point cloud onto the 2D plane. For example, the point cloud can be projected by means of cylindrical projection.

根据一二维点云和第二二维点云在二维平面上的位置,对相邻帧的点云采样数据或点云数据进行配准。当获取的第一点云数据和第二点云数据为点云采样数据时,则可以根据一二维点云和第二二维点云在二维平面上的位置,对相邻帧的点云采样数据进行配准。当获取的第一点云数据和第二点云数据为点云数据时,则可以根据第一二维点云和第二二维点云在二维平面上的位置,对相邻帧的点云数据进行配准。According to the positions of the first two-dimensional point cloud and the second two-dimensional point cloud on the two-dimensional plane, the point cloud sampling data or point cloud data of adjacent frames are registered. When the acquired first point cloud data and the second point cloud data are point cloud sampling data, then according to the positions of the one-dimensional point cloud and the second two-dimensional point cloud on the two-dimensional plane, the points of adjacent frames can be Cloud sampling data for registration. When the acquired first point cloud data and the second point cloud data are point cloud data, then according to the positions of the first two-dimensional point cloud and the second two-dimensional point cloud on the two-dimensional plane, the points of adjacent frames can be Cloud data for registration.

进一步的,可以采用ICP算法(Iterative Closest Point,迭代最近点算法)对第一二维点云和第二二维点云进行配准。具体根据第一二维点云和第二二维点云在二维平面上的位置,在第二二维点云中确定与第一二维点云对应的点,进而根据该对应关系确定出第一二维点云和第二二维点云之间的配准结果。再利用得到的配准结果对第一二维点云进行处理,基于处理结果和第二二维点云确定误差,并根据误差调整点间对应关系,从而通过多次迭代得到第一二维点云和第二二维点云最终的配准结果。Further, an ICP algorithm (Iterative Closest Point, iterative closest point algorithm) may be used to register the first two-dimensional point cloud and the second two-dimensional point cloud. Specifically, according to the positions of the first two-dimensional point cloud and the second two-dimensional point cloud on the two-dimensional plane, the point corresponding to the first two-dimensional point cloud is determined in the second two-dimensional point cloud, and then the corresponding relationship is determined. The registration result between the first 2D point cloud and the second 2D point cloud. Then use the obtained registration result to process the first two-dimensional point cloud, determine the error based on the processing result and the second two-dimensional point cloud, and adjust the correspondence between points according to the error, so as to obtain the first two-dimensional point through multiple iterations The final registration result of the cloud and the second 2D point cloud.

通过这种方式能够确定出第一二维点云和第二二维点云中,具有对应关系的点,进而可以根据具有对应关系的二维点云在三维空间中的位置,相邻帧的点云采样数据或点云数据的配准结果。具体可以确定偏移参数和旋转参数,通过这些参数能够使三维空间中具有对应关系的点能够尽可能重合。In this way, the points with the corresponding relationship in the first two-dimensional point cloud and the second two-dimensional point cloud can be determined, and then according to the position of the two-dimensional point cloud with the corresponding relationship in the three-dimensional space, the Point cloud sampling data or registration result of point cloud data. Specifically, the offset parameter and the rotation parameter can be determined, and through these parameters, the points with the corresponding relationship in the three-dimensional space can be made to overlap as much as possible.

其中,在对相邻帧的点云数据进行配准时,由于不同组的相邻帧之间的配准过程是独立的,因此,可以利用电子设备中显卡的并行计算架构,并行对多组相邻帧的点云数据进行配准,以提高配准速度。Among them, when registering the point cloud data of adjacent frames, since the registration process between adjacent frames of different groups is independent, the parallel computing architecture of the graphics card in the electronic device can be used to parallelize multiple groups of phase data. The point cloud data of adjacent frames are registered to improve the registration speed.

具体的,电子设备还可以获取根据点云数据构建的局部点云地图和/或车辆的行驶速度信息。从而利用根据局部点云地图和/或车辆的行驶速度信息,对点云数据进行运动补偿,得到补偿后的点云数据。Specifically, the electronic device may also acquire the local point cloud map constructed according to the point cloud data and/or the traveling speed information of the vehicle. Therefore, the point cloud data is obtained by performing motion compensation on the point cloud data according to the local point cloud map and/or the vehicle's traveling speed information.

电子设备可以根据雷达采集的点云数据构建局部点云地图。车辆行驶过程中雷达传感器可以采集多帧点云数据,电子设备可以对多帧点云数据进行处理,对点云数据进行累加得到局部点云地图。The electronic device can construct a local point cloud map based on the point cloud data collected by the radar. During the driving process of the vehicle, the radar sensor can collect multiple frames of point cloud data, and the electronic device can process the multiple frames of point cloud data, and accumulate the point cloud data to obtain a local point cloud map.

车辆行驶时雷达传感器采集的点云数据可能会出现畸变,因此,可以根据局部点云地图对采集的点云数据进行补偿,得到准确的点云数据。The point cloud data collected by the radar sensor may be distorted when the vehicle is driving. Therefore, the collected point cloud data can be compensated according to the local point cloud map to obtain accurate point cloud data.

进一步的,电子设备还可以获取车辆的行驶速度,进而通过行驶速度对雷达采集的点云数据进行运动补偿,从而得到更准确的点云数据。Further, the electronic device can also obtain the driving speed of the vehicle, and then perform motion compensation on the point cloud data collected by the radar through the driving speed, so as to obtain more accurate point cloud data.

实际应用时,可以根据补偿后的点云数据对相邻帧的点云数据进行配准。由于补偿后的点云数据更加准确,因此,通过补偿后的点云数据进行配准,得到的雷达相对位姿也更加准确。In practical applications, the point cloud data of adjacent frames can be registered according to the compensated point cloud data. Since the compensated point cloud data is more accurate, the relative pose of the radar obtained is also more accurate by registering the compensated point cloud data.

步骤307,根据相邻帧间的雷达旋转参数和雷达平移参数,以及相邻帧间惯导旋转参数和惯导平移参数,确定相邻帧对应的雷达相对于惯性测量单元的标定参数;其中,雷达相对位姿包括雷达旋转参数和雷达平移参数;惯导相对位姿包括惯导旋转参数和惯导平移参数。Step 307, according to the radar rotation parameter and radar translation parameter between adjacent frames, and the inertial navigation rotation parameter and inertial navigation translation parameter between adjacent frames, determine the calibration parameters of the radar corresponding to the adjacent frame relative to the inertial measurement unit; wherein, The radar relative pose includes radar rotation parameters and radar translation parameters; the inertial navigation relative pose includes inertial rotation parameters and inertial translation parameters.

其中,通过点云配准得到的雷达相对位姿包括雷达旋转参数

Figure BDA0003350383160000121
和雷达平移参数
Figure BDA0003350383160000122
通过惯导轨迹确定的惯导相对位姿包括惯导旋转参数
Figure BDA0003350383160000123
和惯导平移参数
Figure BDA0003350383160000124
Among them, the radar relative pose obtained by point cloud registration includes the radar rotation parameters
Figure BDA0003350383160000121
and radar panning parameters
Figure BDA0003350383160000122
The inertial navigation relative pose determined by the inertial navigation trajectory includes the inertial navigation rotation parameters
Figure BDA0003350383160000123
and INS translation parameters
Figure BDA0003350383160000124

具体的,

Figure BDA0003350383160000125
用于表征雷达传感器在第j帧数据相对于第i帧数据的旋转参数;
Figure BDA0003350383160000126
用于表征雷达传感器在第j帧数据相对于第i帧数据的平移参数;
Figure BDA0003350383160000127
用于表征IMU在第j帧数据相对于第i帧数据的旋转参数,
Figure BDA0003350383160000128
用于表征IMU在第j帧数据相对于第i帧数据的平移参数。specific,
Figure BDA0003350383160000125
It is used to characterize the rotation parameter of the radar sensor in the jth frame data relative to the ith frame data;
Figure BDA0003350383160000126
It is used to characterize the translation parameter of the radar sensor in the jth frame of data relative to the ith frame of data;
Figure BDA0003350383160000127
It is used to characterize the rotation parameter of the IMU in the jth frame data relative to the ith frame data,
Figure BDA0003350383160000128
It is used to characterize the translation parameter of the IMU in the jth frame of data relative to the ith frame of data.

进一步的,在相邻帧对应的时刻,雷达传感器和IMU的位姿变化应该是相同的,因此,可以基于此构建下式,确定出与相邻帧对应的雷达相对于IMU的标定参数RBL和tBL。RBL是指雷达相对于惯性测量单元的旋转参数,tBL是指雷达相对于惯性测量单元的平移参数。Further, at the moment corresponding to the adjacent frame, the pose changes of the radar sensor and the IMU should be the same. Therefore, the following formula can be constructed based on this to determine the calibration parameter R BL of the radar corresponding to the adjacent frame relative to the IMU. and t BL . R BL refers to the rotation parameter of the radar relative to the inertial measurement unit, and t BL refers to the translation parameter of the radar relative to the inertial measurement unit.

Figure BDA0003350383160000131
Figure BDA0003350383160000131

实际应用时,可以基于上式确定出每组相邻帧对应的RBL和tBLIn practical application, R BL and t BL corresponding to each group of adjacent frames can be determined based on the above formula.

步骤308,对多组相邻帧对应的雷达相对于惯性测量单元的标定参数进行拟合,得到雷达相对于惯性测量单元的标定参数;标定参数包括雷达相对于惯性测量单元的旋转参数和平移参数。Step 308: Fit the calibration parameters of the radar relative to the inertial measurement unit corresponding to multiple groups of adjacent frames to obtain the calibration parameters of the radar relative to the inertial measurement unit; the calibration parameters include the rotation parameters and translation parameters of the radar relative to the inertial measurement unit .

实际应用时,针对每组相邻帧,都可以确定出雷达相对于IMU的标定参数,可以对这些标定参数进行拟合,得到雷达相对于IMU最终的标定参数。In practical applications, the calibration parameters of the radar relative to the IMU can be determined for each group of adjacent frames, and these calibration parameters can be fitted to obtain the final calibration parameters of the radar relative to the IMU.

其中,可以对多个标定参数中的旋转参数进行拟合,得到雷达相对于IMU最终的旋转参数RBL,还可以对多个标定参数中的平移参数进行拟合,得到雷达相对于IMU最终的平移参数tBLAmong them, the rotation parameters of the multiple calibration parameters can be fitted to obtain the final rotation parameter R BL of the radar relative to the IMU, and the translation parameters of the multiple calibration parameters can also be fitted to obtain the final radar relative to the IMU. Translation parameter t BL .

这种实施方式中,可以基于相邻数据帧之间的IMU相对位姿和雷达相对位姿对雷达和IMU进行标定,通过位姿变化能够标定出雷达和IMU之间的旋转参数以及平移参数,进而能够提高标定成功率。In this embodiment, the radar and the IMU can be calibrated based on the relative pose of the IMU and the relative pose of the radar between adjacent data frames, and the rotation parameters and translation parameters between the radar and the IMU can be calibrated by changing the pose, This can improve the success rate of calibration.

在一种可选的实施方式中,车辆中可能设置有多个雷达传感器,这种实施方式中,可以根据上面的方法对每个雷达传感器都进行标定,得到每个雷达传感器相较于IMU的标定参数,还可以根据各个雷达传感器的与多组相邻帧的标定参数,对各个雷达传感器的最终的标定参数进行优化。In an optional implementation manner, a plurality of radar sensors may be provided in the vehicle. In this implementation manner, each radar sensor may be calibrated according to the above method to obtain the difference between each radar sensor and the IMU. For the calibration parameters, the final calibration parameters of each radar sensor can also be optimized according to the calibration parameters of each radar sensor and multiple groups of adjacent frames.

步骤309,根据与相邻帧对应的第一雷达相对于惯性测量单元的标定参数、以及与相邻帧对应的第二雷达相对于惯性测量单元的标定参数,确定与相邻帧对应的第一雷达相对于第二雷达的相对位姿。Step 309, according to the calibration parameter of the first radar corresponding to the adjacent frame relative to the inertial measurement unit, and the calibration parameter of the second radar corresponding to the adjacent frame relative to the inertial measurement unit, determine the first corresponding to the adjacent frame. The relative pose of the radar with respect to the second radar.

其中,基于上述步骤308能够得到与每组相邻帧对应的雷达相对于惯性测量单元的标定参数,可以根据多个雷达传感器中任意两个传感器,关于相邻帧的标定参数,确定出这两个雷达传感器的相对位姿。此处的第一雷达和第二雷达是指雷达传感器。Wherein, based on the above step 308, the calibration parameters of the radar relative to the inertial measurement unit corresponding to each group of adjacent frames can be obtained, and the calibration parameters of the adjacent frames can be determined according to any two sensors in the plurality of radar sensors. The relative pose of each radar sensor. The first radar and the second radar here refer to radar sensors.

具体的,比如可以根据第i帧和第j帧的数据,确定出第一雷达M相较于IMU的

Figure BDA0003350383160000132
Figure BDA0003350383160000133
以及第二雷达N相较于IMU的
Figure BDA0003350383160000134
Figure BDA0003350383160000135
可以根据
Figure BDA0003350383160000141
Figure BDA0003350383160000142
Figure BDA0003350383160000143
确定出与第i、j帧对应的第一雷达M相较于第二雷达N的相对位姿
Figure BDA0003350383160000144
Specifically, for example, according to the data of the ith frame and the jth frame, it is possible to determine the difference between the first radar M and the IMU.
Figure BDA0003350383160000132
and
Figure BDA0003350383160000133
and the second radar N compared to the IMU's
Figure BDA0003350383160000134
and
Figure BDA0003350383160000135
can be based on
Figure BDA0003350383160000141
and
Figure BDA0003350383160000142
and
Figure BDA0003350383160000143
Determine the relative pose of the first radar M corresponding to the ith and jth frames compared to the second radar N
Figure BDA0003350383160000144

进一步的,针对每组相邻帧,都可以确定出第一雷达M相较于第二雷达N的相对位姿,由于第一雷达M与第二雷达N在车辆上的安装位置是固定的,因此,二者相对位姿也是固定的,可以利用每组相邻帧对应的第一雷达M相较于第二雷达N的相对位姿,优化得到的雷达标定参数。进而得到雷达准确的标定参数。Further, for each group of adjacent frames, the relative pose of the first radar M compared to the second radar N can be determined. Since the installation positions of the first radar M and the second radar N on the vehicle are fixed, Therefore, the relative poses of the two are also fixed, and the obtained radar calibration parameters can be optimized by using the relative poses of the first radar M corresponding to each group of adjacent frames compared to the second radar N. Then the accurate calibration parameters of the radar can be obtained.

步骤310,根据多组与相邻帧对应的第一雷达相对于第二雷达的相对位姿,优化第一雷达的标定参数以及第二雷达的标定参数。Step 310: Optimize the calibration parameters of the first radar and the calibration parameters of the second radar according to the relative poses of the first radar relative to the second radar of the plurality of sets of adjacent frames.

可以基于下式对第一雷达的标定参数以及第二雷达的标定参数进行标定:The calibration parameters of the first radar and the calibration parameters of the second radar can be calibrated based on the following equations:

Figure BDA0003350383160000145
Figure BDA0003350383160000145

其中,

Figure BDA0003350383160000146
是第二雷达N的标定参数,
Figure BDA0003350383160000147
是第一雷达M的标定参数,
Figure BDA0003350383160000148
是最小误差项。in,
Figure BDA0003350383160000146
is the calibration parameter of the second radar N,
Figure BDA0003350383160000147
is the calibration parameter of the first radar M,
Figure BDA0003350383160000148
is the minimum error term.

针对每组相邻帧,都可以确定相应的最小误差项,可以通过调整第一雷达M与第二雷达N的标定参数,使得各个相邻帧对应的最小误差项满足要求,比如,每组相邻帧对应的最小误差项均小于阈值时,可以得到优化后的第一雷达M与第二雷达N的标定参数。For each group of adjacent frames, the corresponding minimum error term can be determined. By adjusting the calibration parameters of the first radar M and the second radar N, the minimum error terms corresponding to each adjacent frame can meet the requirements. For example, each group of phase When the minimum error terms corresponding to adjacent frames are all smaller than the threshold, the optimized calibration parameters of the first radar M and the second radar N can be obtained.

在步骤308或310之后,还可以包括:After step 308 or 310, it may also include:

步骤311,根据与相邻帧对应的雷达相对于惯性测量单元的标定参数,确定配准后相邻帧间雷达的相对位姿,以及雷达在各帧的待优化状态。Step 311 , according to the calibration parameters of the radar corresponding to the adjacent frame relative to the inertial measurement unit, determine the relative pose of the radar between adjacent frames after registration, and the to-be-optimized state of the radar in each frame.

针对每个雷达都可以执行步骤312、313,优化雷达的待优化状态。Steps 312 and 313 may be performed for each radar to optimize the to-be-optimized state of the radar.

其中,基于步骤308,能够确定出与相邻帧对应的雷达相对于惯性测量单元的标定参数,可以根据该标定参数确定出配准后相邻帧间雷达的相对位姿。Wherein, based on step 308, the calibration parameter of the radar corresponding to the adjacent frame relative to the inertial measurement unit can be determined, and the relative pose of the radar between adjacent frames after registration can be determined according to the calibration parameter.

具体的,可以根据该标定参数确定在第i帧时雷达的位姿,以及在第j帧时雷达的位姿,比如,可以根据该标定参数和第i帧的惯导数据确定出第i帧雷达的位姿,根据该标定参数和第j帧的惯导数据确定出第j帧雷达的位姿。由于此时雷达的标定参数是较为准确的参数,因此,基于该标定参数能够确定出较为准确的雷达位姿。Specifically, the pose of the radar at the ith frame and the pose of the radar at the jth frame can be determined according to the calibration parameter. For example, the ith frame can be determined according to the calibration parameter and the inertial navigation data of the ith frame. The pose of the radar is determined according to the calibration parameters and the inertial navigation data of the jth frame to determine the radar pose of the jth frame. Since the calibration parameters of the radar are relatively accurate parameters at this time, a relatively accurate radar pose can be determined based on the calibration parameters.

进一步的,可以根据配准后的雷达位姿确定雷达的相对位姿

Figure BDA0003350383160000151
进而得到更加准确的雷达相对位姿。Further, the relative pose of the radar can be determined according to the registered radar pose
Figure BDA0003350383160000151
Then, a more accurate relative pose of the radar can be obtained.

实际应用时,待优化状态是指雷达相较于全局坐标系的位姿,全局坐标系例如可以是UTM(Universal Transverse Mercator Grid System,通用横墨卡托格网系统)坐标系,可以根据确定出的雷达在各帧的位姿状态以及全局坐标系的位姿状态,确定出雷达在各帧的待优化状态。In practical applications, the state to be optimized refers to the position and attitude of the radar compared to the global coordinate system. For example, the global coordinate system can be the UTM (Universal Transverse Mercator Grid System) coordinate system, which can be determined according to the The pose state of the radar in each frame and the pose state of the global coordinate system determine the to-be-optimized state of the radar in each frame.

比如,雷达相较于全局坐标系的旋转参数和平移参数。For example, the rotation parameters and translation parameters of the radar compared to the global coordinate system.

步骤312,根据配准后相邻帧间雷达的相对位姿、雷达的标定参数,优化待优化状态。Step 312: Optimize the state to be optimized according to the relative pose of the radar between adjacent frames after registration and the calibration parameters of the radar.

其中,可以基于下式优化雷达的待优化状态。Among them, the to-be-optimized state of the radar can be optimized based on the following formula.

Figure BDA0003350383160000152
Figure BDA0003350383160000152

具体的,通过上述步骤能够得到雷达准确的标定参数,可以利用该标定参数优化雷达相较于全局坐标系的位姿。Specifically, through the above steps, accurate calibration parameters of the radar can be obtained, and the calibration parameters can be used to optimize the pose of the radar compared to the global coordinate system.

具体的,Rc、tc是指任一个雷达的标定参数,Ri、ti是指该雷达在第i帧的待优化状态,Rj、tj是指该雷达在第j帧的待优化状态。

Figure BDA0003350383160000153
Figure BDA0003350383160000154
是计算得到的最小误差项,通过优化Ri、ti、Rj、tj使得最小误差项满足要求,从而得到优化后的Ri、ti、Rj、tj。Specifically, R c , t c refer to the calibration parameters of any radar, R i , t i refer to the to-be-optimized state of the radar in the ith frame, R j , t j refer to the to-be-optimized state of the radar in the jth frame optimized state.
Figure BDA0003350383160000153
Figure BDA0003350383160000154
is the calculated minimum error term. By optimizing R i , t i , R j , and t j , the minimum error term satisfies the requirements, so as to obtain the optimized Ri , t i , R j , and t j .

通过这种实现方式,能够根据雷达的标定参数优化雷达的状态,进而得到雷达准确的状态。Through this implementation, the state of the radar can be optimized according to the calibration parameters of the radar, and then the accurate state of the radar can be obtained.

图4为本公开一示例性实施例示出的激光雷达外参的标定装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for calibrating external parameters of a lidar according to an exemplary embodiment of the present disclosure.

如图4所示,本公开提供的激光雷达外参的标定装置400,包括:As shown in FIG. 4 , the apparatus 400 for calibrating external parameters of lidar provided by the present disclosure includes:

数据获取单元410,用于获取在车辆上设置的雷达传感器采集的雷达数据、在所述车辆上设置的惯性测量单元采集的惯导数据、以及在所述车辆上设置的定位系统采集的定位数据;A data acquisition unit 410 is configured to acquire radar data collected by a radar sensor set on the vehicle, inertial navigation data collected by an inertial measurement unit set on the vehicle, and positioning data collected by a positioning system set on the vehicle ;

轨迹确定单元420,用于根据所述定位数据和所述惯导数据,确定所述惯性测量单元的惯导轨迹;a trajectory determination unit 420, configured to determine the inertial navigation trajectory of the inertial measurement unit according to the positioning data and the inertial navigation data;

位姿确定单元430,用于根据所述惯导轨迹确定惯性测量单元在相邻帧间的惯导相对位姿,并根据所述雷达数据确定雷达在相邻帧间的雷达相对位姿;a pose determination unit 430, configured to determine the inertial navigation relative pose of the inertial measurement unit between adjacent frames according to the inertial navigation trajectory, and determine the radar relative pose of the radar between adjacent frames according to the radar data;

标定单元440,用于根据所述惯导相对位姿和所述雷达相对位姿,确定所述雷达相对于所述惯性测量单元的标定参数。The calibration unit 440 is configured to determine calibration parameters of the radar relative to the inertial measurement unit according to the inertial navigation relative pose and the radar relative pose.

本公开提供的激光雷达外参的标定装置,可以基于IMU轨迹推测IMU在相邻数据帧之间的相对位姿,根据雷达数据推测雷达在相邻帧之间的相对位姿,从而可以基于相邻数据帧之间的IMU相对位姿和雷达相对位姿对雷达和IMU进行标定,通过位姿变化能够标定出雷达和IMU之间的旋转参数以及平移参数,进而能够提高标定成功率。The device for calibrating the external parameters of the lidar provided by the present disclosure can estimate the relative pose of the IMU between adjacent data frames based on the IMU trajectory, and estimate the relative pose of the radar between adjacent frames based on the radar data, so that the relative pose of the radar between adjacent frames can be estimated based on the phase The relative pose of the IMU and the relative pose of the radar between adjacent data frames are used to calibrate the radar and the IMU. The rotation parameters and translation parameters between the radar and the IMU can be calibrated through the change of the pose, which can improve the success rate of calibration.

图5为本公开另一示例性实施例示出的激光雷达外参的标定装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for calibrating external parameters of a lidar according to another exemplary embodiment of the present disclosure.

如图5所示,本公开提供的激光雷达外参的标定装置500中,数据获取单元510与图4中所示的数据获取单元410类似,轨迹确定单元520与图4中所示的轨迹确定单元420类似,位姿确定单元530与图4中所示的位姿确定单元430类似,标定单元540与图4中所示的标定单元440类似。As shown in FIG. 5 , in the apparatus 500 for calibrating external parameters of lidar provided by the present disclosure, the data acquisition unit 510 is similar to the data acquisition unit 410 shown in FIG. 4 , and the trajectory determination unit 520 is similar to the trajectory determination unit 520 shown in FIG. 4 Similar to unit 420, pose determination unit 530 is similar to pose determination unit 430 shown in FIG. 4, and calibration unit 540 is similar to calibration unit 440 shown in FIG.

在一种可选的实施方式中,所述雷达数据中包括点云数据;In an optional implementation manner, the radar data includes point cloud data;

位姿确定单元530包括雷达位姿确定模块531,用于包括:The pose determination unit 530 includes a radar pose determination module 531 for including:

对相邻帧的点云数据进行配准,得到相邻帧间的雷达相对位姿。The point cloud data of adjacent frames are registered to obtain the relative pose of the radar between adjacent frames.

在一种可选的实施方式中,所述雷达位姿确定模块531,包括:In an optional implementation manner, the radar pose determination module 531 includes:

采样子模块5311,用于对相邻帧的点云数据进行多级采样处理,得到相邻帧的精度不同的多级点云采样数据;The sampling sub-module 5311 is used to perform multi-level sampling processing on the point cloud data of adjacent frames to obtain multi-level point cloud sampling data with different precisions of adjacent frames;

分级配准子模块5312,用于按照从低级别精度到高级别精度的顺序,依次对所述相邻帧的点云采样数据和点云数据进行配准;其中,低级别点云采样数据的配准结果,作为高级别的点云采样数据配准时的初始值;Hierarchical registration sub-module 5312 is used to register the point cloud sampling data and point cloud data of the adjacent frames in order from low-level precision to high-level precision; wherein, the low-level point cloud sampling data The registration result of , as the initial value of high-level point cloud sampling data registration;

其中,对精度最高的所述点云数据进行配准的结果为所述相邻帧间的雷达相对位姿。The result of registering the point cloud data with the highest accuracy is the relative pose of the radar between the adjacent frames.

在一种可选的实施方式中,所述分级配准子模块5312对所述相邻帧的点云采样数据和点云数据进行配准时,具体用于:In an optional implementation manner, when the hierarchical registration sub-module 5312 registers the point cloud sampling data and point cloud data of the adjacent frames, it is specifically used for:

获取相邻帧的相同精度级别的第一点云数据和第二点云数据;其中,所述第一点云数据和所述第二点云数据是点云采样数据,或者所述雷达数据中包括的所述点云数据;Obtain the first point cloud data and the second point cloud data of the same precision level of adjacent frames; wherein, the first point cloud data and the second point cloud data are point cloud sampling data, or the radar data the point cloud data included;

根据所述第一点云数据将第一三维点云映射到二维平面,得到第一二维点云,根据所述第二点云数据将第二三维点云映射到二维平面,得到第二二维点云;The first three-dimensional point cloud is mapped to the two-dimensional plane according to the first point cloud data to obtain the first two-dimensional point cloud, and the second three-dimensional point cloud is mapped to the two-dimensional plane according to the second point cloud data to obtain the first two-dimensional point cloud. 2D point cloud;

根据所述一二维点云和所述第二二维点云在二维平面上的位置,对所述相邻帧的点云采样数据或点云数据进行配准。According to the positions of the one-dimensional point cloud and the second two-dimensional point cloud on the two-dimensional plane, the point cloud sampling data or point cloud data of the adjacent frames are registered.

在一种可选的实施方式中,所述雷达位姿确定模块531还包括补偿子模块5313,用于雷达位姿确定模块531在对相邻帧的点云数据进行配准之前:In an optional implementation manner, the radar pose determination module 531 further includes a compensation sub-module 5313, which is used for the radar pose determination module 531 to perform registration on the point cloud data of adjacent frames before:

获取根据点云数据构建的局部点云地图和/或所述车辆的行驶速度;obtaining a local point cloud map constructed according to the point cloud data and/or the driving speed of the vehicle;

根据所述局部点云地图和/或所述车辆的行驶速度,对所述点云数据进行运动补偿,得到补偿后的点云数据;Perform motion compensation on the point cloud data according to the local point cloud map and/or the driving speed of the vehicle to obtain compensated point cloud data;

所述雷达位姿确定模块531具体用于:The radar pose determination module 531 is specifically used for:

根据补偿后的点云数据对相邻帧的点云数据进行配准。The point cloud data of adjacent frames are registered according to the compensated point cloud data.

在一种可选的实施方式中,所述雷达位姿确定模块531具体利用电子设备中显卡的并行计算架构,并行对多组相邻帧的点云数据进行配准。In an optional implementation manner, the radar pose determination module 531 specifically uses the parallel computing architecture of the graphics card in the electronic device to register the point cloud data of multiple groups of adjacent frames in parallel.

在一种可选的实施方式中,所述雷达相对位姿包括雷达旋转参数和雷达平移参数;所述惯导相对位姿包括惯导旋转参数和惯导平移参数;In an optional implementation manner, the radar relative pose includes a radar rotation parameter and a radar translation parameter; the inertial navigation relative pose includes an inertial rotation parameter and an inertial translation parameter;

所述标定单元540,包括:The calibration unit 540 includes:

帧间标定模块541,用于根据相邻帧间的雷达旋转参数和雷达平移参数,以及所述相邻帧间惯导旋转参数和惯导平移参数,确定所述相邻帧对应的所述雷达相对于所述惯性测量单元的标定参数;The inter-frame calibration module 541 is configured to determine the radar corresponding to the adjacent frame according to the radar rotation parameter and the radar translation parameter between adjacent frames, as well as the inertial navigation rotation parameter and the inertial navigation translation parameter between the adjacent frames calibration parameters relative to the inertial measurement unit;

拟合模块542,用于对多组相邻帧对应的所述雷达相对于所述惯性测量单元的标定参数进行拟合,得到所述雷达相对于所述惯性测量单元的标定参数;所述标定参数包括所述雷达相对于所述惯性测量单元的旋转参数和平移参数。The fitting module 542 is configured to fit the calibration parameters of the radar relative to the inertial measurement unit corresponding to multiple groups of adjacent frames to obtain the calibration parameters of the radar relative to the inertial measurement unit; the calibration Parameters include rotational and translational parameters of the radar relative to the inertial measurement unit.

在一种可选的实施方式中,所述车辆上设置有至少两个所述雷达传感器;In an optional embodiment, at least two of the radar sensors are provided on the vehicle;

所述标定单元540还包括优化模块543,用于在所述拟合模块542对多组相邻帧对应的所述雷达相对于所述惯性测量单元的标定参数进行拟合之后:The calibration unit 540 further includes an optimization module 543, which is configured to, after the fitting module 542 fits the calibration parameters of the radar relative to the inertial measurement unit corresponding to multiple groups of adjacent frames:

根据与相邻帧对应的第一雷达相对于所述惯性测量单元的标定参数、以及与所述相邻帧对应的第二雷达相对于所述惯性测量单元的标定参数,确定与所述相邻帧对应的所述第一雷达相对于所述第二雷达的相对位姿;According to the calibration parameters of the first radar corresponding to the adjacent frame relative to the inertial measurement unit, and the calibration parameters of the second radar corresponding to the adjacent frame relative to the inertial measurement unit, it is determined that the adjacent the relative pose of the first radar relative to the second radar corresponding to the frame;

根据多组与相邻帧对应的所述第一雷达相对于所述第二雷达的相对位姿,优化所述第一雷达的标定参数以及所述第二雷达的标定参数。The calibration parameters of the first radar and the calibration parameters of the second radar are optimized according to a plurality of sets of relative poses of the first radar relative to the second radar corresponding to adjacent frames.

在一种可选的实施方式中,所述装置还包括状态优化单元550,用于:In an optional implementation manner, the apparatus further includes a state optimization unit 550 for:

根据与相邻帧对应的雷达相对于所述惯性测量单元的标定参数,确定配准后相邻帧间所述雷达的相对位姿,以及所述雷达在各帧的待优化状态;According to the calibration parameters of the radar corresponding to the adjacent frame relative to the inertial measurement unit, determine the relative pose of the radar between adjacent frames after registration, and the to-be-optimized state of the radar in each frame;

根据配准后相邻帧间雷达的相对位姿、所述雷达的标定参数,优化所述待优化状态。The to-be-optimized state is optimized according to the relative pose of the radar between adjacent frames after registration and the calibration parameters of the radar.

在一种可选的实施方式中,所述数据获取单元510,包括:In an optional implementation manner, the data acquisition unit 510 includes:

初始数据获取模块511,用于获取所述车辆行驶时所述雷达传感器采集的初始雷达数据、所述惯性测量单元采集的初始惯导数据,以及定位系统采集的初始定位数据;An initial data acquisition module 511, configured to acquire initial radar data collected by the radar sensor when the vehicle is running, initial inertial navigation data collected by the inertial measurement unit, and initial positioning data collected by a positioning system;

数据筛选单元512,用于在所述初始雷达数据中筛选出满足预设行驶状态的雷达数据,在所述初始惯导数据筛选出满足所述预设行驶状态的惯导数据,在所述初始定位数据筛选出满足所述预设行驶状态的定位数据。A data screening unit 512 is configured to screen out radar data satisfying a preset driving state from the initial radar data, filter out inertial navigation data satisfying the predetermined driving state from the initial inertial navigation data, and select the inertial navigation data satisfying the predetermined driving state in the initial The positioning data is filtered to select the positioning data that satisfies the preset driving state.

在一种可选的实施方式中,所述轨迹确定单元520,包括:In an optional implementation manner, the trajectory determination unit 520 includes:

初始轨迹确定模块521,用于在所述定位数据中筛选出置信度达到预设值的可靠定位数据,并根据所述可靠定位数据确定所述车辆的初始行驶轨迹;An initial trajectory determination module 521, configured to filter out reliable positioning data whose confidence reaches a preset value from the positioning data, and determine the initial driving trajectory of the vehicle according to the reliable positioning data;

惯导轨迹确定模块522,用于根据所述初始行驶轨迹、所述惯导数据,确定所述惯性测量单元的惯导轨迹。The inertial navigation trajectory determination module 522 is configured to determine the inertial navigation trajectory of the inertial measurement unit according to the initial driving trajectory and the inertial navigation data.

在一种可选的实施方式中,所述惯导轨迹确定模块522具体用于:In an optional implementation manner, the inertial navigation trajectory determination module 522 is specifically configured to:

根据所述初始行驶轨迹、所述惯导数据,确定所述车辆的完整行驶轨迹;determining the complete driving trajectory of the vehicle according to the initial driving trajectory and the inertial navigation data;

根据所述定位系统与所述惯性测量单元之间的相对位置,对所述完整行驶轨迹进行偏移处理,得到所述惯性测量单元的惯导轨迹。According to the relative position between the positioning system and the inertial measurement unit, offset processing is performed on the complete driving trajectory to obtain the inertial navigation trajectory of the inertial measurement unit.

本公开提供一种激光雷达外参的标定的方法、设备、存储介质及程序产品,应用于数据处理技术中的高精地图和自动驾驶技术,以提高雷达外参标定的准确性和成功率。The present disclosure provides a method, device, storage medium and program product for calibrating lidar external parameters, which are applied to high-precision maps and automatic driving technologies in data processing technology to improve the accuracy and success rate of radar external parameter calibration.

本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solutions of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.

根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

根据本公开的实施例,本公开还提供了一种计算机程序产品,计算机程序产品包括:计算机程序,计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取计算机程序,至少一个处理器执行计算机程序使得电子设备执行上述任一实施例提供的方案。According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, the computer program product includes: a computer program, the computer program is stored in a readable storage medium, and at least one processor of the electronic device can read from the readable storage medium A computer program is taken, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the foregoing embodiments.

图6示出了可以用来实施本公开的实施例的示例电子设备600的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 6 shows a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , the device 600 includes a computing unit 601 that can be executed according to a computer program stored in a read only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603 Various appropriate actions and handling. In the RAM 603, various programs and data necessary for the operation of the device 600 can also be stored. The computing unit 601 , the ROM 602 , and the RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to bus 604 .

设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606, such as a keyboard, mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, an optical disk, etc. ; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 609 allows the device 600 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如激光雷达外参的标定的方法。例如,在一些实施例中,激光雷达外参的标定的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的激光雷达外参的标定的方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行激光雷达外参的标定的方法。Computing unit 601 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples of computing units 601 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 executes the various methods and processes described above, such as the method for calibrating the external parameters of the lidar. For example, in some embodiments, the method of calibration of lidar extrinsic parameters may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608 . In some embodiments, part or all of the computer program may be loaded and/or installed on device 600 via ROM 602 and/or communication unit 609 . When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method for calibrating the extrinsic parameters of the lidar described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured in any other suitable manner (eg, by means of firmware) to perform a method of calibrating lidar extrinsic parameters.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). , there are the defects of difficult management and weak business expansion. The server can also be a server of a distributed system, or a server combined with a blockchain.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, there is no limitation herein.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.

Claims (27)

1. A calibration method of laser radar external parameters comprises the following steps:
acquiring radar data acquired by a radar sensor arranged on a vehicle, inertial navigation data acquired by an inertial measurement unit arranged on the vehicle and positioning data acquired by a positioning system arranged on the vehicle;
determining an inertial navigation track of the inertial measurement unit according to the positioning data and the inertial navigation data;
determining the inertial navigation relative pose of the inertial measurement unit between adjacent frames according to the inertial navigation track, and determining the radar relative pose of the radar between adjacent frames according to the radar data;
and determining calibration parameters of the radar relative to the inertial measurement unit according to the inertial navigation relative pose and the radar relative pose.
2. The method of claim 1, wherein the radar data includes point cloud data;
determining the relative pose of the radar between adjacent frames, comprising:
and registering the point cloud data of the adjacent frames to obtain the relative position and posture of the radar between the adjacent frames.
3. The method of claim 2, wherein the registering the point cloud data of adjacent frames to obtain the relative radar pose between adjacent frames comprises:
performing multi-level sampling processing on the point cloud data of adjacent frames to obtain multi-level point cloud sampling data with different accuracies of the adjacent frames;
sequentially registering the point cloud sampling data and the point cloud data of the adjacent frames according to the sequence from low-level precision to high-level precision; wherein, the registration result of the low-level point cloud sampling data is used as an initial value when the high-level point cloud sampling data is registered;
and the result of registering the point cloud data with the highest precision is the relative position and posture of the radar between the adjacent frames.
4. The method of claim 3, wherein the point cloud sampled data and point cloud data of the adjacent frames are registered by:
acquiring first point cloud data and second point cloud data of the same precision level of adjacent frames; wherein the first point cloud data and the second point cloud data are point cloud sampling data or the point cloud data included in the radar data;
mapping the first three-dimensional point cloud to a two-dimensional plane according to the first point cloud data to obtain a first two-dimensional point cloud, and mapping the second three-dimensional point cloud to the two-dimensional plane according to the second point cloud data to obtain a second two-dimensional point cloud;
and registering the point cloud sampling data or the point cloud data of the adjacent frames according to the positions of the two-dimensional point cloud and the second two-dimensional point cloud on a two-dimensional plane.
5. The method of claim 2, wherein prior to registering the point cloud data of adjacent frames, further comprising:
acquiring a local point cloud map constructed according to the point cloud data and/or the driving speed of the vehicle;
performing motion compensation on the point cloud data according to the local point cloud map and/or the driving speed of the vehicle to obtain compensated point cloud data;
the registering of the point cloud data of the adjacent frames comprises:
and registering the point cloud data of the adjacent frames according to the compensated point cloud data.
6. The method of any one of claims 2-5, wherein the registration of the sets of point cloud data of adjacent frames is performed in parallel using a parallel computing architecture of a graphics card in the electronic device.
7. The method of any of claims 1-6, wherein the radar relative pose comprises a radar rotation parameter and a radar translation parameter; the inertial navigation relative pose comprises inertial navigation rotation parameters and inertial navigation translation parameters;
determining calibration parameters of the radar relative to the inertial measurement unit according to the inertial navigation relative pose and the radar relative pose, wherein the calibration parameters comprise:
according to the radar rotation parameter and the radar translation parameter between adjacent frames and the inertial navigation rotation parameter and the inertial navigation translation parameter between adjacent frames, determining the calibration parameter of the radar corresponding to the adjacent frames relative to the inertial measurement unit;
fitting calibration parameters of the radar corresponding to a plurality of groups of adjacent frames relative to the inertial measurement unit to obtain the calibration parameters of the radar relative to the inertial measurement unit; the calibration parameters comprise rotation parameters and translation parameters of the radar relative to the inertial measurement unit.
8. The method of claim 7, wherein at least two of the radar sensors are disposed on the vehicle;
after the radar corresponding to the multiple groups of adjacent frames is fitted with respect to the calibration parameters of the inertial measurement unit, the method further includes:
determining the relative pose of a first radar corresponding to an adjacent frame relative to a second radar according to the calibration parameters of the first radar corresponding to the adjacent frame relative to the inertial measurement unit and the calibration parameters of the second radar corresponding to the adjacent frame relative to the inertial measurement unit;
and optimizing calibration parameters of the first radar and calibration parameters of the second radar according to the relative poses of the first radar and the second radar corresponding to the adjacent frames.
9. The method of claim 7, further comprising:
determining the relative pose of the radar between adjacent frames after registration and the state of the radar to be optimized in each frame according to the calibration parameters of the radar corresponding to the adjacent frames relative to the inertial measurement unit;
and optimizing the state to be optimized according to the relative pose of the radar between adjacent frames after registration and the calibration parameters of the radar.
10. The method of any one of claims 1-9, wherein the acquiring radar data collected by a radar sensor disposed on a vehicle, inertial navigation data collected by an inertial measurement unit disposed on the vehicle, and positioning data collected by a positioning system disposed on the vehicle comprises:
acquiring initial radar data acquired by the radar sensor, initial inertial navigation data acquired by the inertial measurement unit and initial positioning data acquired by a positioning system when the vehicle runs;
and screening out radar data meeting a preset driving state from the initial radar data, screening out inertial navigation data meeting the preset driving state from the initial inertial navigation data, and screening out positioning data meeting the preset driving state from the initial positioning data.
11. The method according to any one of claims 1-9, wherein said determining an inertial navigation trajectory of said inertial measurement unit from said positioning data, said inertial navigation data, comprises:
screening reliable positioning data with confidence coefficient reaching a preset value from the positioning data, and determining an initial running track of the vehicle according to the reliable positioning data;
and determining the inertial navigation track of the inertial measurement unit according to the initial driving track and the inertial navigation data.
12. The method of claim 11, wherein the determining an inertial navigation trajectory of the inertial measurement unit from the initial travel trajectory, the inertial navigation data, comprises:
determining a complete driving track of the vehicle according to the initial driving track and the inertial navigation data;
and carrying out deviation processing on the complete running track according to the relative position between the positioning system and the inertial measurement unit to obtain an inertial navigation track of the inertial measurement unit.
13. A calibration device for laser radar external parameters comprises:
the system comprises a data acquisition unit, a data acquisition unit and a data processing unit, wherein the data acquisition unit is used for acquiring radar data acquired by a radar sensor arranged on a vehicle, inertial navigation data acquired by an inertial measurement unit arranged on the vehicle and positioning data acquired by a positioning system arranged on the vehicle;
the track determining unit is used for determining an inertial navigation track of the inertial measurement unit according to the positioning data and the inertial navigation data;
the position and pose determining unit is used for determining the inertial navigation relative position and pose of the inertial measuring unit between adjacent frames according to the inertial navigation track and determining the radar relative position and pose of the radar between adjacent frames according to the radar data;
and the calibration unit is used for determining calibration parameters of the radar relative to the inertial measurement unit according to the inertial navigation relative pose and the radar relative pose.
14. The apparatus of claim 13, wherein the radar data comprises point cloud data;
the pose determination unit comprises a radar pose determination module for:
and registering the point cloud data of the adjacent frames to obtain the relative position and posture of the radar between the adjacent frames.
15. The apparatus of claim 14, wherein the radar pose determination module comprises:
the sampling submodule is used for carrying out multi-level sampling processing on the point cloud data of the adjacent frames to obtain multi-level point cloud sampling data with different accuracies of the adjacent frames;
the hierarchical registration submodule is used for sequentially registering the point cloud sampling data and the point cloud data of the adjacent frames according to the sequence from low-level precision to high-level precision; wherein, the registration result of the low-level point cloud sampling data is used as an initial value when the high-level point cloud sampling data is registered;
and the result of registering the point cloud data with the highest precision is the relative position and posture of the radar between the adjacent frames.
16. The apparatus of claim 15, wherein the hierarchical registration sub-module, when registering the point cloud sample data and the point cloud data of the adjacent frames, is specifically configured to:
acquiring first point cloud data and second point cloud data of the same precision level of adjacent frames; wherein the first point cloud data and the second point cloud data are point cloud sampling data or the point cloud data included in the radar data;
mapping the first three-dimensional point cloud to a two-dimensional plane according to the first point cloud data to obtain a first two-dimensional point cloud, and mapping the second three-dimensional point cloud to the two-dimensional plane according to the second point cloud data to obtain a second two-dimensional point cloud;
and registering the point cloud sampling data or the point cloud data of the adjacent frames according to the positions of the two-dimensional point cloud and the second two-dimensional point cloud on a two-dimensional plane.
17. The apparatus of claim 14, wherein the radar pose determination module further comprises a compensation sub-module to, prior to registering the point cloud data of adjacent frames:
acquiring a local point cloud map constructed according to the point cloud data and/or the driving speed of the vehicle;
performing motion compensation on the point cloud data according to the local point cloud map and/or the driving speed of the vehicle to obtain compensated point cloud data;
the radar pose determination module is specifically configured to:
and registering the point cloud data of the adjacent frames according to the compensated point cloud data.
18. The apparatus according to any one of claims 14-17, wherein the radar pose determination module is configured to register sets of point cloud data of adjacent frames in parallel, in particular using a parallel computing architecture of a graphics card in the electronic device.
19. The apparatus of any of claims 13-18, wherein the radar relative pose comprises a radar rotation parameter and a radar translation parameter; the inertial navigation relative pose comprises inertial navigation rotation parameters and inertial navigation translation parameters;
the calibration unit comprises:
the inter-frame calibration module is used for determining calibration parameters of the radar corresponding to the adjacent frames relative to the inertial measurement unit according to the radar rotation parameters and the radar translation parameters between the adjacent frames and the inertial navigation rotation parameters and the inertial navigation translation parameters between the adjacent frames;
the fitting module is used for fitting calibration parameters of the radar corresponding to a plurality of groups of adjacent frames relative to the inertial measurement unit to obtain the calibration parameters of the radar relative to the inertial measurement unit; the calibration parameters comprise rotation parameters and translation parameters of the radar relative to the inertial measurement unit.
20. The apparatus of claim 19, wherein at least two of the radar sensors are disposed on the vehicle;
the calibration unit further comprises an optimization module, configured to, after the fitting module fits calibration parameters of the radar relative to the inertial measurement unit corresponding to multiple sets of adjacent frames:
determining the relative pose of a first radar corresponding to an adjacent frame relative to a second radar according to the calibration parameters of the first radar corresponding to the adjacent frame relative to the inertial measurement unit and the calibration parameters of the second radar corresponding to the adjacent frame relative to the inertial measurement unit;
and optimizing calibration parameters of the first radar and calibration parameters of the second radar according to the relative poses of the first radar and the second radar corresponding to the adjacent frames.
21. The apparatus of claim 19, further comprising a state optimization unit to:
determining the relative pose of the radar between adjacent frames after registration and the state of the radar to be optimized in each frame according to the calibration parameters of the radar corresponding to the adjacent frames relative to the inertial measurement unit;
and optimizing the state to be optimized according to the relative pose of the radar between adjacent frames after registration and the calibration parameters of the radar.
22. The apparatus according to any one of claims 13-21, wherein the data acquisition unit comprises:
the initial data acquisition module is used for acquiring initial radar data acquired by the radar sensor, initial inertial navigation data acquired by the inertial measurement unit and initial positioning data acquired by a positioning system when the vehicle runs;
and the data screening unit is used for screening out radar data meeting a preset driving state from the initial radar data, screening out inertial navigation data meeting the preset driving state from the initial inertial navigation data, and screening out positioning data meeting the preset driving state from the initial positioning data.
23. The apparatus of any one of claims 13-21, wherein the trajectory determination unit comprises:
the initial track determining module is used for screening reliable positioning data with confidence coefficient reaching a preset value from the positioning data and determining an initial running track of the vehicle according to the reliable positioning data;
and the inertial navigation track determining module is used for determining the inertial navigation track of the inertial measurement unit according to the initial driving track and the inertial navigation data.
24. The apparatus of claim 23, wherein the inertial navigation trajectory determination module is specifically configured to:
determining a complete driving track of the vehicle according to the initial driving track and the inertial navigation data;
and carrying out deviation processing on the complete running track according to the relative position between the positioning system and the inertial measurement unit to obtain an inertial navigation track of the inertial measurement unit.
25. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-12.
26. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-12.
27. A computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of any one of claims 1 to 12.
CN202111335620.7A 2021-11-11 2021-11-11 Method, device, storage medium and program product for calibration of external parameters of lidar Pending CN113933818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335620.7A CN113933818A (en) 2021-11-11 2021-11-11 Method, device, storage medium and program product for calibration of external parameters of lidar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335620.7A CN113933818A (en) 2021-11-11 2021-11-11 Method, device, storage medium and program product for calibration of external parameters of lidar

Publications (1)

Publication Number Publication Date
CN113933818A true CN113933818A (en) 2022-01-14

Family

ID=79286569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335620.7A Pending CN113933818A (en) 2021-11-11 2021-11-11 Method, device, storage medium and program product for calibration of external parameters of lidar

Country Status (1)

Country Link
CN (1) CN113933818A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114442073A (en) * 2022-01-17 2022-05-06 广州小鹏自动驾驶科技有限公司 Laser radar calibration method and device, vehicle and storage medium
CN114593751A (en) * 2022-03-11 2022-06-07 北京京东乾石科技有限公司 External parameter calibration method, device, medium and electronic equipment
CN114739402A (en) * 2022-04-22 2022-07-12 合众新能源汽车有限公司 Fusion positioning method, medium and electronic equipment
CN115218926A (en) * 2022-07-25 2022-10-21 九识(苏州)智能科技有限公司 Calibration method and device for laser radar and combined inertial navigation
CN115235527A (en) * 2022-07-20 2022-10-25 上海木蚁机器人科技有限公司 Sensor external parameter calibration method, device and electronic device
CN115267813A (en) * 2022-07-29 2022-11-01 腾讯科技(深圳)有限公司 Data processing method, device, equipment, storage medium and computer program product
CN115372947A (en) * 2022-08-25 2022-11-22 德清斯年智驾科技有限公司 Calibration method and calibration system for inertial navigation and laser radar of automatic driving vehicle
CN115900603A (en) * 2022-12-12 2023-04-04 北京天玛智控科技股份有限公司 Measuring method and device for fully mechanized mining face
CN115993089A (en) * 2022-11-10 2023-04-21 山东大学 Calibration method of internal and external parameters of online four-rudder wheel AGV based on PL-ICP
WO2023143132A1 (en) * 2022-01-29 2023-08-03 北京三快在线科技有限公司 Sensor data calibration
CN117092625A (en) * 2023-10-10 2023-11-21 北京斯年智驾科技有限公司 External parameter calibration method and system of radar and combined inertial navigation system
CN117761663A (en) * 2023-10-31 2024-03-26 新石器慧通(北京)科技有限公司 External parameter calibration method and device and automatic driving vehicle
CN119245695A (en) * 2024-12-04 2025-01-03 新石器慧通(北京)科技有限公司 Radar-assisted inertial measurement unit anomaly detection method and its application

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780285A (en) * 2019-10-24 2020-02-11 深圳市镭神智能系统有限公司 Pose calibration method, system and medium for laser radar and combined inertial navigation
CN111208492A (en) * 2018-11-21 2020-05-29 长沙智能驾驶研究院有限公司 Vehicle lidar external parameter calibration method and device, computer equipment and storage medium
CN111307174A (en) * 2020-02-05 2020-06-19 深圳前海达闼云端智能科技有限公司 Calibration method of sensor, moving object and storage medium
US20200284883A1 (en) * 2019-03-08 2020-09-10 Osram Gmbh Component for a lidar sensor system, lidar sensor system, lidar sensor device, method for a lidar sensor system and method for a lidar sensor device
CN112051590A (en) * 2020-08-31 2020-12-08 广州文远知行科技有限公司 Detection method and related device for laser radar and inertial measurement unit
WO2021174507A1 (en) * 2020-03-05 2021-09-10 深圳市大疆创新科技有限公司 Parameter calibration method, device, and system, and storage medium
WO2021218620A1 (en) * 2020-04-30 2021-11-04 上海商汤临港智能科技有限公司 Map building method and apparatus, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111208492A (en) * 2018-11-21 2020-05-29 长沙智能驾驶研究院有限公司 Vehicle lidar external parameter calibration method and device, computer equipment and storage medium
US20200284883A1 (en) * 2019-03-08 2020-09-10 Osram Gmbh Component for a lidar sensor system, lidar sensor system, lidar sensor device, method for a lidar sensor system and method for a lidar sensor device
CN110780285A (en) * 2019-10-24 2020-02-11 深圳市镭神智能系统有限公司 Pose calibration method, system and medium for laser radar and combined inertial navigation
CN111307174A (en) * 2020-02-05 2020-06-19 深圳前海达闼云端智能科技有限公司 Calibration method of sensor, moving object and storage medium
WO2021174507A1 (en) * 2020-03-05 2021-09-10 深圳市大疆创新科技有限公司 Parameter calibration method, device, and system, and storage medium
WO2021218620A1 (en) * 2020-04-30 2021-11-04 上海商汤临港智能科技有限公司 Map building method and apparatus, device and storage medium
CN112051590A (en) * 2020-08-31 2020-12-08 广州文远知行科技有限公司 Detection method and related device for laser radar and inertial measurement unit

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114442073A (en) * 2022-01-17 2022-05-06 广州小鹏自动驾驶科技有限公司 Laser radar calibration method and device, vehicle and storage medium
CN116558545B (en) * 2022-01-29 2025-11-25 北京三快在线科技有限公司 A method and apparatus for calibrating sensor data
WO2023143132A1 (en) * 2022-01-29 2023-08-03 北京三快在线科技有限公司 Sensor data calibration
CN116558545A (en) * 2022-01-29 2023-08-08 北京三快在线科技有限公司 Calibration method and device for sensor data
CN114593751B (en) * 2022-03-11 2024-06-18 北京京东乾石科技有限公司 External parameter calibration method, device, medium and electronic equipment
CN114593751A (en) * 2022-03-11 2022-06-07 北京京东乾石科技有限公司 External parameter calibration method, device, medium and electronic equipment
CN114739402A (en) * 2022-04-22 2022-07-12 合众新能源汽车有限公司 Fusion positioning method, medium and electronic equipment
CN115235527A (en) * 2022-07-20 2022-10-25 上海木蚁机器人科技有限公司 Sensor external parameter calibration method, device and electronic device
CN115218926A (en) * 2022-07-25 2022-10-21 九识(苏州)智能科技有限公司 Calibration method and device for laser radar and combined inertial navigation
CN115267813A (en) * 2022-07-29 2022-11-01 腾讯科技(深圳)有限公司 Data processing method, device, equipment, storage medium and computer program product
CN115372947A (en) * 2022-08-25 2022-11-22 德清斯年智驾科技有限公司 Calibration method and calibration system for inertial navigation and laser radar of automatic driving vehicle
CN115993089A (en) * 2022-11-10 2023-04-21 山东大学 Calibration method of internal and external parameters of online four-rudder wheel AGV based on PL-ICP
CN115993089B (en) * 2022-11-10 2023-08-15 山东大学 PL-ICP-based online four-steering-wheel AGV internal and external parameter calibration method
CN115900603A (en) * 2022-12-12 2023-04-04 北京天玛智控科技股份有限公司 Measuring method and device for fully mechanized mining face
CN117092625A (en) * 2023-10-10 2023-11-21 北京斯年智驾科技有限公司 External parameter calibration method and system of radar and combined inertial navigation system
CN117092625B (en) * 2023-10-10 2024-01-02 北京斯年智驾科技有限公司 An external parameter calibration method and system for radar and combined inertial navigation systems
CN117761663A (en) * 2023-10-31 2024-03-26 新石器慧通(北京)科技有限公司 External parameter calibration method and device and automatic driving vehicle
CN119245695A (en) * 2024-12-04 2025-01-03 新石器慧通(北京)科技有限公司 Radar-assisted inertial measurement unit anomaly detection method and its application

Similar Documents

Publication Publication Date Title
CN113933818A (en) Method, device, storage medium and program product for calibration of external parameters of lidar
CN114526745B (en) Drawing construction method and system for tightly coupled laser radar and inertial odometer
CN112113574B (en) Method, apparatus, computing device and computer-readable storage medium for positioning
CN114018274B (en) Vehicle positioning method and device and electronic equipment
CN115407357B (en) Low-beam LiDAR-IMU-RTK positioning and mapping algorithm based on large scenes
CN109270545B (en) Positioning true value verification method, device, equipment and storage medium
CN114323033B (en) Positioning method, device and self-driving vehicle based on lane lines and feature points
CN112880674B (en) A method, device, equipment and storage medium for positioning a traveling device
WO2020038285A1 (en) Lane line positioning method and device, storage medium and electronic device
JP2019215853A (en) Method for positioning, device for positioning, device, and computer readable storage medium
CN110196044A (en) It is a kind of based on GPS closed loop detection Intelligent Mobile Robot build drawing method
CN115015956B (en) A laser and visual SLAM system for indoor unmanned vehicles
CN114119886A (en) High-precision map point cloud reconstruction method and device, vehicle, equipment and storage medium
CN112455502B (en) Train positioning method and device based on laser radar
CN110989619A (en) Method, apparatus, device and storage medium for locating object
WO2017008454A1 (en) Robot positioning method
WO2024250689A1 (en) Lidar and inertial navigation integrating positioning method, and related device
CN111721305B (en) Positioning method and apparatus, autonomous vehicle, electronic device and storage medium
CN117387604A (en) Positioning and mapping method and system based on 4D millimeter wave radar and IMU fusion
CN117367419A (en) Robot positioning method, apparatus and computer readable storage medium
CN114549632A (en) Vehicle positioning method and device
CN117388830A (en) External parameter calibration methods, devices, equipment and media for lidar and inertial navigation
CN113936109A (en) Method, device, device and storage medium for processing high-precision map point cloud data
CN112558072A (en) Vehicle positioning method, device, system, electronic equipment and storage medium
CN114705210A (en) ESKF-based tight coupling positioning method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination