WO2022206519A1 - External parameter calibration method and apparatus for vehicle-mounted radar - Google Patents

External parameter calibration method and apparatus for vehicle-mounted radar Download PDF

Info

Publication number
WO2022206519A1
WO2022206519A1 PCT/CN2022/082560 CN2022082560W WO2022206519A1 WO 2022206519 A1 WO2022206519 A1 WO 2022206519A1 CN 2022082560 W CN2022082560 W CN 2022082560W WO 2022206519 A1 WO2022206519 A1 WO 2022206519A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
radar
road
point cloud
cloud data
Prior art date
Application number
PCT/CN2022/082560
Other languages
French (fr)
Chinese (zh)
Inventor
尹晓萌
王建国
陈默
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022206519A1 publication Critical patent/WO2022206519A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/02Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00
    • G01S7/40Means 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
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/02Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
    • G01S13/06Systems determining position data of a target
    • G01S13/42Simultaneous measurement of distance and other co-ordinates
    • 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
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/88Radar or analogous systems specially adapted for specific applications
    • G01S13/93Radar or analogous systems specially adapted for specific applications for anti-collision purposes
    • G01S13/931Radar or analogous systems specially adapted for specific applications for anti-collision purposes of land vehicles
    • 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/02Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00
    • G01S7/40Means for monitoring or calibrating
    • G01S7/4004Means for monitoring or calibrating of parts of a radar system
    • G01S7/4026Antenna boresight

