A motion compensation method, device and system for two-dimensional laser radar
By combining the high-frequency data of the inertial measurement unit and the odometer for attitude correction, the problem of low measurement accuracy of the two-dimensional lidar at low scanning frequency is solved, and the motion compensation and data accuracy improvement of the two-dimensional lidar are achieved.
Patent Information
- Application Number
- CN202210684111.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-06-17
AI Technical Summary
Two-dimensional lidar is expensive at high scanning frequencies and multi-line configurations, has distortion at low scanning frequencies, and lacks effective motion compensation methods that affect measurement accuracy.
A system including two-dimensional lidar, inertial measurement unit and odometry is used to simultaneously acquire attitude data through sampling at different frequencies, perform attitude correction and compensation, and fuse initial and compensation data to improve scanning accuracy.
It realizes motion compensation for low-cost two-dimensional lidar, reduces motion distortion interference caused by device offset, improves data accuracy and expands the amount of sub-scan data.
Smart Images

Figure CN115220017B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motion compensation of two-dimensional laser radar, and in particular to a motion compensation method, device and system for two-dimensional laser radar. Background Art
[0002] Two-dimensional laser radar (Laser Radar) is a radar system that emits laser beams to detect the position, speed and other characteristic quantities of the target. Its working principle is to emit a detection signal (laser beam) to the target, and then compare the received signal reflected from the target (target echo) with the transmitted signal. After appropriate processing, relevant information about the target can be obtained, such as target distance, direction, height, speed, attitude, and even shape parameters, so as to detect, track and identify targets such as aircraft and missiles. It consists of a laser transmitter, an optical receiver, a turntable and an information processing system. The laser converts electrical pulses into light pulses and emits them, and the optical receiver then restores the light pulses reflected from the target into electrical pulses.
[0003] Two-dimensional laser radar plays an important role in estimating the position and posture of robots in unknown environments. However, high-scanning-frequency and multi-line two-dimensional laser radars are expensive, which greatly limits the development and application of two-dimensional laser radars. Although single-line, low-scanning-frequency two-dimensional laser radars are cheaper, they suffer from distortion during measurement due to the low laser scanning frequency.
[0004] Low-cost 2D LiDARs rotate at low speeds and produce observations in the form of subframes consisting of multiple ranges. These ranges are combined to form a complete scan that can be fed to a scan matcher. When merging the subframes to generate a complete scan, the motion of the device itself must be taken into account. Laser scanning without any motion compensation method will affect the accuracy of motion estimation and mapping. Summary of the invention
[0005] In view of this, the present invention proposes a motion compensation method, device and system for a two-dimensional laser radar, and the specific scheme is as follows:
[0006] In the first part, the present application proposes a motion compensation method for a two-dimensional laser radar, which is applicable to a device including a two-dimensional laser radar, an inertial measurement unit and an odometer, and the method includes:
[0007] The two-dimensional laser radar performs a sampling action at a first preset frequency in a first time period to obtain sub-scan data, and uses the sub-scan data as initial sub-scan data;
[0008] The odometer and the inertial measurement unit are caused to synchronously perform sampling actions at a second preset frequency within a first period of time to obtain odometer data and inertial data respectively;
[0009] Calculating the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtaining the posture data of the device at each collection time in the first time period;
[0010] Based on the relationship between the first preset frequency and the second preset frequency, combined with the acquisition time corresponding to each sub-scanning data, the posture data corresponding to each sub-scanning data is calculated to obtain the corrected posture data;
[0011] The various posture data and the various correction posture data are arranged in time order to form a posture data set, and based on the time relationship of the various correction posture data, the sub-scan data corresponding to each posture data in the posture data set is calculated to obtain the compensated sub-scan data;
[0012] The initial sub-scan data and the compensated sub-scan data are fused to obtain compensated sub-scan data.
[0013] In a specific embodiment, the process of acquiring the correction posture data includes:
[0014] Based on the first preset frequency, determining the acquisition time of each sub-scanning data in the first time period;
[0015] Based on the second preset frequency, determining the collection time of each gesture data in the first time period;
[0016] Determine the time sequence relationship between each sub-scan data and each posture data to obtain the interpolation position corresponding to each sub-scan data in each posture data;
[0017] Based on n posture data adjacent to the interpolation position, the posture data corresponding to each interpolation position is interpolated, and the posture data of each interpolation position is integrated to obtain the corrected posture data; wherein n is a natural number greater than 1.
[0018] In a specific embodiment, the first preset frequency is less than the second preset frequency.
[0019] In a specific embodiment, linear interpolation is performed based on two gesture data before and after the interpolation position.
[0020] In a specific embodiment, the first preset frequency does not exceed 10 Hz;
[0021] And / or, the second preset frequency is not less than 50 Hz.
[0022] In a specific embodiment, at the same collection time:
[0023] Calculating coordinates of the device based on the linear velocity in the odometer data to estimate the location information of the device;
[0024] Obtaining a yaw angle in Euler angles based on inertial data, and converting the yaw angle into a two-dimensional rotation matrix to estimate the heading information of the device;
[0025] The position information and heading information are combined to obtain the attitude data at the time of collection.
[0026] In a specific embodiment, the expression of the two-dimensional rotation matrix is:
[0027]
[0028] Among them, ψ represents the yaw angle, and R represents the two-dimensional rotation matrix;
[0029] The expression of the posture data is:
[0030]
[0031] Where T represents the location information, Indicates that in t b Collect the posture data at the moment.
[0032] In the second part, the present application proposes a device with a two-dimensional laser radar, which is used to implement the motion compensation method described in any one of the first parts;
[0033] The device comprises:
[0034] A two-dimensional laser radar, configured to perform a sampling action at a first preset frequency within a first time period to obtain sub-scan data, and use the sub-scan data as initial sub-scan data;
[0035] An odometer, configured to perform a sampling action at a second preset frequency within a first period of time to obtain odometer data;
[0036] An inertial measurement unit, configured to perform a sampling action synchronously with the odometer at a second preset frequency within a first time period to obtain inertial data;
[0037] A main control circuit, used to calculate the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period;
[0038] Based on the relationship between the first preset frequency and the second preset frequency, combined with the acquisition time corresponding to each sub-scanning data, the posture data corresponding to each sub-scanning data is calculated to obtain the corrected posture data;
[0039] The various posture data and the various correction posture data are arranged in time order to form a posture data set, and based on the time relationship of the various correction posture data, the sub-scan data corresponding to each posture data in the posture data set is calculated to obtain the compensated sub-scan data;
[0040] The initial sub-scan data and the compensated sub-scan data are fused to obtain compensated sub-scan data.
[0041] In the third part, the present application proposes a motion compensation system for a two-dimensional laser radar, including the following:
[0042] A first acquisition module is used to enable the two-dimensional laser radar to perform a sampling action at a first preset frequency within a first time period to obtain sub-scan data, and use the sub-scan data as initial sub-scan data;
[0043] A second acquisition module is used to make the odometer and the inertial measurement unit synchronously perform sampling actions at a second preset frequency within a first period of time to obtain odometer data and inertial data respectively;
[0044] A posture calculation module, used to calculate the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period;
[0045] A correction posture calculation module, used to calculate the posture data corresponding to each sub-scanning data based on the relationship between the first preset frequency and the second preset frequency and in combination with the collection time corresponding to each sub-scanning data, so as to obtain the correction posture data;
[0046] A compensation data calculation module, used for sorting each posture data and each correction posture data in time order to form a posture data set, and calculating the sub-scan data corresponding to each posture data in the posture data set based on the time relationship of each correction posture data to obtain compensation sub-scan data;
[0047] The data fusion module is used to fuse the initial sub-scan data and the compensated sub-scan data to obtain compensated sub-scan data.
[0048] In a specific embodiment, the correction posture calculation module specifically includes:
[0049] Based on the first preset frequency, determining the acquisition time of each sub-scanning data in the first time period;
[0050] Based on the second preset frequency, determining the collection time of each gesture data in the first time period;
[0051] Determine the time sequence relationship between each sub-scan data and each posture data to obtain the interpolation position corresponding to each sub-scan data in each posture data;
[0052] Based on n posture data adjacent to the interpolation position, the posture data corresponding to each interpolation position is interpolated, and the posture data of each interpolation position is integrated to obtain the corrected posture data; wherein n is a natural number greater than 1.
[0053] Beneficial effects: The present invention provides a motion compensation method, device and system for a two-dimensional laser radar, which implements motion compensation for a low-cost two-dimensional laser radar based on an odometer and an inertial measurement unit, ensuring that the final sub-scan data is scanned based on the same position, minimizing the motion distortion interference caused by the device offset. Accurate attitude data can be obtained based on high-frequency odometer data and IMU data, and high-precision corrected attitude data can be obtained through interpolation. Integrating the sub-scan data corresponding to the attitude data into the sub-scan data obtained by the two-dimensional laser radar not only realizes motion compensation for the two-dimensional laser radar, but also improves the accuracy of the data and further expands the data volume of the sub-scan data. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flow chart of the motion compensation method proposed in Embodiment 1 of the present invention;
[0055] Figure 2 is a schematic diagram of the structure of the device proposed in Example 2 of the present invention;
[0056] Figure 3 It is a schematic diagram of a motion compensation module proposed in Embodiment 3 of the present invention.
[0057] Figure numerals: 1-two-dimensional laser radar; 2-odometer; 3-inertial measurement unit; 4-main control circuit; A1-first acquisition module; A2-second acquisition module; A3-attitude calculation module; A4-correction attitude calculation module; A5-compensation data calculation module; A6-data fusion module. DETAILED DESCRIPTION
[0058] In the following, various embodiments of the present disclosure will be described more fully. The present disclosure may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but the present disclosure should be understood to cover all adjustments, equivalents and / or alternatives that fall within the spirit and scope of the various embodiments of the present disclosure.
[0059] It should be noted that the posture in this application includes position and posture.
[0060] It should be noted that the acquisition time in this application refers to the time when the sampling action is performed in the first period. There is an acquisition time for the two-dimensional laser radar, and the odometer and IMU have the same acquisition time. In general, the acquisition time of the two-dimensional laser radar is different from the acquisition time of the odometer or IMU, and the acquisition time of the odometer and IMU is significantly more than that of the two-dimensional laser radar.
[0061] Example 1
[0062] Embodiment 1 of the present invention discloses a motion compensation method for a two-dimensional laser radar, which integrates odometer data and IMU data into the sub-scan data obtained by the two-dimensional laser radar, not only realizing motion compensation for the two-dimensional laser radar, but also further expanding the sub-scan data. The specific process of the motion compensation method is shown in the attached manual. Figure 1 shown.
[0063] A motion compensation method for a two-dimensional laser radar comprises the following steps:
[0064] 101. Enable the two-dimensional laser radar to perform a sampling action at a first preset frequency within a first period of time to obtain sub-scan data, and use the sub-scan data as initial sub-scan data;
[0065] 102. Enable the odometer and the inertial measurement unit to synchronously perform sampling actions at a second preset frequency within a first period of time to obtain odometer data and inertial data respectively;
[0066] 103. Calculate the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period;
[0067] 104. Based on the relationship between the first preset frequency and the second preset frequency, and in combination with the acquisition time corresponding to each sub-scanning data, the posture data corresponding to each sub-scanning data is calculated to obtain the corrected posture data;
[0068] 105. The posture data and the correction posture data are arranged in time order to form a posture data set. Based on the time relationship of the correction posture data, the sub-scan data corresponding to each posture data in the posture data set is calculated to obtain the compensated sub-scan data.
[0069] 106. The initial sub-scanning data and the compensated sub-scanning data are fused to obtain compensated sub-scanning data.
[0070] The motion compensation method of this embodiment is applicable to a device including a two-dimensional laser radar, an inertial measurement unit and an odometer. The structure of the device is as shown in the attached manual. Figure 2As shown. The two-dimensional laser radar gives observation results in the form of sub-scans, where each sub-scan consists of multiple ranges, and the complete scan data can be formed by merging all sub-scans. The odometer is preferably a high-frequency wheel odometer, which measures the device travel by wheel speed to improve compensation accuracy. IMU (Inertial Measurement Unit), that is, inertial measurement unit, is used to measure the three-axis attitude angle (or angular rate) and acceleration of an object.
[0071] In this embodiment, the two-dimensional laser radar is a low-speed, low-scanning-frequency, low-cost laser radar. Generally, when collecting data, the two-dimensional laser radar should be rotated in situ as much as possible, and the laser radar is mounted on the device, which will inevitably produce deviations. In addition, the two-dimensional laser radar has a low scanning frequency, making it very susceptible to motion distortion.
[0072] The motion compensation method of this embodiment estimates the corrected pose of each point in the sub-scan frame observed by the two-dimensional lidar based on the motion equations of the high-frequency wheel odometer and IMU (inertial measurement unit). Taking into account the movement of the device, once the pose of a point is estimated, all points in each sub-scan are converted to the frame of the first point observed by the lidar to eliminate the impact of the device offset and complete the current scan.
[0073] For example, the 2D laser radar is at point A. Ideally, it rotates in situ along point A to collect data of 360 degrees. The 2D laser radar first collects data of point B1. In the subsequent collection process, the device gradually deviates, causing the 2D laser radar to deviate from point A. Using the motion compensation method of this embodiment, the data finally obtained is the data collected with point A as the reference.
[0074] The two-dimensional laser radar, inertial measurement unit and odometer are all mounted on the device and perform sampling actions in the same time period. Among them, the two-dimensional laser radar performs sampling actions at a first preset frequency in the first time period to obtain sub-scan data, and the sub-scan data is used as the initial sub-scan data. The first preset frequency is the acquisition frequency of the two-dimensional laser radar. The low-cost two-dimensional laser radar has a low rotation speed, and the first preset frequency does not exceed 10hz. Normally, the first preset frequency is about 5-6 Hz, and the sampled data not only fails to meet the accuracy requirements, but is also easily affected by motion distortion.
[0075] The inertial measurement unit and the odometer perform sampling actions synchronously at the second preset frequency to ensure that the inertial data at each collection moment has corresponding odometer data. The odometer and the inertial measurement unit are high-frequency sampling relative to the two-dimensional lidar, and the second preset frequency is not less than 50hz. The second preset frequency is high frequency relative to the first preset frequency. The inertial data measured by the inertial measurement unit can be used to calculate the direction of the device, and the odometer data measured by the odometer can be used to determine the position of the device at each collection moment.
[0076] Specifically, the coordinates of the device are calculated based on the linear velocity in the odometer data to estimate the position information of the device. In this embodiment, the position information of the device is expressed in the form of coordinates. The position difference can be estimated by the linear velocity of the odometer data.
[0077] The yaw angle in the Euler angle is obtained based on the inertial data, and the yaw angle is converted into a two-dimensional rotation matrix to estimate the heading information of the device. The data returned by the three-axis gyroscope in the IMU is the angular velocity on the three axes. After integration, three angles (Euler angles) will be obtained. These three Euler angles rotate around the carrier coordinate system respectively. Among them, the Euler angle θ and ψ correspond to rotations around the x, y, and z axes, respectively. Since the two-dimensional posture of the current sub-scan data needs to be estimated, the Euler angle only involves the yaw angle ψ rotating around the z axis. The yaw angle ψ is converted into a two-dimensional rotation matrix as follows:
[0078]
[0079] Among them, ψ represents the yaw angle, and R represents the two-dimensional rotation matrix; the attitude data at the time of collection is obtained by integrating the position information and heading information. The expression of attitude data is:
[0080]
[0081] Where T represents the location information, Indicates that at t b Collect the posture data at the moment.
[0082] In this embodiment, the posture data corresponding to each sub-scan data is estimated by interpolation. Each set of inertial data and odometer data also involves time, and each posture data obtained also has time series. Each sub-scan data involves time. Based on the time relationship between the sub-scan data and the posture data, the position of each sub-scan data in the posture data can be effectively obtained. Based on the relationship between each posture data, the posture corresponding to the sub-scan data can be interpolated to obtain the corrected posture data.
[0083] Preferably, the process of acquiring the corrected posture data includes: determining the collection time of each sub-scan data in the first time period based on a first preset frequency; determining the collection time of each posture data in the first time period based on a second preset frequency; determining the time sequence relationship between each sub-scan data and each posture data to obtain the interpolation position corresponding to each sub-scan data in each posture data; interpolating the posture data corresponding to each interpolation position based on n posture data adjacent to the interpolation position, and obtaining the corrected posture data by integrating the posture data of each interpolation position; wherein n is a natural number greater than 1.
[0084] In practical applications, interpolation data is mainly obtained by linear interpolation, for example, the difference between two posture data before and after the interpolation position is calculated, and the corrected posture data of the interpolation position is obtained by comparing the time point of the interpolation position.
[0085] After obtaining the corrected posture data corresponding to each sub-scan data, the corrected posture data is inserted into the posture data in chronological order to obtain a posture data set. The posture data set is equivalent to obtaining the posture of the sub-scan data based on high-frequency sampling, and then solving the sub-scan data of all the data in the posture data set to obtain high-frequency sub-scan data.
[0086] Specifically, since the posture data set includes the correction posture data and the posture data, the sub-scan data corresponding to the correction posture data is known, and based on the relationship between the correction posture data and the sub-scan data, and the relationship between the correction posture data and the posture data, the sub-scan data corresponding to each posture data can be solved. The sub-scan data measured by the two-dimensional laser radar and the sub-scan data of each posture data are fused to obtain complete sub-scan data, and the sub-scan data is based on the position of the device when the laser radar scans the first point.
[0087] The sub-scan data finally obtained not only increases in sample quantity, but also improves sample quality, ensuring that all sub-scan data are measured based on the same point.
[0088] Illustratively, this embodiment provides a framework flow of a motion feedback method.
[0089] Input parameters:
[0090] 1. Data measured by the 2D LiDAR at a sampling frequency of 6 Hz: S1, S2, S3…Sn;
[0091] 2. The data measured by the odometer at a sampling frequency of 50 Hz is calculated to obtain the device location information at each collection time: (x1, y1)—T1; (x2, y2)—T2...(xm, ym)—Tm;
[0092] 3. The data measured by the inertial measurement unit at a sampling frequency of 50 Hz is calculated to obtain the device heading information at each collection moment: R1, R2, R3...Rm;
[0093] calculate:
[0094] 1. Determine the posture data P1 according to T1 and R1, determine the posture data P2 according to T2 and R2...determine the posture data Pm according to Tm and Rm; obtain P1, P2, P3...Pm;
[0095] 2. If the time corresponding to S1 is between P3 and P4, the interpolation method can be used to interpolate between P3 and P4, and the posture P11 corresponding to S1 can be obtained by using P2, P3, P4, and P5; all posture calculations of S1-Sn are completed to obtain P11, P12...P1n;
[0096] 3. Fuse P11, P12...P1n into P1, P2, P3...Pm to obtain P1, P2, P3, P11, P4...P1n...Pm;
[0097] 4. Based on P1, P2, P3, P11, P4 ... P1n ... Pm, determine the sub-scan data corresponding to P1, P2, P3 ... Pm, and obtain S1', S2', S3' ... Sm';
[0098] 5. Fusion of S1', S2', S3'...Sm' and S1, S2, S3...Sn to obtain complete and accurate sub-scan data.
[0099] This embodiment provides a motion compensation method for a two-dimensional laser radar, which integrates the data collected by the odometer and IMU into the sub-scan data obtained by the two-dimensional laser radar, thereby not only realizing motion compensation for the two-dimensional laser radar, but also further expanding the sub-scan data.
[0100] Example 2
[0101] This embodiment provides a device with a two-dimensional laser radar, which can be used to implement a motion compensation method of a two-dimensional laser radar in embodiment 1. The structure of the device is as shown in the attached specification. Figure 2 The specific plan is as follows:
[0102] A two-dimensional laser radar 1, configured to perform a sampling action at a first preset frequency in a first time period to obtain sub-scanning data, and use the sub-scanning data as initial sub-scanning data;
[0103] Odometer 2, used to perform sampling action at a second preset frequency within a first time period to obtain odometer 2 data;
[0104] An inertial measurement unit 3, configured to perform a sampling action synchronously with the odometer 2 at a second preset frequency within a first period of time to obtain inertial data;
[0105] The main control circuit 4 is used to calculate the posture data of the device at the same collection time based on the odometer 2 data and inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period; based on the relationship between the first preset frequency and the second preset frequency, combined with the collection time corresponding to each sub-scan data, calculate the posture data corresponding to each sub-scan data to obtain corrected posture data; each posture data and each corrected posture data are sorted in chronological order to form a posture data set, and based on the time relationship of each corrected posture data, the sub-scan data corresponding to each posture data in the posture data set is calculated to obtain compensated sub-scan data; the initial sub-scan data and the compensated sub-scan data are fused to obtain compensated sub-scan data.
[0106] The main control circuit 4 may transmit the obtained sub-scan data to the scan matcher for application, so as to create a map and positioning according to the sub-scan data.
[0107] Preferably, the device of this embodiment may be a cleaning device, such as a sweeping robot.
[0108] Example 3
[0109] This embodiment provides a motion compensation system for a two-dimensional laser radar 1, which implements motion compensation for the two-dimensional laser radar 1 based on the odometer 2 and the IMU. The structural block diagram of the motion compensation system is shown in the attached manual. Figure 3 The specific plan is as follows:
[0110] A motion compensation system for a two-dimensional laser radar 1, comprising:
[0111] The first acquisition module A1 is used to enable the two-dimensional laser radar 1 to perform a sampling action at a first preset frequency within a first time period to obtain sub-scan data, and use the sub-scan data as initial sub-scan data;
[0112] The second acquisition module A2 is used to make the odometer 2 and the inertial measurement unit 3 synchronously perform sampling actions at a second preset frequency within a first period of time to obtain odometer 2 data and inertial data respectively;
[0113] The posture calculation module A3 is used to calculate the posture data of the device at the same collection time according to the odometer 2 data and the inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period;
[0114] The correction posture calculation module A4 is used to calculate the posture data corresponding to each sub-scanning data based on the relationship between the first preset frequency and the second preset frequency and in combination with the acquisition time corresponding to each sub-scanning data to obtain the correction posture data;
[0115] The compensation data calculation module A5 is used to sort each posture data and each correction posture data in time order to form a posture data set, and calculate the sub-scan data corresponding to each posture data in the posture data set based on the time relationship of each correction posture data to obtain the compensation sub-scan data;
[0116] The data fusion module A6 is used to fuse the initial sub-scan data and the compensated sub-scan data to obtain compensated sub-scan data.
[0117] Among them, the correction posture calculation module A4 specifically includes: based on the first preset frequency, determining the collection time of each sub-scan data in the first time period; based on the second preset frequency, determining the collection time of each posture data in the first time period; determining the time sequence relationship between each sub-scan data and each posture data to obtain the interpolation position corresponding to each sub-scan data in each posture data; based on n posture data adjacent to the interpolation position, interpolating to obtain the posture data corresponding to each interpolation position, and integrating the posture data of each interpolation position to obtain the correction posture data; wherein n is a natural number greater than 1.
[0118] The present invention provides a motion compensation method, device and system for a two-dimensional laser radar, which realizes motion compensation of a low-cost two-dimensional laser radar based on an odometer and an inertial measurement unit, ensures that the final sub-scan data is scanned based on the same position, and minimizes the motion distortion interference caused by the device offset. Accurate attitude data can be obtained based on high-frequency odometer data and IMU data, and high-precision corrected attitude data can be obtained by interpolation. The sub-scan data corresponding to the attitude data is integrated into the sub-scan data obtained by the two-dimensional laser radar, which not only realizes the motion compensation of the two-dimensional laser radar, but also improves the accuracy of the data and further expands the data volume of the sub-scan data.
[0119] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present invention. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario.
Claims
1. A motion compensation method for a two-dimensional laser radar, characterized in that: Applicable to a device including a two-dimensional laser radar, an inertial measurement unit, and an odometer, the method comprising: The two-dimensional laser radar performs a sampling action at a first preset frequency in a first time period to obtain sub-scan data, and uses the sub-scan data as initial sub-scan data; The odometer and the inertial measurement unit are caused to synchronously perform sampling actions at a second preset frequency within a first period of time to obtain odometer data and inertial data respectively; Calculating the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtaining the posture data of the device at each collection time in the first time period; Based on the relationship between the first preset frequency and the second preset frequency, combined with the acquisition time corresponding to each sub-scanning data, the posture data corresponding to each sub-scanning data is calculated to obtain the corrected posture data; The various posture data and the various correction posture data are arranged in time order to form a posture data set, and based on the time relationship of the various correction posture data, the sub-scan data corresponding to each posture data in the posture data set is calculated to obtain the compensated sub-scan data; The initial sub-scan data and the compensated sub-scan data are fused to obtain compensated sub-scan data.
2. The motion compensation method according to claim 1, characterized in that: The acquisition process of the correction posture data includes: Based on the first preset frequency, determining the acquisition time of each sub-scanning data in the first time period; Based on the second preset frequency, determining the collection time of each gesture data in the first time period; Determine the time sequence relationship between each sub-scan data and each posture data to obtain the interpolation position corresponding to each sub-scan data in each posture data; Based on n posture data adjacent to the interpolation position, the posture data corresponding to each interpolation position is interpolated, and the posture data of each interpolation position is integrated to obtain the corrected posture data; wherein n is a natural number greater than 1.
3. The motion compensation method according to claim 1, characterized in that: The first preset frequency is lower than the second preset frequency.
4. The motion compensation method according to claim 2, characterized in that: Linear interpolation is performed based on the two posture data before and after the interpolation position.
5. The motion compensation method according to claim 1, characterized in that: The first preset frequency does not exceed 10 Hz; And / or, the second preset frequency is not less than 50 Hz.
6. The motion compensation method according to claim 1, characterized in that: At the same collection time: Calculating coordinates of the device based on the linear velocity in the odometer data to estimate the location information of the device; Obtaining a yaw angle in Euler angles based on inertial data, and converting the yaw angle into a two-dimensional rotation matrix to estimate the heading information of the device; The position information and heading information are combined to obtain the attitude data at the time of collection.
7. The motion compensation method according to claim 6, characterized in that: The expression of the two-dimensional rotation matrix is: Among them, ψ represents the yaw angle, and R represents the two-dimensional rotation matrix; The expression of the posture data is: Where T represents the location information, Indicates that at t b The posture data at the time of collection.
8. A device with a two-dimensional laser radar, characterized in that: Used to implement the motion compensation method according to any one of claims 1 to 7; The device comprises: A two-dimensional laser radar, configured to perform a sampling action at a first preset frequency within a first time period to obtain sub-scan data, and use the sub-scan data as initial sub-scan data; An odometer, configured to perform a sampling action at a second preset frequency within a first period of time to obtain odometer data; An inertial measurement unit, configured to perform a sampling action synchronously with the odometer at a second preset frequency within a first time period to obtain inertial data; A main control circuit, used to calculate the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period; Based on the relationship between the first preset frequency and the second preset frequency, combined with the acquisition time corresponding to each sub-scanning data, the posture data corresponding to each sub-scanning data is calculated to obtain the corrected posture data; The various posture data and the various correction posture data are arranged in time order to form a posture data set, and based on the time relationship of the various correction posture data, the sub-scan data corresponding to each posture data in the posture data set is calculated to obtain the compensated sub-scan data; The initial sub-scan data and the compensated sub-scan data are fused to obtain compensated sub-scan data.
9. A motion compensation system for a two-dimensional laser radar, characterized in that: These include: A first acquisition module is used to enable the two-dimensional laser radar to perform a sampling action at a first preset frequency within a first time period to obtain sub-scan data, and use the sub-scan data as initial sub-scan data; A second acquisition module is used to make the odometer and the inertial measurement unit synchronously perform sampling actions at a second preset frequency within a first period of time to obtain odometer data and inertial data respectively; A posture calculation module, used to calculate the posture data of the device at the same collection time according to the odometer data and inertial data at the same collection time, and obtain the posture data of the device at each collection time in the first time period; A correction posture calculation module, used to calculate the posture data corresponding to each sub-scanning data based on the relationship between the first preset frequency and the second preset frequency and in combination with the collection time corresponding to each sub-scanning data, so as to obtain the correction posture data; A compensation data calculation module, used for sorting each posture data and each correction posture data in time order to form a posture data set, and calculating the sub-scan data corresponding to each posture data in the posture data set based on the time relationship of each correction posture data to obtain compensation sub-scan data; The data fusion module is used to fuse the initial sub-scan data and the compensated sub-scan data to obtain compensated sub-scan data.
10. The motion compensation system according to claim 9, characterized in that: The correction posture calculation module specifically includes: Based on the first preset frequency, determining the acquisition time of each sub-scanning data in the first time period; Based on the second preset frequency, determining the collection time of each gesture data in the first time period; Determine the time sequence relationship between each sub-scan data and each posture data to obtain the interpolation position corresponding to each sub-scan data in each posture data; Based on n posture data adjacent to the interpolation position, the posture data corresponding to each interpolation position is interpolated, and the posture data of each interpolation position is integrated to obtain the corrected posture data; wherein n is a natural number greater than 1.
