Multi-sensor joint calibration method, device, equipment and medium
By combining sensors such as cameras, IMUs and radars on mobile robots to determine the coordinate pose change information between sensors, the problem of joint calibration of heterogeneous sensors is solved, and positioning accuracy and reliability are improved, especially in weak signal environments. .
Patent Information
- Application Number
- CN202410663442.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-10
AI Technical Summary
Existing technology makes it difficult to effectively combine the coordinate systems of multiple heterogeneous sensors in mobile robots, resulting in insufficient positioning accuracy and reliability, especially in scenarios where satellite signals are weak.
Obtain detection information through heterogeneous sensors such as cameras, IMUs and radars installed on the mobile robot, and determine the coordinate pose change information between different sensors, including the rotation matrix and translation vector between the binocular camera, IMU and radar, and then Achieve more accurate posture positioning.
It improves the positioning accuracy and working reliability of mobile robots, and enhances the positioning ability in weak signal environments.
Smart Images

Figure CN118623907A
Abstract
Description
Technical Field
[0001] The present application relates to the field of calibration technology, and in particular to a method, device, equipment and medium for joint calibration of multiple sensors. Background Art
[0002] Visual Inertial Odometry (VIO) is widely used in the mobile robotics industry, mainly to complement the Global Navigation Satellite System (GNSS). That is, when the mobile robot is in a scenario with weak satellite signals, VIO can assist in precise positioning. Summary of the invention
[0003] The embodiments of the present application provide a multi-sensor joint calibration method, apparatus, device and medium for realizing the joint calibration of three types of heterogeneous sensors on a mobile robot.
[0004] A multi-sensor joint calibration method provided in an embodiment of the present application includes:
[0005] Acquire first detection information through a first sensor disposed on the mobile robot, acquire second detection information through a second sensor, and acquire third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors;
[0006] Based on the first detection information, the second detection information, and the third detection information, the coordinate posture change information between different sensor coordinate systems of the mobile robot is determined, including: the coordinate posture change information between the first sensor coordinate system and the second sensor coordinate system, the coordinate posture change information between the first sensor coordinate system and the third sensor coordinate system, and the coordinate posture change information between the second sensor coordinate system and the third sensor coordinate system.
[0007] It can be seen that this method realizes the joint calibration of three types of heterogeneous sensors on the mobile robot, that is, for example, the rotation matrix and translation vector between the binocular camera (left monocular camera and right monocular camera) coordinate system, the rotation matrix and translation vector between the binocular camera coordinate system and the IMU coordinate system, the rotation matrix and translation vector between the binocular camera coordinate system and the radar coordinate system, etc. Therefore, the position and posture of the mobile robot can be determined more accurately, thereby improving the safety and reliability of the mobile robot.
[0008] In some embodiments, the first sensor is a camera, the second sensor is an inertial measurement unit IMU, and the third sensor is a radar;
[0009] The first detection information is visual detection information obtained by detecting the two-dimensional code on the preset calibration plate through the camera;
[0010] The third detection information is radar detection information obtained by detecting the metal plate on the calibration plate through the radar.
[0011] In some embodiments, the camera is a binocular camera including a left monocular camera and a right monocular camera;
[0012] The coordinate position change information between the different sensor coordinate systems includes:
[0013] Coordinate position change information between the left monocular camera coordinate system and the right monocular camera coordinate system;
[0014] Coordinate pose change information between the left monocular camera coordinate system and the IMU coordinate system;
[0015] Coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system;
[0016] Coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system;
[0017] Coordinate pose change information between the right monocular camera coordinate system and the radar coordinate system.
[0018] In some embodiments, determining coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system includes:
[0019] Determining radar detection information corresponding to the image acquisition time of the binocular camera, including multi-frame point cloud coordinates;
[0020] The multi-frame point cloud coordinates are respectively converted into the radar coordinate system at the same time to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time;
[0021] Using the multi-frame point cloud coordinates in the radar coordinate system at the same time, a grid map is established;
[0022] By performing metal plate contour detection on the grid map, the coordinates of the center point of the metal plate in the radar coordinate system are determined;
[0023] Based on the coordinates of the center point of the metal plate in the radar coordinate system and the coordinates of the center point of the metal plate in the left monocular camera coordinate system, coordinate posture change information between the radar coordinate system and the left monocular camera coordinate system is determined.
[0024] In some embodiments, the multi-frame point cloud coordinates are point cloud coordinates obtained by filtering as follows:
[0025] Based on the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the monocular camera and the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the calibration plate, determine the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera;
[0026] Based on the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera, determining the coordinates of the center point of the metal plate on the calibration plate in the coordinate system of the monocular camera;
[0027] Based on the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system, the radar detection information corresponding to the image acquisition time of the binocular camera is screened using preset conditions.
[0028] In some embodiments, the preset condition includes one or a combination of the following conditions:
[0029] Condition 1: The radial distance in the radar detection information is within the radial distance range; wherein the radial distance range is determined based on the radial distance of PL1 and the radial distance of PR1; PL1 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the first moment, and PR1 is the coordinate of the center point of the metal plate in the right monocular image coordinate system at the first moment;
[0030] Condition 2: The pitch angle in the radar detection information is within the pitch angle range; and the horizontal angle in the radar detection information is within the horizontal angle range; wherein the pitch angle range is determined based on the pitch angle of PL1 and the pitch angle of PL2; the horizontal angle range is determined based on the horizontal angle of PL1 and the horizontal angle of PL2; PL2 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the second moment.
[0031] In some embodiments, determining the coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system includes:
[0032] Based on the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system, and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system;
[0033] Determining coordinate position change information between the right monocular camera coordinate system and the radar coordinate system, including:
[0034] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the radar coordinate system;
[0035] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, and the translation vector from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the radar coordinate system is determined.
[0036] The embodiment of the present application provides a multi-sensor joint calibration device, comprising:
[0037] A first unit is used to obtain first detection information through a first sensor provided on the mobile robot, obtain second detection information through a second sensor, and obtain third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors;
[0038] The second unit is used to determine the coordinate posture change information between different sensor coordinate systems of the mobile robot based on the first detection information, the second detection information, and the third detection information, including: the coordinate posture change information between the first sensor coordinate system and the second sensor coordinate system, the coordinate posture change information between the first sensor coordinate system and the third sensor coordinate system, and the coordinate posture change information between the second sensor coordinate system and the third sensor coordinate system.
[0039] Another embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory and execute any of the above methods according to the obtained program.
[0040] Another embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A schematic diagram of the overall process of the multi-sensor joint calibration method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of a specific process of a multi-sensor joint calibration method provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of a calibration plate provided in an embodiment of the present application;
[0045] Figure 4 Another specific flow chart of the multi-sensor joint calibration method provided in the embodiment of the present application;
[0046] Figure 5 A schematic diagram of a specific process of binocular vision detection information processing provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of a specific process of IMU detection information processing provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of a specific process of radar detection information processing provided in an embodiment of the present application;
[0049] Figure 8 A schematic diagram of a specific process for screening radar detection information provided in an embodiment of the present application;
[0050] Fig. 9 A schematic diagram of a specific process for calculating coordinate position change information between a radar coordinate system and a left monocular camera coordinate system provided in an embodiment of the present application;
[0051] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0052] Fig.11 A schematic diagram of the structure of a multi-sensor joint calibration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] The embodiments of the present application provide a multi-sensor joint calibration method, apparatus, device and medium for realizing the joint calibration of three types of heterogeneous sensors on a mobile robot.
[0055] Among them, the method and the device, equipment, and medium are based on the same application concept. Since the principles of solving problems by the method and the device, equipment, and medium are similar, the implementation of the device, equipment, medium, and method can refer to each other, and the repeated parts will not be repeated.
[0056] The terms "first", "second", etc. (if any) in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than the content illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0057] The following examples and embodiments are to be understood as illustrative examples only. Although this specification may refer to "one", "an" or "some" examples or embodiments in several places, this does not mean that each such reference relates to the same example or embodiment, nor does it mean that the feature applies only to a single example or embodiment. Individual features of different embodiments may also be combined to provide other embodiments. In addition, terms such as "including" and "comprising" should be understood as not limiting the described embodiments to only those features that have been mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.
[0058] The following is a detailed description of each embodiment of the present application in conjunction with the accompanying drawings. It should be noted that the display order of the embodiments of the present application only represents the order of the embodiments, and does not represent the advantages and disadvantages of the technical solutions provided by the embodiments.
[0059] Visual sensors are affected by factors such as light, and the accuracy of visual positioning will also be affected accordingly. Therefore, in the embodiment of the present application, high-resolution millimeter waves are introduced for fusion positioning, called RVIO, which can eliminate the impact of the environment on the odometer to a certain extent and improve the odometer's anti-interference ability and positioning accuracy.
[0060] The RVIO includes: radar, vision (Visual, specifically binocular camera, including left monocular camera and right monocular camera), inertial measurement unit (IMU), odometer (Odometry). It can be seen that RVIO involves a variety of heterogeneous sensors, each sensor has its own coordinate system, and each coordinate system will also change at different times. Therefore, it is necessary to consider the joint calibration of multiple types of heterogeneous sensors on the mobile robot to more accurately determine the position and posture of the mobile robot, thereby improving the safety and reliability of the mobile robot.
[0061] Embodiment 1:
[0062] See also Figure 1 The embodiment of the present application provides a multi-sensor joint calibration method, which generally includes:
[0063] S101, obtaining first detection information through a first sensor disposed on the mobile robot, obtaining second detection information through a second sensor, and obtaining third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors;
[0064] For example, the three types of heterogeneous sensors are cameras, IMUs, and radars; then, accordingly, the first detection information, that is, visual detection information, includes information such as the coordinate position of the target in the camera coordinate system; the second detection information, that is, IMU detection information, includes IMU coordinates, etc.; the third detection information, that is, radar detection information, includes information such as the coordinate position of the target in the radar coordinate system.
[0065] Of course, the three types of heterogeneous sensors may also be other types of sensors.
[0066] In addition, it should be noted that in the embodiments of the present application, three types of heterogeneous sensors are used as an example for explanation. For the joint calibration of more types of heterogeneous sensors, the technical solution provided in the embodiments of the present application can be similarly applied.
[0067] The mobile robot described in the embodiments of the present application may be, for example, a drone or other movable robot.
[0068] S102. Based on the first detection information, the second detection information, and the third detection information, determine the coordinate posture change information between different sensor coordinate systems of the mobile robot, including: the coordinate posture change information between the first sensor coordinate system and the second sensor coordinate system, the coordinate posture change information between the first sensor coordinate system and the third sensor coordinate system, and the coordinate posture change information between the second sensor coordinate system and the third sensor coordinate system.
[0069] That is to say, the coordinate posture change information between different sensor coordinate systems of the mobile robot includes the coordinate posture change information between any two sensor coordinate systems, for example, specifically including the rotation matrix and translation vector from one sensor coordinate system to another sensor coordinate system.
[0070] In some embodiments, the first sensor is a camera, the second sensor is an inertial measurement unit (IMU), and the third sensor is a radar (e.g., a millimeter wave radar);
[0071] The first detection information is visual detection information obtained by detecting a two-dimensional code (i.e., a preset detection target) on a preset calibration plate through the camera;
[0072] The third detection information is radar detection information obtained by detecting the metal plate (ie, the preset detection target) on the calibration plate through the radar.
[0073] It should be noted that the calibration plate described in the embodiments of the present application may be the same calibration plate or different calibration plates; the QR code may include one or more QR codes, and similarly, the metal plate may also include one or more metal plates.
[0074] It can be seen that the embodiment of the present application can realize the joint calibration of three types of heterogeneous sensors, such as IMU, binocular camera, and high-resolution millimeter-wave radar, through a preset calibration board.
[0075] In some embodiments, the camera is a binocular camera including a left monocular camera and a right monocular camera;
[0076] The coordinate position change information between the different sensor coordinate systems includes:
[0077] Coordinate position change information between the left monocular camera coordinate system and the right monocular camera coordinate system;
[0078] Coordinate pose change information between the left monocular camera coordinate system and the IMU coordinate system;
[0079] Coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system;
[0080] Coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system;
[0081] Coordinate pose change information between the right monocular camera coordinate system and the radar coordinate system.
[0082] In some embodiments, determining coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system includes:
[0083] Determining radar detection information corresponding to the image acquisition time of the binocular camera, including multi-frame point cloud coordinates;
[0084] The multi-frame point cloud coordinates are respectively converted to the radar coordinate system at the same time (for example, the radar coordinate system of the starting frame) to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time;
[0085] Using the multi-frame point cloud coordinates in the radar coordinate system at the same time, a grid map is established;
[0086] By performing metal plate contour detection on the grid map, the coordinates of the center point of the metal plate in the radar coordinate system are determined;
[0087] Based on the coordinates of the center point of the metal plate in the radar coordinate system and the coordinates of the center point of the metal plate in the left monocular camera coordinate system, coordinate posture change information between the radar coordinate system and the left monocular camera coordinate system is determined.
[0088] It can be seen that the embodiment of the present application can more accurately identify the contour of the metal plate by establishing a grid map, so that the binocular sensor and the radar can be accurately calibrated together subsequently.
[0089] In some embodiments, in order to further improve the accuracy of joint calibration, the multi-frame point cloud coordinates are point cloud coordinates obtained by the following screening:
[0090] Based on the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the monocular camera and the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the calibration plate, determine the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera;
[0091] Based on the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera, determining the coordinates of the center point of the metal plate on the calibration plate in the coordinate system of the monocular camera;
[0092] Based on the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system, the radar detection information corresponding to the image acquisition time of the binocular camera is screened using preset conditions.
[0093] In some embodiments, the preset condition includes one or a combination of the following conditions:
[0094] Condition 1: The radial distance in the radar detection information is within the radial distance range; wherein the radial distance range is determined based on the radial distance of PL1 and the radial distance of PR1 (for example, a range set based on the average value of the two); PL1 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the first moment, and PR1 is the coordinate of the center point of the metal plate in the right monocular image coordinate system at the first moment;
[0095] Condition 2: The pitch angle in the radar detection information is within the pitch angle range; and the horizontal angle in the radar detection information is within the horizontal angle range; wherein the pitch angle range is determined based on the pitch angle of PL1 and the pitch angle of PL2 (for example, a range set based on the average value of the two); the horizontal angle range is determined based on the horizontal angle of PL1 and the horizontal angle of PL2 (for example, a range set based on the average value of the two); PL2 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the second moment.
[0096] The preset conditions can be determined according to actual needs. In addition to the radial distance constraint of condition 1 and the angle constraint of condition 2, other constraints can also be set, such as Doppler value constraint, signal-to-noise ratio constraint, etc., and examples will be given later.
[0097] It can be seen that in the embodiment of the present application, by using the camera to assist the radar in screening the point cloud data, more accurate point cloud data of the metal plate can be obtained, so that the contour of the metal plate can be identified more accurately later, thereby improving the accuracy of the joint calibration.
[0098] In some embodiments, determining the coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system includes:
[0099] Based on the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system, and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system;
[0100] Determining coordinate position change information between the right monocular camera coordinate system and the radar coordinate system, including:
[0101] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the radar coordinate system;
[0102] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, and the translation vector from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the radar coordinate system is determined.
[0103] It should be noted that the frame described in the embodiment of the present application may refer to an image frame. That is to say, the measurement data of each sensor obtained in the embodiment of the present application can be uniformly obtained by referring to the frame time when the camera captures the image, that is, uniformly referring to the timestamp of the camera to obtain the detection data of each sensor.
[0104] Further more specific examples are given below.
[0105] Embodiment 2:
[0106] In an embodiment of the present application, a calibration plate of a QR code and a metal plate is provided, and a mobile robot (such as a drone) flies in a designated area in the air. During the flight, within the designated area, multiple sensors detect and obtain corresponding information, for example, including: a binocular camera detects the QR code to obtain visual detection information, and a radar detects the metal plate to obtain radar detection information.
[0107] Then, the position and posture change information of the mobile robot in different sensor coordinate systems is calculated respectively, and based on this, the coordinate position and posture change values of each sensor coordinate system of the mobile robot relative to the global coordinate system are determined, see Figure 2 , specifically including:
[0108] S201a. Determine the coordinate position change information of the mobile robot in the visual coordinate system by tracking the visual detection information (ie, the first detection information) obtained by the binocular camera detection.
[0109] S201b. Determine the coordinate position change information of the mobile robot in the IMU coordinate system by tracking the IMU detection information (ie, the second detection information).
[0110] S201c. Determine the coordinate position change information of the mobile robot in the radar coordinate system by tracking the radar detection information (ie, the third detection information).
[0111] S202, based on the coordinate posture change information of the mobile robot in the IMU coordinate system, the coordinate posture change information of the mobile robot in the visual coordinate system, and the coordinate posture change information of the mobile robot in the radar coordinate system, determine the coordinate posture change values between each coordinate system of the mobile robot.
[0112] S203 . Determine, based on the coordinate pose change values between the two sensor coordinate systems of the mobile robot, the coordinate pose change values of each sensor coordinate system of the mobile robot relative to a preset global coordinate system.
[0113] The present application provides a calibration plate, for example Figure 3 As shown, the calibration plate includes 18 QR codes (such as AprilTag tan36 QR code) and a metal plate ( Figure 3 The full black rectangle in the center.
[0114] The shape of the QR code is a square, and the size can be determined according to the actual situation, so as to ensure that the mobile robot can fully detect it within the designated flight area. For example, Figure 3The calibration plate contains a larger QR code and a smaller QR code. The square side length of the larger QR code can be set to 20cm, and the square side length of the smaller QR code can be set to 10cm. This is mainly based on the flight altitude considerations and the influence of the metal plate in the middle of the calibration plate. For example, when the flight altitude is low, the larger QR code may occupy more pixels, thereby exceeding the field of view (FOV) of the visual sensor, while the smaller QR code will not. At the same time, if the metal plate is large and the QR code is also large, the metal plate and the QR code are closer. When the mobile robot flies high, the blank space between the metal plate and the QR code in the image occupies fewer pixels, affecting the recognition of the QR code.
[0115] In addition, the interval between the QR codes can also be determined according to actual conditions to ensure that at a preset flight altitude, there are still enough pixels in the blank space between the QR codes to distinguish them. For example, the interval between any QR code and other QR codes can be set to 20 cm.
[0116] Regarding the metal plate on the calibration plate, the metal plate can be located in the center of the calibration plate, and the shape can also be square. The size can be determined according to the actual situation, ensuring that the radar can measure the metal plate when the mobile robot flies within the preset height range. The side length of the metal plate is, for example, 40cm. Of course, the metal plate can also be located in other positions of the calibration plate, such as above the calibration plate, with a certain gap from the adjacent QR code to prevent the metal plate and the QR code from overlapping in the image, and the relative position from the center of the metal plate to each corner point of the QR code can be determined.
[0117] Embodiment three:
[0118] like Figure 4 As shown, another specific method provided in an embodiment of the present application for realizing joint calibration of three types of heterogeneous sensors, namely, IMU, binocular camera, and high-resolution millimeter-wave radar, based on a preset calibration board includes:
[0119] Step S301: binocular vision detection information processing.
[0120] In some embodiments, see Figure 5 , binocular vision detection information processing includes:
[0121] S401 : Identify the ID and corner point information of the QR code in the left monocular image and the right monocular image respectively.
[0122] For example, for the left monocular image, the Apriltag detection algorithm is called to detect the QR code in the image, and the ID and corner point information of the QR code in the image are identified; and for the right monocular image, the Apriltag detection algorithm is called to detect the QR code in the image, and the ID and corner point information of the QR code in the image are identified;
[0123] Among them, the AprilTag algorithm mainly completes the recognition and positioning of the tag by extracting and matching features of the image and estimating the position and direction of the tag.
[0124] S402, matching the corner points of the QR codes with the same ID in the left monocular image and the right monocular image;
[0125] That is, a correspondence between the corner points of the two-dimensional codes with the same ID in the left monocular image and the right monocular image is established.
[0126] S403: Based on the matching result, determine the coordinate position change information between the left monocular camera coordinate system and the right monocular camera coordinate system.
[0127] The coordinate position change information includes a rotation matrix and a translation vector.
[0128] For example, using the epipolar constraint condition shown in the following formula 1, the rotation matrix R and the translation vector t between the left monocular camera coordinate system and the right monocular camera coordinate system are calculated.
[0129]
[0130] In Formula 1, P1 represents the point in the image coordinate system after the right monocular image is dedistorted, P2 represents the point in the image coordinate system after the left monocular image is dedistorted, E is the essential matrix, t is the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, and R is the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system.
[0131] For example, the 8-point method can be used to find the essential matrix E in formula 1; then, the essential matrix E is decomposed by singular value decomposition (SVD) to find multiple groups of t and R, one of which is the correct value. The correct t and R can be found by using the depth-positive method and expressed as and Among them, cl represents the left monocular camera coordinate system, and cr represents the right monocular camera coordinate system.
[0132] S404: Track the corner points of the QR code.
[0133] By tracking the corner points of the QR code, the coordinate position change information at different times can be obtained for different camera coordinate systems.
[0134] The target tracking is performed on the corner points of the two-dimensional code, that is, the frame tracking of the corner points of the two-dimensional codes of the previous and next frames is performed using the two-dimensional code ID.
[0135] Each QR code has a unique identity ID. The QR code ID of the previous frame is matched with the same QR code ID of the next frame. At this time, the QR code of the previous frame and the QR code of the next frame are considered to be the same QR code.
[0136] Furthermore, each QR code has four corner points, and the four corner points are arranged in a certain order. Therefore, the four corner points of the QR code at the previous moment can be matched with the four corner points of the QR code at the next moment to form a time series of the corner points of the same QR code (i.e., the coordinates at different moments), thereby realizing frame tracking of the corner points of the QR codes of the previous and next frames using the QR code ID, and obtaining the coordinate posture change information at different moments.
[0137] Step S302: IMU detection information processing.
[0138] In some embodiments, see Figure 6 , IMU detection information processing specifically includes:
[0139] S501, matching the IMU detection information with the image frames collected by the binocular camera.
[0140] In other words, based on the binocular camera image acquisition time, the IMU detection information at the same time is determined.
[0141] IMU and binocular camera work at different frame rates. Assuming that the binocular camera moments corresponding to the two frames of images are t1 and t2 respectively, then find the IMU detection information acquired by IMU with the acquisition time between time t1 and time t2, and align the IMU detection information with the image frame. Therefore, match the IMU detection information with the image frame acquired by the binocular camera, that is, fill all IMU detection information at time t1 into a queue corresponding to time t1, and fill all IMU detection information at time t2 into a queue corresponding to time t2.
[0142] S502. Based on the matching result described in step S501, determine the coordinate position change information of the IMU coordinate system at different times.
[0143] The coordinate position change information of the IMU coordinate system at different times is determined, for example, by using a pre-integration method to calculate the coordinate position change information of the IMU coordinate system at different times. and
[0144] in, Represents the rotation matrix from the IMU coordinate system at time t2 to the IMU coordinate system at time t1;
[0145] Represents the translation vector from the IMU coordinate system at time t2 to the IMU coordinate system at time t1.
[0146] Step S303: Calculate the coordinate position change information between the left monocular camera coordinate system and the IMU coordinate system.
[0147] Coordinate pose change information between the left monocular camera coordinate system and the IMU coordinate system, such as the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system
[0148] For example, use the following formula 2 to solve the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system:
[0149]
[0150] In formula 2, Represents the rotation matrix from the left monocular camera coordinate system at time t2 to the left monocular camera coordinate system at time t1, Represents the rotation matrix from the IMU coordinate system at time t2 to the IMU coordinate system at time t1, Represents the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system at time t2, Represents the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system at time t1, and Equal, both in, It can be calculated based on the polar constraints.
[0151] Step S304: radar detection information processing.
[0152] In some embodiments, see Figure 7 , radar detection information processing includes:
[0153] S601: Determine radar detection information corresponding to the image acquisition time of the binocular camera.
[0154] That is, referring to the image frame time of the binocular camera, the radar data frame closest in time to the image frame time obtained by the current binocular camera is obtained.
[0155] For example, if the binocular camera collects images at time t1 and time t2 respectively, it is necessary to obtain the radar detection data at time t1 and the radar detection data at time t2.
[0156] The radar detection information refers to point cloud information obtained by detecting a metal plate on a preset calibration plate through a radar.
[0157] The point cloud information includes: point cloud radial distance, point cloud Doppler, point cloud pitch angle and horizontal point, as well as point cloud signal-to-noise ratio and false alarm probability.
[0158] S602: Filter the radar detection information.
[0159] In some embodiments, see Figure 8 , step S602 specifically includes:
[0160] S701, calculating the coordinate position change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera.
[0161] For example, the coordinate system of the calibration plate is represented by f, and the coordinate system of the monocular camera (including the left monocular and the right monocular) is represented by s. The coordinate position change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera includes: rotation matrix and translation vector
[0162] In some embodiments, the following formula 3 can be used to solve and
[0163]
[0164] Among them, p′ represents the coordinates of the corner points of the QR code in the coordinate system of the monocular camera, and P represents the coordinates of the corner points of the QR code in the coordinate system of the calibration plate (known).
[0165] Many QR code corner points can be detected in a monocular image. Therefore, the PnP (Perspective-n-Point) method can be used to solve the equations of multiple QR code corner points. and Among them, PnP is a computer vision algorithm used to estimate camera pose.
[0166] S702. Calculate the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system based on the coordinate pose change information from the calibration plate coordinate system to the monocular camera coordinate system.
[0167] Examples include:
[0168] Based on the change information from the coordinate system of the calibration plate to the coordinate system of the left monocular camera, the coordinate position of the center point of the metal plate on the calibration plate in the coordinate system of the left monocular image is calculated;
[0169] Furthermore, based on the change information from the coordinate system of the calibration plate to the coordinate system of the right monocular camera, the coordinate position of the center point of the metal plate on the calibration plate in the coordinate system of the right monocular image is calculated.
[0170] For example, it can be assumed that the coordinate position of the center point of the metal plate in the left monocular image coordinate system at time t1 is recorded as PL1, and the coordinate position of the center point of the metal plate in the right monocular image coordinate system at time t1 is recorded as PR1; the coordinate position of the center point of the metal plate in the left monocular image coordinate system at time t2 is recorded as PL2, and the coordinate position of the center point of the metal plate in the right monocular image coordinate system at time t2 is recorded as PR2.
[0171] S703, based on the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system, the radar point cloud information is filtered using preset conditions.
[0172] In some embodiments, point cloud data that meets the following conditions 1 and / or 2 is retained, and point cloud data that does not meet the conditions is deleted:
[0173] Condition 1: Radial distance constraint:
[0174] Since the distance between the millimeter-wave radar and the binocular camera is relatively close, the radial distance value R of the point cloud measured by the millimeter-wave radar should be within a range, for example, satisfying:
[0175] Rp–T <R<Rp+T;
[0176] Wherein, Rp is the average value of the radial distance of PL1 and the radial distance of PR1, and T is determined according to actual needs, that is, T is a preset value, for example, it can be 1m.
[0177] Condition 2: Angle constraint:
[0178] The elevation angle e of the radar point cloud is within a range, and the horizontal angle a of the radar point cloud is also within a range, wherein any of the ranges can be determined according to actual needs, for example, satisfying:
[0179] Assume that the mean value of the radar point cloud elevation angle e is Re, that is, Re is the average value of the elevation angles of PL1 and PL2, that is, Re = (PL1_e + PL2_e) / 2; where PL1_e is the elevation angle corresponding to PL1, and PL2_e is the elevation angle corresponding to PL2. Calculate the variance of the radar point cloud elevation angle relative to Re, and take 3 times the variance value as the elevation direction range;
[0180] Similarly, assume that the mean value of the radar point cloud horizontal angle a is Ra, and Ra is the average value of the horizontal angles of PL1 and PL2, that is, Ra = (PL1_a + PL2_a) / 2; where PL1_a is the horizontal angle corresponding to PL1, and PL2_a is the horizontal angle corresponding to PL2. Calculate the variance of the radar point cloud horizontal angle a relative to Ra, and take 3 times the variance value as the horizontal direction range.
[0181] In some embodiments, the preset condition further includes the following condition three and / or condition four:
[0182] Condition 3: Doppler value constraint:
[0183] When the Doppler value of the point cloud is measured by the radar for the detection target, the difference between the Doppler value of the point cloud measured by the radar for the detection target and 0 is determined. When the difference is less than a preset threshold, the detection target is determined to be a static target, otherwise, the detection target is determined to be a dynamic target. The specific value of the threshold can be determined according to actual needs.
[0184] Therefore, since the metal plate (ie, the detection target) is in a stationary state and is a static target, the absolute Doppler value of the metal plate determined by the millimeter-wave radar after compensating for the movement speed of the mobile robot is close to 0.
[0185] That is to say, this condition requires that the difference between the Doppler value of the point cloud measured by the radar and 0 is less than or equal to the preset threshold.
[0186] Condition 4: Signal-to-noise ratio constraint:
[0187] The signal-to-noise ratio of the radar point cloud is greater than the preset signal-to-noise ratio threshold.
[0188] The preset signal-to-noise ratio threshold value may be determined according to actual needs, for example, 13 decibels. Then, point cloud data with a signal-to-noise ratio parameter less than or equal to the preset signal-to-noise ratio threshold value needs to be filtered out from the radar point cloud.
[0189] In summary, after filtering the point cloud data obtained by radar detection under the above conditions, point cloud data that meets the distance constraint (distance is near Rp), angle constraint (angle is near Ra, Re), Doppler velocity close to 0, and high signal-to-noise ratio can be obtained.
[0190] In some embodiments, in order to make the point cloud coordinates more accurate, the processing of the radar detection information further includes the following steps S603 and S604:
[0191] S603: For each point in the radar point cloud information obtained after the above screening, establish a correlation relationship between the predicted value and the measured value of the point.
[0192] For example, the Joint Probabilistic Data Association (JPDA) method can be used to associate the predicted value of the point state (the predicted value obtained based on a preset model) with the measured value (i.e., the coordinates obtained by radar detection). Assuming that the difference between the predicted value V and the measured value T is less than a preset range, it can be determined that the measured value and the predicted value are associated; wherein the threshold used in the preset range can be determined using a Gaussian distribution.
[0193] S604: For each point in the radar point cloud, the measured value and the predicted value are fused, and the fusion result is used as the final point cloud coordinate of the point.
[0194] That is to say, after the association between the predicted value and the measured value of the starting point cloud data is established in the previous step, the associated predicted value and measured value are further fused to make the obtained coordinates more accurate. For example, the Kalman filter method can be used for data fusion, and the fusion result (that is, the tracking result) is filled into the queue, which is the list of radar fusion data.
[0195] Step S305: Calculate the coordinate position change information between the radar coordinate system and the left monocular camera coordinate system.
[0196] In some embodiments, see Fig. 9 , step S305 specifically includes:
[0197] S801, determining radar detection information corresponding to the image acquisition time of the binocular camera, including multi-frame point cloud coordinates;
[0198] For example, it is determined that the starting frame of the image frames captured by the left monocular camera is at time t0, and images at times t0, t1, t2, t3... are collected respectively, then the radar point cloud coordinates at times t0, t1, t2, t3... are obtained respectively.
[0199] S802: Convert the multi-frame point cloud coordinates to the radar coordinate system at the same time (eg, the radar coordinate system of the starting frame) to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time.
[0200] For example, the multi-frame point cloud coordinates are all converted to the coordinate system of the radar start frame to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time, and are respectively recorded as (R1, R2, R3...).
[0201] For example, assuming that the rotation matrix and translation vector of the radar coordinate system at time t1 to the radar coordinate system at time t0 of the radar start frame are and And the coordinate of the radar start frame at time t0 is r0, then
[0202] S803: Create a grid map using the multi-frame point cloud coordinates in the radar coordinate system at the same time.
[0203] For example, initialize the grid map, convert the point cloud coordinates in the coordinate system of the radar start frame, and project them to the corresponding grid positions in sequence. Specifically, for example, the point cloud coordinates in the radar coordinate system at the same time are (x, y, z), and x is divided by the grid resolution to get the grid position, and then the value at the corresponding grid position is set to 1. This is because the radar measurement point measures the metal plate at a different position each time. By accumulating multiple frames and projecting them to the grid map, the complete outline of the metal plate in the radar coordinate system (i.e., the grid map) can be established, so that the center point of the metal plate can be detected by detecting the grid map.
[0204] S804: Determine the coordinates of the center point of the metal plate in the radar coordinate system by performing metal plate contour detection on the grid map.
[0205] For example, a corner point detection method may be used to detect the metal plate contour in the grid map, identify the radar coordinates of the four corner points of the metal plate, and then determine the coordinates of the center point of the metal plate in the radar coordinate system.
[0206] If the four corner points of the metal plate cannot be identified, the point cloud data of the metal plate will continue to be collected by radar for a preset time to ensure that the metal plate has a complete square outline in the grid map, that is, until the radar coordinates of the four corner points of the metal plate are identified, and based on this, the radar coordinate position r′ of the center point of the metal plate is determined.
[0207] S805. Based on the coordinates of the center point of the metal plate in the radar coordinate system and the coordinates of the center point of the metal plate in the left monocular camera coordinate system, calculate the coordinate posture change information between the radar coordinate system and the left monocular camera coordinate system.
[0208] The coordinate position change information between the radar coordinate system and the left monocular camera coordinate system, such as the rotation matrix from the radar coordinate system to the left monocular camera coordinate system and translation vector
[0209] For example, use the following formula 4 to calculate the rotation matrix from the radar coordinate system to the left monocular camera coordinate system: and translation vectors
[0210]
[0211] Among them, pm′ is the coordinate of the center point of the metal plate in the left monocular camera coordinate system, and r′ is the coordinate of the center point of the metal plate in the radar coordinate system;
[0212] By combining multiple equations, based on the pose estimation algorithm P3P (Perspective-n-Point), the rotation matrix from the radar coordinate system to the left monocular camera coordinate system can be obtained. and translation vector
[0213] It can be seen that in the embodiment of the present application, by using binocular-assisted millimeter-wave radar to screen points and establishing a millimeter-wave radar grid map (Gridmap), the corner position of the metal plate can be more accurately identified, and the joint calibration of the binocular sensor and the high-resolution radar can be achieved.
[0214] Step S306, calculating the coordinate position change information between the right monocular camera coordinate system and the IMU coordinate system, and the coordinate position change information between the right monocular camera coordinate system and the radar coordinate system.
[0215] The coordinate position change information between the right monocular camera coordinate system and the IMU coordinate system, for example, includes: a rotation matrix from the right monocular camera coordinate system to the IMU coordinate system.
[0216] The coordinate posture change information between the right monocular camera coordinate system and the radar coordinate system, for example, includes: a rotation matrix from the right monocular camera coordinate system to the radar coordinate system, and a translation vector from the right monocular camera coordinate system to the radar coordinate system.
[0217] For example, the following formula 5 is used to calculate the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system:
[0218]
[0219] In formula five, is the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system, for The transpose of is the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system, determined by the above step S303, is the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, which is determined by the above step S403.
[0220] For example, the following formula 6 is used to calculate the rotation matrix from the monocular camera coordinate system to the radar coordinate system:
[0221]
[0222] In formula six, is the rotation matrix from the right monocular camera coordinate system to the radar coordinate system, for The transpose of is the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, which is determined by the above step S805.
[0223] For example, the following formula 7 is used to calculate the translation vector from the right monocular camera coordinate system to the radar coordinate system:
[0224]
[0225] In formula seven, is the translation vector from the right monocular camera coordinate system to the radar coordinate system, for The transpose of is the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, is the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, determined by the above step S303, is the translation vector from the left monocular camera coordinate system to the radar coordinate system, The translation vector from the radar coordinate system to the left monocular camera coordinate system is determined by the above step S805.
[0226] It should be noted that the radar described in the embodiments of the present application is described using a high-resolution millimeter-wave radar as an example, but is not limited to a millimeter-wave radar.
[0227] The following is an introduction to the equipment or device provided in the embodiments of the present application, in which the explanations or examples of technical features that are the same or corresponding to those described in the above method will not be repeated later.
[0228] An electronic device provided in an embodiment of the present application may be, for example, any type of mobile robot. Fig.10 , for example:
[0229] The processor 600 is used to read the program in the memory 620 and execute the following process:
[0230] Acquire first detection information through a first sensor disposed on the mobile robot, acquire second detection information through a second sensor, and acquire third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors;
[0231] Based on the first detection information, the second detection information, and the third detection information, the coordinate posture change information between different sensor coordinate systems of the mobile robot is determined, including: the coordinate posture change information between the first sensor coordinate system and the second sensor coordinate system, the coordinate posture change information between the first sensor coordinate system and the third sensor coordinate system, and the coordinate posture change information between the second sensor coordinate system and the third sensor coordinate system.
[0232] In some embodiments, the first sensor is a camera, the second sensor is an inertial measurement unit IMU, and the third sensor is a radar;
[0233] The first detection information is visual detection information obtained by detecting the two-dimensional code on the preset calibration plate through the camera;
[0234] The third detection information is radar detection information obtained by detecting the metal plate on the calibration plate through the radar.
[0235] In some embodiments, the camera is a binocular camera including a left monocular camera and a right monocular camera;
[0236] The coordinate position change information between the different sensor coordinate systems includes:
[0237] Coordinate position change information between the left monocular camera coordinate system and the right monocular camera coordinate system;
[0238] Coordinate pose change information between the left monocular camera coordinate system and the IMU coordinate system;
[0239] Coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system;
[0240] Coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system;
[0241] Coordinate pose change information between the right monocular camera coordinate system and the radar coordinate system.
[0242] In some embodiments, determining coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system includes:
[0243] Determining radar detection information corresponding to the image acquisition time of the binocular camera, including multi-frame point cloud coordinates;
[0244] The multi-frame point cloud coordinates are respectively converted into the radar coordinate system at the same time to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time;
[0245] Using the multi-frame point cloud coordinates in the radar coordinate system at the same time, a grid map is established;
[0246] By performing metal plate contour detection on the grid map, the coordinates of the center point of the metal plate in the radar coordinate system are determined;
[0247] Based on the coordinates of the center point of the metal plate in the radar coordinate system and the coordinates of the center point of the metal plate in the left monocular camera coordinate system, coordinate posture change information between the radar coordinate system and the left monocular camera coordinate system is determined.
[0248] In some embodiments, the multi-frame point cloud coordinates are point cloud coordinates obtained by filtering as follows:
[0249] Based on the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the monocular camera and the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the calibration plate, determine the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera;
[0250] Based on the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera, determining the coordinates of the center point of the metal plate on the calibration plate in the coordinate system of the monocular camera;
[0251] Based on the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system, the radar detection information corresponding to the image acquisition time of the binocular camera is screened using preset conditions.
[0252] In some embodiments, the preset condition includes one or a combination of the following conditions:
[0253] Condition 1: The radial distance in the radar detection information is within the radial distance range; wherein the radial distance range is determined based on the radial distance of PL1 and the radial distance of PR1; PL1 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the first moment, and PR1 is the coordinate of the center point of the metal plate in the right monocular image coordinate system at the first moment;
[0254] Condition 2: The pitch angle in the radar detection information is within the pitch angle range; and the horizontal angle in the radar detection information is within the horizontal angle range; wherein the pitch angle range is determined based on the pitch angle of PL1 and the pitch angle of PL2; the horizontal angle range is determined based on the horizontal angle of PL1 and the horizontal angle of PL2; PL2 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the second moment.
[0255] In some embodiments, determining the coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system includes:
[0256] Based on the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system, and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system;
[0257] Determining coordinate position change information between the right monocular camera coordinate system and the radar coordinate system, including:
[0258] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the radar coordinate system;
[0259] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, and the translation vector from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the radar coordinate system is determined.
[0260] The transceiver 610 is configured to receive and send data under the control of the processor 600 .
[0261] Among them, Fig.10 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 600 and various circuits of memory represented by memory 620 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 610 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including wireless channels, wired channels, optical cables, and other transmission media. For different user devices, the user interface 630 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0262] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 600 when performing operations.
[0263] In some embodiments, the processor 600 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.
[0264] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0265] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0266] See also Fig.11 The embodiment of the present application provides a multi-sensor joint calibration device, which may be, for example, an internal device of a mobile robot, or may also be the entire mobile robot itself, and the device includes:
[0267] The first unit 11 is used to obtain first detection information through a first sensor provided on the mobile robot, obtain second detection information through a second sensor, and obtain third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors;
[0268] The second unit 12 is used to determine the coordinate posture change information between different sensor coordinate systems of the mobile robot based on the first detection information, the second detection information, and the third detection information, including: the coordinate posture change information between the first sensor coordinate system and the second sensor coordinate system, the coordinate posture change information between the first sensor coordinate system and the third sensor coordinate system, and the coordinate posture change information between the second sensor coordinate system and the third sensor coordinate system.
[0269] In some embodiments, the first sensor is a camera, the second sensor is an inertial measurement unit IMU, and the third sensor is a radar;
[0270] The first detection information is visual detection information obtained by detecting the two-dimensional code on the preset calibration plate through the camera;
[0271] The third detection information is radar detection information obtained by detecting the metal plate on the calibration plate through the radar.
[0272] In some embodiments, the camera is a binocular camera including a left monocular camera and a right monocular camera;
[0273] The coordinate position change information between the different sensor coordinate systems includes:
[0274] Coordinate position change information between the left monocular camera coordinate system and the right monocular camera coordinate system;
[0275] Coordinate pose change information between the left monocular camera coordinate system and the IMU coordinate system;
[0276] Coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system;
[0277] Coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system;
[0278] Coordinate pose change information between the right monocular camera coordinate system and the radar coordinate system.
[0279] In some embodiments, determining coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system includes:
[0280] Determining radar detection information corresponding to the image acquisition time of the binocular camera, including multi-frame point cloud coordinates;
[0281] The multi-frame point cloud coordinates are respectively converted into the radar coordinate system at the same time to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time;
[0282] Using the multi-frame point cloud coordinates in the radar coordinate system at the same time, a grid map is established;
[0283] By performing metal plate contour detection on the grid map, the coordinates of the center point of the metal plate in the radar coordinate system are determined;
[0284] Based on the coordinates of the center point of the metal plate in the radar coordinate system and the coordinates of the center point of the metal plate in the left monocular camera coordinate system, coordinate posture change information between the radar coordinate system and the left monocular camera coordinate system is determined.
[0285] In some embodiments, the multi-frame point cloud coordinates are point cloud coordinates obtained by filtering as follows:
[0286] Based on the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the monocular camera and the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the calibration plate, determine the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera;
[0287] Based on the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera, determining the coordinates of the center point of the metal plate on the calibration plate in the coordinate system of the monocular camera;
[0288] Based on the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system, the radar detection information corresponding to the image acquisition time of the binocular camera is screened using preset conditions.
[0289] In some embodiments, the preset condition includes one or a combination of the following conditions:
[0290] Condition 1: The radial distance in the radar detection information is within the radial distance range; wherein the radial distance range is determined based on the radial distance of PL1 and the radial distance of PR1; PL1 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the first moment, and PR1 is the coordinate of the center point of the metal plate in the right monocular image coordinate system at the first moment;
[0291] Condition 2: The pitch angle in the radar detection information is within the pitch angle range; and the horizontal angle in the radar detection information is within the horizontal angle range; wherein the pitch angle range is determined based on the pitch angle of PL1 and the pitch angle of PL2; the horizontal angle range is determined based on the horizontal angle of PL1 and the horizontal angle of PL2; PL2 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the second moment.
[0292] In some embodiments, determining the coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system includes:
[0293] Based on the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system, and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system;
[0294] Determining coordinate position change information between the right monocular camera coordinate system and the radar coordinate system, including:
[0295] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the radar coordinate system;
[0296] Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, and the translation vector from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the radar coordinate system is determined.
[0297] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0298] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0299] Any of the devices or apparatuses provided in the embodiments of the present application may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. It may include a central processing unit (CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.
[0300] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In an embodiment of the present application, the memory may be used to store the program of any of the methods provided in the embodiments of the present application.
[0301] The processor calls the program instructions stored in the memory, and the processor is used to execute any of the methods provided in the embodiments of the present application according to the obtained program instructions.
[0302] The present application embodiment also provides a computer program product or computer program, which includes a computer instruction, which is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction so that the computer device executes any of the methods described in the above embodiments. The program product can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0303] The embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the apparatus provided in the embodiment of the present application, which includes a program for executing any of the methods provided in the embodiment of the present application. The computer-readable storage medium may be a non-transitory computer-readable medium.
[0304] The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0305] It should be understood that:
[0306] The access technology through which entities in the communication network transmit traffic can be any suitable current or future technology, such as WLAN (Wireless Local Access Network), WiMAX (Worldwide Interoperability for Microwave Access), LTE, LTE-A, 5G, Bluetooth, infrared, etc.; in addition, the embodiments can also apply wired technology, for example, IP-based access technology, such as a wired network or a fixed line.
[0307] Embodiments suitable for being implemented as software code or a portion thereof and running using a processor or processing functionality are independent of the software code and may be specified using any known or future developed programming language, such as a high-level programming language such as objective-C, C, C++, C#, Java, Python, Javascript, other scripting languages, etc., or a low-level programming language such as machine language or assembler.
[0308] The implementation of the embodiments is hardware independent and may be implemented using any known or future developed hardware technology or any mixture thereof, such as a microprocessor or CPU (central processing unit), MOS (metal oxide semiconductor), CMOS (complementary MOS), BiMOS (bipolar MOS), BiCMOS (bipolar CMOS), ECL (emitter coupled logic) and / or TTL (transistor-transistor logic).
[0309] Embodiments may be implemented as separate devices, apparatuses, units, components, or functions, or in a distributed manner, for example, one or more processors or processing functions may be used or shared in a process, or one or more processing segments or processing portions may be used and shared in a process, wherein one physical processor or more than one physical processor may be used to implement one or more processing portions dedicated to a specific process as described.
[0310] The device may be implemented by a semiconductor chip, a chipset, or a (hardware) module including such a chip or chipset.
[0311] The embodiments may also be implemented as any combination of hardware and software, such as ASIC (Application Specific IC (Integrated Circuit)) components, FPGA (Field Programmable Gate Array) or CPLD (Complex Programmable Logic Device) components or DSP (Digital Signal Processor) components.
[0312] The embodiments may also be implemented as a computer program product including a computer usable medium having computer readable program code embodied therein, the computer readable program code being adapted to perform the processes as described in the embodiments, wherein the computer usable medium may be a non-transitory medium.
[0313] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0314] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0315] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0316] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0317] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and 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
1. A multi-sensor joint calibration method, characterized in that: The method comprises: Acquire first detection information through a first sensor disposed on the mobile robot, acquire second detection information through a second sensor, and acquire third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors; Based on the first detection information, the second detection information, and the third detection information, determining coordinate pose change information between different sensor coordinate systems of the mobile robot, including: coordinate pose change information between the first sensor coordinate system and the second sensor coordinate system, coordinate pose change information between the first sensor coordinate system and the third sensor coordinate system, and coordinate pose change information between the second sensor coordinate system and the third sensor coordinate system; Wherein, the first sensor is a camera, the second sensor is an inertial measurement unit IMU, and the third sensor is a radar; The first detection information is visual detection information obtained by detecting the two-dimensional code on the preset calibration plate through the camera; The third detection information is radar detection information obtained by detecting the metal plate on the calibration plate through the radar.
2. The method according to claim 1, characterized in that The camera is a binocular camera including a left monocular camera and a right monocular camera; The coordinate position change information between the different sensor coordinate systems includes: Coordinate position change information between the left monocular camera coordinate system and the right monocular camera coordinate system; Coordinate pose change information between the left monocular camera coordinate system and the IMU coordinate system; Coordinate pose change information between the radar coordinate system and the left monocular camera coordinate system; Coordinate pose change information between the right monocular camera coordinate system and the IMU coordinate system; Coordinate pose change information between the right monocular camera coordinate system and the radar coordinate system.
3. The method according to claim 2, characterized in that Determining coordinate position change information between the radar coordinate system and the left monocular camera coordinate system, including: Determining radar detection information corresponding to the image acquisition time of the binocular camera, including multi-frame point cloud coordinates; The multi-frame point cloud coordinates are respectively converted into the radar coordinate system at the same time to obtain the multi-frame point cloud coordinates in the radar coordinate system at the same time; Using the multi-frame point cloud coordinates in the radar coordinate system at the same time, a grid map is established; By performing metal plate contour detection on the grid map, the coordinates of the center point of the metal plate in the radar coordinate system are determined; Based on the coordinates of the center point of the metal plate in the radar coordinate system and the coordinates of the center point of the metal plate in the left monocular camera coordinate system, coordinate posture change information between the radar coordinate system and the left monocular camera coordinate system is determined.
4. The method according to claim 3, characterized in that The multi-frame point cloud coordinates are point cloud coordinates obtained through the following screening: Based on the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the monocular camera and the coordinates of the corner points of the two-dimensional code on the calibration plate in the coordinate system of the calibration plate, determine the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera; Based on the coordinate pose change information from the coordinate system of the calibration plate to the coordinate system of the monocular camera, determining the coordinates of the center point of the metal plate on the calibration plate in the coordinate system of the monocular camera; Based on the coordinates of the center point of the metal plate on the calibration plate in the monocular camera coordinate system, the radar detection information corresponding to the image acquisition time of the binocular camera is screened using preset conditions.
5. The method according to claim 4, characterized in that The preset conditions include one or a combination of the following conditions: Condition 1: The radial distance in the radar detection information is within the radial distance range; wherein the radial distance range is determined based on the radial distance of PL1 and the radial distance of PR1; PL1 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the first moment, and PR1 is the coordinate of the center point of the metal plate in the right monocular image coordinate system at the first moment; Condition 2: The pitch angle in the radar detection information is within the pitch angle range; and the horizontal angle in the radar detection information is within the horizontal angle range; wherein the pitch angle range is determined based on the pitch angle of PL1 and the pitch angle of PL2; the horizontal angle range is determined based on the horizontal angle of PL1 and the horizontal angle of PL2; PL2 is the coordinate of the center point of the metal plate in the left monocular image coordinate system at the second moment.
6. The method according to claim 2, characterized in that Determining the coordinate position change information between the right monocular camera coordinate system and the IMU coordinate system includes: Based on the rotation matrix from the IMU coordinate system to the left monocular camera coordinate system, and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the IMU coordinate system; Determining coordinate position change information between the right monocular camera coordinate system and the radar coordinate system, including: Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system and the rotation matrix from the right monocular camera coordinate system to the left monocular camera coordinate system, determine the rotation matrix from the right monocular camera coordinate system to the radar coordinate system; Based on the rotation matrix from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the left monocular camera coordinate system, and the translation vector from the radar coordinate system to the left monocular camera coordinate system, the translation vector from the right monocular camera coordinate system to the radar coordinate system is determined.
7. A multi-sensor joint calibration device, characterized in that: The device comprises: A first unit is used to obtain first detection information through a first sensor provided on the mobile robot, obtain second detection information through a second sensor, and obtain third detection information through a third sensor; wherein the first sensor, the second sensor, and the third sensor are three types of heterogeneous sensors; A second unit is used to determine the coordinate pose change information between different sensor coordinate systems of the mobile robot based on the first detection information, the second detection information, and the third detection information, including: the coordinate pose change information between the first sensor coordinate system and the second sensor coordinate system, the coordinate pose change information between the first sensor coordinate system and the third sensor coordinate system, and the coordinate pose change information between the second sensor coordinate system and the third sensor coordinate system; Wherein, the first sensor is a camera, the second sensor is an inertial measurement unit IMU, and the third sensor is a radar; The first detection information is visual detection information obtained by detecting the two-dimensional code on the preset calibration plate through the camera; The third detection information is radar detection information obtained by detecting the metal plate on the calibration plate through the radar.
8. An electronic device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 6 according to the obtained program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the method according to any one of claims 1 to 6.