Definitions

  • the present application relates to the field of connected vehicles, and in particular, to a method and device for calibrating external parameters of a vehicle-mounted radar.
  • Vehicle-mounted radar can realize functions such as obstacle measurement, collision prediction, adaptive cruise control, etc., which can effectively reduce the difficulty of driving, reduce the burden on drivers and reduce the incidence of accidents, so it has been widely used in the automotive field.
  • a vehicle-mounted radar eg, the radar on vehicle A in FIG. 1
  • vehicle-mounted radar can perceive the coordinates of surrounding objects (eg, vehicle B on the road in FIG. 1 ) in the vehicle-mounted radar coordinate system.
  • the conversion from the vehicle radar coordinate system to the vehicle coordinate system requires the use of an important parameter, that is, the external parameters of the vehicle radar.
  • the external parameters of the vehicle radar Once the external parameters of the vehicle radar are inaccurate, it will affect the determination of the object's position in the real environment and cannot guarantee driving safety.
  • the process of determining the external parameters of the vehicle radar is called the external parameter calibration process of the vehicle radar.
  • the purpose of the present application is to provide a method and device for calibrating external parameters of a vehicle-mounted radar, which are used to realize the online calibration of the vehicle-mounted radar and improve the calibration efficiency.
  • a method for calibrating external parameters of a vehicle-mounted radar which is applied to a vehicle, and the vehicle includes a radar.
  • the method includes: acquiring driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle, or yaw angle speed.
  • the driving road condition information includes at least one of the driving road of the vehicle or the objects around the driving road; according to the driving information, the vehicle radar is calibrated with external parameters.
  • the vehicle can complete the external parameter calibration of the on-board radar during the driving process, without returning to the factory for calibration, the efficiency is high, the normal use of the on-board radar is not affected, and the user experience is high.
  • the performing external parameter calibration on the vehicle radar according to the driving information includes: according to the driving state information, when it is determined that at least one of the following conditions is satisfied, performing external parameter calibration on the vehicle radar Calibration, wherein the conditions include: the vehicle is traveling at an average speed, the speed is less than a first threshold, the vehicle is traveling at an average speed, the acceleration is less than a second threshold, the yaw angle is within a preset range, Or the yaw angular velocity is less than the third threshold.
  • the vehicle when the vehicle is driving, it is determined that the current state is suitable for online calibration according to parameters such as speed, acceleration, yaw angle, and yaw angular velocity, and the external parameters of the vehicle radar are calibrated.
  • parameters such as speed, acceleration, yaw angle, and yaw angular velocity
  • the external parameters of the vehicle radar are calibrated.
  • the vehicle when the vehicle is driving at a constant speed, it is considered that the vehicle is relatively stable, and it can be calibrated online if it meets the calibration conditions.
  • the performing external parameter calibration on the vehicle radar according to the driving information includes: determining, according to the driving road condition information, that the driving road is a straight road and/or that there are targets around the driving road When a reference object is used, external parameter calibration is performed on the vehicle-mounted radar.
  • the external parameters of the vehicle-mounted radar are calibrated to realize the online calibration of the vehicle-mounted radar, and the efficiency is high.
  • the vehicle is calibrated using the target reference around the driving road, and the calibrated external parameters are more suitable for the real situation and have higher accuracy.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the method further includes: determining the vehicle-mounted radar according to a target reference around the driving road At least one of the rotation angle or the translation distance of the radar.
  • the vehicle is calibrated using the target reference objects around the driving road during the driving process.
  • the calibrated external parameters are more suitable for the real situation and have higher accuracy.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the pitch angle, roll angle and yaw angle can be calibrated using different target reference objects with high accuracy.
  • the objects disposed along the travel road include: first type objects disposed along the travel road and parallel to the ground of the travel road, and/or along the travel road and the second type of objects arranged perpendicular to the ground of the driving road;
  • the first type of objects includes: at least one of a road edge, a guardrail, a green belt or a lane line;
  • the second type of objects includes: trees, At least one of a sign or street light.
  • the yaw angle determined in this way is more accurate. Because a calibration scheme is to determine the rotation matrix R of the radar coordinate system relative to the vehicle coordinate system according to the deviation between the first normal vector of the point cloud data of the ground in the radar coordinate system and the standard normal vector of the ground, and then, according to The rotation matrix R can get the yaw angle. However, since the change of the yaw angle has no effect on the deviation between the first normal vector and the standard normal vector of the ground, in other words, the change of the yaw angle will not cause the change of the rotation matrix R. Therefore, pushing back the yaw angle by R is not accurate. However, in the embodiment of the present application, the yaw angle is determined by the objects arranged along the driving road, and the calibration accuracy of the yaw angle is improved.
  • the method further includes: acquiring external parameters of the vehicle-mounted radar; determining a target plane object around the driving road; using the external parameters to place the target plane object in the vehicle-mounted radar coordinate system Convert the corresponding first point cloud data in the inertial coordinate system to the second point cloud data in the inertial coordinate system; if the flatness of the second point cloud data does not meet the first condition, adjust the external parameter.
  • the vehicle can verify whether the external parameters of the vehicle-mounted radar are accurate. After the second point cloud data, the flatness of the second point cloud data does not meet the first condition, indicating that the external parameters are not accurate, then adjust the external parameters. This method can verify whether the external parameters are accurate and improve the accuracy of external parameter calibration.
  • the flatness of the second point cloud data does not satisfy the first condition, including: any two reflection points of different transmit beams in the second point cloud data on the target plane object
  • the first vector between is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are in the
  • the included angle between the first vector between the reflection points on the target plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
  • the second point cloud data is the coordinates of the target plane object in the inertial coordinate system. If the flatness of the second point cloud data is good, it means that the second point cloud data obtained by using the current external parameters of the vehicle radar through a series of coordinate transformations is flat, which is more in line with the real situation, indicating that the current external parameters are relatively accurate of. If the flatness of the second point cloud data is poor, it means that the second point cloud data obtained through a series of coordinate transformations using the current external parameters is not flat and does not conform to the real situation (because the real situation is that the surface of the target plane object is flat ), indicating that the current external parameters are inaccurate, and the external parameters of the vehicle radar need to be calibrated. In this way, it can be accurately judged whether the current external parameter is accurate, and the accuracy is high.
  • the adjusting the external parameter includes: generating an objective function based on the external parameter, where the objective function is used to describe the angle between the first vector and the normal vector , or, the objective function is used to describe the projection distance of the normal vector on the first vector; within a preset extrinsic parameter adjustment range, search for an extrinsic parameter that makes the objective function reach a minimum value.
  • an objective function can be generated to find the optimal value of the external parameter to improve the accuracy of the external parameter.
  • a method for calibrating external parameters of a vehicle-mounted radar which is applied to a vehicle, and the vehicle includes a radar.
  • the method includes: acquiring external parameters of the vehicle-mounted radar, and using the external parameters to convert the first point cloud data corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system into the first point cloud data in the inertial coordinate system Two point cloud data; if the flatness of the second point cloud data does not meet the first condition, the external parameter is calibrated.
  • the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object The first vector of and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data are not perpendicular;
  • the first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
  • the external parameter includes at least one of the rotation angle or the translation distance of the vehicle radar; the method further includes: according to the target reference around the driving road , and determine at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road;
  • the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines;
  • the second type of objects includes: trees, signs or at least one of street lights.
  • Another way of calibrating the external parameter is: based on the external parameter, generate an objective function, and the objective function is used to describe the angle between the first vector and the normal vector, or, The objective function is used to describe the projection distance of the normal vector on the first vector; within a preset extrinsic parameter adjustment range, search for an extrinsic parameter that makes the objective function reach a minimum value.
  • a method for calibrating external parameters of a vehicle-mounted radar is also provided, which is applied to a vehicle, and the vehicle includes a radar.
  • the method includes:
  • the external parameters of the vehicle radar are calibrated.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road;
  • the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines;
  • the second type of objects includes: trees, signs or at least one of street lights.
  • a method for calibrating external parameters of a vehicle-mounted radar is also provided, which is applied to a vehicle, and the vehicle includes a radar.
  • the method includes: acquiring external parameters of the vehicle-mounted radar; using the external parameters to convert the first point cloud data corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system into the first point cloud data in the inertial coordinate system Two point cloud data; generate an objective function, the objective function is used to describe the first vector and the second point between the reflection points of any two different emission beams on the target plane object in the second point cloud data the angle between the normal vectors of the point cloud data corresponding to any one or more transmit beams in the point cloud data, or the objective function is used to describe the projection distance of the normal vector on the first vector; Within the preset external parameter adjustment range, find the external parameter that makes the objective function reach the minimum value.
  • the method before searching for an external parameter that makes the objective function reach a minimum value, the method further includes: determining that the flatness of the second point cloud data does not satisfy the first condition.
  • the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object
  • the first vector of the second point cloud data is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or,
  • the first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
  • acquiring the external parameters of the vehicle-mounted radar includes: determining a target reference around the road where the vehicle travels; and calibrating the external parameters of the vehicle-mounted radar according to the target reference.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road;
  • the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines;
  • the second type of objects includes: trees, signs or at least one of street lights.
  • an external parameter calibration device for a vehicle-mounted radar may be a vehicle or a device within a vehicle (such as a chip or a system-on-chip).
  • the device includes: an acquisition unit for acquiring driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle or At least one of yaw angular velocity; the driving road condition information includes at least one of the driving road of the vehicle or the objects around the driving road; the processing unit, according to the driving information, performs external processing on the vehicle radar; parameter calibration.
  • the processing unit is specifically configured to: according to the driving state information, when it is determined that at least one of the following conditions is satisfied, perform external parameter calibration on the vehicle radar, wherein the conditions include:
  • the speed is less than a first threshold
  • the vehicle is traveling at an average speed
  • the acceleration is less than a second threshold
  • the yaw angle is within a preset range
  • the yaw angle speed is less than a third threshold.
  • the processing unit is specifically configured to: determine, according to the driving road condition information, that the driving road is a straight road and/or when there is a target reference object around the driving road, perform the detection on the vehicle radar Perform external parameter calibration.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the processing unit is further configured to: determine, according to the target reference around the driving road, the at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
  • the processing unit when used to determine the rotation angle of the vehicle radar according to the target reference objects around the driving road, it is specifically used for: according to the ground or For a plane object parallel to the ground, the pitch angle and the roll angle of the vehicle-mounted radar are determined; and the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects disposed along the travel road include: first type objects disposed along the travel road and parallel to the ground of the travel road, and/or along the travel road The second type of object on the driving road and perpendicular to the ground of the driving road; wherein, the first type of object includes: at least one of a road edge, a guardrail, a green belt or a lane line; the second type of object Type objects include: at least one of trees, signs, or street lights.
  • the acquisition unit is further configured to: acquire external parameters of the vehicle radar; the processing unit is further configured to: use the external parameters to record the target plane objects around the driving road on the vehicle
  • the corresponding first point cloud data in the radar coordinate system is converted into the second point cloud data in the inertial coordinate system; if the flatness of the second point cloud data does not meet the first condition, the external parameter is adjusted.
  • the flatness of the second point cloud data does not satisfy the first condition, including: any two reflection points of different transmit beams in the second point cloud data on the target plane object
  • the first vector between is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are in the
  • the included angle between the first vector between the reflection points on the target plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
  • the processing unit when adjusting the external parameters, is specifically configured to: generate an objective function based on the external parameters, where the objective function is used to describe the first vector and the method The included angle between the vectors, or the objective function is used to describe the projection distance of the normal vector on the first vector; within the preset external parameter adjustment range, find a value that makes the objective function reach the minimum value. External reference.
  • an external parameter calibration device for a vehicle-mounted radar.
  • the device may be a vehicle, or a module (such as a chip or system-on-chip) in a vehicle that includes a radar.
  • the device includes: an acquisition unit for acquiring external parameters of the vehicle-mounted radar; a processing unit for using the external parameters to obtain the first point corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system
  • the cloud data is converted into second point cloud data in the inertial coordinate system; if the flatness of the second point cloud data does not meet the first condition, the external parameters are calibrated.
  • the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object
  • the first vector of the second point cloud data is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are at the target
  • the included angle between the first vector between the reflection points on the plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
  • the external parameter includes at least one of the rotation angle or the translation distance of the vehicle-mounted radar; according to the target reference around the driving road, determine At least one of the rotation angle or the translation distance of the vehicle radar.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road;
  • the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines;
  • the second type of objects includes: trees, signs or at least one of street lights.
  • Another way for the processing unit to calibrate the external parameters is to generate an objective function based on the external parameters, where the objective function is used to describe the angle between the first vector and the normal vector , or, the objective function is used to describe the projection distance of the normal vector on the first vector; within a preset extrinsic parameter adjustment range, search for an extrinsic parameter that makes the objective function reach a minimum value.
  • an external parameter calibration device for a vehicle-mounted radar may be a vehicle, or a module (such as a chip or a system of chips) in a vehicle that includes a radar.
  • the device includes: a determining unit for determining a target reference around the road where the vehicle travels; a processing unit for calibrating the external parameters of the vehicle-mounted radar according to the target reference.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road;
  • the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines;
  • the second type of objects includes: trees, signs or at least one of street lights.
  • a device for calibrating external parameters of a vehicle-mounted radar may be a vehicle, or a module (such as a chip or a system of chips) in a vehicle that includes a radar.
  • the device includes: an acquisition unit for acquiring external parameters of the vehicle-mounted radar; a processing unit for using the external parameters to obtain the first point corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system
  • the cloud data is converted into second point cloud data in the inertial coordinate system;
  • the processing unit is further configured to generate an objective function, and the objective function is used to describe any two different emission beams in the second point cloud data on the target plane object
  • the angle between the first vector between the reflection points on the second point cloud data and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data, or the objective function is used to describe the The projection distance of the normal vector on the first vector;
  • the processing unit is further configured to search for the extrinsic parameter that makes the objective function reach the
  • the method before searching for an external parameter that makes the objective function reach a minimum value, the method further includes: determining that the flatness of the second point cloud data does not satisfy the first condition.
  • the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object
  • the first vector of the second point cloud data is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or,
  • the first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
  • acquiring the external parameters of the vehicle-mounted radar includes: determining a target reference around the road where the vehicle travels; and calibrating the external parameters of the vehicle-mounted radar according to the target reference.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
  • the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  • the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road;
  • the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines;
  • the second type of objects includes: trees, signs or at least one of street lights.
  • a device for calibrating external parameters of a vehicle-mounted radar comprising a memory and one or more processors; wherein, the memory is used to store computer program codes, and the computer program codes include computer instructions; The computer instructions, when executed by the processor, cause the apparatus to perform the method of any one of the first to fourth aspects above.
  • a vehicle which includes the above-mentioned device for calibrating external parameters of a vehicle-mounted radar according to any one of the fifth aspect to the tenth aspect.
  • the vehicle-mounted radar external parameter calibration device may be, for example, a processing module in a vehicle, such as a vehicle-mounted processor or an electronic control unit (electronic control unit, ECU) or the like.
  • a computer-readable storage medium comprising computer instructions, when the computer instructions are executed in the external parameter calibration device of the vehicle-mounted radar, the external parameter calibration device of the vehicle-mounted radar is made to perform the above-mentioned first.
  • a twelfth aspect further provides a computer program product that, when the computer program product runs on a processor, causes the processor to perform the method according to any one of the first to fourth aspects above.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a radar coordinate system, a vehicle coordinate system, and an inertial coordinate system provided by an embodiment of the present application;
  • FIG. 3 is a schematic diagram of a relative relationship between a radar coordinate system and a vehicle coordinate system provided by an embodiment of the present application;
  • FIG. 4 is an exemplary functional block diagram of a vehicle according to an embodiment of the present application.
  • FIG. 5 is an exemplary schematic flowchart of a method for calibrating a vehicle-mounted radar provided by an embodiment of the present application
  • FIG. 6 is another exemplary schematic flowchart of a calibration method for a vehicle-mounted radar provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of judging the flatness of a point cloud according to an embodiment of the present application.
  • FIG. 8 is another exemplary schematic flowchart of a calibration method for a vehicle-mounted radar provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an image collected by a vehicle according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an exemplary structure of a vehicle-mounted radar external parameter calibration device provided by an embodiment of the application.
  • FIG. 11 is a schematic structural diagram of another exemplary structure of a vehicle-mounted radar external parameter calibration device provided by an embodiment of the present application.
  • Vehicle radar refers to a radar set on a vehicle, which can be a vehicle carrier radar, such as a lidar, a microwave radar, or a millimeter-wave radar.
  • Vehicle-mounted radar can realize functions such as obstacle measurement, collision prediction, adaptive cruise control, etc., which can effectively reduce the difficulty of driving, reduce the burden on drivers and reduce the incidence of accidents, so it has been widely used in the automotive field.
  • the vehicle carrier radar can detect the relative distance, relative speed and angle between the vehicle and the target (such as objects around the vehicle), and then track and identify the target according to the obtained information. After a reasonable decision, the driver will be informed or warned in various ways such as sound, light and touch, or the car will be actively intervened in time, so as to ensure the safety and comfort of the driving process and reduce the probability of accidents.
  • Vehicle radars may include transmitters and receivers.
  • the transmitter is used to transmit the electromagnetic wave energy beam.
  • the electromagnetic wave is transmitted to the antenna through the transceiver switch.
  • the antenna then transmits the electromagnetic wave into the air along a certain direction and angle. If there is a target within a certain distance along the emission direction of the electromagnetic wave energy beam, then The electromagnetic wave energy beam is reflected by the target, and when the electromagnetic wave encounters the target object, a part of the energy will be reflected and received by the antenna of the vehicle carrier radar, and then transmitted to the receiver through the transceiver switch.
  • the receiver is used to determine the information related to the target according to the received echo signal and the transmitted electromagnetic wave energy beam. For example, the distance to the target, the point cloud density of the target, etc.
  • the radar sensor transmits an electromagnetic wave energy beam through the transmitter, and further processes the signal processor to obtain the relative distance, angle and relative speed of the target object.
  • Vehicle lidar is a type of vehicle radar. Vehicle lidars have transmitters and receivers. The transmitter emits a laser beam, and after the laser beam encounters a target (such as an object around the vehicle), it is reflected and returned to the receiver. Multiplying the interval between transmit and receive times by the speed of light and dividing by 2, the distance between the transmitter and the target can be calculated.
  • Vehicle lidar includes single-beam laser transmitter, four-line laser radar, sixteen-line laser radar, thirty-two-line laser radar and so on.
  • the single-beam laser transmitter can rotate at a constant speed inside the lidar, and emits a laser every time it rotates a small angle. After a certain angle, a complete frame of data is generated. Therefore, the data of single-line lidar can be regarded as a row of lattices at the same height.
  • Four-line LiDAR polls four laser transmitters. After one polling period, a frame of laser point cloud data is obtained.
  • the laser point cloud data can be composed of planar information, and the height information of obstacles can be obtained. Therefore, the higher the number of laser emitters, the higher the efficiency and the richer the information obtained.
  • FIG. 2 is a schematic diagram of the vehicle coordinate system.
  • the origin of the vehicle coordinate system can be at any position on the vehicle (such as the center of mass, the ground below the midpoint of the rear axle of the vehicle), the x-axis is forward along the front of the vehicle, and the z-axis is perpendicular to the chassis of the vehicle. When facing forward, the y-axis points to the left of the vehicle.
  • FIG. 2 is a schematic diagram of the radar coordinate system.
  • the origin of the radar coordinate system is at the location where the radar is installed on the vehicle.
  • the x-axis, y-axis, and z-axis can be defined in various ways. For example, they are designed by the manufacturer of the vehicle-mounted radar, and the designs of different manufacturers are different. Generally speaking, there is a rotation and translation relationship between the radar coordinate system and the vehicle coordinate system.
  • FIG. 2 is a schematic diagram of the inertial coordinate system.
  • Inertial coordinate system also known as public coordinate system, world coordinate system or global coordinate system, etc., its coordinate origin is a fixed point in space and is an absolute coordinate system. All objects in space can be based on inertial coordinate system. to determine the location of the object.
  • the common coordinate system may be a world coordinate system with east, north, and sky as the X-axis, Y-axis, and Z-axis.
  • the coordinates of the target in the radar coordinate system are different from those in the real world, so the target can be placed in the radar coordinate system.
  • the coordinates are converted to the vehicle coordinate system, and then converted to the inertial coordinate system to determine the position of the target in the real environment. It should be understood that, in the process of converting one coordinate system to another coordinate system, the relative positional relationship (such as rotation and translation relationship) between the two coordinate systems needs to be used. Therefore, to realize the conversion from the radar coordinate system to the inertial coordinate system, it is necessary to use: 1.
  • the relative positional relationship between the radar coordinate system and the vehicle coordinate system which is used to convert the coordinates from the radar coordinate system to the vehicle coordinate system.
  • the relative positional relationship 2 between the vehicle coordinate system and the inertial coordinate system, the relative positional relationship 2 is used for coordinate transformation from the vehicle coordinate system to the world coordinate system.
  • the parameters that need to be used when the radar coordinate system is converted to the vehicle coordinate system are called the external parameters of the vehicle radar.
  • External parameters of vehicle radar referred to as external parameters
  • the radar coordinate system and the vehicle coordinate system have a relative positional relationship, and the relative positional relationship includes a rotation and translation relationship.
  • the relative position relationship is called the external parameters of the vehicle-mounted radar, that is to say, the external parameters of the vehicle-mounted radar include the rotation and translation relationship of the radar coordinate system of the vehicle-mounted radar with respect to the vehicle coordinate system.
  • FIG. 3 is a schematic diagram of the relative positional relationship between the radar coordinate system and the vehicle coordinate system.
  • the origin of the radar coordinate system is defined as OL
  • its coordinate system is OL -X L Y L Z L
  • the origin of the vehicle coordinate system is defined as O V
  • the external parameters of the vehicle-mounted radar include the rotation and translation relationship of the radar coordinate system relative to the vehicle coordinate system, wherein the rotation relationship is described by the rotation angle, and the translation relationship is described by the translation distance.
  • the rotation angle of the radar coordinate system relative to the vehicle coordinate system can be described by three attitude angles, namely the pitch angle ⁇ (pitch), the yaw angle ⁇ (yaw), and the roll angle ⁇ (roll).
  • the pitch angle ⁇ (pitch) refers to the counterclockwise rotation angle around the Y L axis
  • the yaw angle ⁇ (yaw) refers to the counterclockwise rotation angle around the Z L axis
  • the roll angle ⁇ (roll) refers to the rotation angle around the XL axis The angle by which the axis is rotated counterclockwise.
  • the translation distance of the radar coordinate system relative to the vehicle coordinate system can be described using three translation distances, ie, ⁇ x, ⁇ y, ⁇ z.
  • ⁇ x is the projection value on the x-axis direction of the distance from the origin of the coordinates of the radar coordinate system OL to the origin of the coordinates of the vehicle coordinate system OV.
  • ⁇ y is the projection value on the y-axis direction of the distance from the origin of the coordinates of the radar coordinate system OL to the origin of the coordinates of the vehicle coordinate system OV.
  • ⁇ z is the projection value in the z -axis direction of the distance from the origin of the coordinates of the radar coordinate system OL to the origin of the coordinates of the vehicle coordinate system OV.
  • the radar coordinate system coordinate origin OL is connected with the vehicle coordinate system.
  • - ⁇ x refers to the opposite direction to ⁇ x
  • - ⁇ y to the opposite direction to ⁇ y
  • - ⁇ z to the opposite direction to ⁇ z.
  • the rotation angle and translation distance can be used to place a target (such as an object around the vehicle) in the radar coordinate system
  • the coordinates are converted to the vehicle coordinate system. Since the rotation angle and translation distance are collectively referred to as the external parameters of the vehicle-mounted radar, the process of determining the rotation angle and translation distance of the radar coordinate system relative to the vehicle coordinate system can be called the calibration process of the external parameters of the vehicle-mounted radar. It can be understood as determining, obtaining, calculating, etc.
  • the external parameter calibration of the vehicle radar refers to the process of determining the external parameters of the vehicle radar.
  • the external parameters of the vehicle radar include the rotation angle and translation distance of the radar coordinate system relative to the vehicle coordinate system. Therefore, the external parameter calibration process of the vehicle radar can be understood as determining the rotation angle of the radar coordinate system relative to the vehicle coordinate system. (including three attitude angles) and the process of translation distance.
  • the external parameters of the vehicle radar are the important parameters that need to be used in the process of converting from the coordinates in the radar coordinate system to the vehicle coordinate system. If the calibration of the external parameters of the vehicle radar is not accurate, the exact coordinates of the target in the vehicle coordinate system cannot be obtained, and the accurate position of the target in the inertial coordinate system cannot be obtained. That is, the vehicle cannot determine the real position of the surrounding objects, which will affect the safe driving of the vehicle. For example, due to the inaccurate external parameters of the on-board radar, the vehicle determines that the object in front is 2m away from the vehicle after a series of coordinate transformations, but in fact the object in front is only 1m away from the vehicle, which is prone to danger and cannot guarantee driving safety.
  • the present application provides an external parameter calibration method for a vehicle-mounted radar.
  • the external parameters of the vehicle radar are calibrated according to the driving information of the vehicle.
  • the driving information of the vehicle includes at least one of driving road condition information or driving state information.
  • the traveling state information includes at least one of speed, acceleration, yaw angle, or yaw angular velocity.
  • the driving road condition information includes at least one of a driving road of the vehicle or objects around the driving road. That is to say, the external parameter calibration of the on-board radar can be completed while the vehicle is running, without the need to return to the factory for calibration, which is more convenient and has a better user experience.
  • the vehicle when the vehicle is driving, if the external parameters of the on-board radar are calibrated according to the driving information, after a period of driving, the external parameters of the on-board radar will be calibrated. Change, for example, from external parameter 1 to external parameter 2, then the vehicle uses external parameter 2 for calculation (such as determining the coordinates of the target in the inertial coordinate system). That is to say, the calibration of the external parameters of the vehicle radar is completed during the driving process of the vehicle.
  • the completion of the external parameter calibration of the vehicle radar during the driving process of the vehicle can be understood as online calibration
  • the online calibration can be understood as the completion of the calibration during the operation of the vehicle radar or the operation of the vehicle system.
  • the mid-vehicle radar is in an online state (or a working state or a running state).
  • the calibration method that is different from online calibration is offline calibration, such as return-to-factory calibration.
  • the on-board radar cannot be used normally, that is, it is in an offline state. Therefore, the external parameter calibration method of the vehicle radar provided in the embodiment of the present application is more practical, and can perform online calibration in real time, improve the accuracy of determining the position of a target (eg, objects around the vehicle), and ensure driving safety.
  • the external parameter calibration method of the vehicle-mounted radar provided in the embodiment of the present application can be applied to a vehicle.
  • the vehicle includes an onboard radar.
  • in-vehicle radar or radar sensor
  • vehicles such as unmanned vehicles, smart vehicles, electric vehicles, digital vehicles, etc.
  • the on-board radar deployed on the vehicle can perceive the fan-shaped area shown by the solid line frame, and the fan-shaped area can be understood as the on-board radar sensing area.
  • Signals, such as point cloud data are transmitted to the processing module for further processing.
  • the processing module After receiving the signal from the vehicle radar, the processing module outputs the measurement information of the target (for example, the relative distance, angle, and relative speed between the target and the vehicle).
  • the processing module here can be either a hardware or software module independent of the vehicle-mounted radar, or a hardware or software module deployed in the vehicle-mounted radar, which is not limited here. It can be seen that by installing the on-board radar on the vehicle body, measurement information such as the position and relative distance of surrounding objects can be sensed in real time or periodically, and then assisted driving or unmanned driving of the vehicle can be realized according to these measurement information. For example, the distance of surrounding objects relative to the vehicle is used to determine the number, density, etc. of obstacles around the vehicle.
  • the vehicle-mounted radar in the present application may be a laser radar, a microwave radar, or a millimeter-wave radar, which is not limited in the embodiment of the present application.
  • this application does not limit the number of vehicle-mounted radars deployed on the vehicle in the scenario shown in FIG. 4 .
  • FIG. 5 is a schematic flowchart of a method for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. This method can be applied to a vehicle as shown in FIG. 4 . As shown in Figure 5, the process includes:
  • the driving information of the vehicle includes at least one item of driving road condition information or driving state information.
  • the driving status information and the driving road condition information are described below.
  • the traveling state information includes at least one of speed, acceleration, yaw angle, or yaw angle velocity.
  • the speed and/or acceleration may be determined according to motion parameters collected by motion sensors in the vehicle.
  • the motion sensor may be, for example, an accelerometer, a gyroscope, an inertial measurement unit (IMU), and the like.
  • the accelerometer can measure the linear acceleration of the three axes of the vehicle, which is used to calculate the driving speed of the vehicle.
  • the velocity and/or acceleration can also be obtained through a satellite navigation and positioning system.
  • the IMU can output the speed, acceleration, etc. of the vehicle.
  • the satellite navigation and positioning system includes, but is not limited to, global navigation satellite system (GNSS), global positioning system (global positioning system, GPS), Galileo system, etc. or enhanced systems of these systems.
  • GNSS is a radio navigation system with artificial satellites as "beacon", which provides all-weather, high-precision position, speed and time information for various carriers (such as vehicles) in the global land, sea, air and sky (such as vehicles). positioning navigation and timing, PNT).
  • the driving speed and/or acceleration of the vehicle can be determined by means of GNSS.
  • speed and/or acceleration can also be measured by a wheel velocity sensor (WSS).
  • WSS is a sensor for measuring the rotational speed of the wheels of the vehicle, and the traveling speed and/or acceleration of the vehicle can be determined by measuring the rotational speed of the wheels of the vehicle.
  • the wheel speed sensor includes, but is not limited to, a magnetoelectric wheel speed sensor, a Hall-type wheel speed sensor, and the like.
  • the yaw angle and/or the yaw angular velocity can be determined by on-board radar.
  • the yaw angle ⁇ (yaw) refers to the rotation angle of the vehicle around the Z L axis in the radar coordinate system O L -X L Y L Z L during the driving process, which can be simply understood as The angle of deviation from the route, for example, the vehicle turns left, right, U-turn, etc.
  • the yaw angular velocity refers to the change of the yaw angle per unit time. Therefore, the yaw angular velocity can be determined by determining the yaw angle within a certain period of time.
  • the yaw angle can be understood as the left turn angle
  • the yaw angle speed refers to the change of the yaw angle per unit time, so it can be understood as the change of the left turn angle, which reflects the left turn speed of the vehicle.
  • the yaw angle and/or the yaw angular velocity can also be calculated by a steering wheel sensor (steering wheel sensor, SAS).
  • SAS can determine the steering wheel rotation angle, rotation direction, and steering speed, etc., and the yaw angle can be estimated through these parameters. Heading angle and/or yaw angle.
  • the yaw angle and/or the yaw rate can also be estimated by the IMU.
  • the IMU can detect angular velocity, angular acceleration, etc., and the yaw angle and/or yaw angular velocity can be calculated from the detected parameters.
  • the driving road condition information is used to indicate at least one of the driving road of the vehicle or the object information around the driving road.
  • the use of the driving road condition information to indicate the driving road of the vehicle may be understood as being used to indicate the attribute of the driving road, such as a straight road, a right-turn road, a left-turn road, and the like.
  • road 1 is determined as the driving road of the vehicle, and then it can be determined according to the description information of the road 1 in the map Attributes of road 1 such as straight road, right turn road and so on.
  • the vehicle may collect images during the driving process, and determine the attributes of the driving road of the vehicle through image recognition, such as a straight road, a right-turn road, and the like.
  • an input button may be provided on the vehicle, and the driver may input the attribute of the driving road through the input button.
  • the object information around the driving road of the vehicle can be determined in various ways.
  • the vehicle collects images during driving, and determines the objects around the road where the vehicle travels through image recognition.
  • objects around the road where the vehicle travels can also be determined according to the point cloud data obtained by the vehicle-mounted radar.
  • the on-board radar can transmit electromagnetic waves that are emitted by surrounding objects and then collect the emitted electromagnetic waves.
  • the reflected electromagnetic waves are point cloud data.
  • objects around the road where the vehicle is traveling can be identified.
  • objects around the driving road of the vehicle include trees, curbs, street lights, signs, and the like.
  • S502 may include the following three situations.
  • the driving information of the vehicle includes driving state information.
  • S502 can be refined as follows: according to the driving state information, it is determined to calibrate the external parameters of the vehicle radar. Specifically, it may include: according to the driving state information, when it is determined that at least one of the following conditions is satisfied, determining to calibrate the external parameters of the vehicle-mounted radar.
  • the conditions include:
  • the vehicle travels at a constant speed. For example, whether the vehicle is traveling at a constant speed can be determined according to the speed, acceleration, etc. in the traveling state information.
  • the traveling speed of the vehicle is less than the first threshold value or within the first range.
  • the running acceleration of the vehicle is smaller than the second threshold value or within the second range.
  • the first threshold, the first range, the second threshold, and the second range may be set by default (for example, set by default before the vehicle leaves the factory), or set by the user, which is not limited in this embodiment of the present application.
  • the yaw angle is within the preset range.
  • the preset range is, for example, -5 degrees to 5 degrees. That is, the vehicle is going straight or approximately straight.
  • the yaw angular velocity is less than the third threshold or within the third range.
  • the third threshold and the third range may be set by default (for example, set by default before the vehicle leaves the factory), or set by the user, which is not limited in the embodiment of the present application.
  • the driving information of the vehicle includes driving road condition information.
  • S502 can be refined as: according to the driving road condition information, it is determined to calibrate the external parameters of the vehicle radar. Specifically, it may include: according to the driving road condition information, when it is determined that at least one of the following conditions is satisfied, determining to calibrate the external parameters of the vehicle-mounted radar.
  • the conditions include:
  • the driving road of the vehicle is a straight road.
  • the vehicle may determine the driving road condition information, and the driving road condition information is used to indicate the attributes of the driving road of the vehicle, such as a straight road, a right-turn road, and the like. Therefore, it can be determined whether the driving road is a straight road according to the driving road condition information.
  • the vehicle may determine the driving road condition information, and the driving road condition information may be used to indicate objects around the driving road of the vehicle, such as trees, road edges, street lights, signs, and the like. Therefore, it can be determined whether there is a target reference around the vehicle driving road according to the vehicle driving road condition information.
  • target references include the following two categories.
  • the determining that a target reference exists around the vehicle driving road includes: determining that at least one of the two types of target references exists around the driving road.
  • the two categories include:
  • the first type of target reference includes: at least one of the ground of the driving road or a plane object parallel to the ground.
  • the second type of target reference includes: objects set along the driving road. For example, at least one of a type A object along the driving road and parallel to the ground of the driving road, or a type B object along the driving road and perpendicular to the ground of the driving road.
  • the A-type object includes at least one of a road edge, a guardrail, a green belt or a lane line.
  • Type B objects include: at least one of trees, signs, or street lights.
  • the third situation can be understood as the combination of the first situation and the second situation, that is, the driving information of the vehicle includes the driving road condition information and the driving state information.
  • S502 can be refined as follows: determine whether to calibrate the external parameters of the on-board radar according to the driving state information (see the first case for the realization principle); if so, continue to judge whether to calibrate the external parameters of the on-board radar according to the driving road condition information. Calibration (see the second case for the implementation principle), if not, it is determined not to calibrate the external parameters of the vehicle radar, and there is no need to continue to make judgments based on the driving road condition information.
  • S502 can also be refined as follows: determine whether to calibrate the external parameters of the vehicle-mounted radar according to the driving road condition information; if so, continue to judge whether to calibrate the external parameters of the vehicle-mounted radar according to the driving state information; if not, determine not to calibrate the vehicle-mounted radar. It is not necessary to continue to make judgments based on the driving state information. These two methods can perform double judgment and improve the accuracy.
  • the first embodiment above is to determine whether to calibrate the external parameters of the vehicle radar according to the driving information of the vehicle.
  • the second embodiment provides another way of determining whether to calibrate the external parameters of the vehicle-mounted radar.
  • FIG. 6 is another schematic flowchart of a method for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. As shown in Figure 6, the process includes:
  • the acquired external parameters may be external parameters of the vehicle-mounted radar calibrated last time or initial external parameters (for example, external parameters set at the factory).
  • the extrinsic parameter includes at least one of a rotation angle or a translation distance.
  • the rotation angle includes three attitude angles, namely, the pitch angle ⁇ (pitch), the yaw angle ⁇ (yaw), and the roll angle ⁇ (roll).
  • the translation distance includes ⁇ x, ⁇ y, and ⁇ z.
  • R Assuming that the rotation angle is represented by R, then R can be expressed as:
  • r 11 is the projection of the x-axis of the radar coordinate system on the x-axis of the vehicle coordinate system
  • r 12 is the projection of the x-axis of the radar coordinate system on the y-axis of the vehicle coordinate system
  • r 13 is the x-axis of the radar coordinate system in the The projection of the z-axis of the vehicle coordinate system
  • r 21 is the projection of the y-axis of the radar coordinate system on the x-axis of the vehicle coordinate system
  • r 22 is the projection of the y-axis of the radar coordinate system on the y-axis of the vehicle coordinate system
  • r 23 is The projection of the y-axis of the radar coordinate system on the z-axis of the vehicle coordinate system
  • r 31 is the projection of the z-axis of the radar coordinate system on the x-axis of the vehicle coordinate system
  • r 32 is the z-axis of the radar coordinate system on the y-axis of the vehicle coordinate system
  • T is represented as:
  • the step may further include: determining a target plane object.
  • the target plane object may be a sign, ground, billboard and other plane objects around the vehicle.
  • the vehicle can acquire images including surrounding objects, and determine the target planar object based on the images.
  • point cloud data of surrounding objects may also be acquired, where the point cloud data corresponds to all surrounding objects, and the point cloud data is represented in a radar coordinate system.
  • the point cloud data of the target plane object is determined from the point cloud data. For example, it can be determined that points in the point cloud data that are on the same plane or approximately the same plane constitute the point cloud data of the target plane object.
  • S602 includes two processes.
  • Process 1 Convert the first point cloud data of the target plane object in the radar coordinate system to the third point cloud data in the vehicle coordinate system.
  • Process 2 Convert the third point cloud data to the second point cloud data in the inertial coordinate system.
  • Process 1 Convert the first point cloud data to the third point cloud data in the vehicle coordinate system according to the following formula (1).
  • (x 0 , y 0 , z 0 ) is the coordinate of a point in the first point cloud data in the radar coordinate system
  • (x 1 , y 1 , z 1 ) is the coordinate of this point in the vehicle coordinate system.
  • R and T are the external parameters of the vehicle radar, where R is the rotation angle and T is the translation distance.
  • R and T please refer to the introduction of S601.
  • the third point cloud data is converted to the second point cloud data in the inertial coordinate system according to the following formula (2).
  • (x 1 , y 1 , z 1 ) are the coordinates of a point in the third point cloud data in the vehicle coordinate system
  • (x 2 , y 2 , z 2 ) are the coordinates of this point in the inertial coordinate system.
  • R1 is the rotation angle of the vehicle coordinate system relative to the inertial coordinate system
  • T1 is the translation distance of the vehicle coordinate system relative to the inertial coordinate system.
  • R1 and T1 are preset, or, R1 and T1 may also be calculated by sensing devices such as GNSS, IMU, WSS, and SAS, and the specific calculation process is not repeated in the embodiments of this application.
  • S603 Determine whether the flatness of the second point cloud data satisfies the first condition.
  • the flatness of the second point cloud data can be understood as the degree to which the second point cloud data are on the same plane. For example, if most or all of the point cloud data in the second point cloud data are on the same plane, the flatness of the second point cloud data is considered to be good.
  • the first way is to determine whether the flatness of the second point cloud data satisfies the first condition, which may include: when the first vector and the second vector in the second point cloud data are perpendicular or nearly perpendicular, determining the second point cloud data The flatness of satisfies the first condition, otherwise, it is determined that the flatness of the second point cloud data does not satisfy the first condition.
  • the first vector is the vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data
  • the second vector is the corresponding one or more transmit beams in the second point cloud data The normal vector of the point cloud data.
  • any two different emission beams can be beams emitted by any two different transmitters on the vehicle radar, or any two different beams emitted by the same transmitter, or, two adjacent beams, or , are the two closest beams, etc., which are not limited in the embodiments of the present application.
  • first vector and the second vector are nearly perpendicular can be understood as the angle between the first vector and the second vector being smaller than the preset angle or within the preset angle range.
  • the value is not limited in this embodiment of the present application, for example, 85 degrees to 95 degrees.
  • the method may further include the step of: selecting part of the point cloud data from the second point cloud data, and determining the first vector based on the part of the point cloud data.
  • the vehicle-mounted radar can emit a beam, and the emitted beam is emitted on the target plane object to generate a reflection point, and the reflected beam is received by the vehicle-mounted radar.
  • the vehicle-mounted radar calculates the reflection point according to the transmitted beam and the received reflected beam.
  • the coordinate value in the system ie the first point cloud data
  • the coordinate value in the radar coordinate system is converted to the coordinate value in the inertial coordinate system (ie the second point cloud data).
  • the points in the second point cloud data correspond to different reflection points, that is, correspond to different emission light beams.
  • the partial point cloud data may be point cloud data corresponding to a plurality of different emission beams in the second point cloud data, for example, point cloud data corresponding to emission beam 1 and emission beam 2, then the first vector can emit beams 1
  • the vector between the reflection point 1 on the target plane object and the reflection point 2 of the emission beam 2 on the target plane object for example, see Figure 7, which is a schematic diagram of the second point cloud data, assuming points P and Point Q is a reflection point corresponding to two different transmit beams in the second point cloud data, so the vector between point P and point Q may be the first vector.
  • the step may further include: determining the second vector.
  • the second vector may be the normal vector corresponding to all point cloud data in the second point cloud data, or the second vector may be part of the point cloud data in the second point cloud data (for example, part of the points selected when determining the first vector)
  • the normal vector corresponding to the cloud data or, the second vector may also be the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data.
  • FIG. 7 is a schematic diagram of the second point cloud data
  • point P and point Q are points corresponding to two different transmit beams in the second point cloud data. If the first vector between point P and point Q is perpendicular or nearly perpendicular to the normal vector of the second point cloud data, the flatness of the second point cloud data is better, so the first vector and the normal vector are perpendicular or nearly perpendicular , it is determined that the flatness of the second point cloud data satisfies the first condition.
  • the second way is to determine whether the flatness of the second point cloud data satisfies the first condition, which may include: determining a plurality of sets of first vectors according to the second point cloud data, and there is a difference between each set of first vectors and the second vector. An included angle, if the average or weighted average of the multiple included angles is 90 degrees or close to 90 degrees, then it is determined that the flatness of the second point cloud data satisfies the first condition.
  • the part of the point cloud data selected from the second point cloud data may be point cloud data corresponding to a plurality of different emitted light beams in the second point cloud data.
  • M M is greater than 2
  • transmit beams are selected
  • there are corresponding M reflection points and the M reflection points can generate multiple different first vectors.
  • each first vector can be determined with the first vector
  • the angle between the two vectors get multiple angles, count the average or weighted average of the multiple angles, if the average or weighted average is 90 degrees or close to 90 degrees, then determine the second point cloud data.
  • the flatness satisfies the first condition.
  • S604 may be performed.
  • the flatness of the second point cloud data satisfies the first condition, it is not necessary to calibrate the external parameters of the vehicle-mounted radar.
  • the second point cloud data is the coordinates of the target plane object in the inertial coordinate system. If the flatness of the second point cloud data is good, it means that the second point cloud data obtained by using the current external parameters of the vehicle radar through a series of coordinate transformations is flat, which is more in line with the real situation, indicating that the current external parameters are relatively accurate of. If the flatness of the second point cloud data is poor, it means that the second point cloud data obtained through a series of coordinate transformations using the current external parameters is not flat and does not conform to the real situation (because the real situation is that the surface of the target plane object is flat ), indicating that the current external parameters are inaccurate, and the external parameters of the vehicle radar need to be calibrated. In this way, it can be accurately judged whether the current external parameters are accurate, that is, whether the external parameters of the vehicle-mounted radar need to be calibrated.
  • Embodiment 1 and Embodiment 2 provide two ways to determine whether to calibrate the external parameters of the vehicle-mounted radar. It is assumed that the method of the first embodiment is taken as the first method, and the method of the second embodiment is taken as the second method.
  • the vehicle may default to the first mode or default to the second mode.
  • the user can specify to use the first method or the second method, for example, a switch button is set on the vehicle, and the switch between the first method and the second method is realized by the switch button.
  • the vehicle can also determine whether to adopt the first method or the second method according to conditions (such as environmental conditions or speed conditions).
  • the third embodiment can be understood as a combination of the first embodiment and the second embodiment. Specifically, when it is determined that the external parameters of the vehicle-mounted radar are calibrated using the method of the first embodiment, the external parameters of the vehicle-mounted radar are calibrated. After the calibration is completed, the method of the second embodiment is used to determine whether the calibrated external parameters meet the conditions. If satisfied, adjust the calibrated external parameters.
  • FIG. 8 is another schematic flowchart of a method for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. As shown in Figure 8, the process includes:
  • the driving information includes at least one item of driving state information or driving road condition information.
  • S802 according to the driving information, determine to calibrate the external parameters of the vehicle-mounted radar.
  • S803 may be refined as: calibrating the external parameters of the vehicle-mounted radar according to the target reference. Because the external parameter includes at least one of a rotation angle or a translation distance of the radar coordinate system relative to the vehicle coordinate system. Therefore, S803 can be refined as: determining at least one of a rotation angle or a translation distance of the radar coordinate system relative to the vehicle coordinate system according to the target reference.
  • the rotation angle includes three attitude angles, namely pitch angle, roll angle and yaw angle.
  • different attitude angles may be determined according to different target reference objects. Specifically, the following two cases are included.
  • the first type of target reference refers to the ground on the road of the vehicle and the plane objects parallel to the ground.
  • determining the pitch angle and the roll angle according to the first type of target reference includes the following steps 1 to 4.
  • step 1 point cloud data 1 is obtained, and point cloud data 1 is the point cloud data corresponding to the first type of target reference in the radar coordinate system.
  • Step 2 Determine the first normal vector of the point cloud data 1.
  • Step 3 Determine the rotation matrix of the radar coordinate system relative to the vehicle coordinate system according to the first normal vector and the standard normal vector.
  • the vehicle-mounted radar detects the point cloud data 1 corresponding to the ground. Since the vehicle-mounted radar is offset from the vehicle coordinate system (or inertial coordinate system), the detected point on the ground corresponds to Cloud data 1 and the real ground are not necessarily on the same plane.
  • the normal vector of point cloud data 1 corresponding to the detected ground ie the first normal vector
  • the normal vector of the real ground ie the standard normal vector
  • the deviation between the first normal vector and the standard normal vector can reflect the rotation matrix of the radar coordinate system and the vehicle coordinate system. Therefore, the rotation matrix of the radar coordinate system and the vehicle coordinate system can be determined by the first normal vector and the standard normal vector.
  • the rotation matrix satisfies the following formula:
  • the rotation matrix R of the radar coordinate system relative to the vehicle coordinate system can be obtained by the above formula.
  • Step 4 according to the rotation matrix, determine the pitch angle and the roll angle.
  • pitch and roll angles are determined according to the following formulas:
  • R is the rotation matrix
  • the above step 4 can obtain not only the pitch angle and the roll angle, but also the yaw angle according to the rotation matrix R, but since the rotation matrix is based on the normal vector of the point cloud data 1 corresponding to the detected ground (that is, the first The deviation between the first normal vector and the normal vector of the real ground (ie the standard normal vector) is inferred, and the change of the yaw angle has no effect on the deviation between the first normal vector and the standard normal vector. The change of the sailing angle will not cause the first normal vector of the point cloud data 1 to change. Therefore, according to the deviation between the first normal vector of the point cloud data 1 corresponding to the detected ground and the standard normal vector of the real ground, it is inaccurate to obtain the yaw angle by reverse inference. Therefore, the following case (2) can be used to calibrate the yaw angle.
  • the second type of target reference is an object set along the driving road. See above for an introduction to the second category of target references.
  • determining the yaw angle includes the following steps 1 to 2.
  • An implementation method is, according to the street lamp, the process of determining the road direction of the driving road includes: acquiring point cloud data, and determining the street lamp 1 in the point cloud data.
  • Step 2 Determine the yaw angle of the vehicle-mounted radar according to C1.
  • yaw angle arctan(1/C1)
  • yaw angle 90-arctan(C1).
  • the vehicle calibrates the external parameters (such as three attitude angles) of the vehicle-mounted radar according to the target reference objects around the driving road.
  • calibrating the yaw angle based on street lights, signs, trees, etc. around the road helps to improve the accuracy of the calibrated yaw angle.
  • the above embodiment introduces the calibration process of the rotation angle, and the following describes the determination process of the translation distance.
  • the translation distance may be determined according to the first type of target reference.
  • the first type of target reference includes at least one of the ground of the driving road or a plane object parallel to the ground.
  • step 1 point cloud data 2 is determined, and point cloud data 2 corresponds to the first type of target reference in the radar coordinate system.
  • Step 2 according to the point cloud data 2, determine the ground fitting equation.
  • Step 3 Determine the translation distance according to the distance from the origin of the radar coordinate system to the ground fitting equation.
  • the calibration of the external parameters (rotation angle and/or translation distance) of the vehicle-mounted radar is completed. After the calibration of the external parameters is completed, it can be further judged whether the calibrated external parameters are accurate, and if not, the calibrated external parameters can be adjusted, which specifically includes the following steps S804 to S806.
  • the extrinsic parameter includes at least one of a rotation angle or a translation distance. Therefore, adjusting the external parameters can include adjusting the rotation angle, that is, the three attitude angles.
  • the manner of adjusting the rotation angle may include at least one of the following manners A to C.
  • Method A determine the objective function f, the objective function f is used to describe and the angle between. in, is the vector between two points in the second point cloud data (the first vector between point P and point Q as shown in Figure 7); is the normal vector of the second point cloud data (such as the second vector shown in Figure 7). Then, solve the optimal solution of this objective function.
  • the objective function in, and The independent variables in include three attitude angles, so the independent variables of the above formula include three attitude angles, so the objective function f can be expressed as f( ⁇ , ⁇ , ⁇ ).
  • the pitch angle is ⁇ (pitch)
  • the yaw angle is ⁇ (yaw)
  • the roll angle is ⁇ (roll).
  • the search range of the independent variables may include: for example, the pitch angle is in the interval [0, M0], the roll angle is in the interval [0, M1], and the yaw angle is in the interval [0, M1]. [0, M2] interval.
  • the specific values of M0, M1, and M2 are not limited in this embodiment of the present application.
  • the independent variable parameters that can make the objective function f be at [85 degrees, 95 degrees], and the independent variable parameters include the found accurate rotation angles (that is, the three attitude angles). ).
  • Method B determine the objective function f, the objective function f is used to describe and vertical relationship between them. in, is the vector between two points in the second point cloud data (the first vector between point P and point Q as shown in Figure 7); is the normal vector of the second point cloud data (such as the second vector shown in Figure 7). Then, solve the optimal solution of this objective function.
  • the objective function in, and The independent variables include three attitude angles, so f can be expressed as f( ⁇ , ⁇ , ⁇ ).
  • the search range of the independent variables may include: for example, the pitch angle is in the interval [0, M0], the roll angle is in the interval [0, M1], and the yaw angle is in the interval [0, M1]. [0, M2] interval.
  • the independent variable that makes the objective function f reach the minimum value is the exact rotation angle (ie, three attitude angles) found.
  • the objective function f is determined, and the objective function f is used to describe the projection distance of the second vector on the first vector (for example, the projection distance of the second vector on the first vector in FIG. 7 ).
  • the projection distance can be understood as the distance from the vertex of the second vector to the first vector.
  • the objective function f may also describe the distance from a point to a plane, where the plane refers to a plane fitted according to the second point cloud data, and the point is any point in the second point cloud data.
  • the objective function f satisfies the following formula:
  • p k and m k are two points in the second point cloud data.
  • ⁇ k is the normal vector of the fitted plane. If the flatness of the second point cloud data is good, the distance between each point in the second point cloud data and the fitted plane is small. Therefore, within the search range of the independent variable parameters (pitch angle, roll angle, yaw angle), find the extrinsic parameter value that makes the objective function f reach the minimum value.
  • the search range of the independent variables may include: for example, the pitch angle is in the interval [0, M0], the roll angle is in the interval [0, M1], and the yaw angle is in the interval [0, M1]. [0, M2] interval.
  • the independent variable that makes the objective function f reach the minimum value is the exact rotation angle (ie, three attitude angles) found.
  • the third embodiment not only can it be determined whether to calibrate the external parameters of the vehicle radar according to the driving information of the vehicle, but if it is determined to calibrate the external parameters of the vehicle radar, it can also be judged whether the calibrated external parameters meet the conditions. (ie S804 and S805), if not satisfied, adjust the calibrated external parameters to improve the accuracy of the external parameters.
  • FIG. 10 is a structural block diagram of a device 1000 for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application.
  • the external parameter calibration device 1000 of the vehicle-mounted radar includes: an acquisition unit 1001 and a processing unit 1002 .
  • the obtaining unit 1001 is configured to obtain the driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle or at least one of yaw angular velocity; the driving road condition information is used to indicate at least one of the driving road of the vehicle or the objects around the driving road;
  • the processing unit 1002 is configured to determine, according to the driving information
  • the vehicle-mounted radar is calibrated with external parameters.
  • the acquiring unit 1001 and the processing unit 1002 may be processors, such as application processors or baseband processors, and the processors may include one or more central processing units (CPUs).
  • processors such as application processors or baseband processors
  • processors may include one or more central processing units (CPUs).
  • the external parameter calibration device 1000 of the vehicle-mounted radar may be a vehicle or a vehicle-mounted device, or a processing module or a chip system in a vehicle or a vehicle-mounted device, such as a vehicle-mounted processor or an electronic control unit (ECU).
  • a vehicle-mounted processor or an electronic control unit (ECU).
  • ECU electronice control unit
  • the external parameter calibration apparatus 1000 of the vehicle-mounted radar may also be a processing module (such as a processor) in the vehicle-mounted radar.
  • a processing module such as a processor
  • the external parameter calibration apparatus 1000 of the vehicle-mounted radar may further include a communication unit.
  • the communication unit may include a receiving unit and a transmitting unit.
  • the processing unit 1002 is specifically configured to: determine to perform external parameter calibration on the vehicle radar when at least one of the following conditions is satisfied according to the driving state information, wherein the conditions include:
  • the speed is less than a first threshold
  • the vehicle is traveling at an average speed
  • the acceleration is less than a second threshold
  • the yaw angle is within a preset range
  • the yaw angle speed is less than a third threshold.
  • the processing unit 1002 is specifically configured to: according to the driving road condition information, determine that the driving road is a straight road and/or when there is a target reference object around the driving road, determine whether the driving road is a straight road.
  • the vehicle radar performs external parameter calibration.
  • the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the processing unit 1002 is further configured to: determine, according to the target reference around the driving road, At least one of the rotation angle or the translation distance of the vehicle radar.
  • the processing unit 1002 when used to determine the rotation angle of the vehicle radar according to the target reference around the driving road, it is specifically used for: according to the ground of the driving road Or a plane object parallel to the ground, determine the pitch angle and roll angle of the vehicle-mounted radar; determine the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road.
  • the objects disposed along the travel road include: first type objects disposed along the travel road and parallel to the ground of the travel road, and/or along the travel road The second type of object on the driving road and perpendicular to the ground of the driving road; wherein, the first type of object includes: at least one of a road edge, a guardrail, a green belt or a lane line; the second type of object Type objects include: at least one of trees, signs, or street lights.
  • the acquisition unit 1001 is further configured to: acquire external parameters of the vehicle-mounted radar;
  • the processing unit 1002 is further configured to: use the external parameter to convert the first point cloud data corresponding to the target plane object around the driving road in the vehicle radar coordinate system into the second point cloud data in the inertial coordinate system; If the flatness of the second point cloud data does not meet the first condition, adjust the external parameter.
  • the flatness of the second point cloud data does not satisfy the first condition, including: any two reflection points of different transmit beams in the second point cloud data on the target plane object
  • the first vector between is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are in the
  • the included angle between the first vector between the reflection points on the target plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
  • the processing unit 1002 when adjusting the external parameters, is specifically configured to: generate an objective function based on the external parameters, where the objective function is used to describe the first vector and the The angle between the normal vectors, or the objective function is used to describe the projection distance of the normal vector on the first vector; within the preset external parameter adjustment range, find the objective function to reach the minimum value of external parameters.
  • the division of units in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the software or firmware includes, but is not limited to, computer program instructions or code, and can be executed by a hardware processor.
  • the hardware includes, but is not limited to, various types of integrated circuits, such as central processing units (CPUs), digital signal processors (DSPs), field programmable gate arrays (FPGAs), or application specific integrated circuits (ASICs).
  • FIG. 11 is a structural block diagram of an external parameter calibration apparatus 1100 of a vehicle-mounted radar provided by an embodiment of the present application.
  • the external parameter calibration apparatus 1100 of the vehicle-mounted radar shown in FIG. 11 includes at least one processor 1101 .
  • the external parameter calibration device 1100 of the vehicle-mounted radar further includes at least one memory 1102 for storing program instructions and/or data. Memory 1102 and processor 1101 are coupled.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • the processor 1101 may cooperate with the memory 1102 , the processor 1101 may execute program instructions stored in the memory 1102 , and at least one of the at least one memory 1102 may be included in the processor 1101 .
  • the external parameter calibration device 1100 of the vehicle radar may also include an interface circuit (not shown in the figure), the processor 1101 is coupled with the memory 1102 through the interface circuit, and the processor 1101 can execute the program code in the memory 1102 to achieve The external parameter calibration method of the vehicle-mounted radar provided by the embodiment of the present application.
  • the external parameter calibration apparatus 1100 for vehicle radar may further include a communication interface 1103 for communicating with other devices through a transmission medium, so that the external parameter calibration apparatus 1100 for vehicle radar may communicate with other devices.
  • the communication interface may be a transceiver, a circuit, a bus, a module, or other types of communication interfaces.
  • the transceiver when the communication interface is a transceiver, the transceiver may include an independent receiver and an independent transmitter; a transceiver with integrated transceiver functions, or an interface circuit, etc. may also be included.
  • connection medium between the above-mentioned processor 1101 , the memory 1102 , and the communication interface 1103 is not limited in the embodiments of the present application.
  • the memory 1102, the processor 1101, and the communication interface 1103 are connected through a communication bus 1104 in FIG. 11.
  • the bus is represented by a thick line in FIG. 11, and the connection between other components is only a schematic illustration. , not as a limitation.
  • the bus may include an address bus, a data bus, a control bus, and the like. For convenience of presentation, only one thick line is used in FIG. 11 , but it does not mean that there is only one bus or one type of bus or the like.
  • the device when the computer instructions in the memory 1102 are executed by the processor 1101, the device is caused to execute: acquiring the driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein, The driving state information includes at least one of speed, acceleration, yaw angle or yaw angular velocity; the driving road condition information is used to indicate at least one of a driving road of the vehicle or objects around the driving road; According to the driving information, it is determined to perform external parameter calibration on the vehicle-mounted radar.
  • the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed by a processor, the external parameter calibration device of the vehicle-mounted radar can perform the external parameter calibration of the vehicle-mounted radar described in the embodiments of the present application. parameter calibration method.
  • the present application provides a computer program product, the computer program product includes a computer program, when the computer program product runs on a processor, the external parameter calibration device of the vehicle-mounted radar is made to execute the method described in the embodiments of the present application. External parameter calibration method of vehicle radar.
  • the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM).
  • Memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • “at least one” refers to one or more, and “multiple” refers to two or more.
  • “And/or”, which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • At least one (a) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (such as infrared, wireless, microwave, etc.)
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media.
  • the available media can be magnetic media (eg, floppy disks, hard disks, magnetic tape), optical media (eg, digital video disc (DVD) for short), or semiconductor media (eg, SSD), and the like.

Landscapes

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

Abstract

An external parameter calibration method and apparatus for a vehicle-mounted radar, applied to autonomous driving or assisted driving. The method comprises: acquiring travel information of a vehicle, the travel information comprising at least one of traveling state information or travel road condition information, wherein the traveling state information comprises at least one of the speed, acceleration, yaw angle or yaw rate, and the travel road condition information is used for indicating at least one of a travel road of the vehicle or objects around the travel road; and performing external parameter calibration on the vehicle-mounted radar according to the travel information. In this way, the external parameter calibration for the vehicle-mounted radar can be completed during the traveling process of the vehicle, there is no need to return to the factory for calibration, and therefore, the efficiency is high. Furthermore, the method can be applied to the Internets of Vehicles, such as Vehicle to Everything (V2X), Long Term Evolution-Vehicle (LTE-V), and Vehicle to Vehicle (V2V).

Description

一种车载雷达的外参标定方法与装置Method and device for external parameter calibration of vehicle-mounted radar
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2021年03月31日提交中国专利局、申请号为202110351002.5、申请名称为“一种车载雷达的外参标定方法与装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 31, 2021 with the application number of 202110351002.5 and the application title of "A method and device for calibrating external parameters of a vehicle-mounted radar", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及网联车领域,尤其涉及一种车载雷达的外参标定方法与装置。The present application relates to the field of connected vehicles, and in particular, to a method and device for calibrating external parameters of a vehicle-mounted radar.
背景技术Background technique
车载雷达能够实现障碍物测量、碰撞预测、自适应巡航控制等功能,可以有效地降低驾驶难度、减少驾驶员负担以及减少事故的发生率,因而在汽车领域得到了广泛应用。Vehicle-mounted radar can realize functions such as obstacle measurement, collision prediction, adaptive cruise control, etc., which can effectively reduce the difficulty of driving, reduce the burden on drivers and reduce the incidence of accidents, so it has been widely used in the automotive field.
请参见图1,车载雷达(比如图1中的车辆A上的雷达)可以感知周围物体(比如图1中道路上的车辆B)在所述车载雷达坐标系中的坐标。为了还原到真实环境中物体所在的位置,需要将物体在车载雷达坐标系中的坐标转换到车辆坐标系。其中,从车载雷达坐标系转换到车辆坐标系需要使用一个重要参数即车载雷达的外参,一旦车载雷达的外参不准确,影响物体在真实环境中位置的确定,无法保证驾驶安全。确定车载雷达的外参过程称为车载雷达的外参标定过程。Referring to FIG. 1 , a vehicle-mounted radar (eg, the radar on vehicle A in FIG. 1 ) can perceive the coordinates of surrounding objects (eg, vehicle B on the road in FIG. 1 ) in the vehicle-mounted radar coordinate system. In order to restore the position of the object in the real environment, it is necessary to convert the coordinates of the object in the vehicle radar coordinate system to the vehicle coordinate system. Among them, the conversion from the vehicle radar coordinate system to the vehicle coordinate system requires the use of an important parameter, that is, the external parameters of the vehicle radar. Once the external parameters of the vehicle radar are inaccurate, it will affect the determination of the object's position in the real environment and cannot guarantee driving safety. The process of determining the external parameters of the vehicle radar is called the external parameter calibration process of the vehicle radar.
目前车载外参的标定方法,比如返厂标定,这种方式比较繁琐,而且返厂标定期间车载雷达无法正常供用户使用,影响用户体验。At present, the calibration methods of vehicle-mounted external parameters, such as return-to-factory calibration, are relatively cumbersome, and the vehicle-mounted radar cannot be used by users normally during the return-to-factory calibration, which affects the user experience.
发明内容SUMMARY OF THE INVENTION
本申请的目的在于提供了一种车载雷达的外参标定方法与装置,用于实现车载雷达的在线标定,提升标定效率。The purpose of the present application is to provide a method and device for calibrating external parameters of a vehicle-mounted radar, which are used to realize the online calibration of the vehicle-mounted radar and improve the calibration efficiency.
第一方面,提供一种车载雷达的外参标定方法,应用于车辆,所述车辆包括雷达。该方法包括:获取所述车辆的行驶信息,所述行驶信息包括行驶状态信息或行驶路况信息中的至少一种;其中,所述行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个;所述行驶路况信息包括所述车辆的行驶道路或所述行驶道路周围的物体中的至少一项;根据所述行驶信息,对所述车载雷达进行外参标定。In a first aspect, a method for calibrating external parameters of a vehicle-mounted radar is provided, which is applied to a vehicle, and the vehicle includes a radar. The method includes: acquiring driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle, or yaw angle speed. The driving road condition information includes at least one of the driving road of the vehicle or the objects around the driving road; according to the driving information, the vehicle radar is calibrated with external parameters.
通过这种方式,车辆在行驶过程中就可以完成对车载雷达的外参标定,无需返厂标定,效率较高,不影响车载雷达的正常使用,用户体验较高。In this way, the vehicle can complete the external parameter calibration of the on-board radar during the driving process, without returning to the factory for calibration, the efficiency is high, the normal use of the on-board radar is not affected, and the user experience is high.
第一种情况,所述根据所述行驶信息,对所述车载雷达进行外参标定,包括:根据所述行驶状态信息,确定满足如下条件中的至少一个时,对所述车载雷达进行外参标定,其中,所述条件包括:所述车辆均速行驶、所述速度小于第一阈值、所述车辆均速行驶、所述加速度小于第二阈值、所述偏航角处于预设范围内、或所述偏航角速度小于第三阈值。In the first case, the performing external parameter calibration on the vehicle radar according to the driving information includes: according to the driving state information, when it is determined that at least one of the following conditions is satisfied, performing external parameter calibration on the vehicle radar Calibration, wherein the conditions include: the vehicle is traveling at an average speed, the speed is less than a first threshold, the vehicle is traveling at an average speed, the acceleration is less than a second threshold, the yaw angle is within a preset range, Or the yaw angular velocity is less than the third threshold.
也就是说,车辆在行驶过程中,根据速度、加速度、偏航角、偏航角速度等参数确定当前状态适合在线标定时,对车载雷达的外参进行标定。比如,车辆匀速行驶时,认为车 辆行驶比较稳定,符合标定条件可在线标定,或者,偏航角处于预设范围内时,认为车辆直线行驶或基本直线行驶,符合标定条件可在线标定。That is to say, when the vehicle is driving, it is determined that the current state is suitable for online calibration according to parameters such as speed, acceleration, yaw angle, and yaw angular velocity, and the external parameters of the vehicle radar are calibrated. For example, when the vehicle is driving at a constant speed, it is considered that the vehicle is relatively stable, and it can be calibrated online if it meets the calibration conditions.
第二种情况,所述根据所述行驶信息,对所述车载雷达进行外参标定,包括:根据所述行驶路况信息,确定所述行驶道路是直行道路和/或所述行驶道路周围存在目标参照物时,对所述车载雷达进行外参标定。In the second case, the performing external parameter calibration on the vehicle radar according to the driving information includes: determining, according to the driving road condition information, that the driving road is a straight road and/or that there are targets around the driving road When a reference object is used, external parameter calibration is performed on the vehicle-mounted radar.
也就是说,车辆在直行道路上行驶和/或行驶道路周围存在目标参照物时,对车载雷达的外参标定,实现车载雷达的在线标定,效率较高。而且,车辆使用行驶道路周围的目标参考物进行标定,标定出的外参更适合真实情况,准确性较高。That is to say, when the vehicle is driving on the straight road and/or there are target reference objects around the driving road, the external parameters of the vehicle-mounted radar are calibrated to realize the online calibration of the vehicle-mounted radar, and the efficiency is high. Moreover, the vehicle is calibrated using the target reference around the driving road, and the calibrated external parameters are more suitable for the real situation and have higher accuracy.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;所述方法还包括:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the method further includes: determining the vehicle-mounted radar according to a target reference around the driving road At least one of the rotation angle or the translation distance of the radar.
也就是说,车辆在行驶过程中使用行驶道路周围的目标参考物进行标定,通过这种方式,不仅可以实现在线标定,而且标定出的外参更适合真实情况,准确性较高。That is to say, the vehicle is calibrated using the target reference objects around the driving road during the driving process. In this way, not only online calibration can be achieved, but the calibrated external parameters are more suitable for the real situation and have higher accuracy.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
也就是说,俯仰角、滚转角和偏航角可以使用不同的目标参考物进行标定,准确性较高。That is to say, the pitch angle, roll angle and yaw angle can be calibrated using different target reference objects with high accuracy.
举例来说,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。For example, the objects disposed along the travel road include: first type objects disposed along the travel road and parallel to the ground of the travel road, and/or along the travel road and the second type of objects arranged perpendicular to the ground of the driving road; the first type of objects includes: at least one of a road edge, a guardrail, a green belt or a lane line; the second type of objects includes: trees, At least one of a sign or street light.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
通过这种方式确定的偏航角较为准确。因为一种标定方案是根据地面在雷达坐标系中的点云数据的第一法向量和地面的标准法向量之间的偏差,确定雷达坐标系相对于车辆坐标系的旋转矩阵R,然后,根据旋转矩阵R可以得到偏航角。但是由于偏航角的变化对第一法向量和地面的标准法向量之间的偏差无影响,换句话说,偏航角的变化不会导致旋转矩阵R的变化。因此,通过R反推偏航角不准确。而本申请实施例通过沿着行驶道路设置的物体,确定偏航角,提升对偏航角的标定准确性。The yaw angle determined in this way is more accurate. Because a calibration scheme is to determine the rotation matrix R of the radar coordinate system relative to the vehicle coordinate system according to the deviation between the first normal vector of the point cloud data of the ground in the radar coordinate system and the standard normal vector of the ground, and then, according to The rotation matrix R can get the yaw angle. However, since the change of the yaw angle has no effect on the deviation between the first normal vector and the standard normal vector of the ground, in other words, the change of the yaw angle will not cause the change of the rotation matrix R. Therefore, pushing back the yaw angle by R is not accurate. However, in the embodiment of the present application, the yaw angle is determined by the objects arranged along the driving road, and the calibration accuracy of the yaw angle is improved.
在一种可能的设计中,所述方法还包括:获取所述车载雷达的外参;确定所述行驶道路周围的目标平面物体;使用所述外参将所述目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;如果所述第二点云数据的平整度不满足第一条件,调整所述外参。In a possible design, the method further includes: acquiring external parameters of the vehicle-mounted radar; determining a target plane object around the driving road; using the external parameters to place the target plane object in the vehicle-mounted radar coordinate system Convert the corresponding first point cloud data in the inertial coordinate system to the second point cloud data in the inertial coordinate system; if the flatness of the second point cloud data does not meet the first condition, adjust the external parameter.
也就是说,本申请实施例中,车辆可以验证车载雷达的外参是否准确,比如如果使用外参将目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据后,第二点云数据的平整度不满足第一条件,说明外参不准确,则调整外参。 这种方式可以验证外参是否准确,提升外参标定的准确性。That is to say, in this embodiment of the present application, the vehicle can verify whether the external parameters of the vehicle-mounted radar are accurate. After the second point cloud data, the flatness of the second point cloud data does not meet the first condition, indicating that the external parameters are not accurate, then adjust the external parameters. This method can verify whether the external parameters are accurate and improve the accuracy of external parameter calibration.
在一种可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;或者,所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。In a possible design, the flatness of the second point cloud data does not satisfy the first condition, including: any two reflection points of different transmit beams in the second point cloud data on the target plane object The first vector between is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are in the The included angle between the first vector between the reflection points on the target plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
需要说明的是,由于第二点云数据是目标平面物体在惯性坐标系中的坐标。如果第二点云数据的平整度较好,说明使用车载雷达当前外参经一系列的坐标转换得到的第二点云数据是平整的,比较符合真实情况,说明所述当前外参是比较准确的。如果第二点云数据的平整度较差,说明使用当前外参经一系列的坐标转换得到的第二点云数据不平整,不符合真实情况(因为真实情况是目标平面物体的表面是平整的),说明所述当前外参是不准确的,需要对车载雷达的外参进行标定。通过这种方式,能够准确的判断当前外参是否准确,准确性较高。It should be noted that, since the second point cloud data is the coordinates of the target plane object in the inertial coordinate system. If the flatness of the second point cloud data is good, it means that the second point cloud data obtained by using the current external parameters of the vehicle radar through a series of coordinate transformations is flat, which is more in line with the real situation, indicating that the current external parameters are relatively accurate of. If the flatness of the second point cloud data is poor, it means that the second point cloud data obtained through a series of coordinate transformations using the current external parameters is not flat and does not conform to the real situation (because the real situation is that the surface of the target plane object is flat ), indicating that the current external parameters are inaccurate, and the external parameters of the vehicle radar need to be calibrated. In this way, it can be accurately judged whether the current external parameter is accurate, and the accuracy is high.
在一种可能的设计中,所述调整所述外参,包括:基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。In a possible design, the adjusting the external parameter includes: generating an objective function based on the external parameter, where the objective function is used to describe the angle between the first vector and the normal vector , or, the objective function is used to describe the projection distance of the normal vector on the first vector; within a preset extrinsic parameter adjustment range, search for an extrinsic parameter that makes the objective function reach a minimum value.
也就是说,本申请实施例中,如果确定外参不准确,可以生成目标函数,寻找外参的最优值,提升外参的准确性。That is to say, in the embodiment of the present application, if it is determined that the external parameter is inaccurate, an objective function can be generated to find the optimal value of the external parameter to improve the accuracy of the external parameter.
第二方面,提供一种车载雷达的外参标定方法,应用于车辆,所述车辆包括雷达。该方法包括:获取所述车载雷达的外参,使用所述外参将所述车辆行驶道路周围的目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;如果所述第二点云数据的平整度不满足第一条件,对所述外参进行标定。In a second aspect, a method for calibrating external parameters of a vehicle-mounted radar is provided, which is applied to a vehicle, and the vehicle includes a radar. The method includes: acquiring external parameters of the vehicle-mounted radar, and using the external parameters to convert the first point cloud data corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system into the first point cloud data in the inertial coordinate system Two point cloud data; if the flatness of the second point cloud data does not meet the first condition, the external parameter is calibrated.
在一些可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;In some possible designs, the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object The first vector of and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data are not perpendicular;
或者,or,
所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
对所述外参进行标定的一种方式为:所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;所述方法还包括:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。One way of calibrating the external parameter is: the external parameter includes at least one of the rotation angle or the translation distance of the vehicle radar; the method further includes: according to the target reference around the driving road , and determine at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
其中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少 一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road; the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines; the second type of objects includes: trees, signs or at least one of street lights.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
对所述外参进行标定的另一种方式为:基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。Another way of calibrating the external parameter is: based on the external parameter, generate an objective function, and the objective function is used to describe the angle between the first vector and the normal vector, or, The objective function is used to describe the projection distance of the normal vector on the first vector; within a preset extrinsic parameter adjustment range, search for an extrinsic parameter that makes the objective function reach a minimum value.
第三方面,还提供一种车载雷达的外参标定方法,应用于车辆,所述车辆包括雷达。该方法包括:In a third aspect, a method for calibrating external parameters of a vehicle-mounted radar is also provided, which is applied to a vehicle, and the vehicle includes a radar. The method includes:
确定车辆行驶道路周围的目标参考物;Determine the target reference around the road where the vehicle travels;
根据所述目标参考物,对所述车载雷达的外参进行标定。According to the target reference, the external parameters of the vehicle radar are calibrated.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;根据所述目标参考物,对所述车载雷达的外参进行标定,包括:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
其中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road; the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines; the second type of objects includes: trees, signs or at least one of street lights.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
第四方面,还提供一种车载雷达的外参标定方法,应用于车辆,所述车辆包括雷达。该方法包括:获取所述车载雷达的外参;使用所述外参将所述车辆行驶道路周围的目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;生成目标函数,所述目标函数用于描述所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。In a fourth aspect, a method for calibrating external parameters of a vehicle-mounted radar is also provided, which is applied to a vehicle, and the vehicle includes a radar. The method includes: acquiring external parameters of the vehicle-mounted radar; using the external parameters to convert the first point cloud data corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system into the first point cloud data in the inertial coordinate system Two point cloud data; generate an objective function, the objective function is used to describe the first vector and the second point between the reflection points of any two different emission beams on the target plane object in the second point cloud data the angle between the normal vectors of the point cloud data corresponding to any one or more transmit beams in the point cloud data, or the objective function is used to describe the projection distance of the normal vector on the first vector; Within the preset external parameter adjustment range, find the external parameter that makes the objective function reach the minimum value.
在一种可能的设计中,寻找使得所述目标函数达到最小值的外参之前,所述方法还包括:确定所述第二点云数据的平整度不满足第一条件。In a possible design, before searching for an external parameter that makes the objective function reach a minimum value, the method further includes: determining that the flatness of the second point cloud data does not satisfy the first condition.
在一些可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述 第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;或者,In some possible designs, the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object The first vector of the second point cloud data is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or,
所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
在一种可能的设计中,获取所述车载雷达的外参,包括:确定车辆行驶道路周围的目标参考物;根据所述目标参考物,对所述车载雷达的外参进行标定。In a possible design, acquiring the external parameters of the vehicle-mounted radar includes: determining a target reference around the road where the vehicle travels; and calibrating the external parameters of the vehicle-mounted radar according to the target reference.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;根据所述目标参考物,对所述车载雷达的外参进行标定,包括:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
其中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road; the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines; the second type of objects includes: trees, signs or at least one of street lights.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
第五方面,提供一种车载雷达的外参标定装置。该装置可以是车辆或处于车辆内的装置(比如芯片或芯片系统)。所述装置包括:获取单元,获取所述车辆的行驶信息,所述行驶信息包括行驶状态信息或行驶路况信息中的至少一种;其中,所述行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个;所述行驶路况信息包括所述车辆的行驶道路或所述行驶道路周围的物体中的至少一项;处理单元,根据所述行驶信息,对所述车载雷达进行外参标定。In a fifth aspect, an external parameter calibration device for a vehicle-mounted radar is provided. The device may be a vehicle or a device within a vehicle (such as a chip or a system-on-chip). The device includes: an acquisition unit for acquiring driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle or At least one of yaw angular velocity; the driving road condition information includes at least one of the driving road of the vehicle or the objects around the driving road; the processing unit, according to the driving information, performs external processing on the vehicle radar; parameter calibration.
在一种可能的设计中,所述处理单元具体用于:根据所述行驶状态信息,确定满足如下至少一个条件时,对所述车载雷达进行外参标定,其中,所述条件包括:In a possible design, the processing unit is specifically configured to: according to the driving state information, when it is determined that at least one of the following conditions is satisfied, perform external parameter calibration on the vehicle radar, wherein the conditions include:
所述速度小于第一阈值、所述车辆均速行驶、所述加速度小于第二阈值、所述偏航角处于预设范围内、或所述偏航角速度小于第三阈值。The speed is less than a first threshold, the vehicle is traveling at an average speed, the acceleration is less than a second threshold, the yaw angle is within a preset range, or the yaw angle speed is less than a third threshold.
在一种可能的设计中,所述处理单元具体用于:根据所述行驶路况信息,确定所述行驶道路是直行道路和/或所述行驶道路周围存在目标参照物时,对所述车载雷达进行外参标定。In a possible design, the processing unit is specifically configured to: determine, according to the driving road condition information, that the driving road is a straight road and/or when there is a target reference object around the driving road, perform the detection on the vehicle radar Perform external parameter calibration.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;所述处理单元还用于:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the processing unit is further configured to: determine, according to the target reference around the driving road, the at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
在一种可能的设计中,所述处理单元在用于根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度时,具体用于:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体, 确定所述车载雷达的偏航角。In a possible design, when the processing unit is used to determine the rotation angle of the vehicle radar according to the target reference objects around the driving road, it is specifically used for: according to the ground or For a plane object parallel to the ground, the pitch angle and the roll angle of the vehicle-mounted radar are determined; and the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
在一种可能的设计中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;其中,所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。In a possible design, the objects disposed along the travel road include: first type objects disposed along the travel road and parallel to the ground of the travel road, and/or along the travel road The second type of object on the driving road and perpendicular to the ground of the driving road; wherein, the first type of object includes: at least one of a road edge, a guardrail, a green belt or a lane line; the second type of object Type objects include: at least one of trees, signs, or street lights.
在一种可能的设计中,所述处理单元在用于根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角时,具体用于:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, when the processing unit is used to determine the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road, it is specifically used for: according to the objects arranged along the driving road object, determine the road direction of the driving road, wherein the road direction satisfies y=C0+C1*x; wherein, C1 is used to indicate the road direction; C0 is used to describe the object and the radar coordinate system The distance between the origins, x and y are the coordinates of the object in the radar coordinate system; the yaw angle of the vehicle radar is determined according to the C1.
在一种可能的设计中,所述获取单元还用于:获取所述车载雷达的外参;所述处理单元还用于:使用所述外参将所述行驶道路周围的目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;如果所述第二点云数据的平整度不满足第一条件,调整所述外参。In a possible design, the acquisition unit is further configured to: acquire external parameters of the vehicle radar; the processing unit is further configured to: use the external parameters to record the target plane objects around the driving road on the vehicle The corresponding first point cloud data in the radar coordinate system is converted into the second point cloud data in the inertial coordinate system; if the flatness of the second point cloud data does not meet the first condition, the external parameter is adjusted.
在一种可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;或者,所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。In a possible design, the flatness of the second point cloud data does not satisfy the first condition, including: any two reflection points of different transmit beams in the second point cloud data on the target plane object The first vector between is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are in the The included angle between the first vector between the reflection points on the target plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
在一种可能的设计中,所述处理单元在调整所述外参时,具体用于:基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。In a possible design, when adjusting the external parameters, the processing unit is specifically configured to: generate an objective function based on the external parameters, where the objective function is used to describe the first vector and the method The included angle between the vectors, or the objective function is used to describe the projection distance of the normal vector on the first vector; within the preset external parameter adjustment range, find a value that makes the objective function reach the minimum value. External reference.
第六方面,提供一种车载雷达的外参标定装置。该装置可以是车辆,或车辆中的模块(比如芯片或芯片系统)所述车辆包括雷达。该装置包括:获取单元,用于获取所述车载雷达的外参;处理单元,用于使用所述外参将所述车辆行驶道路周围的目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;如果所述第二点云数据的平整度不满足第一条件,对所述外参进行标定。In a sixth aspect, an external parameter calibration device for a vehicle-mounted radar is provided. The device may be a vehicle, or a module (such as a chip or system-on-chip) in a vehicle that includes a radar. The device includes: an acquisition unit for acquiring external parameters of the vehicle-mounted radar; a processing unit for using the external parameters to obtain the first point corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system The cloud data is converted into second point cloud data in the inertial coordinate system; if the flatness of the second point cloud data does not meet the first condition, the external parameters are calibrated.
在一些可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;或者,所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。In some possible designs, the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object The first vector of the second point cloud data is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are at the target The included angle between the first vector between the reflection points on the plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
所述处理单元对所述外参进行标定的一种方式为:所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。One way for the processing unit to calibrate the external parameter is: the external parameter includes at least one of the rotation angle or the translation distance of the vehicle-mounted radar; according to the target reference around the driving road, determine At least one of the rotation angle or the translation distance of the vehicle radar.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰 角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
其中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road; the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines; the second type of objects includes: trees, signs or at least one of street lights.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
所述处理单元对所述外参进行标定的另一种方式为:基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。Another way for the processing unit to calibrate the external parameters is to generate an objective function based on the external parameters, where the objective function is used to describe the angle between the first vector and the normal vector , or, the objective function is used to describe the projection distance of the normal vector on the first vector; within a preset extrinsic parameter adjustment range, search for an extrinsic parameter that makes the objective function reach a minimum value.
第七方面,还提供一种车载雷达的外参标定装置。该装置可以是车辆,或车辆中的模块(比如芯片或芯片系统),所述车辆包括雷达。该装置包括:确定单元,用于确定车辆行驶道路周围的目标参考物;处理单元,用于根据所述目标参考物,对所述车载雷达的外参进行标定。In a seventh aspect, an external parameter calibration device for a vehicle-mounted radar is also provided. The device may be a vehicle, or a module (such as a chip or a system of chips) in a vehicle that includes a radar. The device includes: a determining unit for determining a target reference around the road where the vehicle travels; a processing unit for calibrating the external parameters of the vehicle-mounted radar according to the target reference.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;根据所述目标参考物,对所述车载雷达的外参进行标定,包括:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
其中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road; the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines; the second type of objects includes: trees, signs or at least one of street lights.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
第八方面,还提供一种车载雷达的外参标定装置。该装置可以是车辆,或车辆中的模块(比如芯片或芯片系统),所述车辆包括雷达。该装置包括:获取单元,用于获取所述车载雷达的外参;处理单元,用于使用所述外参将所述车辆行驶道路周围的目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;处理单元还用于生成目标函数,所述目标函数用于描述所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角,或者,所述目标函数用于描述所述法向量在 所述第一向量上的投影距离;处理单元还用于在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。In an eighth aspect, a device for calibrating external parameters of a vehicle-mounted radar is also provided. The device may be a vehicle, or a module (such as a chip or a system of chips) in a vehicle that includes a radar. The device includes: an acquisition unit for acquiring external parameters of the vehicle-mounted radar; a processing unit for using the external parameters to obtain the first point corresponding to the target plane object around the vehicle's driving road in the vehicle-mounted radar coordinate system The cloud data is converted into second point cloud data in the inertial coordinate system; the processing unit is further configured to generate an objective function, and the objective function is used to describe any two different emission beams in the second point cloud data on the target plane object The angle between the first vector between the reflection points on the second point cloud data and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data, or the objective function is used to describe the The projection distance of the normal vector on the first vector; the processing unit is further configured to search for the extrinsic parameter that makes the objective function reach the minimum value within the preset extrinsic parameter adjustment range.
在一种可能的设计中,寻找使得所述目标函数达到最小值的外参之前,所述方法还包括:确定所述第二点云数据的平整度不满足第一条件。In a possible design, before searching for an external parameter that makes the objective function reach a minimum value, the method further includes: determining that the flatness of the second point cloud data does not satisfy the first condition.
在一些可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;或者,In some possible designs, the flatness of the second point cloud data does not satisfy the first condition, including: in the second point cloud data, between any two reflection points of different transmit beams on the target plane object The first vector of the second point cloud data is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or,
所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
在一种可能的设计中,获取所述车载雷达的外参,包括:确定车辆行驶道路周围的目标参考物;根据所述目标参考物,对所述车载雷达的外参进行标定。In a possible design, acquiring the external parameters of the vehicle-mounted radar includes: determining a target reference around the road where the vehicle travels; and calibrating the external parameters of the vehicle-mounted radar according to the target reference.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;根据所述目标参考物,对所述车载雷达的外参进行标定,包括:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; according to the target reference, the external parameters of the vehicle-mounted radar are calibrated, including: according to the target reference The target reference around the driving road determines at least one of the rotation angle or the translation distance of the vehicle-mounted radar.
比如,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度,包括:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。For example, the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road includes: determining the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground The pitch angle and roll angle of the vehicle are determined; the yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
其中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the objects arranged along the driving road include: objects of the first type arranged along the driving road and parallel to the ground of the driving road, and/or, along the driving road and with The second type of objects vertically arranged on the ground of the driving road; the first type of objects includes: at least one of road edges, guardrails, green belts or lane lines; the second type of objects includes: trees, signs or at least one of street lights.
在一种可能的设计中,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, determining the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road includes: determining the road direction of the driving road according to the objects arranged along the driving road , where the road direction satisfies y=C0+C1*x; where C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, x and y are The coordinates of the object in the radar coordinate system; the yaw angle of the vehicle-mounted radar is determined according to the C1.
第九方面,还提供一种车载雷达的外参标定装置,包括存储器和一个或多个处理器;其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述处理器执行时,使得所述装置执行如上述第一方面至第四方面中任一方面所述的方法。In a ninth aspect, a device for calibrating external parameters of a vehicle-mounted radar is also provided, comprising a memory and one or more processors; wherein, the memory is used to store computer program codes, and the computer program codes include computer instructions; The computer instructions, when executed by the processor, cause the apparatus to perform the method of any one of the first to fourth aspects above.
第十方面,还提供一种车辆,车辆包括上述如上述第五方面至第十方面中任一方面所述的车载雷达外参标定装置。所述车载雷达外参标定装置比如可以是车辆中的处理模块,所述处理模块如车载处理器或电子控制单元(electronic control unit,ECU)等。According to a tenth aspect, a vehicle is also provided, which includes the above-mentioned device for calibrating external parameters of a vehicle-mounted radar according to any one of the fifth aspect to the tenth aspect. The vehicle-mounted radar external parameter calibration device may be, for example, a processing module in a vehicle, such as a vehicle-mounted processor or an electronic control unit (electronic control unit, ECU) or the like.
第十一方面,还提供一种计算机可读存储介质,包括计算机指令,当所述计算机指令在车载雷达的外参标定装置运行时,使得所述车载雷达的外参标定装置执行如上述第一方面至第四方面中任一方面所述的方法。In an eleventh aspect, a computer-readable storage medium is also provided, comprising computer instructions, when the computer instructions are executed in the external parameter calibration device of the vehicle-mounted radar, the external parameter calibration device of the vehicle-mounted radar is made to perform the above-mentioned first. The method of any of the aspects to the fourth aspect.
第十二方面,还提供一种计算机程序产品,当所述计算机程序产品在处理器上运行时,使得处理器执行如上述第一方面至第四方面中任一方面所述的方法。A twelfth aspect further provides a computer program product that, when the computer program product runs on a processor, causes the processor to perform the method according to any one of the first to fourth aspects above.
上述第二方面至第十二方面的有益效果,请参见第一方面的有益效果,不重复赘述。For the beneficial effects of the second aspect to the twelfth aspect, please refer to the beneficial effects of the first aspect, and details will not be repeated.
附图说明Description of drawings
图1为本申请一实施例提供的应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请一实施例提供的雷达坐标系、车辆坐标系、以及惯性坐标系的示意图;2 is a schematic diagram of a radar coordinate system, a vehicle coordinate system, and an inertial coordinate system provided by an embodiment of the present application;
图3为本申请一实施例提供的雷达坐标系与车辆坐标系之间的相对关系的示意图;3 is a schematic diagram of a relative relationship between a radar coordinate system and a vehicle coordinate system provided by an embodiment of the present application;
图4为本申请一实施例提供的车辆的一种示例性的功能框图;FIG. 4 is an exemplary functional block diagram of a vehicle according to an embodiment of the present application;
图5为本申请一实施例提供的车载雷达的标定方法的一种示例性的流程示意图;FIG. 5 is an exemplary schematic flowchart of a method for calibrating a vehicle-mounted radar provided by an embodiment of the present application;
图6为本申请一实施例提供的车载雷达的标定方法的另一种示例性的流程示意图;FIG. 6 is another exemplary schematic flowchart of a calibration method for a vehicle-mounted radar provided by an embodiment of the present application;
图7为本申请一实施例提供的判断点云平整度的示意图;7 is a schematic diagram of judging the flatness of a point cloud according to an embodiment of the present application;
图8为本申请一实施例提供的车载雷达的标定方法的又一种示例性的流程示意图;FIG. 8 is another exemplary schematic flowchart of a calibration method for a vehicle-mounted radar provided by an embodiment of the present application;
图9为本申请一实施例提供的车辆采集的图像的示意图;FIG. 9 is a schematic diagram of an image collected by a vehicle according to an embodiment of the present application;
图10为本申请一实施例提供的车载雷达外参标定装置的一种示例性的结构示意图;FIG. 10 is a schematic structural diagram of an exemplary structure of a vehicle-mounted radar external parameter calibration device provided by an embodiment of the application;
图11为本申请一实施例提供的车载雷达外参标定装置的又一种示例性的结构示意图。FIG. 11 is a schematic structural diagram of another exemplary structure of a vehicle-mounted radar external parameter calibration device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请更容易被理解,下面首先对本申请实施例涉及的一些基本概念进行解释。需要说明的是,这些解释是为了让本申请实施例更容易被理解,而不应该视为对本申请所要求的保护范围的限定。In order to make the present application easier to understand, some basic concepts involved in the embodiments of the present application are first explained below. It should be noted that these explanations are for the purpose of making the embodiments of the present application easier to understand, and should not be regarded as limitations on the protection scope claimed by the present application.
(1)车载雷达(1) Vehicle radar
车载雷达是指设置在车辆上的雷达,可以是车载波雷达,比如,激光雷达、微波雷达、或者也可以是毫米波雷达等等。车载雷达能够实现障碍物测量、碰撞预测、自适应巡航控制等功能,可以有效地降低驾驶难度、减少驾驶员负担以及减少事故的发生率,因而在汽车领域得到了广泛应用。比如,以车载雷达是车载波雷达为例,车载波雷达可以探测车辆与目标(比如车辆周围的物体)之间的相对距离、相对速度以及角度等信息,然后根据得到的信息进行目标跟踪和识别分类,经合理决策后,以声、光及触觉等多种方式告知或警告驾驶员,或者及时对汽车做出主动干预,从而保证驾驶过程的安全性和舒适性,减少事故发生几率。Vehicle radar refers to a radar set on a vehicle, which can be a vehicle carrier radar, such as a lidar, a microwave radar, or a millimeter-wave radar. Vehicle-mounted radar can realize functions such as obstacle measurement, collision prediction, adaptive cruise control, etc., which can effectively reduce the difficulty of driving, reduce the burden on drivers and reduce the incidence of accidents, so it has been widely used in the automotive field. For example, taking the vehicle radar as a vehicle carrier radar as an example, the vehicle carrier radar can detect the relative distance, relative speed and angle between the vehicle and the target (such as objects around the vehicle), and then track and identify the target according to the obtained information. After a reasonable decision, the driver will be informed or warned in various ways such as sound, light and touch, or the car will be actively intervened in time, so as to ensure the safety and comfort of the driving process and reduce the probability of accidents.
下面介绍车载雷达探测目标(比如车辆周围的物体)的原理。The following describes the principle of vehicle radar detection of targets (such as objects around the vehicle).
车载雷达可包括发射机和接收机。发射机用于发射电磁波能量束,电磁波经过收发转换开关传给天线,天线再将电磁波沿着某一方向和角度发射到空中,若在沿电磁波能量束的发射方向的一定距离内存在目标,则该电磁波能量束被目标反射,电磁波遇到目标对象会有一部分能量得到反射并被车载波雷达的天线接收到,进而通过收发转换开关传给接收机。接收机用于根据接收到的回波信号和发射的电磁波能量束,确定出与目标相关的信息。例如与目标的距离、目标的点云密度等。雷达传感器通过发射机发射电磁波能量束,进一步经信号处理机处理得到目标对象的相对距离、角度、相对速度。Vehicle radars may include transmitters and receivers. The transmitter is used to transmit the electromagnetic wave energy beam. The electromagnetic wave is transmitted to the antenna through the transceiver switch. The antenna then transmits the electromagnetic wave into the air along a certain direction and angle. If there is a target within a certain distance along the emission direction of the electromagnetic wave energy beam, then The electromagnetic wave energy beam is reflected by the target, and when the electromagnetic wave encounters the target object, a part of the energy will be reflected and received by the antenna of the vehicle carrier radar, and then transmitted to the receiver through the transceiver switch. The receiver is used to determine the information related to the target according to the received echo signal and the transmitted electromagnetic wave energy beam. For example, the distance to the target, the point cloud density of the target, etc. The radar sensor transmits an electromagnetic wave energy beam through the transmitter, and further processes the signal processor to obtain the relative distance, angle and relative speed of the target object.
(2)车载激光雷达(2) Vehicle LiDAR
车载激光雷达是车载雷达的一种。车载激光雷达中有发射器和接收器。发射器发射出激光光束,激光光束遇到目标(比如车辆周围的物体)后,经过反射,返回至接收器。发送时间和接收时间的间隔乘以光速,再除以2,就可以计算出发射器与目标之间的距离。Vehicle lidar is a type of vehicle radar. Vehicle lidars have transmitters and receivers. The transmitter emits a laser beam, and after the laser beam encounters a target (such as an object around the vehicle), it is reflected and returned to the receiver. Multiplying the interval between transmit and receive times by the speed of light and dividing by 2, the distance between the transmitter and the target can be calculated.
车载激光雷达包括单束激光发射器、四线激光雷达、十六线激光雷达、三十二线激光 雷达等等。以单束激光发射器为例,单束激光发射器可以在激光雷达内部进行匀速的旋转,每旋转一个小角度即发射一次激光,轮巡一定的角度后,就生成了一帧完整的数据。因此,单线激光雷达的数据可以看作是同一高度的一排点阵。四线激光雷达将四个激光发射器进行轮询,一个轮询周期后,得到一帧的激光点云数据,所述激光点云数据可以组成面状信息,就能够获取障碍物的高度信息。因此,激光发射器的数量越多,效率越高得到的信息越丰富。Vehicle lidar includes single-beam laser transmitter, four-line laser radar, sixteen-line laser radar, thirty-two-line laser radar and so on. Taking a single-beam laser transmitter as an example, the single-beam laser transmitter can rotate at a constant speed inside the lidar, and emits a laser every time it rotates a small angle. After a certain angle, a complete frame of data is generated. Therefore, the data of single-line lidar can be regarded as a row of lattices at the same height. Four-line LiDAR polls four laser transmitters. After one polling period, a frame of laser point cloud data is obtained. The laser point cloud data can be composed of planar information, and the height information of obstacles can be obtained. Therefore, the higher the number of laser emitters, the higher the efficiency and the richer the information obtained.
(3)雷达坐标系、车辆坐标系、惯性坐标系(3) Radar coordinate system, vehicle coordinate system, inertial coordinate system
请参见图2中的(a)所示,为车辆坐标系的示意图。车辆坐标系的原点可以处于车上任一位置(比如质心、车后轴中点下方的地面)上,x轴沿车头向前,z轴垂直于车底盘向上,根据右手坐标系的定义,自车面向前方时,y轴指向车辆左侧。Please refer to (a) in FIG. 2 , which is a schematic diagram of the vehicle coordinate system. The origin of the vehicle coordinate system can be at any position on the vehicle (such as the center of mass, the ground below the midpoint of the rear axle of the vehicle), the x-axis is forward along the front of the vehicle, and the z-axis is perpendicular to the chassis of the vehicle. When facing forward, the y-axis points to the left of the vehicle.
请参见图2中的(b)所示,为雷达坐标系的示意图。雷达坐标系的原点处于雷达在车辆上的安装位置。x轴、y轴、z轴可以有多种的定义方式,比如是车载雷达的厂商设计好的,而且,不同厂商的设计而不同。一般来说,雷达坐标系与车辆坐标系之间存在旋转和平移的关系。Please refer to (b) in Figure 2, which is a schematic diagram of the radar coordinate system. The origin of the radar coordinate system is at the location where the radar is installed on the vehicle. The x-axis, y-axis, and z-axis can be defined in various ways. For example, they are designed by the manufacturer of the vehicle-mounted radar, and the designs of different manufacturers are different. Generally speaking, there is a rotation and translation relationship between the radar coordinate system and the vehicle coordinate system.
请参见图2中的(c)所示,为惯性坐标系的示意图。惯性坐标系,又称为公共坐标系、世界坐标系或者全局坐标系等,其坐标原点是空间中一个固定不变的点,是绝对坐标系,空间中所有物体都可以以惯性坐标系为基准来确定该物体的位置。示例性的,公共坐标系可以是以东、北、天为X轴、Y轴、Z轴的世界坐标系。Please refer to (c) in FIG. 2 , which is a schematic diagram of the inertial coordinate system. Inertial coordinate system, also known as public coordinate system, world coordinate system or global coordinate system, etc., its coordinate origin is a fixed point in space and is an absolute coordinate system. All objects in space can be based on inertial coordinate system. to determine the location of the object. Exemplarily, the common coordinate system may be a world coordinate system with east, north, and sky as the X-axis, Y-axis, and Z-axis.
一般,雷达坐标系与车辆坐标系之间存在旋转和平移的关系,而且车辆坐标系与惯性坐标系之间也存在旋转和平移的关系。车辆在行驶过程中,为了保证驾驶安全,车辆需要知道真实环境中周围物体(比如车辆前方的障碍物)所在的位置,也就是说,需要得到车辆周围的物体在惯性坐标系中的位置坐标。为此,一种解决方案是,车载雷达可以感知周围物体的位置,将该位置表示在雷达坐标系中。由于雷达坐标系与车辆坐标系、惯性坐标系之间存在旋转和平移关系,所以目标在雷达坐标系中的坐标与在真实世界中的坐标是有差异的,所以可以将目标在雷达坐标系中的坐标转换到车辆坐标系中,然后转换到惯性坐标系中即可确定目标在真实环境中的位置。应理解,一个坐标系转换到另一个坐标系的过程中,需要使用到这两个坐标系之间的相对位置关系(比如旋转和平移关系)。因此,要实现雷达坐标系到惯性坐标系的转换,需要使用:1,雷达坐标系与车辆坐标系之间的相对位置关系,该相对位置关系用于坐标从雷达坐标系转换到车辆坐标系。2,车辆坐标系与惯性坐标系之间的相对位置关系2,该相对位置关系2用于坐标从车辆坐标系转换到世界坐标系。其中,雷达坐标系到车辆坐标系转换时需要使用的参数称为车载雷达的外部参数。Generally, there is a relationship of rotation and translation between the radar coordinate system and the vehicle coordinate system, and there is also a relationship of rotation and translation between the vehicle coordinate system and the inertial coordinate system. During the driving process of the vehicle, in order to ensure driving safety, the vehicle needs to know the location of surrounding objects (such as obstacles in front of the vehicle) in the real environment, that is, the position coordinates of the objects around the vehicle in the inertial coordinate system need to be obtained. One solution for this is that the on-board radar can sense the position of surrounding objects and represent that position in the radar coordinate system. Due to the rotation and translation relationship between the radar coordinate system, the vehicle coordinate system and the inertial coordinate system, the coordinates of the target in the radar coordinate system are different from those in the real world, so the target can be placed in the radar coordinate system. The coordinates are converted to the vehicle coordinate system, and then converted to the inertial coordinate system to determine the position of the target in the real environment. It should be understood that, in the process of converting one coordinate system to another coordinate system, the relative positional relationship (such as rotation and translation relationship) between the two coordinate systems needs to be used. Therefore, to realize the conversion from the radar coordinate system to the inertial coordinate system, it is necessary to use: 1. The relative positional relationship between the radar coordinate system and the vehicle coordinate system, which is used to convert the coordinates from the radar coordinate system to the vehicle coordinate system. 2. The relative positional relationship 2 between the vehicle coordinate system and the inertial coordinate system, the relative positional relationship 2 is used for coordinate transformation from the vehicle coordinate system to the world coordinate system. Among them, the parameters that need to be used when the radar coordinate system is converted to the vehicle coordinate system are called the external parameters of the vehicle radar.
(4)车载雷达的外部参数(简称外参)(4) External parameters of vehicle radar (referred to as external parameters)
如前面所述,雷达坐标系与车辆坐标系存在相对位置关系,所述相对位置关系包括旋转与平移关系。所述相对位置关系被称为车载雷达的外部参数,也就是说,车载雷达的外部参数包括车载雷达的雷达坐标系相对于车辆坐标系的旋转和平移关系。As mentioned above, the radar coordinate system and the vehicle coordinate system have a relative positional relationship, and the relative positional relationship includes a rotation and translation relationship. The relative position relationship is called the external parameters of the vehicle-mounted radar, that is to say, the external parameters of the vehicle-mounted radar include the rotation and translation relationship of the radar coordinate system of the vehicle-mounted radar with respect to the vehicle coordinate system.
请参见图3所示,为雷达坐标系与车辆坐标系之间的相对位置关系的一种示意图。如图3所示,雷达坐标系的原点定义为O L,其坐标系为O L-X LY LZ L。车辆坐标系的原点定义为O V,其坐标系为O V-X VY VZ V。车载雷达的外部参数包括雷达坐标系相对于车辆坐标系的旋转和平移关系,其中,旋转关系用旋转角度描述,平移关系用平移距离描述。 Please refer to FIG. 3 , which is a schematic diagram of the relative positional relationship between the radar coordinate system and the vehicle coordinate system. As shown in Fig. 3, the origin of the radar coordinate system is defined as OL , and its coordinate system is OL -X L Y L Z L. The origin of the vehicle coordinate system is defined as O V , and its coordinate system is O V -X V Y V Z V . The external parameters of the vehicle-mounted radar include the rotation and translation relationship of the radar coordinate system relative to the vehicle coordinate system, wherein the rotation relationship is described by the rotation angle, and the translation relationship is described by the translation distance.
雷达坐标系相对于车辆坐标系的旋转角度可以用三个姿态角描述,即俯仰角β(pitch),偏航角γ(yaw),以及滚转角α(roll)。其中,俯仰角β(pitch)是指绕Y L轴逆时针旋转的角度;偏航角γ(yaw)是指绕Z L轴逆时针旋转的角度;滚转角α(roll)是指绕X L轴逆时针旋转的角度。换句话说,雷达坐标系O L-X LY LZ L经过绕Z L轴旋转-γ、绕Y L轴旋转-β,然后绕X L轴旋转-α后,其坐标轴与车辆坐标轴O V-X VY VZ V中三轴的方向相同。其中-γ是指与γ相反方向,同理,-β与β方向相反,-α与α方向相反。 The rotation angle of the radar coordinate system relative to the vehicle coordinate system can be described by three attitude angles, namely the pitch angle β (pitch), the yaw angle γ (yaw), and the roll angle α (roll). Among them, the pitch angle β (pitch) refers to the counterclockwise rotation angle around the Y L axis; the yaw angle γ (yaw) refers to the counterclockwise rotation angle around the Z L axis; the roll angle α (roll) refers to the rotation angle around the XL axis The angle by which the axis is rotated counterclockwise. In other words, after the radar coordinate system O L -X L Y L Z L is rotated around the Z L axis by -γ, around the Y L axis by -β, and then rotated around the X L axis by -α, its coordinate axis is the same as the vehicle coordinate axis. The directions of the three axes in O V -X V Y V Z V are the same. Where -γ refers to the opposite direction to γ, in the same way, -β is opposite to the direction of β, and -α is opposite to the direction of α.
雷达坐标系相对于车辆坐标系的平移距离可以使用三个平移距离描述,即,Δx,Δy,Δz。其中,Δx为雷达坐标系坐标原点O L到车辆坐标系坐标原点O V的距离在x轴方向上的投影值。Δy为雷达坐标系坐标原点O L到车辆坐标系坐标原点O V的距离在y轴方向上的投影值。Δz为雷达坐标系坐标原点O L到车辆坐标系坐标原点O V距离在z轴方向上的投影值。也就是说,将雷达坐标系坐标原点O L在x轴上平移-Δx,在y轴上平移-Δy,在z轴上平移-Δz之后,雷达坐标系坐标原点O L与车辆坐标系。其中,-Δx是指与Δx方向相反,-Δy与Δy方向相反,-Δz与Δz方向相反。 The translation distance of the radar coordinate system relative to the vehicle coordinate system can be described using three translation distances, ie, Δx, Δy, Δz. Among them, Δx is the projection value on the x-axis direction of the distance from the origin of the coordinates of the radar coordinate system OL to the origin of the coordinates of the vehicle coordinate system OV. Δy is the projection value on the y-axis direction of the distance from the origin of the coordinates of the radar coordinate system OL to the origin of the coordinates of the vehicle coordinate system OV. Δz is the projection value in the z -axis direction of the distance from the origin of the coordinates of the radar coordinate system OL to the origin of the coordinates of the vehicle coordinate system OV. That is to say, after the radar coordinate system coordinate origin OL is translated on the x-axis by -Δx, on the y-axis by -Δy, and on the z-axis by -Δz, the radar coordinate system coordinate origin OL is connected with the vehicle coordinate system. Among them, -Δx refers to the opposite direction to Δx, -Δy to the opposite direction to Δy, and -Δz to the opposite direction to Δz.
因此,在确定雷达坐标系相对于车辆坐标系的旋转角度(包括三个姿态角)和平移距离之后,可以使用所述旋转角度和平移距离将目标(如车辆周围的物体)在雷达坐标系中的坐标转换到车辆坐标系中。由于所述旋转角度和平移距离统称为车载雷达的外部参数,所以,确定雷达坐标系相对于车辆坐标系的旋转角度和平移距离的过程可以称为车载雷达的外部参数的标定过程,所述标定可以理解为确定、获取、计算等。Therefore, after determining the rotation angle (including three attitude angles) and translation distance of the radar coordinate system relative to the vehicle coordinate system, the rotation angle and translation distance can be used to place a target (such as an object around the vehicle) in the radar coordinate system The coordinates are converted to the vehicle coordinate system. Since the rotation angle and translation distance are collectively referred to as the external parameters of the vehicle-mounted radar, the process of determining the rotation angle and translation distance of the radar coordinate system relative to the vehicle coordinate system can be called the calibration process of the external parameters of the vehicle-mounted radar. It can be understood as determining, obtaining, calculating, etc.
(5)车载雷达的外参标定(5) External parameter calibration of vehicle radar
车载雷达的外参标定是指确定车载雷达的外部参数的过程。如前文所述,车载雷达的外部参数包括雷达坐标系相对于车辆坐标系的旋转角度和平移距离,所以,车载雷达的外参标定过程可以理解为确定雷达坐标系相对于车辆坐标系的旋转角度(包括三个姿态角)和平移距离的过程。The external parameter calibration of the vehicle radar refers to the process of determining the external parameters of the vehicle radar. As mentioned above, the external parameters of the vehicle radar include the rotation angle and translation distance of the radar coordinate system relative to the vehicle coordinate system. Therefore, the external parameter calibration process of the vehicle radar can be understood as determining the rotation angle of the radar coordinate system relative to the vehicle coordinate system. (including three attitude angles) and the process of translation distance.
前面提到过,车载雷达的外部参数所是从雷达坐标系中的坐标到车辆坐标系转换过程中需要使用到的重要参数。如果车载雷达的外部参数标定不准确,那么无法得到目标在车辆坐标系中的准确坐标,也就无法得到目标在惯性坐标系中的准确位置。即,车辆无法确定周围物体的真实位置,会影响车辆的安全驾驶。比如,由于车载雷达的外部参数不准确导致车辆经过一系列坐标转换后确定前方物体距离车辆2m,但实际上前方物体距离车辆仅有1m,容易出现危险,无法保证驾驶安全。As mentioned earlier, the external parameters of the vehicle radar are the important parameters that need to be used in the process of converting from the coordinates in the radar coordinate system to the vehicle coordinate system. If the calibration of the external parameters of the vehicle radar is not accurate, the exact coordinates of the target in the vehicle coordinate system cannot be obtained, and the accurate position of the target in the inertial coordinate system cannot be obtained. That is, the vehicle cannot determine the real position of the surrounding objects, which will affect the safe driving of the vehicle. For example, due to the inaccurate external parameters of the on-board radar, the vehicle determines that the object in front is 2m away from the vehicle after a series of coordinate transformations, but in fact the object in front is only 1m away from the vehicle, which is prone to danger and cannot guarantee driving safety.
目前存在车载外参的标定方法,比如返厂标定,这种方式比较繁琐,而且返厂标定期间车载雷达无法正常使用,影响用户体验。At present, there are calibration methods for vehicle-mounted external parameters, such as return-to-factory calibration. This method is cumbersome, and the vehicle-mounted radar cannot be used normally during the return-to-factory calibration, which affects the user experience.
本申请提供一种车载雷达的外参标定方法。具体来说,根据车辆的行驶信息,对车载雷达的外参进行标定。其中,车辆的行驶信息包括行驶路况信息或行驶状态信息中的至少一种。行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个。行驶路况信息包括所述车辆的行驶道路或所述行驶道路周围的物体中的至少一项。也就是说,在车辆行驶的过程中就可以完成对车载雷达的外参标定,无需返厂标定,比较便捷,用户体验较好。举例来说,假设车载雷达当前的外参是外参1,车辆在行驶过程中,如果根据行驶信息,对车载雷达的外参进行标定,那么行驶一段时间之后,车载雷达的外参经过标定发生变化,比如由外参1变化为外参2,那么之后车辆使用外参2进行计算(比如确定目标在 惯性坐标系下的坐标)。也就是说,在车辆行驶过程中完成对车载雷达的外参的标定。The present application provides an external parameter calibration method for a vehicle-mounted radar. Specifically, the external parameters of the vehicle radar are calibrated according to the driving information of the vehicle. Wherein, the driving information of the vehicle includes at least one of driving road condition information or driving state information. The traveling state information includes at least one of speed, acceleration, yaw angle, or yaw angular velocity. The driving road condition information includes at least one of a driving road of the vehicle or objects around the driving road. That is to say, the external parameter calibration of the on-board radar can be completed while the vehicle is running, without the need to return to the factory for calibration, which is more convenient and has a better user experience. For example, assuming that the current external parameter of the on-board radar is external parameter 1, when the vehicle is driving, if the external parameters of the on-board radar are calibrated according to the driving information, after a period of driving, the external parameters of the on-board radar will be calibrated. Change, for example, from external parameter 1 to external parameter 2, then the vehicle uses external parameter 2 for calculation (such as determining the coordinates of the target in the inertial coordinate system). That is to say, the calibration of the external parameters of the vehicle radar is completed during the driving process of the vehicle.
其中,车辆在行驶过程中完成对车载雷达的外参标定可以理解为在线标定,在线标定可以理解为在车载雷达运行过程中或在车载系统运行过程中完成标定,换句话说,在外参标定过程中车载雷达处于在线状态(或者,工作状态或运行状态)。区别于在线标定的标定方式为离线标定,比如返厂标定,在此期间车载雷达无法正常使用,即处于离线状态。因此,本申请实施例提供的车载雷达的外参标定方式更实用,而且能够实时的在线标定,提升确定目标(比如,车载周围的物体)位置的准确性,保证驾驶安全。Among them, the completion of the external parameter calibration of the vehicle radar during the driving process of the vehicle can be understood as online calibration, and the online calibration can be understood as the completion of the calibration during the operation of the vehicle radar or the operation of the vehicle system. In other words, during the external parameter calibration process The mid-vehicle radar is in an online state (or a working state or a running state). The calibration method that is different from online calibration is offline calibration, such as return-to-factory calibration. During this period, the on-board radar cannot be used normally, that is, it is in an offline state. Therefore, the external parameter calibration method of the vehicle radar provided in the embodiment of the present application is more practical, and can perform online calibration in real time, improve the accuracy of determining the position of a target (eg, objects around the vehicle), and ensure driving safety.
本申请实施例提供的车载雷达的外参标定方法可以应用于车辆。车辆中包括车载雷达。The external parameter calibration method of the vehicle-mounted radar provided in the embodiment of the present application can be applied to a vehicle. The vehicle includes an onboard radar.
如图4所示,为本申请提供的一种可能的应用场景示意图。该场景中,车载雷达(或称雷达传感器)被安装在车辆(例如无人车、智能车、电动车、数字汽车等)上。如图4所示,部署于车辆上的车载雷达可感知如实线框所示的扇形区域,该扇形区域可以理解为车载雷达感知区域,当车载雷达感知到所述感知区域中存在目标时,将信号(如点云数据)传输至处理模块,由处理模块进行进一步处理。处理模块在接收到车载雷达的信号后,输出目标的测量信息(例如,目标与车辆的相对距离、角度、相对速度)。需要说明的是,此处中的处理模块既可以是独立于车载雷达的硬件或软件模块,还可以是部署于车载雷达中的硬件或软件模块,此处不作限定。可见,将车载雷达安装在车身上,可以实时或周期性地感测到周围物体的位置、相对距离等测量信息,再根据这些测量信息实现车辆的辅助驾驶或无人驾驶。例如,利用周围物体相对于车辆的距离确定车辆周围的障碍物数量、密度等。As shown in FIG. 4 , a schematic diagram of a possible application scenario provided by the present application. In this scenario, in-vehicle radar (or radar sensor) is installed on vehicles (such as unmanned vehicles, smart vehicles, electric vehicles, digital vehicles, etc.). As shown in Figure 4, the on-board radar deployed on the vehicle can perceive the fan-shaped area shown by the solid line frame, and the fan-shaped area can be understood as the on-board radar sensing area. Signals, such as point cloud data, are transmitted to the processing module for further processing. After receiving the signal from the vehicle radar, the processing module outputs the measurement information of the target (for example, the relative distance, angle, and relative speed between the target and the vehicle). It should be noted that the processing module here can be either a hardware or software module independent of the vehicle-mounted radar, or a hardware or software module deployed in the vehicle-mounted radar, which is not limited here. It can be seen that by installing the on-board radar on the vehicle body, measurement information such as the position and relative distance of surrounding objects can be sensed in real time or periodically, and then assisted driving or unmanned driving of the vehicle can be realized according to these measurement information. For example, the distance of surrounding objects relative to the vehicle is used to determine the number, density, etc. of obstacles around the vehicle.
本申请中的车载雷达可以是激光雷达、也可以是微波雷达、或者也可以是毫米波雷达,本申请实施例不作限定。The vehicle-mounted radar in the present application may be a laser radar, a microwave radar, or a millimeter-wave radar, which is not limited in the embodiment of the present application.
需要说明的是,本申请对图4所示场景中车辆上部署的车载雷达的数量不做限定。It should be noted that this application does not limit the number of vehicle-mounted radars deployed on the vehicle in the scenario shown in FIG. 4 .
下面结合附图介绍本申请实施例提供的车载雷达的外参标定方法。The following describes the external parameter calibration method for the vehicle radar provided by the embodiments of the present application with reference to the accompanying drawings.
实施例一Example 1
请参见图5,为本申请实施例提供的车载雷达的外参标定方法的流程示意图。该方法可以适用于如图4所示的车辆中。如图5所示,所述流程包括:Please refer to FIG. 5 , which is a schematic flowchart of a method for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. This method can be applied to a vehicle as shown in FIG. 4 . As shown in Figure 5, the process includes:
S501,获取车辆的行驶信息。S501 , acquiring driving information of the vehicle.
其中,车辆的行驶信息包括行驶路况信息或行驶状态信息中的至少一项。下面分别介绍行驶状态信息和行驶路况信息。Wherein, the driving information of the vehicle includes at least one item of driving road condition information or driving state information. The driving status information and the driving road condition information are described below.
(1)行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个。(1) The traveling state information includes at least one of speed, acceleration, yaw angle, or yaw angle velocity.
其中,速度和/或加速度可以根据车辆中的运动传感器采集的运动参数来确定。所述运动传感器例如可以是加速度计、陀螺仪、惯性测量单元(inertial measurement unit,IMU)等。以加速度计为例,加速度计可以测量车辆三轴的线加速度,用于计算车辆的行驶速度。或者,速度和/或加速度还可以通过卫星导航定位系统获取。以IMU为例,IMU可以输出车辆行驶速度、加速度等。所述卫星导航定位系统包括但不限定于全球导航卫星系统(global navigation satellite system,GNSS)、全球定位系统(global positioning system,GPS)、Galileo系统等或这些系统的增强型系统。以GNSS为例,GNSS是以人造卫星作为“航向标”的无线电导航系统,为全球陆、海、空、天的各类载体(比如车辆)提供全天候、高精度的位置、速度和时间信息(positioning navigation and timing,PNT)。因此,通过GNSS 可以确定车辆的行驶速度和/或加速度。或者,速度和/或加速度还可以通过轮速传感器(wheel velocity sensor,WSS)测量。其中,WSS是用于测量车辆车轮转速的传感器,通过测量车辆车轮转速可以确定车辆行驶速度和/或加速度。其中,轮速传感器包括但不限定于磁电式轮速传感器、霍尔式轮速传感器等。The speed and/or acceleration may be determined according to motion parameters collected by motion sensors in the vehicle. The motion sensor may be, for example, an accelerometer, a gyroscope, an inertial measurement unit (IMU), and the like. Taking the accelerometer as an example, the accelerometer can measure the linear acceleration of the three axes of the vehicle, which is used to calculate the driving speed of the vehicle. Alternatively, the velocity and/or acceleration can also be obtained through a satellite navigation and positioning system. Taking the IMU as an example, the IMU can output the speed, acceleration, etc. of the vehicle. The satellite navigation and positioning system includes, but is not limited to, global navigation satellite system (GNSS), global positioning system (global positioning system, GPS), Galileo system, etc. or enhanced systems of these systems. Taking GNSS as an example, GNSS is a radio navigation system with artificial satellites as "beacon", which provides all-weather, high-precision position, speed and time information for various carriers (such as vehicles) in the global land, sea, air and sky (such as vehicles). positioning navigation and timing, PNT). Thus, the driving speed and/or acceleration of the vehicle can be determined by means of GNSS. Alternatively, speed and/or acceleration can also be measured by a wheel velocity sensor (WSS). The WSS is a sensor for measuring the rotational speed of the wheels of the vehicle, and the traveling speed and/or acceleration of the vehicle can be determined by measuring the rotational speed of the wheels of the vehicle. The wheel speed sensor includes, but is not limited to, a magnetoelectric wheel speed sensor, a Hall-type wheel speed sensor, and the like.
其中,偏航角和/或偏航角速度可以通过车载雷达确定。关于偏航角的介绍请参见图3,偏航角γ(yaw)是指车辆行驶过程中绕雷达坐标系O L-X LY LZ L中Z L轴旋转的角度,可以简单的理解为偏离航线的角度,比如,车辆左转、右转、掉头等动作。偏航角速度是指单位时间内偏航角的变化,因此,确定一点时间内的偏航角,即可确定偏航角速度。以车辆左转为例,偏航角可以理解为左转角度,偏航角速度是指单位时间内偏航角的变化,所以可以理解为左转角度的变化量,反映车辆的左转速度。或者,偏航角和/或偏航角速度还可以通过方向盘转角传感器(steering wheel sensor,SAS)计算出,比如SAS可以确定方向盘的转动角度、转动方向和转向速度等,通过这些参数可以估计出偏航角和/或偏航角。或者,偏航角和/或偏航角速度还可以通过IMU估计出来。比如,IMU可以检测角速度、角加速度等,通过检测到的参数可以计算出偏航角和/或偏航角速度。 Wherein, the yaw angle and/or the yaw angular velocity can be determined by on-board radar. For the introduction of the yaw angle, please refer to Figure 3. The yaw angle γ(yaw) refers to the rotation angle of the vehicle around the Z L axis in the radar coordinate system O L -X L Y L Z L during the driving process, which can be simply understood as The angle of deviation from the route, for example, the vehicle turns left, right, U-turn, etc. The yaw angular velocity refers to the change of the yaw angle per unit time. Therefore, the yaw angular velocity can be determined by determining the yaw angle within a certain period of time. Taking the vehicle turning left as an example, the yaw angle can be understood as the left turn angle, and the yaw angle speed refers to the change of the yaw angle per unit time, so it can be understood as the change of the left turn angle, which reflects the left turn speed of the vehicle. Alternatively, the yaw angle and/or the yaw angular velocity can also be calculated by a steering wheel sensor (steering wheel sensor, SAS). For example, the SAS can determine the steering wheel rotation angle, rotation direction, and steering speed, etc., and the yaw angle can be estimated through these parameters. Heading angle and/or yaw angle. Alternatively, the yaw angle and/or the yaw rate can also be estimated by the IMU. For example, the IMU can detect angular velocity, angular acceleration, etc., and the yaw angle and/or yaw angular velocity can be calculated from the detected parameters.
(2)行驶路况信息用于指示车辆的行驶道路或行驶道路周围的物体信息中的至少一项。(2) The driving road condition information is used to indicate at least one of the driving road of the vehicle or the object information around the driving road.
其中,行驶路况信息用于指示车辆的行驶道路可以理解为用于指示行驶道路的属性,比如直行道路、右转道路、左转道路等等。The use of the driving road condition information to indicate the driving road of the vehicle may be understood as being used to indicate the attribute of the driving road, such as a straight road, a right-turn road, a left-turn road, and the like.
比如,根据地图和当前定位确定行驶道路。具体的,假设车辆当前定位(比如GPS定位)在位置1,位置1处于地图上的道路1上,那么确定道路1为车辆的行驶道路,然后,可以根据地图中对于该道路1的描述信息确定道路1的属性比如直行道路、右转道路等等。For example, determine the driving road based on the map and the current location. Specifically, it is assumed that the current positioning of the vehicle (such as GPS positioning) is at position 1, and position 1 is on road 1 on the map, then road 1 is determined as the driving road of the vehicle, and then it can be determined according to the description information of the road 1 in the map Attributes of road 1 such as straight road, right turn road and so on.
或者,车辆在行驶过程中可以采集图像,通过图像识别确定车辆的行驶道路的属性,比如直行道路、右转道路等等。Alternatively, the vehicle may collect images during the driving process, and determine the attributes of the driving road of the vehicle through image recognition, such as a straight road, a right-turn road, and the like.
或者,还可以是驾驶员人为输入,比如,车辆上可以提供输入按键,驾驶员可以通过该输入按键输入行驶道路的属性。Alternatively, it may also be a driver's manual input. For example, an input button may be provided on the vehicle, and the driver may input the attribute of the driving road through the input button.
其中,车辆的行驶道路周围的物体信息可以有多种方式确定。比如,车辆在行驶过程中采集图像,通过图像识别确定车辆行驶道路周围的物体。或者,还可以根据车载雷达获取的点云数据确定车辆行驶道路周围的物体。如前文所述,车载雷达可以发射电磁波被周围的物体发射之后采集发射回的电磁波,反射回的电磁波即点云数据,根据点云数据可以识别车辆行驶道路周围的物体。举例来说,车辆的行驶道路周围的物体包括树木、路沿、路灯、指示牌等等。Among them, the object information around the driving road of the vehicle can be determined in various ways. For example, the vehicle collects images during driving, and determines the objects around the road where the vehicle travels through image recognition. Alternatively, objects around the road where the vehicle travels can also be determined according to the point cloud data obtained by the vehicle-mounted radar. As mentioned above, the on-board radar can transmit electromagnetic waves that are emitted by surrounding objects and then collect the emitted electromagnetic waves. The reflected electromagnetic waves are point cloud data. According to the point cloud data, objects around the road where the vehicle is traveling can be identified. For example, objects around the driving road of the vehicle include trees, curbs, street lights, signs, and the like.
S502,根据车辆的行驶信息,确定对车载雷达的外参进行标定。S502, according to the driving information of the vehicle, it is determined to calibrate the external parameters of the vehicle-mounted radar.
由于车辆的行驶信息包括行驶路况信息或行驶状态信息中的至少一项,所以S502可以包括如下三种情况。Since the driving information of the vehicle includes at least one item of driving road condition information or driving state information, S502 may include the following three situations.
第一种情况,车辆的行驶信息包括行驶状态信息。那么,S502可以细化为:根据行驶状态信息,确定对车辆雷达的外参进行标定。具体可以包括:根据行驶状态信息,确定满足如下条件中的至少一个时,确定对车载雷达的外参进行标定。其中,所述条件包括:In the first case, the driving information of the vehicle includes driving state information. Then, S502 can be refined as follows: according to the driving state information, it is determined to calibrate the external parameters of the vehicle radar. Specifically, it may include: according to the driving state information, when it is determined that at least one of the following conditions is satisfied, determining to calibrate the external parameters of the vehicle-mounted radar. Wherein, the conditions include:
(1)车辆匀速行驶。比如,可以根据行驶状态信息中的速度、加速度等,确定车辆是否匀速行驶。(1) The vehicle travels at a constant speed. For example, whether the vehicle is traveling at a constant speed can be determined according to the speed, acceleration, etc. in the traveling state information.
(2)车辆的行驶速度小于第一阈值或处于第一范围内。(2) The traveling speed of the vehicle is less than the first threshold value or within the first range.
(3)车辆的行驶加速度小于第二阈值或处于第二范围内。其中,第一阈值、第一范围、第二阈值、第二范围可以是默认设置的(比如车辆出厂之前默认设置好的),或者,是用户设置的,本申请实施例不作限定。(3) The running acceleration of the vehicle is smaller than the second threshold value or within the second range. The first threshold, the first range, the second threshold, and the second range may be set by default (for example, set by default before the vehicle leaves the factory), or set by the user, which is not limited in this embodiment of the present application.
(4)偏航角处于预设范围内。所述预设范围比如-5度到5度。也就是说,车辆是直行的或大致直行的。(4) The yaw angle is within the preset range. The preset range is, for example, -5 degrees to 5 degrees. That is, the vehicle is going straight or approximately straight.
(5)偏航角速度小于第三阈值或处于第三范围内。其中,第三阈值和第三范围可以是默认设置的(比如车辆出厂之前默认设置好的),或者,是用户设置的,本申请实施例不作限定。(5) The yaw angular velocity is less than the third threshold or within the third range. The third threshold and the third range may be set by default (for example, set by default before the vehicle leaves the factory), or set by the user, which is not limited in the embodiment of the present application.
第二种情况,车辆的行驶信息包括行驶路况信息。那么S502可以细化为:根据行驶路况信息,确定对车载雷达的外参进行标定。具体可以包括:根据行驶路况信息,确定满足如下条件中的至少一个时,确定对车载雷达的外参进行标定。其中,所述条件包括:In the second case, the driving information of the vehicle includes driving road condition information. Then S502 can be refined as: according to the driving road condition information, it is determined to calibrate the external parameters of the vehicle radar. Specifically, it may include: according to the driving road condition information, when it is determined that at least one of the following conditions is satisfied, determining to calibrate the external parameters of the vehicle-mounted radar. Wherein, the conditions include:
(1)车辆的行驶道路为直行道路。(1) The driving road of the vehicle is a straight road.
如前文所述,车辆可以确定行驶路况信息,行驶路况信息用于指示车辆的行驶道路的属性比如直行道路、右转道路等。因此,可以根据所述行驶路况信息,确定行驶道路是否为直行道路。As described above, the vehicle may determine the driving road condition information, and the driving road condition information is used to indicate the attributes of the driving road of the vehicle, such as a straight road, a right-turn road, and the like. Therefore, it can be determined whether the driving road is a straight road according to the driving road condition information.
(2)车辆的行驶道路周围存在目标参考物。(2) There are target reference objects around the driving road of the vehicle.
如前文所述,车辆可以确定行驶路况信息,行驶路况信息可以用于指示车辆的行驶道路周围的物体,比如,树木、路沿、路灯、指示牌等等。因此,可以根据车辆行驶路况信息,确定车辆行驶道路周围是否存在目标参考物。As described above, the vehicle may determine the driving road condition information, and the driving road condition information may be used to indicate objects around the driving road of the vehicle, such as trees, road edges, street lights, signs, and the like. Therefore, it can be determined whether there is a target reference around the vehicle driving road according to the vehicle driving road condition information.
在本申请实施例中,目标参考物包括如下两类。所述确定车辆行驶道路周围存在目标参考物,包括:确定所述行驶道路周围存在所述两类目标参考物中的至少一类。所述两类包括:In the embodiments of the present application, target references include the following two categories. The determining that a target reference exists around the vehicle driving road includes: determining that at least one of the two types of target references exists around the driving road. The two categories include:
第一类目标参考物,包括:行驶道路的地面或与所述地面平行的平面物体中的至少一项。The first type of target reference includes: at least one of the ground of the driving road or a plane object parallel to the ground.
第二类目标参考物,包括:沿着行驶道路设置的物体。比如,沿着行驶道路且与行驶道路的地面平行的A类型物体,或沿着行驶道路且与行驶道路的地面垂直的B类型物体中的至少一种。其中,所述A类型物体包括:路沿、护栏、绿化带或车道线中的至少一种。B类型物体包括:树木、指示牌或路灯中的至少一种。The second type of target reference includes: objects set along the driving road. For example, at least one of a type A object along the driving road and parallel to the ground of the driving road, or a type B object along the driving road and perpendicular to the ground of the driving road. Wherein, the A-type object includes at least one of a road edge, a guardrail, a green belt or a lane line. Type B objects include: at least one of trees, signs, or street lights.
第三种情况,可以理解为第一种情况和第二种情况的结合,即,车辆的行驶信息包括行驶路况信息和行驶状态信息。那么,S502可以细化为:根据行驶状态信息确定是否对车载雷达的外参进行标定(实现原理请参见第一种情况),如果是,继续根据行驶路况信息判断是否对车载雷达的外参进行标定(实现原理请参见第二种情况),如果不是,确定不对车载雷达的外参进行标定,无需继续根据行驶路况信息作判断。或者,S502还可以细化为:根据行驶路况信息确定是否对车载雷达的外参进行标定,如果是,继续根据行驶状态信息判断是否对车载雷达的外参进行标定,如果不是,确定不对车载雷达的外参进行标定,无需继续根据行驶状态信息作判断。这两种方式可以进行双重判断,提升准确性。The third situation can be understood as the combination of the first situation and the second situation, that is, the driving information of the vehicle includes the driving road condition information and the driving state information. Then, S502 can be refined as follows: determine whether to calibrate the external parameters of the on-board radar according to the driving state information (see the first case for the realization principle); if so, continue to judge whether to calibrate the external parameters of the on-board radar according to the driving road condition information. Calibration (see the second case for the implementation principle), if not, it is determined not to calibrate the external parameters of the vehicle radar, and there is no need to continue to make judgments based on the driving road condition information. Alternatively, S502 can also be refined as follows: determine whether to calibrate the external parameters of the vehicle-mounted radar according to the driving road condition information; if so, continue to judge whether to calibrate the external parameters of the vehicle-mounted radar according to the driving state information; if not, determine not to calibrate the vehicle-mounted radar. It is not necessary to continue to make judgments based on the driving state information. These two methods can perform double judgment and improve the accuracy.
实施例二Embodiment 2
前面的实施例一是根据车辆的行驶信息,确定是否对车载雷达的外参进行标定。与实施例一不同,本实施例二中提供另外一种确定是否对车载雷达的外参进行标定的方式。The first embodiment above is to determine whether to calibrate the external parameters of the vehicle radar according to the driving information of the vehicle. Different from the first embodiment, the second embodiment provides another way of determining whether to calibrate the external parameters of the vehicle-mounted radar.
请参见图6,为本申请实施例提供的车载雷达的外参标定方法的另一种流程示意图。如图6所示,所述流程包括:Please refer to FIG. 6 , which is another schematic flowchart of a method for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. As shown in Figure 6, the process includes:
S601,获取车载雷达的外参。S601, obtain external parameters of the vehicle radar.
所述获取的外参可以是上一次标定出的车载雷达的外参或初始外参(比如出厂时设置的外参)。所述外参包括旋转角度或平移距离中的至少一项。其中,旋转角度包括三个姿态角,即俯仰角β(pitch),偏航角γ(yaw),以及滚转角α(roll)。平移距离包括Δx,Δy,Δz。关于旋转角度和平移距离请参见前文名词解释部分的介绍,在此不重复赘述。The acquired external parameters may be external parameters of the vehicle-mounted radar calibrated last time or initial external parameters (for example, external parameters set at the factory). The extrinsic parameter includes at least one of a rotation angle or a translation distance. The rotation angle includes three attitude angles, namely, the pitch angle β (pitch), the yaw angle γ (yaw), and the roll angle α (roll). The translation distance includes Δx, Δy, and Δz. For details about the rotation angle and the translation distance, please refer to the introduction in the previous terminology section, which will not be repeated here.
假设旋转角度使用R表示,那么R可以表示为:Assuming that the rotation angle is represented by R, then R can be expressed as:
Figure PCTCN2022082560-appb-000001
Figure PCTCN2022082560-appb-000001
其中,r 11是雷达坐标系的x轴在车辆坐标系的x轴的投影,r 12是雷达坐标系的x轴在车辆坐标系的y轴的投影,r 13是雷达坐标系的x轴在车辆坐标系的z轴的投影,r 21是雷达坐标系的y轴在车辆坐标系的x轴的投影,r 22是雷达坐标系的y轴在车辆坐标系的y轴的投影,r 23是雷达坐标系的y轴在车辆坐标系的z轴的投影,r 31是雷达坐标系的z轴在车辆坐标系的x轴的投影,r 32是雷达坐标系的z轴在车辆坐标系的y轴的投影,r 33是雷达坐标系的z轴在车辆坐标系的z轴的投影。 Among them, r 11 is the projection of the x-axis of the radar coordinate system on the x-axis of the vehicle coordinate system, r 12 is the projection of the x-axis of the radar coordinate system on the y-axis of the vehicle coordinate system, and r 13 is the x-axis of the radar coordinate system in the The projection of the z-axis of the vehicle coordinate system, r 21 is the projection of the y-axis of the radar coordinate system on the x-axis of the vehicle coordinate system, r 22 is the projection of the y-axis of the radar coordinate system on the y-axis of the vehicle coordinate system, and r 23 is The projection of the y-axis of the radar coordinate system on the z-axis of the vehicle coordinate system, r 31 is the projection of the z-axis of the radar coordinate system on the x-axis of the vehicle coordinate system, and r 32 is the z-axis of the radar coordinate system on the y-axis of the vehicle coordinate system The projection of the axis, r 33 is the projection of the z-axis of the radar coordinate system on the z-axis of the vehicle coordinate system.
对应的,三个姿态角满足:Correspondingly, the three attitude angles satisfy:
偏航角
Figure PCTCN2022082560-appb-000002
yaw angle
Figure PCTCN2022082560-appb-000002
俯仰角pitc=arcsin(-r 31) Pitch angle pitc=arcsin(-r 31 )
滚转角
Figure PCTCN2022082560-appb-000003
roll angle
Figure PCTCN2022082560-appb-000003
假设平移距离使用T表示,那么T表示为:Assuming that the translation distance is represented by T, then T is represented as:
Figure PCTCN2022082560-appb-000004
Figure PCTCN2022082560-appb-000004
关于Δx,Δy,Δz的含义请参见前文名词解释部分。For the meanings of Δx, Δy, and Δz, please refer to the previous section on terminology.
S602,使用所述外参将目标平面物体在雷达坐标系中的第一点云数据转换到在惯性坐标系下的第二点云数据。S602, using the external parameters to convert the first point cloud data of the target plane object in the radar coordinate system to the second point cloud data in the inertial coordinate system.
可选的,在S602之前,还可以包括步骤:确定目标平面物体。所述目标平面物体可以是车辆周围的指示牌、地面、广告牌等平面物体。比如,车辆可以获取包括周围物体的图像,根据图像确定出目标平面物体。或者,还可以获取周围物体的点云数据,该点云数据对应周围的所有物体,且该点云数据在雷达坐标系中表示。然后从所述点云数据中确定目标平面物体的点云数据。比如,可以确定所述点云数据中处于同一平面或近似同一平面的点构成目标平面物体的点云数据。Optionally, before S602, the step may further include: determining a target plane object. The target plane object may be a sign, ground, billboard and other plane objects around the vehicle. For example, the vehicle can acquire images including surrounding objects, and determine the target planar object based on the images. Alternatively, point cloud data of surrounding objects may also be acquired, where the point cloud data corresponds to all surrounding objects, and the point cloud data is represented in a radar coordinate system. Then, the point cloud data of the target plane object is determined from the point cloud data. For example, it can be determined that points in the point cloud data that are on the same plane or approximately the same plane constitute the point cloud data of the target plane object.
其中,S602包括两个过程。过程1,将目标平面物体在雷达坐标系下的第一点云数据转换到车辆坐标系下的第三点云数据。过程2,将第三点云数据转换到惯性坐标系下第二点云数据。Among them, S602 includes two processes. Process 1: Convert the first point cloud data of the target plane object in the radar coordinate system to the third point cloud data in the vehicle coordinate system. Process 2: Convert the third point cloud data to the second point cloud data in the inertial coordinate system.
过程1,根据如下公式(1)将第一点云数据转换到车辆坐标系下的第三点云数据。Process 1: Convert the first point cloud data to the third point cloud data in the vehicle coordinate system according to the following formula (1).
Figure PCTCN2022082560-appb-000005
Figure PCTCN2022082560-appb-000005
其中,(x 0,y 0,z 0)是第一点云数据中一个点在雷达坐标系中的坐标,(x 1,y 1,z 1)是这个点在车辆坐标系中的坐标。R和T是车载雷达的外参,其中,R是旋转角度,T是平移 距离。关于R和T可以参见S601的介绍。 Among them, (x 0 , y 0 , z 0 ) is the coordinate of a point in the first point cloud data in the radar coordinate system, and (x 1 , y 1 , z 1 ) is the coordinate of this point in the vehicle coordinate system. R and T are the external parameters of the vehicle radar, where R is the rotation angle and T is the translation distance. About R and T, please refer to the introduction of S601.
过程2,根据如下公式(2)将第三点云数据转换到惯性坐标系下的第二点云数据。In process 2, the third point cloud data is converted to the second point cloud data in the inertial coordinate system according to the following formula (2).
Figure PCTCN2022082560-appb-000006
Figure PCTCN2022082560-appb-000006
其中,(x 1,y 1,z 1)是第三点云数据中一个点在车辆坐标系中的坐标,(x 2,y 2,z 2)是这个点在惯性坐标系中的坐标。R1是车辆坐标系相对于惯性坐标系的旋转角度,T1是车辆坐标系相对于惯性坐标系的平移距离。其中,R1和T1是预先设置好的,或者,R1和T1还可以是通过GNSS、IMU、WSS和SAS等传感器件计算得到的,具体的计算过程本申请实施例不多赘述。 Among them, (x 1 , y 1 , z 1 ) are the coordinates of a point in the third point cloud data in the vehicle coordinate system, and (x 2 , y 2 , z 2 ) are the coordinates of this point in the inertial coordinate system. R1 is the rotation angle of the vehicle coordinate system relative to the inertial coordinate system, and T1 is the translation distance of the vehicle coordinate system relative to the inertial coordinate system. Wherein, R1 and T1 are preset, or, R1 and T1 may also be calculated by sensing devices such as GNSS, IMU, WSS, and SAS, and the specific calculation process is not repeated in the embodiments of this application.
S603,判断第二点云数据的平整度是否满足第一条件。S603: Determine whether the flatness of the second point cloud data satisfies the first condition.
第二点云数据的平整度可以理解为第二点云数据处于同一平面的程度。比如,第二点云数据中大部分点云数据或全部点云数据处于同一平面上,认为第二点云数据的平整度较好。The flatness of the second point cloud data can be understood as the degree to which the second point cloud data are on the same plane. For example, if most or all of the point cloud data in the second point cloud data are on the same plane, the flatness of the second point cloud data is considered to be good.
第一种方式为,判断第二点云数据的平整度是否满足第一条件,可以包括:当第二点云数据中第一向量和第二向量垂直或接近垂直时,确定第二点云数据的平整度满足第一条件,否则,确定第二点云数据的平整度不满足第一条件。其中,第一向量是第二点云数据中任意两不同发射波束在目标平面物体上的反射点之间的向量,第二向量是所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量。可选的,“任意两不同的发射光束”可以是车载雷达上任意两不同发射器发出的光束,或者同一发射器发出的任意两束不同的光束,或者,是相邻的两个光束,或者,是距离最近的两个光束等等,本申请实施例不作限定。The first way is to determine whether the flatness of the second point cloud data satisfies the first condition, which may include: when the first vector and the second vector in the second point cloud data are perpendicular or nearly perpendicular, determining the second point cloud data The flatness of satisfies the first condition, otherwise, it is determined that the flatness of the second point cloud data does not satisfy the first condition. Wherein, the first vector is the vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data, and the second vector is the corresponding one or more transmit beams in the second point cloud data The normal vector of the point cloud data. Optionally, "any two different emission beams" can be beams emitted by any two different transmitters on the vehicle radar, or any two different beams emitted by the same transmitter, or, two adjacent beams, or , are the two closest beams, etc., which are not limited in the embodiments of the present application.
其中,第一向量和第二向量接近垂直可以理解为第一向量和第二向量之间的夹角小于预设角度或处于预设角度范围内,所述预设角度或预设角度范围的具体取值,本申请实施例不作限定,比如85度至95度。The fact that the first vector and the second vector are nearly perpendicular can be understood as the angle between the first vector and the second vector being smaller than the preset angle or within the preset angle range. The value is not limited in this embodiment of the present application, for example, 85 degrees to 95 degrees.
可选的,在判断第一向量和第二向量是否垂直之前,还可以包括步骤:从所述第二点云数据中选择部分点云数据,基于所述部分点云数据确定第一向量。如前文所述,车载雷达可以发射光束,发射的光束在目标平面物体上发射产生反射点,反射光束被车载雷达接收,车载雷达根据发射波束和接收的反射波束计算出所述反射点在雷达坐标系中的坐标值(即第一点云数据),然后将雷达坐标系中的坐标值转换到惯性坐标系中的坐标值(即第二点云数据)。因此,第二点云数据中的点对应不同的反射点,即对应不同的发射光束。因此,所述部分点云数据可以是第二点云数据中多个不同发射光束对应的点云数据,比如,是发射波束1和发射波束2对应的点云数据,那么第一向量可以发射波束1在目标平面物体上的反射点1和发射波束2在目标平面物体上的反射点2之间的向量,比如,请参见图7所示,为第二点云数据的示意图,假设点P和点Q是第二点云数据中两不同发射波束对应的反射点,那么点P和点Q之间的向量可以是第一向量。Optionally, before judging whether the first vector and the second vector are perpendicular, the method may further include the step of: selecting part of the point cloud data from the second point cloud data, and determining the first vector based on the part of the point cloud data. As mentioned above, the vehicle-mounted radar can emit a beam, and the emitted beam is emitted on the target plane object to generate a reflection point, and the reflected beam is received by the vehicle-mounted radar. The vehicle-mounted radar calculates the reflection point according to the transmitted beam and the received reflected beam. The coordinate value in the system (ie the first point cloud data), and then the coordinate value in the radar coordinate system is converted to the coordinate value in the inertial coordinate system (ie the second point cloud data). Therefore, the points in the second point cloud data correspond to different reflection points, that is, correspond to different emission light beams. Therefore, the partial point cloud data may be point cloud data corresponding to a plurality of different emission beams in the second point cloud data, for example, point cloud data corresponding to emission beam 1 and emission beam 2, then the first vector can emit beams 1 The vector between the reflection point 1 on the target plane object and the reflection point 2 of the emission beam 2 on the target plane object, for example, see Figure 7, which is a schematic diagram of the second point cloud data, assuming points P and Point Q is a reflection point corresponding to two different transmit beams in the second point cloud data, so the vector between point P and point Q may be the first vector.
可选的,在判断第一向量和第二向量是否垂直之前,还可以包括步骤:确定第二向量。第二向量可以是第二点云数据中所有点云数据对应的法向量,或者,第二向量可以是第二点云数据中部分点云数据(比如在确定第一向量时选择出的部分点云数据)对应的法向量,或者,第二向量还可以是第二点云数据中任一个或者多个发射波束对应的点云数据的法向量。Optionally, before judging whether the first vector and the second vector are perpendicular, the step may further include: determining the second vector. The second vector may be the normal vector corresponding to all point cloud data in the second point cloud data, or the second vector may be part of the point cloud data in the second point cloud data (for example, part of the points selected when determining the first vector) The normal vector corresponding to the cloud data), or, the second vector may also be the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data.
举例来说,请参见图7所示,为第二点云数据的示意图,假设点P和点Q是第二点云数据中两不同发射波束对应的点。如果点P和点Q之间的第一向量与第二点云数据的法向量垂直或接近垂直的话,第二点云数据的平整度较好,所以,第一向量和法向量垂直或接近垂直时,确定第二点云数据的平整度满足第一条件。For example, referring to FIG. 7 , which is a schematic diagram of the second point cloud data, it is assumed that point P and point Q are points corresponding to two different transmit beams in the second point cloud data. If the first vector between point P and point Q is perpendicular or nearly perpendicular to the normal vector of the second point cloud data, the flatness of the second point cloud data is better, so the first vector and the normal vector are perpendicular or nearly perpendicular , it is determined that the flatness of the second point cloud data satisfies the first condition.
第二种方式为,判断第二点云数据的平整度是否满足第一条件,可以包括:根据第二点云数据,确定多组第一向量,每组第一向量与第二向量之间有一个夹角,如果多个夹角的平均值或加权平均值是90度或接近90度,那么确定第二点云数据的平整度满足第一条件。The second way is to determine whether the flatness of the second point cloud data satisfies the first condition, which may include: determining a plurality of sets of first vectors according to the second point cloud data, and there is a difference between each set of first vectors and the second vector. An included angle, if the average or weighted average of the multiple included angles is 90 degrees or close to 90 degrees, then it is determined that the flatness of the second point cloud data satisfies the first condition.
举例来说,如前文所述,在确定第一向量时,从第二点云数据中选择的部分点云数据可以是第二点云数据中多个不同发射光束对应的点云数据。假设选择出M(M大于2)个发射波束,那么对应有M个反射点,M个反射点可以产生多个不同的第一向量,这种情况下,可以将确定每个第一向量与第二向量之间的夹角,得到多个夹角,统计多个夹角的平均值或加权平均值,如果平均值或加权平均值是90度或接近90度,那么确定第二点云数据的平整度满足第一条件。For example, as described above, when determining the first vector, the part of the point cloud data selected from the second point cloud data may be point cloud data corresponding to a plurality of different emitted light beams in the second point cloud data. Assuming that M (M is greater than 2) transmit beams are selected, there are corresponding M reflection points, and the M reflection points can generate multiple different first vectors. In this case, each first vector can be determined with the first vector The angle between the two vectors, get multiple angles, count the average or weighted average of the multiple angles, if the average or weighted average is 90 degrees or close to 90 degrees, then determine the second point cloud data. The flatness satisfies the first condition.
当第二点云数据的平整度不满足第一条件时,可以执行S604。当第二点云数据的平整度满足第一条件时,可以无需对车载雷达的外参进行标定。When the flatness of the second point cloud data does not satisfy the first condition, S604 may be performed. When the flatness of the second point cloud data satisfies the first condition, it is not necessary to calibrate the external parameters of the vehicle-mounted radar.
S604,如果第二点云数据的平整度不满足第一条件,确定对车载雷达的外参进行标定。S604, if the flatness of the second point cloud data does not meet the first condition, determine to calibrate the external parameters of the vehicle-mounted radar.
需要说明的是,由于第二点云数据是目标平面物体在惯性坐标系中的坐标。如果第二点云数据的平整度较好,说明使用车载雷达当前外参经一系列的坐标转换得到的第二点云数据是平整的,比较符合真实情况,说明所述当前外参是比较准确的。如果第二点云数据的平整度较差,说明使用当前外参经一系列的坐标转换得到的第二点云数据不平整,不符合真实情况(因为真实情况是目标平面物体的表面是平整的),说明所述当前外参是不准确的,需要对车载雷达的外参进行标定。通过这种方式,能够准确的判断当前外参是否准确,即判断是否需要对车载雷达的外参进行标定。It should be noted that, since the second point cloud data is the coordinates of the target plane object in the inertial coordinate system. If the flatness of the second point cloud data is good, it means that the second point cloud data obtained by using the current external parameters of the vehicle radar through a series of coordinate transformations is flat, which is more in line with the real situation, indicating that the current external parameters are relatively accurate of. If the flatness of the second point cloud data is poor, it means that the second point cloud data obtained through a series of coordinate transformations using the current external parameters is not flat and does not conform to the real situation (because the real situation is that the surface of the target plane object is flat ), indicating that the current external parameters are inaccurate, and the external parameters of the vehicle radar need to be calibrated. In this way, it can be accurately judged whether the current external parameters are accurate, that is, whether the external parameters of the vehicle-mounted radar need to be calibrated.
上面的实施例一和实施例二提供两种方式判断是否对车载雷达的外参进行标定。假设将实施例一的方式作为第一种方式,将实施例二的方式作为第二种方式。在一些实施例中,车辆可以默认使用第一种方式或默认使用第二种方式。或者,用户可以指定使用第一种方式或第二种方式,比如,车辆上设置切换按键,通过该切换按键实现第一种方式和第二种方式的切换。或者,车辆还可以通过条件(比如环境条件或速度条件)判断是采用第一种方式还是第二种方式。The above Embodiment 1 and Embodiment 2 provide two ways to determine whether to calibrate the external parameters of the vehicle-mounted radar. It is assumed that the method of the first embodiment is taken as the first method, and the method of the second embodiment is taken as the second method. In some embodiments, the vehicle may default to the first mode or default to the second mode. Alternatively, the user can specify to use the first method or the second method, for example, a switch button is set on the vehicle, and the switch between the first method and the second method is realized by the switch button. Alternatively, the vehicle can also determine whether to adopt the first method or the second method according to conditions (such as environmental conditions or speed conditions).
实施例三Embodiment 3
本实施例三可以理解为是实施例一和实施例二的结合。具体来说,使用实施例一的方式确定对车载雷达的外参进行标定时,标定车载雷达的外参,在完成标定之后,使用实施例二的方式判断标定的外参是否满足条件,如果不满足,则调整所述标定的外参。The third embodiment can be understood as a combination of the first embodiment and the second embodiment. Specifically, when it is determined that the external parameters of the vehicle-mounted radar are calibrated using the method of the first embodiment, the external parameters of the vehicle-mounted radar are calibrated. After the calibration is completed, the method of the second embodiment is used to determine whether the calibrated external parameters meet the conditions. If satisfied, adjust the calibrated external parameters.
具体的,请参见图8,为本申请实施例提供的车载雷达的外参标定方法的另一种流程示意图。如图8所示,所述流程包括:Specifically, please refer to FIG. 8 , which is another schematic flowchart of a method for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. As shown in Figure 8, the process includes:
S801,获取车辆的行驶信息。所述行驶信息包括行驶状态信息或行驶路况信息中的至少一项。S801 , acquiring driving information of the vehicle. The driving information includes at least one item of driving state information or driving road condition information.
S802,根据所述行驶信息,确定对车载雷达的外参进行标定。S802, according to the driving information, determine to calibrate the external parameters of the vehicle-mounted radar.
其中,S801至S802的实现原理请参见图5所示实施例中S501和S502的实现原理相同,所以不重复赘述。For the implementation principles of S801 to S802, please refer to the implementation principles of S501 and S502 in the embodiment shown in FIG.
S803,对车载雷达的外参进行标定。S803, the external parameters of the vehicle radar are calibrated.
在本申请实施例中,S803可以细化为:根据目标参考物,标定所述车载雷达的外参。由于外参包括雷达坐标系相对于车辆坐标系的旋转角度或平移距离中的至少一种。因此,S803可以细化为:根据目标参考物,确定雷达坐标系相对于车辆坐标系的旋转角度或平移距离中的至少一种。In the embodiment of the present application, S803 may be refined as: calibrating the external parameters of the vehicle-mounted radar according to the target reference. Because the external parameter includes at least one of a rotation angle or a translation distance of the radar coordinate system relative to the vehicle coordinate system. Therefore, S803 can be refined as: determining at least one of a rotation angle or a translation distance of the radar coordinate system relative to the vehicle coordinate system according to the target reference.
下面分别介绍旋转角度和平移距离的确定过程。The process of determining the rotation angle and the translation distance is described below.
旋转角度包括三个姿态角,分别为俯仰角、滚转角和偏航角。在本申请实施例中,可以根据不同的目标参考物,确定不同的姿态角。具体包括如下两种情况。The rotation angle includes three attitude angles, namely pitch angle, roll angle and yaw angle. In this embodiment of the present application, different attitude angles may be determined according to different target reference objects. Specifically, the following two cases are included.
(1),根据第一类目标参考物,确定俯仰角和滚转角。其中,第一类目标参考物是指车辆行驶道路上的地面和与地面平行的平面物体。(1), according to the first type of target reference, determine the pitch angle and roll angle. Among them, the first type of target reference refers to the ground on the road of the vehicle and the plane objects parallel to the ground.
具体来说,根据第一类目标参考物确定俯仰角和滚转角,包括如下步骤1至步骤4。Specifically, determining the pitch angle and the roll angle according to the first type of target reference includes the following steps 1 to 4.
步骤1,获取点云数据1,点云数据1是第一类目标参考物在雷达坐标系中对应的点云数据。In step 1, point cloud data 1 is obtained, and point cloud data 1 is the point cloud data corresponding to the first type of target reference in the radar coordinate system.
步骤2,确定点云数据1的第一法向量。Step 2: Determine the first normal vector of the point cloud data 1.
步骤3,根据第一法向量和标准法向量,确定雷达坐标系相对于车辆坐标系的旋转矩阵。Step 3: Determine the rotation matrix of the radar coordinate system relative to the vehicle coordinate system according to the first normal vector and the standard normal vector.
以第一类目标参考物是地面为例,车载雷达探测出地面对应的点云数据1,由于车载雷达相对于车辆坐标系(或惯性坐标系)存在偏移,所以探测出的地面对应的点云数据1与真实地面不一定在同一个平面上,换句话说,探测出的地面对应的点云数据1的法向量(即第一法向量)与真实地面的法向量(即标准法向量)不一定平行,所以第一法向量与标准法向量之间的偏差可以反映雷达坐标系与车辆坐标系的旋转矩阵。因此,可以通过第一法向量与标准法向量确定雷达坐标系与车辆坐标系的旋转矩阵。Taking the first type of target reference as the ground as an example, the vehicle-mounted radar detects the point cloud data 1 corresponding to the ground. Since the vehicle-mounted radar is offset from the vehicle coordinate system (or inertial coordinate system), the detected point on the ground corresponds to Cloud data 1 and the real ground are not necessarily on the same plane. In other words, the normal vector of point cloud data 1 corresponding to the detected ground (ie the first normal vector) and the normal vector of the real ground (ie the standard normal vector) Not necessarily parallel, so the deviation between the first normal vector and the standard normal vector can reflect the rotation matrix of the radar coordinate system and the vehicle coordinate system. Therefore, the rotation matrix of the radar coordinate system and the vehicle coordinate system can be determined by the first normal vector and the standard normal vector.
示例性的,旋转矩阵满足如下公式:Exemplarily, the rotation matrix satisfies the following formula:
Figure PCTCN2022082560-appb-000007
Figure PCTCN2022082560-appb-000007
其中,R是所述旋转矩阵。I是单位对角矩阵,可以是预先设置好的。[v] ×满足如下公式: where R is the rotation matrix. I is a unit diagonal matrix, which can be preset. [v] × satisfies the following formula:
Figure PCTCN2022082560-appb-000008
Figure PCTCN2022082560-appb-000008
其中,v 1、v 2、v 3的计算方式如下: Among them, the calculation methods of v 1 , v 2 , and v 3 are as follows:
Figure PCTCN2022082560-appb-000009
Figure PCTCN2022082560-appb-000009
其中,
Figure PCTCN2022082560-appb-000010
是第一向量,
Figure PCTCN2022082560-appb-000011
为标称的地面法向量,
Figure PCTCN2022082560-appb-000012
Figure PCTCN2022082560-appb-000013
in,
Figure PCTCN2022082560-appb-000010
is the first vector,
Figure PCTCN2022082560-appb-000011
is the nominal ground normal vector,
Figure PCTCN2022082560-appb-000012
Figure PCTCN2022082560-appb-000013
因此,通过上述公式可以得到雷达坐标系相对于车辆坐标系的旋转矩阵R。Therefore, the rotation matrix R of the radar coordinate system relative to the vehicle coordinate system can be obtained by the above formula.
步骤4,根据旋转矩阵,确定俯仰角和滚转角。Step 4, according to the rotation matrix, determine the pitch angle and the roll angle.
比如,根据如下公式确定俯仰角和滚转角:For example, the pitch and roll angles are determined according to the following formulas:
偏航角
Figure PCTCN2022082560-appb-000014
yaw angle
Figure PCTCN2022082560-appb-000014
俯仰角pitc=arcsin(-r 31) Pitch angle pitc=arcsin(-r 31 )
滚转角
Figure PCTCN2022082560-appb-000015
roll angle
Figure PCTCN2022082560-appb-000015
Figure PCTCN2022082560-appb-000016
其中,R是旋转矩阵。
Figure PCTCN2022082560-appb-000016
where R is the rotation matrix.
由此可见,通过第一法向量与标准法向量之间的偏差可以反推出雷达坐标系与车辆坐标系的旋转矩阵,进而得到俯仰角和滚转角,准确性较高。It can be seen that through the deviation between the first normal vector and the standard normal vector, the rotation matrix of the radar coordinate system and the vehicle coordinate system can be reversed, and then the pitch angle and roll angle can be obtained, with high accuracy.
需要说明的是,上述步骤4根据旋转矩阵R不仅可以得到俯仰角和滚转角,还可以得到偏航角,但是由于旋转矩阵是根据探测出的地面对应的点云数据1的法向量(即第一法向量)与真实地面的法向量(即标准法向量)之间的偏差反推出来的,而偏航角的变化对第一法向量与标准法向量的偏差无影响,换句话说,偏航角的变化不会导致点云数据1的第一法向量发生变化。因此,根据探测出的地面对应的点云数据1的第一法向量与真实地面的标准法向量之间的偏差反推得到偏航角不准确。因此,对于偏航角可以使用如下情况(2)来标定。It should be noted that the above step 4 can obtain not only the pitch angle and the roll angle, but also the yaw angle according to the rotation matrix R, but since the rotation matrix is based on the normal vector of the point cloud data 1 corresponding to the detected ground (that is, the first The deviation between the first normal vector and the normal vector of the real ground (ie the standard normal vector) is inferred, and the change of the yaw angle has no effect on the deviation between the first normal vector and the standard normal vector. The change of the sailing angle will not cause the first normal vector of the point cloud data 1 to change. Therefore, according to the deviation between the first normal vector of the point cloud data 1 corresponding to the detected ground and the standard normal vector of the real ground, it is inaccurate to obtain the yaw angle by reverse inference. Therefore, the following case (2) can be used to calibrate the yaw angle.
(2),根据第二类目标参考物,确定偏航角。其中,第二类目标参考物为沿着所述行驶道路设置的物体。关于第二类目标参考物的介绍请参见前文。(2), according to the second type of target reference, determine the yaw angle. Wherein, the second type of target reference is an object set along the driving road. See above for an introduction to the second category of target references.
具体来说,根据第二类目标参考物,确定偏航角,包括如下步骤1至步骤2。Specifically, according to the second type of target reference, determining the yaw angle includes the following steps 1 to 2.
步骤1,根据沿着行驶道路设置的物体,确定行驶道路的道路方向,所述道路方向满足:y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述第二类目标参考物在所述雷达坐标系中的位置。Step 1: Determine the road direction of the driving road according to the objects set along the driving road, and the road direction satisfies: y=C0+C1*x; wherein, C1 is used to indicate the road direction; C0 is used to describe the The distance between the object and the origin of the radar coordinate system, x and y are the positions of the second type of target reference in the radar coordinate system.
以第二类目标参考物是路灯为例,请参见图9,一种可实现方式为,根据路灯,确定行驶道路的道路方向的过程,包括:获取点云数据,确定点云数据中路灯1上的特征点1,比如特征点1可以是路灯1上的任一个点,确定路灯2上的特征点2,特征点2与特征点1对应。所以,基于特征点1和特征点2,可以确定线性关系y=C0+C1*x。Taking the second type of target reference as a street lamp as an example, please refer to FIG. 9 . An implementation method is, according to the street lamp, the process of determining the road direction of the driving road includes: acquiring point cloud data, and determining the street lamp 1 in the point cloud data. The feature point 1 on the street lamp 1, for example, the feature point 1 can be any point on the street lamp 1, and the feature point 2 on the street lamp 2 is determined, and the feature point 2 corresponds to the feature point 1. Therefore, based on feature point 1 and feature point 2, a linear relationship y=C0+C1*x can be determined.
步骤2,根据C1确定所述车载雷达的偏航角。Step 2: Determine the yaw angle of the vehicle-mounted radar according to C1.
比如,偏航角=arctan(1/C1),或者,偏航角=90-arctan(C1)。For example, yaw angle=arctan(1/C1), or, yaw angle=90-arctan(C1).
需要说明的是,在本申请实施例中,车辆根据行驶道路周围的目标参考物,对车载雷达的外参(比如三个姿态角)进行标定。特别是基于道路周围的路灯、指示牌、树木等对偏航角进行标定,有助于提升标定的偏航角的准确性。It should be noted that, in the embodiment of the present application, the vehicle calibrates the external parameters (such as three attitude angles) of the vehicle-mounted radar according to the target reference objects around the driving road. In particular, calibrating the yaw angle based on street lights, signs, trees, etc. around the road helps to improve the accuracy of the calibrated yaw angle.
以上实施例介绍对旋转角度的标定过程,下面介绍对平移距离的确定过程。The above embodiment introduces the calibration process of the rotation angle, and the following describes the determination process of the translation distance.
在本申请实施例中,可以根据第一类目标参考物,确定平移距离。其中,第一类目标参考物包括行驶道路的地面或与地面平行的平面物体中的至少一个。其中,平移距离包括Δ z、Δ x和Δ y。由于Δ x和Δ y一般不会发生变化,所以本申请实施例中,Δ x=Δ y=0。所以,可以根据第一类目标参考物,确定平移距离可以细化为:可以根据第一类目标参考物,确定Δ z。具体来说,包括如下步骤1至步骤2。 In this embodiment of the present application, the translation distance may be determined according to the first type of target reference. Wherein, the first type of target reference includes at least one of the ground of the driving road or a plane object parallel to the ground. Among them, the translation distance includes Δ z , Δ x and Δ y . Since Δx and Δy generally do not change, in the embodiment of the present application, Δx =Δy = 0. Therefore, the translation distance can be determined according to the first type of target reference and can be refined as follows: Δ z can be determined according to the first type of target reference. Specifically, the following steps 1 to 2 are included.
步骤1,确定点云数据2,点云数据2对应雷达坐标系中的第一类目标参考物。In step 1, point cloud data 2 is determined, and point cloud data 2 corresponds to the first type of target reference in the radar coordinate system.
步骤2,根据点云数据2,确定地面拟合方程。Step 2, according to the point cloud data 2, determine the ground fitting equation.
比如,使用地面分割算法,得到地面拟合方程,所述地面拟合方程满足:For example, using the ground segmentation algorithm, a ground fitting equation is obtained, and the ground fitting equation satisfies:
Ax+By-z+C=0Ax+By-z+C=0
步骤3,根据雷达坐标系原点到地面拟合方程的距离,确定平移距离。Step 3: Determine the translation distance according to the distance from the origin of the radar coordinate system to the ground fitting equation.
其中,雷达坐标系原点到地面拟合方程的距离可以通过点到平面的距离原理确定,本文不赘述。假设雷达坐标系原点到地面拟合方程的距离为D,那么根据D确定Δ z;比如,Δ z=D。 Among them, the distance from the origin of the radar coordinate system to the ground fitting equation can be determined by the principle of distance from point to plane, which is not repeated in this article. Assuming that the distance from the origin of the radar coordinate system to the ground fitting equation is D, then determine Δ z according to D; for example, Δ z =D.
通过以上的方式,完成对车载雷达的外参(旋转角度和/或平移距离)的标定。外参标定完成之后,还可以进一步的判断标定出的外参是否准确,如果不准确,还可以调整标定出的外参,具体包括如下步骤S804至S806。In the above manner, the calibration of the external parameters (rotation angle and/or translation distance) of the vehicle-mounted radar is completed. After the calibration of the external parameters is completed, it can be further judged whether the calibrated external parameters are accurate, and if not, the calibrated external parameters can be adjusted, which specifically includes the following steps S804 to S806.
S804,使用标定出的外参将目标平面物体在雷达坐标系中的第一点云数据转换到在惯性坐标系下的第二点云数据。S804, using the calibrated external parameters to convert the first point cloud data of the target plane object in the radar coordinate system to the second point cloud data in the inertial coordinate system.
S805,判断第二点云数据的平整度是否满足第一条件。S805: Determine whether the flatness of the second point cloud data satisfies the first condition.
其中,S804至S805的实现原理请参见图6所示实施例中S602和S603的实现原理相同,所以不重复赘述。For the implementation principles of S804 to S805, please refer to the implementation principles of S602 and S603 in the embodiment shown in FIG.
S806,如果第二点云数据的平整度不满足第一条件,调整所述标定出的外参。S806, if the flatness of the second point cloud data does not meet the first condition, adjust the calibrated external parameters.
需要说明的是,如果第二点云数据的平整度不满足第一条件,说明标定出的外参准确性较低。所以,可以调整标定出的外参。外参包括旋转角度或平移距离中的至少一种。所以,调整外参可以包括调整旋转角度即三个姿态角。其中,调整旋转角度的方式可以包括如下方式A至方式C中的至少一种。It should be noted that, if the flatness of the second point cloud data does not meet the first condition, it means that the accuracy of the calibrated external parameters is low. Therefore, the calibrated external parameters can be adjusted. The extrinsic parameter includes at least one of a rotation angle or a translation distance. Therefore, adjusting the external parameters can include adjusting the rotation angle, that is, the three attitude angles. The manner of adjusting the rotation angle may include at least one of the following manners A to C.
方式A,确定目标函数f,目标函数f用于描述
Figure PCTCN2022082560-appb-000017
Figure PCTCN2022082560-appb-000018
之间的夹角。其中,
Figure PCTCN2022082560-appb-000019
为第二点云数据中两点之间的向量(如图7所示的点P与点Q之间的第一向量);
Figure PCTCN2022082560-appb-000020
是第二点云数据的法向量(比如图7所示的第二向量)。然后,求解该目标函数的最优解。
Method A, determine the objective function f, the objective function f is used to describe
Figure PCTCN2022082560-appb-000017
and
Figure PCTCN2022082560-appb-000018
the angle between. in,
Figure PCTCN2022082560-appb-000019
is the vector between two points in the second point cloud data (the first vector between point P and point Q as shown in Figure 7);
Figure PCTCN2022082560-appb-000020
is the normal vector of the second point cloud data (such as the second vector shown in Figure 7). Then, solve the optimal solution of this objective function.
示例性的,目标函数
Figure PCTCN2022082560-appb-000021
其中,
Figure PCTCN2022082560-appb-000022
Figure PCTCN2022082560-appb-000023
中的自变量包括三个姿态角,所以上述公式的自变量包括三个姿态角,因此目标函数f可以表示为f(β,γ,α)。其中,俯仰角是β(pitch),偏航角是γ(yaw),滚转角是α(roll)。
Exemplary, the objective function
Figure PCTCN2022082560-appb-000021
in,
Figure PCTCN2022082560-appb-000022
and
Figure PCTCN2022082560-appb-000023
The independent variables in include three attitude angles, so the independent variables of the above formula include three attitude angles, so the objective function f can be expressed as f(β, γ, α). Among them, the pitch angle is β (pitch), the yaw angle is γ (yaw), and the roll angle is α (roll).
确定目标函数f之后,在自变量参数(俯仰角、滚转角、偏航角)的搜索范围内,找到使得所述目标函数f处于阈值范围(比如,[85度,95度]区间范围)内的自变量(即三个姿态角)。其中,自变量(俯仰角、滚转角、偏航角)的搜索范围,可以包括:比如,俯仰角处于[0,M0]区间内,滚转角处于[0,M1]区间内,偏航角处于[0,M2]区间内。其中,M0、M1、M2的具体取值,本申请实施例不作限定。After determining the objective function f, within the search range of the independent variable parameters (pitch angle, roll angle, yaw angle), find that the objective function f is within the threshold range (for example, [85 degrees, 95 degrees] interval range) The independent variables (that is, the three attitude angles). Among them, the search range of the independent variables (pitch angle, roll angle, yaw angle) may include: for example, the pitch angle is in the interval [0, M0], the roll angle is in the interval [0, M1], and the yaw angle is in the interval [0, M1]. [0, M2] interval. The specific values of M0, M1, and M2 are not limited in this embodiment of the present application.
也就是说,在自变量参数的搜索范围内寻找到能够使得目标函数f处于[85度,95度]的自变量参数,该自变量参数包括寻找到的准确的旋转角度(即三个姿态角)。That is to say, within the search range of the independent variable parameters, find the independent variable parameters that can make the objective function f be at [85 degrees, 95 degrees], and the independent variable parameters include the found accurate rotation angles (that is, the three attitude angles). ).
方式B,确定目标函数f,目标函数f用于描述
Figure PCTCN2022082560-appb-000024
Figure PCTCN2022082560-appb-000025
之间的垂直关系。其中,
Figure PCTCN2022082560-appb-000026
为第二点云数据中两点之间的向量(如图7所示的点P与点Q之间的第一向量);
Figure PCTCN2022082560-appb-000027
是第二点云数据的法向量(比如图7所示的第二向量)。然后,求解该目标函数的最优解。
Method B, determine the objective function f, the objective function f is used to describe
Figure PCTCN2022082560-appb-000024
and
Figure PCTCN2022082560-appb-000025
vertical relationship between them. in,
Figure PCTCN2022082560-appb-000026
is the vector between two points in the second point cloud data (the first vector between point P and point Q as shown in Figure 7);
Figure PCTCN2022082560-appb-000027
is the normal vector of the second point cloud data (such as the second vector shown in Figure 7). Then, solve the optimal solution of this objective function.
示例性的,目标函数
Figure PCTCN2022082560-appb-000028
其中,
Figure PCTCN2022082560-appb-000029
Figure PCTCN2022082560-appb-000030
的自变量包括三个姿态角,所以,f可以表示为f(β,γ,α)。
Exemplary, the objective function
Figure PCTCN2022082560-appb-000028
in,
Figure PCTCN2022082560-appb-000029
and
Figure PCTCN2022082560-appb-000030
The independent variables include three attitude angles, so f can be expressed as f(β, γ, α).
确定目标函数f之后,在自变量参数(俯仰角、滚转角、偏航角)的搜索范围内,找到使得所述目标函数f达到最小值的外参值。其中,自变量(俯仰角、滚转角、偏航角)的搜索范围,可以包括:比如,俯仰角处于[0,M0]区间内,滚转角处于[0,M1]区间内,偏航角处于[0,M2]区间内。使得所述目标函数f达到最小值的自变量为寻找到的准确的旋转角度(即三个姿态角)。After determining the objective function f, within the search range of the independent variable parameters (pitch angle, roll angle, yaw angle), find the external parameter value that makes the objective function f reach the minimum value. Among them, the search range of the independent variables (pitch angle, roll angle, yaw angle) may include: for example, the pitch angle is in the interval [0, M0], the roll angle is in the interval [0, M1], and the yaw angle is in the interval [0, M1]. [0, M2] interval. The independent variable that makes the objective function f reach the minimum value is the exact rotation angle (ie, three attitude angles) found.
方式C,确定目标函数f,目标函数f用于描述第二向量在第一向量上的投影距离(比 如图7中第二向量在第一向量上的投影距离)。所述投影距离可以理解为第二向量的顶点到第一向量的距离。或者,目标函数f还可以描述点到平面的距离,所述平面是指根据第二点云数据拟合出的平面,所述点是所述第二点云数据中的任一点。In mode C, the objective function f is determined, and the objective function f is used to describe the projection distance of the second vector on the first vector (for example, the projection distance of the second vector on the first vector in FIG. 7 ). The projection distance can be understood as the distance from the vertex of the second vector to the first vector. Alternatively, the objective function f may also describe the distance from a point to a plane, where the plane refers to a plane fitted according to the second point cloud data, and the point is any point in the second point cloud data.
示例性的,所述目标函数f满足如下公式:Exemplarily, the objective function f satisfies the following formula:
Figure PCTCN2022082560-appb-000031
Figure PCTCN2022082560-appb-000031
上述公式中,p k和m k是第二点云数据中的两个点。η k是拟合出的平面的法向量。如果第二点云数据的平整度较好,第二点云数据中各个点到拟合出的平面的距离较小。因此,在自变量参数(俯仰角、滚转角、偏航角)的搜索范围内,找到使得所述目标函数f达到最小值的外参值。其中,自变量(俯仰角、滚转角、偏航角)的搜索范围,可以包括:比如,俯仰角处于[0,M0]区间内,滚转角处于[0,M1]区间内,偏航角处于[0,M2]区间内。其中,使得所述目标函数f达到最小值的自变量为寻找到的准确的旋转角度(即三个姿态角)。 In the above formula, p k and m k are two points in the second point cloud data. η k is the normal vector of the fitted plane. If the flatness of the second point cloud data is good, the distance between each point in the second point cloud data and the fitted plane is small. Therefore, within the search range of the independent variable parameters (pitch angle, roll angle, yaw angle), find the extrinsic parameter value that makes the objective function f reach the minimum value. Among them, the search range of the independent variables (pitch angle, roll angle, yaw angle) may include: for example, the pitch angle is in the interval [0, M0], the roll angle is in the interval [0, M1], and the yaw angle is in the interval [0, M1]. [0, M2] interval. Wherein, the independent variable that makes the objective function f reach the minimum value is the exact rotation angle (ie, three attitude angles) found.
以上三种方式是以不同的目标函数求解三个姿态角的准确值。在实际应用中还可以使用其他的目标函数求解,本申请实施例不作限定。The above three methods use different objective functions to obtain the exact values of the three attitude angles. In practical applications, other objective functions can also be used to solve, which are not limited in the embodiments of the present application.
总结来说,实施例三中,不仅可以根据车辆的行驶信息,确定是否对车载雷达的外参进行标定,如果确定对车载雷达的外参进行标定,还可以判断标定出的外参是否满足条件(即S804和S805),如果不满足,则调整标定出的外参,提升外参的准确性。To sum up, in the third embodiment, not only can it be determined whether to calibrate the external parameters of the vehicle radar according to the driving information of the vehicle, but if it is determined to calibrate the external parameters of the vehicle radar, it can also be judged whether the calibrated external parameters meet the conditions. (ie S804 and S805), if not satisfied, adjust the calibrated external parameters to improve the accuracy of the external parameters.
下面结合附图介绍本申请实施例中用来实现上述方法的装置。因此,上文中的内容均可以用于后续实施例中,重复的内容不再赘述。The apparatus for implementing the above method in the embodiments of the present application will be described below with reference to the accompanying drawings. Therefore, the above content can be used in subsequent embodiments, and repeated content will not be repeated.
图10为本申请实施例提供的车载雷达的外参标定装置1000的结构框图。车载雷达的外参标定装置1000包括:获取单元1001和处理单元1002。其中,获取单元1001,用于获取所述车辆的行驶信息,所述行驶信息包括行驶状态信息或行驶路况信息中的至少一种;其中,所述行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个;所述行驶路况信息用于指示所述车辆的行驶道路或所述行驶道路周围的物体中的至少一项;处理单元1002,用于根据所述行驶信息,确定对所述车载雷达进行外参标定。FIG. 10 is a structural block diagram of a device 1000 for calibrating external parameters of a vehicle-mounted radar according to an embodiment of the present application. The external parameter calibration device 1000 of the vehicle-mounted radar includes: an acquisition unit 1001 and a processing unit 1002 . Wherein, the obtaining unit 1001 is configured to obtain the driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle or at least one of yaw angular velocity; the driving road condition information is used to indicate at least one of the driving road of the vehicle or the objects around the driving road; the processing unit 1002 is configured to determine, according to the driving information The vehicle-mounted radar is calibrated with external parameters.
示例性地,获取单元1001和处理单元1002可以是处理器,例如应用处理器或基带处理器,处理器中可以包括一个或多个中央处理模块(central processing unit,CPU)。Exemplarily, the acquiring unit 1001 and the processing unit 1002 may be processors, such as application processors or baseband processors, and the processors may include one or more central processing units (CPUs).
示例性的,车载雷达的外参标定装置1000可以是车辆或车载装置,或者,车辆或车载装置中的处理模块或者芯片系统,比如车载处理器或电子控制单元(electronic control unit,ECU)。Exemplarily, the external parameter calibration device 1000 of the vehicle-mounted radar may be a vehicle or a vehicle-mounted device, or a processing module or a chip system in a vehicle or a vehicle-mounted device, such as a vehicle-mounted processor or an electronic control unit (ECU).
示例性的,车载雷达的外参标定装置1000还可以是处于车载雷达内的处理模块(比如处理器)。Exemplarily, the external parameter calibration apparatus 1000 of the vehicle-mounted radar may also be a processing module (such as a processor) in the vehicle-mounted radar.
可选的,车载雷达的外参标定装置1000还可以包括通信单元。通信单元可以包括接收单元和发送单元。发送单元可以是一个功能模块,用于执行发送操作;接收单元可以是一个功能模块,用于执行接收操作。Optionally, the external parameter calibration apparatus 1000 of the vehicle-mounted radar may further include a communication unit. The communication unit may include a receiving unit and a transmitting unit. The sending unit may be a functional module for performing a sending operation; the receiving unit may be a functional module for performing a receiving operation.
在一种可能的设计中,所述处理单元1002具体用于:根据所述行驶状态信息,确定满足如下至少一个条件时,确定对所述车载雷达进行外参标定,其中,所述条件包括:In a possible design, the processing unit 1002 is specifically configured to: determine to perform external parameter calibration on the vehicle radar when at least one of the following conditions is satisfied according to the driving state information, wherein the conditions include:
所述速度小于第一阈值、所述车辆均速行驶、所述加速度小于第二阈值、所述偏航角处于预设范围内、或所述偏航角速度小于第三阈值。The speed is less than a first threshold, the vehicle is traveling at an average speed, the acceleration is less than a second threshold, the yaw angle is within a preset range, or the yaw angle speed is less than a third threshold.
在一种可能的设计中,所述处理单元1002具体用于:根据所述行驶路况信息,确定所述行驶道路是直行道路和/或所述行驶道路周围存在目标参照物时,确定对所述车载雷达进行外参标定。In a possible design, the processing unit 1002 is specifically configured to: according to the driving road condition information, determine that the driving road is a straight road and/or when there is a target reference object around the driving road, determine whether the driving road is a straight road. The vehicle radar performs external parameter calibration.
在一种可能的设计中,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;所述处理单元1002还用于:根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度或所述平移距离中的至少一项。In a possible design, the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the processing unit 1002 is further configured to: determine, according to the target reference around the driving road, At least one of the rotation angle or the translation distance of the vehicle radar.
在一种可能的设计中,所述处理单元1002在用于根据所述行驶道路周围的目标参考物,确定所述车载雷达的所述旋转角度时,具体用于:根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。In a possible design, when the processing unit 1002 is used to determine the rotation angle of the vehicle radar according to the target reference around the driving road, it is specifically used for: according to the ground of the driving road Or a plane object parallel to the ground, determine the pitch angle and roll angle of the vehicle-mounted radar; determine the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road.
在一种可能的设计中,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路的地面平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路的地面垂直设置的第二类型物体;其中,所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。In a possible design, the objects disposed along the travel road include: first type objects disposed along the travel road and parallel to the ground of the travel road, and/or along the travel road The second type of object on the driving road and perpendicular to the ground of the driving road; wherein, the first type of object includes: at least one of a road edge, a guardrail, a green belt or a lane line; the second type of object Type objects include: at least one of trees, signs, or street lights.
在一种可能的设计中,所述处理单元1002在用于根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角时,具体用于:根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;根据所述C1确定所述车载雷达的偏航角。In a possible design, when the processing unit 1002 is used to determine the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road, the processing unit 1002 is specifically configured to: according to the setting along the driving road determine the road direction of the driving road, wherein the road direction satisfies y=C0+C1*x; wherein, C1 is used to indicate the road direction; C0 is used to describe the object and the radar coordinates The distance between the origins of the system, x and y are the coordinates of the object in the radar coordinate system; the yaw angle of the vehicle radar is determined according to the C1.
在一种可能的设计中,所述获取单元1001还用于:获取所述车载雷达的外参;In a possible design, the acquisition unit 1001 is further configured to: acquire external parameters of the vehicle-mounted radar;
所述处理单元1002还用于:使用所述外参将所述行驶道路周围的目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;如果所述第二点云数据的平整度不满足第一条件,调整所述外参。The processing unit 1002 is further configured to: use the external parameter to convert the first point cloud data corresponding to the target plane object around the driving road in the vehicle radar coordinate system into the second point cloud data in the inertial coordinate system; If the flatness of the second point cloud data does not meet the first condition, adjust the external parameter.
在一种可能的设计中,所述第二点云数据的平整度不满足第一条件,包括:所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;或者,所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。In a possible design, the flatness of the second point cloud data does not satisfy the first condition, including: any two reflection points of different transmit beams in the second point cloud data on the target plane object The first vector between is not perpendicular to the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data; or, any two different transmit beams in the second point cloud data are in the The included angle between the first vector between the reflection points on the target plane object and the normal vector of the point cloud data corresponding to any one or more transmit beams in the second point cloud data is not within a preset range.
在一种可能的设计中,所述处理单元1002在调整所述外参时,具体用于:基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。In a possible design, when adjusting the external parameters, the processing unit 1002 is specifically configured to: generate an objective function based on the external parameters, where the objective function is used to describe the first vector and the The angle between the normal vectors, or the objective function is used to describe the projection distance of the normal vector on the first vector; within the preset external parameter adjustment range, find the objective function to reach the minimum value of external parameters.
本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能单元可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The division of units in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
图10中的各个单元的只一个或多个可以软件、硬件、固件或其结合实现。所述软件或固件包括但不限于计算机程序指令或代码,并可以被硬件处理器所执行。所述硬件包括但不限于各类集成电路,如中央处理单元(CPU)、数字信号处理器(DSP)、现场可编程 门阵列(FPGA)或专用集成电路(ASIC)。Only one or more of the various elements in FIG. 10 may be implemented in software, hardware, firmware, or a combination thereof. The software or firmware includes, but is not limited to, computer program instructions or code, and can be executed by a hardware processor. The hardware includes, but is not limited to, various types of integrated circuits, such as central processing units (CPUs), digital signal processors (DSPs), field programmable gate arrays (FPGAs), or application specific integrated circuits (ASICs).
图11为本申请实施例提供的车载雷达的外参标定装置1100的结构框图。图11所示的车载雷达的外参标定装置1100包括至少一个处理器1101。车载雷达的外参标定装置1100还包括至少一个存储器1102,用于存储程序指令和/或数据。存储器1102和处理器1101耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性、机械性或其它的形式,用于装置、单元或模块之间的信息交互。处理器1101可以和存储器1102协同操作,处理器1101可以执行存储器1102中存储的程序指令,所述至少一个存储器1102中的至少一个可以包括于处理器1101中。所述车载雷达的外参标定装置1100还可以包括接口电路(图中未示出),处理器1101通过所述接口电路与存储器1102耦合,处理器1101能够执行存储器1102中的程序代码,以实现本申请实施例提供的车载雷达的外参标定方法。FIG. 11 is a structural block diagram of an external parameter calibration apparatus 1100 of a vehicle-mounted radar provided by an embodiment of the present application. The external parameter calibration apparatus 1100 of the vehicle-mounted radar shown in FIG. 11 includes at least one processor 1101 . The external parameter calibration device 1100 of the vehicle-mounted radar further includes at least one memory 1102 for storing program instructions and/or data. Memory 1102 and processor 1101 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1101 may cooperate with the memory 1102 , the processor 1101 may execute program instructions stored in the memory 1102 , and at least one of the at least one memory 1102 may be included in the processor 1101 . The external parameter calibration device 1100 of the vehicle radar may also include an interface circuit (not shown in the figure), the processor 1101 is coupled with the memory 1102 through the interface circuit, and the processor 1101 can execute the program code in the memory 1102 to achieve The external parameter calibration method of the vehicle-mounted radar provided by the embodiment of the present application.
可选的,车载雷达的外参标定装置1100还可包括通信接口1103,用于通过传输介质和其它设备进行通信,从而用于车载雷达的外参标定装置1100可以和其它设备进行通信。在本申请实施例中,通信接口可以是收发器、电路、总线、模块或其它类型的通信接口。在本申请实施例中,通信接口为收发器时,收发器可以包括独立的接收器、独立的发射器;也可以集成收发功能的收发器、或者接口电路等。Optionally, the external parameter calibration apparatus 1100 for vehicle radar may further include a communication interface 1103 for communicating with other devices through a transmission medium, so that the external parameter calibration apparatus 1100 for vehicle radar may communicate with other devices. In this embodiment of the present application, the communication interface may be a transceiver, a circuit, a bus, a module, or other types of communication interfaces. In the embodiment of the present application, when the communication interface is a transceiver, the transceiver may include an independent receiver and an independent transmitter; a transceiver with integrated transceiver functions, or an interface circuit, etc. may also be included.
应理解,本申请实施例中不限定上述处理器1101、存储器1102以及通信接口1103之间的连接介质。本申请实施例在图11中以存储器1102、处理器1101以及通信接口1103之间通过通信总线1104连接,总线在图11中以粗线表示,其它部件之间的连接方式,仅是示意性说明,并不作为限定。所述总线可以包括地址总线、数据总线、控制总线等。为了便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线等。It should be understood that a connection medium between the above-mentioned processor 1101 , the memory 1102 , and the communication interface 1103 is not limited in the embodiments of the present application. In this embodiment of the present application, the memory 1102, the processor 1101, and the communication interface 1103 are connected through a communication bus 1104 in FIG. 11. The bus is represented by a thick line in FIG. 11, and the connection between other components is only a schematic illustration. , not as a limitation. The bus may include an address bus, a data bus, a control bus, and the like. For convenience of presentation, only one thick line is used in FIG. 11 , but it does not mean that there is only one bus or one type of bus or the like.
比如,当存储器1102中的计算机指令被处理器1101执行时,使得所述装置执行:获取所述车辆的行驶信息,所述行驶信息包括行驶状态信息或行驶路况信息中的至少一种;其中,所述行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个;所述行驶路况信息用于指示所述车辆的行驶道路或所述行驶道路周围的物体中的至少一项;根据所述行驶信息,确定对所述车载雷达进行外参标定。For example, when the computer instructions in the memory 1102 are executed by the processor 1101, the device is caused to execute: acquiring the driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein, The driving state information includes at least one of speed, acceleration, yaw angle or yaw angular velocity; the driving road condition information is used to indicate at least one of a driving road of the vehicle or objects around the driving road; According to the driving information, it is determined to perform external parameter calibration on the vehicle-mounted radar.
本申请提供一种计算机可读存储介质,包括计算机指令,当所述计算机指令在被处理器运行时,使得所述车载雷达的外参标定装置执行本申请实施例中所述的车载雷达的外参标定方法。The present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed by a processor, the external parameter calibration device of the vehicle-mounted radar can perform the external parameter calibration of the vehicle-mounted radar described in the embodiments of the present application. parameter calibration method.
本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序,当所述计算机程序产品在处理器上运行时,使得所述车载雷达的外参标定装置执行本申请实施例中所述的车载雷达的外参标定方法。The present application provides a computer program product, the computer program product includes a computer program, when the computer program product runs on a processor, the external parameter calibration device of the vehicle-mounted radar is made to execute the method described in the embodiments of the present application. External parameter calibration method of vehicle radar.
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, steps and logic block diagrams disclosed in the embodiments of this application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令 或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In this embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM). Memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or", which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,简称DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,简称DVD)、或者半导体介质(例如,SSD)等。The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (such as infrared, wireless, microwave, etc.) A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The available media can be magnetic media (eg, floppy disks, hard disks, magnetic tape), optical media (eg, digital video disc (DVD) for short), or semiconductor media (eg, SSD), and the like.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (23)

  1. 一种车载雷达的外参标定方法,应用于车辆,所述车辆包括雷达,其特征在于,包括:A method for calibrating external parameters of a vehicle-mounted radar, which is applied to a vehicle, wherein the vehicle includes a radar, and is characterized in that it includes:
    获取所述车辆的行驶信息,所述行驶信息包括行驶状态信息或行驶路况信息中的至少一种;其中,所述行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个;所述行驶路况信息包括所述车辆的行驶道路或行驶道路周围的物体中的至少一项;Acquiring driving information of the vehicle, where the driving information includes at least one of driving status information or driving road condition information; wherein the driving status information includes at least one of speed, acceleration, yaw angle, or yaw angular velocity; The driving road condition information includes at least one of a driving road of the vehicle or objects around the driving road;
    根据所述行驶信息,对所述车载雷达进行外参标定。According to the driving information, external parameter calibration is performed on the vehicle-mounted radar.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述行驶信息,对所述车载雷达进行外参标定,包括:根据所述行驶状态信息,确定满足如下条件中的至少一个时,对所述车载雷达进行外参标定,其中,所述条件包括:The method according to claim 1, wherein the performing external parameter calibration on the vehicle-mounted radar according to the driving information comprises: determining, according to the driving state information, that when at least one of the following conditions is satisfied, Perform external parameter calibration on the vehicle radar, wherein the conditions include:
    所述速度小于第一阈值、所述车辆均速行驶、所述加速度小于第二阈值、所述偏航角处于预设范围内、或所述偏航角速度小于第三阈值。The speed is less than a first threshold, the vehicle is traveling at an average speed, the acceleration is less than a second threshold, the yaw angle is within a preset range, or the yaw angle speed is less than a third threshold.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述行驶信息,对所述车载雷达进行外参标定,包括:The method according to claim 1, wherein the performing external parameter calibration on the vehicle radar according to the driving information comprises:
    根据所述行驶路况信息,确定所述行驶道路是直行道路和/或所述行驶道路周围存在目标参照物时,对所述车载雷达进行外参标定。According to the driving road condition information, when it is determined that the driving road is a straight road and/or that there is a target reference object around the driving road, external parameter calibration is performed on the vehicle-mounted radar.
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;所述方法还包括:The method according to any one of claims 1-3, wherein the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the method further comprises:
    根据所述行驶道路周围的目标参考物,确定所述车载雷达的旋转角度或平移距离中的至少一项。At least one of a rotation angle or a translation distance of the vehicle-mounted radar is determined according to the target reference around the driving road.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述行驶道路周围的目标参考物,确定所述车载雷达的旋转角度,包括:The method according to claim 4, wherein the determining the rotation angle of the vehicle-mounted radar according to the target reference around the driving road comprises:
    根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;Determine the pitch angle and the roll angle of the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground;
    根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。The yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  6. 根据权利要求5所述的方法,其特征在于,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路平行设置的第一类型物体,和/或,沿着所述行驶道路且与所述行驶道路垂直设置的第二类型物体;The method according to claim 5, wherein the objects arranged along the driving road include: first type objects arranged along the driving road and parallel to the driving road, and/or , objects of the second type arranged along the travel road and perpendicular to the travel road;
    其中,所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the first type of object includes at least one of a road edge, a guardrail, a green belt or a lane line; the second type of object includes at least one of a tree, a sign or a street lamp.
  7. 根据权利要求5或6所述的方法,其特征在于,根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角,包括:The method according to claim 5 or 6, wherein determining the yaw angle of the vehicle-mounted radar according to objects arranged along the driving road, comprising:
    根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;Determine the road direction of the driving road according to the objects arranged along the driving road, wherein the road direction satisfies y=C0+C1*x; wherein, C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, where x and y are the coordinates of the object in the radar coordinate system;
    根据所述C1确定所述车载雷达的偏航角。The yaw angle of the vehicle radar is determined according to the C1.
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-7, wherein the method further comprises:
    获取所述车载雷达的外参;obtain the external parameters of the vehicle radar;
    确定所述行驶道路周围的目标平面物体;determining a target plane object around the driving road;
    使用所述外参将所述目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;Using the external parameter to convert the first point cloud data corresponding to the target plane object in the vehicle radar coordinate system into the second point cloud data in the inertial coordinate system;
    如果所述第二点云数据的平整度不满足第一条件,调整所述外参。If the flatness of the second point cloud data does not meet the first condition, adjust the external parameter.
  9. 根据权利要求8所述的方法,其特征在于,所述第二点云数据的平整度不满足第一条件,包括:The method according to claim 8, wherein the flatness of the second point cloud data does not meet the first condition, comprising:
    所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量不垂直;The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The normal vector of is not perpendicular;
    或者,or,
    所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或者多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
  10. 根据权利要求9所述的方法,其特征在于,所述调整所述外参,包括:The method according to claim 9, wherein the adjusting the external parameter comprises:
    基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;Based on the external parameters, an objective function is generated, the objective function is used to describe the angle between the first vector and the normal vector, or the objective function is used to describe the normal vector in the first Projection distance on a vector;
    在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。Within the preset external parameter adjustment range, find the external parameter that makes the objective function reach the minimum value.
  11. 一种车载雷达的外参标定装置,其特征在于,包括:An external parameter calibration device for a vehicle-mounted radar, characterized in that it includes:
    获取单元,获取所述车辆的行驶信息,所述行驶信息包括行驶状态信息或行驶路况信息中的至少一种;其中,所述行驶状态信息包括速度、加速度、偏航角或偏航角速度中的至少一个;所述行驶路况信息包括所述车辆的行驶道路或所述行驶道路周围的物体中的至少一项;The acquiring unit acquires the driving information of the vehicle, where the driving information includes at least one of driving state information or driving road condition information; wherein the driving state information includes speed, acceleration, yaw angle or yaw angle speed. at least one; the driving road condition information includes at least one of the driving road of the vehicle or the objects around the driving road;
    处理单元,根据所述行驶信息,对所述车载雷达进行外参标定。The processing unit performs external parameter calibration on the vehicle radar according to the driving information.
  12. 根据权利要求11所述的装置,其特征在于,所述处理单元具体用于:The apparatus according to claim 11, wherein the processing unit is specifically configured to:
    根据所述行驶状态信息,确定满足如下条件中的至少一个时,对所述车载雷达进行外参标定,其中,所述条件包括:According to the driving state information, when it is determined that at least one of the following conditions is satisfied, perform external parameter calibration on the vehicle-mounted radar, wherein the conditions include:
    所述速度小于第一阈值、所述车辆均速行驶、所述加速度小于第二阈值、所述偏航角处于预设范围内、或所述偏航角速度小于第三阈值。The speed is less than a first threshold, the vehicle is traveling at an average speed, the acceleration is less than a second threshold, the yaw angle is within a preset range, or the yaw angle speed is less than a third threshold.
  13. 根据权利要求11所述的装置,其特征在于,所述处理单元具体用于:The apparatus according to claim 11, wherein the processing unit is specifically configured to:
    根据所述行驶路况信息,确定所述行驶道路是直行道路和/或所述行驶道路周围存在目标参照物时,对所述车载雷达进行外参标定。According to the driving road condition information, when it is determined that the driving road is a straight road and/or that there is a target reference object around the driving road, external parameter calibration is performed on the vehicle-mounted radar.
  14. 根据权利要求11-13任一所述的装置,其特征在于,所述外参包括所述车载雷达的旋转角度或平移距离中的至少一项;所述处理单元还用于:The device according to any one of claims 11-13, wherein the external parameter includes at least one of a rotation angle or a translation distance of the vehicle-mounted radar; the processing unit is further configured to:
    根据所述行驶道路周围的目标参考物,确定所述车载雷达的旋转角度或平移距离中的至少一项。At least one of a rotation angle or a translation distance of the vehicle-mounted radar is determined according to the target reference around the driving road.
  15. 根据权利要求14所述的装置,其特征在于,所述处理单元在用于根据所述行驶道路周围的目标参考物,确定所述车载雷达的旋转角度时,具体用于:The device according to claim 14, wherein when the processing unit is used to determine the rotation angle of the vehicle-mounted radar according to the target reference around the driving road, it is specifically used to:
    根据所述行驶道路的地面或与所述地面平行的平面物体,确定所述车载雷达的俯仰角和滚转角;Determine the pitch angle and the roll angle of the vehicle-mounted radar according to the ground of the driving road or a plane object parallel to the ground;
    根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角。The yaw angle of the vehicle-mounted radar is determined according to the objects arranged along the driving road.
  16. 根据权利要求15所述的装置,其特征在于,所述沿着所述行驶道路设置的物体,包括:沿着所述行驶道路且与所述行驶道路平行设置的第一类型物体,和/或,沿着所述行 驶道路且与所述行驶道路垂直设置的第二类型物体;16. The device according to claim 15, wherein the objects disposed along the travel road comprise: first type objects disposed along the travel road and parallel to the travel road, and/or , objects of the second type arranged along the travel road and perpendicular to the travel road;
    其中,所述第一类型物体包括:路沿、护栏、绿化带或车道线中的至少一种;所述第二类型物体包括:树木、指示牌或路灯中的至少一种。Wherein, the first type of object includes at least one of a road edge, a guardrail, a green belt or a lane line; the second type of object includes at least one of a tree, a sign or a street lamp.
  17. 根据权利要求15或16所述的装置,其特征在于,所述处理单元在用于根据沿着所述行驶道路设置的物体,确定所述车载雷达的偏航角时,具体用于:The device according to claim 15 or 16, wherein when the processing unit is used to determine the yaw angle of the vehicle-mounted radar according to the objects arranged along the driving road, the processing unit is specifically used for:
    根据沿着所述行驶道路设置的物体,确定所述行驶道路的道路方向,其中,所述道路方向满足y=C0+C1*x;其中,C1用于指示所述道路方向;C0用于描述所述物体与所述雷达坐标系原点之间的距离,x和y是所述物体在所述雷达坐标系中的坐标;Determine the road direction of the driving road according to the objects arranged along the driving road, wherein the road direction satisfies y=C0+C1*x; wherein, C1 is used to indicate the road direction; C0 is used to describe the distance between the object and the origin of the radar coordinate system, where x and y are the coordinates of the object in the radar coordinate system;
    根据所述C1确定所述车载雷达的偏航角。The yaw angle of the vehicle radar is determined according to the C1.
  18. 根据权利要求11-17任一所述的装置,其特征在于,所述获取单元还用于:The device according to any one of claims 11-17, wherein the acquiring unit is further configured to:
    获取所述车载雷达的外参;obtain the external parameters of the vehicle radar;
    确定所述行驶道路周围的目标平面物体;determining a target plane object around the driving road;
    所述处理单元还用于:使用所述外参将所述目标平面物体在车载雷达坐标系中对应的第一点云数据转换为惯性坐标系中的第二点云数据;如果所述第二点云数据的平整度不满足第一条件,调整所述外参。The processing unit is further configured to: use the external parameters to convert the first point cloud data corresponding to the target plane object in the vehicle radar coordinate system into the second point cloud data in the inertial coordinate system; if the second point cloud data If the flatness of the point cloud data does not meet the first condition, adjust the external parameter.
  19. 根据权利要求18所述的装置,其特征在于,所述第二点云数据的平整度不满足第一条件,包括:The device according to claim 18, wherein the flatness of the second point cloud data does not meet the first condition, comprising:
    所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或多个发射波束对应的点云数据的法向量不垂直;The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The normal vector of is not perpendicular;
    或者,or,
    所述第二点云数据中任意两不同发射波束在所述目标平面物体上的反射点之间的第一向量与所述第二点云数据中任一个或多个发射波束对应的点云数据的法向量之间的夹角不处于预设范围内。The first vector between the reflection points of any two different transmit beams on the target plane object in the second point cloud data and the point cloud data corresponding to any one or more transmit beams in the second point cloud data The angle between the normal vectors of is not within the preset range.
  20. 根据权利要求18或19所述的装置,其特征在于,所述处理单元在调整所述外参时,具体用于:The device according to claim 18 or 19, wherein when the processing unit adjusts the external parameter, it is specifically configured to:
    基于所述外参,生成目标函数,所述目标函数用于描述所述第一向量和所述法向量之间的夹角,或者,所述目标函数用于描述所述法向量在所述第一向量上的投影距离;Based on the external parameters, an objective function is generated, the objective function is used to describe the angle between the first vector and the normal vector, or the objective function is used to describe the normal vector in the first Projection distance on a vector;
    在预设外参调整范围内,寻找使得所述目标函数达到最小值的外参。Within the preset external parameter adjustment range, find the external parameter that makes the objective function reach the minimum value.
  21. 一种车载雷达的外参标定装置,其特征在于,包括存储器和一个或多个处理器;其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述处理器执行时,使得所述装置执行如权利要求1-10中任一项所述的方法。An external parameter calibration device for a vehicle-mounted radar, characterized in that it includes a memory and one or more processors; wherein, the memory is used to store computer program codes, and the computer program codes include computer instructions; when the computer instructions When executed by the processor, the apparatus is caused to perform the method of any of claims 1-10.
  22. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在车载雷达的外参标定装置运行时,使得所述车载雷达的外参标定装置执行如权利要求1-10中任一项所述的方法。A computer-readable storage medium, characterized in that it includes computer instructions, when the computer instructions are executed in the external parameter calibration device of the vehicle-mounted radar, the external parameter calibration device of the vehicle-mounted radar is made to perform as in claims 1-10. The method of any one.
  23. 一种车辆,其特征在于,所述车辆包括如权利要求11至21任一项所述的车载雷达的外参标定装置。A vehicle, characterized in that, the vehicle comprises the external parameter calibration device of the vehicle-mounted radar according to any one of claims 11 to 21.
PCT/CN2022/082560 2021-03-31 2022-03-23 External parameter calibration method and apparatus for vehicle-mounted radar WO2022206519A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110351002.5A CN115144825A (en) 2021-03-31 2021-03-31 External parameter calibration method and device for vehicle-mounted radar
CN202110351002.5 2021-03-31

Publications (1)

Publication Number Publication Date
WO2022206519A1 true WO2022206519A1 (en) 2022-10-06

Family

ID=83403646

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082560 WO2022206519A1 (en) 2021-03-31 2022-03-23 External parameter calibration method and apparatus for vehicle-mounted radar

Country Status (2)

Country Link
CN (1) CN115144825A (en)
WO (1) WO2022206519A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115542301A (en) * 2022-11-24 2022-12-30 北京理工大学深圳汽车研究院(电动车辆国家工程实验室深圳研究院) Method, device and equipment for calibrating external parameters of laser radar and storage medium
CN115661215A (en) * 2022-10-17 2023-01-31 北京四维远见信息技术有限公司 Vehicle-mounted laser point cloud data registration method and device, electronic equipment and medium
CN116299403A (en) * 2023-05-15 2023-06-23 上海几何伙伴智能驾驶有限公司 Statistical data-based 4D millimeter wave Lei Dadian cloud space position correction method
CN116381632A (en) * 2023-06-05 2023-07-04 南京隼眼电子科技有限公司 Self-calibration method and device for radar roll angle and storage medium
CN116499498A (en) * 2023-06-28 2023-07-28 北京斯年智驾科技有限公司 Calibration method and device of vehicle positioning equipment and electronic equipment
CN118351176A (en) * 2024-06-17 2024-07-16 武汉未来幻影科技有限公司 Semi-automatic calibration method for camera and millimeter wave radar external reference and related equipment thereof
CN118379368A (en) * 2024-06-27 2024-07-23 苏州魔视智能科技有限公司 Driving parameter calibration method and device of vehicle-mounted camera, computer equipment and storage medium
CN118393471A (en) * 2024-06-28 2024-07-26 北京城建智控科技股份有限公司 Train positioning calibration method and device and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115993089B (en) * 2022-11-10 2023-08-15 山东大学 PL-ICP-based online four-steering-wheel AGV internal and external parameter calibration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008070157A (en) * 2006-09-12 2008-03-27 Sanyo Electric Co Ltd Laser irradiation device, laser radar device, and calibration method of laser irradiation device
CN111650598A (en) * 2019-02-19 2020-09-11 北京京东尚科信息技术有限公司 External parameter calibration method and device for vehicle-mounted laser scanning system
CN112051575A (en) * 2020-08-31 2020-12-08 广州文远知行科技有限公司 Method for adjusting millimeter wave radar and laser radar and related device
CN112241007A (en) * 2020-07-01 2021-01-19 北京新能源汽车技术创新中心有限公司 Calibration method and arrangement structure of automatic driving environment perception sensor and vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008070157A (en) * 2006-09-12 2008-03-27 Sanyo Electric Co Ltd Laser irradiation device, laser radar device, and calibration method of laser irradiation device
CN111650598A (en) * 2019-02-19 2020-09-11 北京京东尚科信息技术有限公司 External parameter calibration method and device for vehicle-mounted laser scanning system
CN112241007A (en) * 2020-07-01 2021-01-19 北京新能源汽车技术创新中心有限公司 Calibration method and arrangement structure of automatic driving environment perception sensor and vehicle
CN112051575A (en) * 2020-08-31 2020-12-08 广州文远知行科技有限公司 Method for adjusting millimeter wave radar and laser radar and related device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115661215A (en) * 2022-10-17 2023-01-31 北京四维远见信息技术有限公司 Vehicle-mounted laser point cloud data registration method and device, electronic equipment and medium
CN115661215B (en) * 2022-10-17 2023-06-09 北京四维远见信息技术有限公司 Vehicle-mounted laser point cloud data registration method and device, electronic equipment and medium
CN115542301A (en) * 2022-11-24 2022-12-30 北京理工大学深圳汽车研究院(电动车辆国家工程实验室深圳研究院) Method, device and equipment for calibrating external parameters of laser radar and storage medium
CN116299403A (en) * 2023-05-15 2023-06-23 上海几何伙伴智能驾驶有限公司 Statistical data-based 4D millimeter wave Lei Dadian cloud space position correction method
CN116299403B (en) * 2023-05-15 2023-08-08 上海几何伙伴智能驾驶有限公司 Statistical data-based 4D millimeter wave Lei Dadian cloud space position correction method
CN116381632A (en) * 2023-06-05 2023-07-04 南京隼眼电子科技有限公司 Self-calibration method and device for radar roll angle and storage medium
CN116381632B (en) * 2023-06-05 2023-08-18 南京隼眼电子科技有限公司 Self-calibration method and device for radar roll angle and storage medium
CN116499498A (en) * 2023-06-28 2023-07-28 北京斯年智驾科技有限公司 Calibration method and device of vehicle positioning equipment and electronic equipment
CN116499498B (en) * 2023-06-28 2023-08-22 北京斯年智驾科技有限公司 Calibration method and device of vehicle positioning equipment and electronic equipment
CN118351176A (en) * 2024-06-17 2024-07-16 武汉未来幻影科技有限公司 Semi-automatic calibration method for camera and millimeter wave radar external reference and related equipment thereof
CN118379368A (en) * 2024-06-27 2024-07-23 苏州魔视智能科技有限公司 Driving parameter calibration method and device of vehicle-mounted camera, computer equipment and storage medium
CN118393471A (en) * 2024-06-28 2024-07-26 北京城建智控科技股份有限公司 Train positioning calibration method and device and electronic equipment

Also Published As

Publication number Publication date
CN115144825A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
WO2022206519A1 (en) External parameter calibration method and apparatus for vehicle-mounted radar
US11454525B2 (en) Vehicle sensor field calibration utilizing other vehicles
US20230408284A1 (en) Verification module system and method for motion-based lane detection with multiple sensors
US20200218913A1 (en) Determining a motion state of a target object
US8452535B2 (en) Systems and methods for precise sub-lane vehicle positioning
WO2017181642A1 (en) Systems and methods for radar-based localization
US11544940B2 (en) Hybrid lane estimation using both deep learning and computer vision
CN112154330A (en) System and method for angle measurement
US10059343B2 (en) Apparatus and method for use in a vehicle
US9981667B2 (en) Apparatus and method for use in a vehicle
US20220128995A1 (en) Velocity estimation and object tracking for autonomous vehicle applications
US20210229662A1 (en) Resolving range rate ambiguity in sensor returns
US20230384441A1 (en) Estimating three-dimensional target heading using a single snapshot
EP4180835A1 (en) Calibration of sensors in autonomous vehicle applications
US12085403B2 (en) Vehicle localisation
US20200278688A1 (en) Method for autonomous parking of a vehicle, and an autonomous vehicle thereof
KR20200139407A (en) Apparatus for controlling vehicle based on reliablity of multi lidar and method thereof
US12055623B2 (en) Estimating target heading using a single snapshot
CN115082562A (en) External parameter calibration method, device, equipment, server and vehicle-mounted computing equipment
US20240037790A1 (en) Cross-sensor vehicle sensor calibration based on object detections
US20240205054A1 (en) Low-Speed Ring with Controlled Jitter
US20240012108A1 (en) Information processing apparatus, information processing method, and program
US20230184890A1 (en) Intensity-based lidar-radar target
WO2024052392A1 (en) Circuitry and method
WO2022128985A1 (en) Time-of-flight image sensor circuitry and time-of-flight image sensor circuitry control method

Legal Events

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

Ref document number: 22778702

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22778702

Country of ref document: EP

Kind code of ref document: A1