Laser distortion removal method, device, system and readable storage medium
By confirming the tilt state of the robot through the inertial measurement device and filtering erroneous laser data using the least squares method, the problem of erroneous lidar projection caused by uneven ground in small robot navigation is solved, improving navigation accuracy and planning capabilities.
Patent Information
- Application Number
- CN202210826873.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-13
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-07-13
AI Technical Summary
During the navigation process, when a small robot is installed in a low position, it is easily affected by uneven ground, causing it to tilt. The lidar sensor produces erroneous laser projections, resulting in a decrease in navigation positioning accuracy and planning capabilities.
The inertial measurement device is used to confirm the tilt state of the robot, calculate the horizontal distance of the erroneous laser projection, and filter out the range of erroneous laser data through the least squares method to avoid erroneous obstacle recognition.
It achieves real-time or scheduled acquisition of robot posture, corrects erroneous laser projections, improves navigation positioning accuracy and navigation planning capabilities, and avoids uneven ground being mistakenly identified as obstacles.
Smart Images

Figure CN115164882B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser technology, and more specifically, to a laser distortion removal method, device, system and readable storage medium. Background Art
[0002] LiDAR sensors are widely used in various fields of robotics due to their accurate ranging and wide range, such as robot mapping, positioning and navigation.
[0003] According to the different fields of view of LiDAR sensors, they can be divided into 2D LiDAR and 3D LiDAR. Among them, 2D LiDAR sensors are widely used in indoor robot mapping, positioning and navigation. Compared with 3D LiDAR sensors, 2D LiDAR sensors have no height information, but only set a 2D coordinate mapping for the detected objects, which is mainly used to create two-dimensional maps and identify obstacles.
[0004] However, when it is applied to small robots and installed at a low position, the robot's posture is easily affected by the environment. When the robot passes through carpets, slopes, tiles with special decorative surfaces, etc., the robot body is prone to tilt. The lidar sensor is easily affected by the tilt of the body, causing the laser to be projected near the ground and the near-ground position to be mistakenly identified as an obstacle, seriously affecting the robot's positioning accuracy and navigation planning. Summary of the invention
[0005] In view of this, the present invention provides a laser distortion removal method, comprising:
[0006] Confirm whether the robot is currently in a tilted state based on the inertial measurement unit;
[0007] When the robot is in a tilted state, calculating the horizontal distance of the erroneous laser projection of the robot;
[0008] Based on the horizontal distance of the erroneous laser projection, the range of the erroneous laser data is screened out using the least square method as the erroneous projection laser and filtered.
[0009] Preferably, the confirming the current tilt state of the robot based on the inertial measurement device comprises:
[0010] Acquire current posture data of the robot based on the inertial measurement device; wherein the current posture data includes a pitch angle; wherein the pitch angle is the pitch angle of the inertial measurement device;
[0011] Determining whether the pitch angle is greater than a preset angle threshold;
[0012] If so, it is determined that the robot is in a tilted state.
[0013] Preferably, the current posture data also includes a vertical height of the inertial measurement device from the ground;
[0014] The calculating the horizontal distance of the erroneous laser projection of the robot comprises:
[0015] The horizontal distance of the erroneous laser projection is calculated according to the vertical height and the pitch angle.
[0016] Preferably, the horizontal distance of the erroneous laser projection is calculated using the following formula:
[0017]
[0018] Wherein, L is the horizontal distance of the erroneous laser projection, H is the vertical height, and θ is the pitch angle.
[0019] Preferably, the method of screening out the range of erroneous laser data based on the horizontal distance of the erroneous laser projection by using the least square method comprises:
[0020] Based on the horizontal distance of the erroneous laser projection, a plurality of actual position points based on a polar coordinate system in the forward direction of the robot are acquired;
[0021] The least square method is used to screen out erroneous points in the actual position points as the positions where the erroneous laser projection data are located.
[0022] Preferably, the obtaining of a plurality of actual position points based on a polar coordinate system in the forward direction of the robot based on the horizontal distance of the erroneous laser projection comprises:
[0023] Based on the polar coordinate system, a plurality of actual position points are acquired within a rectangular area with a length L in the robot's forward direction.
[0024] Preferably, the method of using the least square method to select the erroneous points in the actual position points as the positions where the erroneous laser projection data are located includes:
[0025] Using the least squares method, the equation of the line is calculated to obtain the theoretical value;
[0026] Substituting the actual position point into the straight line equation to obtain the actual value;
[0027] Determine whether the difference between the actual value and the theoretical value is less than a preset comparison threshold;
[0028] If so, the actual position point corresponding to the actual value is determined to be an erroneous point, and is used as the erroneous target position.
[0029] In addition, to solve the above problems, the present application also provides a laser distortion removal device, comprising:
[0030] A confirmation module, used to confirm whether the robot is currently in a tilted state based on an inertial measurement device;
[0031] A calculation module, used for calculating the horizontal distance of the erroneous laser projection of the robot when the robot is in a tilted state;
[0032] The filtering module is used to filter out the range of erroneous laser data based on the horizontal distance of the erroneous laser projection by using the least square method, and filter it as the erroneous projection laser.
[0033] In addition, to solve the above problems, the present application also provides a laser distortion removal system, including a memory and a processor, wherein the memory is used to store a laser distortion removal program, and the processor runs the laser distortion removal program so that the laser distortion removal system performs the laser distortion removal method as described above.
[0034] In addition, to solve the above problems, the present application also provides a computer-readable storage medium, on which a laser distortion removal program is stored. When the laser distortion removal program is executed by a processor, the laser distortion removal method as described above is implemented.
[0035] The present invention provides a laser distortion removal method, device, system and readable storage medium, wherein the laser distortion removal method comprises: confirming whether the robot is currently in a tilted state based on an inertial measurement device; when the robot is in a tilted state, calculating the horizontal distance of the robot's erroneous laser projection; based on the horizontal distance of the erroneous laser projection, using the least square method to filter out the range of erroneous laser data as erroneous projection laser and filter it. The method provided by the present invention can achieve real-time or timed acquisition of the robot's posture, and when it is in a tilted state, according to the calculated horizontal distance of the erroneous laser projection, filter out the erroneous target position by the least square method, that is, filter out the erroneous projection laser, so that the robot can avoid treating uneven ground as an obstacle during the movement process, resulting in navigation failure, and improve the robot's positioning accuracy and navigation planning capabilities in navigation. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the laser distortion removal method of the present invention;
[0037] Figure 2 It is a schematic flow chart of the first embodiment of the laser distortion removal method of the present invention;
[0038] Figure 3Schematic diagram of the laser channel when the robot is tilted in the first embodiment of the laser distortion removal method of the present invention;
[0039] Figure 4 Schematic diagram of the process of the second embodiment of the laser distortion removal method of the present invention;
[0040] Figure 5 Schematic diagram of the process of the third embodiment of the laser distortion removal method of the present invention;
[0041] Figure 6 Schematic diagram of a method for calculating L when the robot is tilted in the third embodiment of the laser distortion removal method of the present invention;
[0042] Figure 7 Schematic diagram of the process of the fourth embodiment of the laser distortion removal method of the present invention;
[0043] Figure 8 It is a schematic diagram of calculating the straight line equation in the fourth embodiment of the laser distortion removal method of the present invention;
[0044] Fig. 9 It is a schematic diagram of module connection of the laser distortion removal device of the present invention.
[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] The embodiments of the present invention are described in detail below, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions.
[0047] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0048] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] like Figure 1 , which is a schematic diagram of the structure of the hardware operating environment of the terminal involved in the embodiment of the present invention.
[0051] The laser distortion removal system provided by the present invention can be a PC, or a mobile terminal device such as a smart phone, a tablet computer or a portable computer. The laser distortion removal system may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen, an input unit such as a keyboard, and a remote control. The user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory, such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001. Optionally, the laser distortion removal system may also include an RF (Radio Frequency) circuit, an audio circuit, a WiFi module, and the like. In addition, the laser distortion removal system may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail here.
[0052] Those skilled in the art will understand that Figure 1 The laser distortion removal system shown in the figure does not constitute a limitation thereof, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently. Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a data interface control program, a network connection program, and a laser distortion removal program.
[0053] The present invention provides a laser distortion removal method, device, system and readable storage medium. The method can confirm the state of a robot in real time according to an inertial measurement device, and when the robot is in a tilted state, use the obtained horizontal distance of the erroneous laser projection to calculate and filter out unnecessary erroneous projection lasers through the least square method.
[0054] Embodiment 1:
[0055] Reference Figure 2 The first embodiment of the present invention provides a laser distortion removal method, comprising:
[0056] Step S100, confirming whether the robot is currently in a tilted state based on an inertial measurement device;
[0057] As mentioned above, the inertial measurement unit is IMU (Inertial Measurement Unit), also known as inertial measurement unit, which is used to measure the three-axis attitude angle (or angular rate) and acceleration of an object. Gyroscopes and accelerometers are the main components of IMU, and their accuracy directly affects the accuracy of the inertial system. Generally speaking, IMU should be installed at the center of gravity of the object being measured.
[0058] As mentioned above, the robot may be a robot that can move in a plane within a certain range, for example, it may include but is not limited to a sweeping robot, a mopping robot, a cleaning robot, a robot for exhibition hall display, a disinfection robot, etc.
[0059] The tilted state mentioned above refers to the state in which the robot body tilts relative to the horizontal plane when encountering an uneven surface during the movement of the robot. For example, a sweeping robot is located at a low position. When moving forward, it encounters a surface such as a carpet, a mat, a fiber fabric, or moves on a floor tile with an uneven front surface, or a small area on the ground plane has an inclined angle, causing the robot to tilt in the area. At this time, the state is the tilted state.
[0060] In this embodiment, the robot is particularly targeted at robots equipped with 2D laser radars. When such robots are moving, they project lasers in the forward direction through the 2D laser radar. Since they do not have height information, they can only mark the detected objects with two-dimensional coordinate mapping on the plane relative to the robot's forward direction. If the robot encounters an uneven plane, it will cause the robot to tilt. If the position of the laser radar is used as a reference, there may be two situations when moving in the forward direction: State A (reference Figure 3 ), the robot's laser radar is projected near the ground, and the robot as a whole is tilted forward and downward, for example, the tail end (relative to the forward direction) is tilted at a 30° angle to the horizontal plane; in state B, the robot as a whole is tilted forward and upward, and the laser radar is projected into the air. At this time, the robot as a whole is tilted forward, for example, the front part of the robot is tilted at a 30° angle to the horizontal plane.
[0061] If state A occurs, the robot's laser radar is projected near the ground. At this time, the robot is tilted forward and downward as a whole, with the tail end raised. The laser radar projected in the forward direction should be projected just in front of the horizontal plane, but due to the tilt, it can only be projected near the ground, causing the system to misidentify and judge that an obstacle that should not appear has appeared. This embodiment is aimed at this situation.
[0062] In addition, the B state can also be corrected by the algorithm in this embodiment.
[0063] Step S200, when the robot is in a tilted state, calculating the horizontal distance of the erroneous laser projection of the robot;
[0064] The horizontal distance of the erroneous laser projection is the distance between the point where the laser is still projected forward (near the ground) along the original path to the plane where the laser is located when in the tilted state (state A) and the intersection point between the laser radar location and the plane, that is, the horizontal distance of the laser projection.
[0065] Step S300: Based on the horizontal distance of the erroneous laser projection, the range of the erroneous laser data is screened out by using the least square method as the erroneous projection laser and filtered.
[0066] It should be noted that the least squares method is a mathematical tool that is widely used in many disciplines of data processing such as error estimation, uncertainty, system identification, prediction, and forecasting.
[0067] As described above, according to the horizontal distance of the erroneous laser projection, the least square method can be used for calculation and screening. For example, by using the least square method for calculation and comparing the predicted data with the actual data, further screening can be performed to find out the distorted laser path or point, thereby achieving the removal and filtering of the erroneous target position.
[0068] The method provided in this embodiment can realize real-time or timed acquisition of the robot's posture, and when the robot is in a tilted state, the erroneous target position is filtered out by the least squares method based on the calculated horizontal distance of the erroneous laser projection, that is, the erroneous projection laser is filtered out, thereby enabling the robot to avoid treating uneven ground as an obstacle during movement, which leads to navigation failure, and improves the robot's positioning accuracy in navigation and navigation planning capabilities.
[0069] Embodiment 2:
[0070] Reference Figure 4 Based on the first embodiment, the second embodiment of the present invention provides a laser distortion removal method, wherein the step S100, based on the inertial measurement device, confirms the current tilt state of the robot, including:
[0071] Step S110, acquiring current posture data of the robot based on the inertial measurement device; wherein the current posture data includes a pitch angle; wherein the pitch angle is the pitch angle of the inertial measurement device;
[0072] As mentioned above, the inertial measurement unit is an IMU sensor device, and an IMU sensor device includes components such as accelerometers and gyroscopes. For example, it may include three single-axis accelerometers and three single-axis gyroscopes. The accelerometer detects the acceleration signal of the object in the independent three-axis of the carrier coordinate system, and the gyroscope detects the angular velocity signal of the carrier relative to the navigation coordinate system, measures the angular velocity and acceleration of the object in three-dimensional space, and uses this to calculate the attitude of the object.
[0073] As described above, the inertial measurement device can obtain the current robot's position and posture data, that is, the robot's pitch angle data, in real time or periodically.
[0074] Step S120, determining whether the pitch angle is greater than a preset angle threshold;
[0075] As described above, during the judgment, the obtained value of the pitch angle is compared with the angle threshold.
[0076] As mentioned above, the pitch angle is the angle between the x-axis of the robot coordinate system and the horizontal plane. When the x-axis of the robot's body coordinate system is above the XOY plane of the inertial coordinate system, the pitch angle is positive, the body is tilted upward, and there will be no misidentification of obstacles, so it is not considered; otherwise, the body is tilted downward, and the laser is tilted to the bottom surface, which is negative. That is, the angle between the vector parallel to the axis of the robot's base and pointing to the direction of the robot's forward movement and the ground.
[0077] The angle threshold is a preset threshold for evaluating the current state of the robot's posture. The threshold can be a value or a range of values. For example, the angle threshold can be -3°.
[0078] Step S130: If yes, it is determined that the robot is in a tilted state.
[0079] In this embodiment, when the pitch angle obtained according to the inertial measurement device is greater than or exceeds the angle threshold, the robot is determined to be in a tilted state, and the IMU is used to acquire data in real time or at a fixed time, and the current posture of the robot is determined by pre-setting an angle threshold and comparing it for judgment. This can avoid the defect of 2D laser radar that there is no height information and improve the accuracy of robot state recognition.
[0080] Embodiment 3:
[0081] Reference Figure 5 Based on Example 2, Example 3 of the present invention provides a laser distortion removal method, wherein the current posture data also includes a vertical height of the inertial measurement device from the ground.
[0082] In the step S200, calculating the horizontal distance of the erroneous laser projection of the robot includes:
[0083] Step S210 calculates the horizontal distance of the erroneous laser projection according to the vertical height and the pitch angle.
[0084] The vertical height mentioned above is the distance in the vertical direction from the position of the laser radar in the robot to the horizontal plane, that is, the vertical height.
[0085] The horizontal distance of the incorrect laser projection is the distance between the point where the laser projected the ray in the robot's forward direction intersects with the horizontal plane in the vertical direction where the laser radar is located.
[0086] As described above, based on the vertical height and the pitch angle, the horizontal distance of the erroneous laser projection can be calculated.
[0087] For further reference, Figure 6 In step S210, the horizontal distance of the erroneous laser projection is calculated using the following formula: Wherein, L is the horizontal distance of the erroneous laser projection, H is the vertical height, and θ is the pitch angle.
[0088] As mentioned above, the value of L can be calculated using the trigonometric function tan tangent.
[0089] In this embodiment, trigonometric functions are used to obtain the vertical height H (i.e., the height of the sensor from the bottom surface) and the pitch angle obtained by the inertial measurement device, and the horizontal distance L of the erroneous laser projection is calculated using the tangent function. This allows the projection L value to be calculated in real time or at a scheduled time when the robot is tilted and the laser is projected on the bottom surface in the forward direction. This avoids the defect of 2D laser radar that there is no height information and improves the accuracy of robot state recognition.
[0090] Embodiment 4:
[0091] Reference Figure 7 Based on the third embodiment, the fourth embodiment of the present invention provides a method for removing laser distortion. In the step S300, based on the horizontal distance of the erroneous laser projection, the range of the erroneous laser data is screened out by the least square method, including:
[0092] Step S310, based on the horizontal distance of the erroneous laser projection, obtaining a plurality of actual position points based on a polar coordinate system in the forward direction of the robot;
[0093] It should be noted that polar coordinates refer to a coordinate system consisting of a pole, polar axis, and polar diameter in a plane. Take a point O on the plane, called the pole. Draw a ray Ox from O, called the polar axis. Then take a unit length, and usually stipulate that the angle is counterclockwise as positive. In this way, the position of any point P on the plane can be determined by the length ρ of the line segment OP and the angle θ from Ox to OP. The ordered pair (ρ, θ) is called the polar coordinates of point P, denoted as P(ρ, θ); ρ is called the polar diameter of point P, and θ is called the polar angle of point P.
[0094] In the above, the horizontal distance L of the erroneous laser projection is taken as the length distance, and the actual position point of the robot's forward direction is obtained based on the polar coordinate system.
[0095] The actual position point mentioned above is the actual or obtained position point using a plurality of lasers projected directly in front of the robot by the laser radar during the movement of the robot.
[0096] Step S320: using the least square method to filter out erroneous points in the actual position points as the positions of the erroneous laser projection data.
[0097] Furthermore, the step S310, based on the horizontal distance of the erroneous laser projection, obtains a plurality of actual position points based on the polar coordinate system in the forward direction of the robot, including:
[0098] Step S311, based on the polar coordinate system, obtaining a plurality of actual position points in a rectangular area with a length L in the forward direction of the robot.
[0099] As mentioned above, since the robot's forward direction has been determined, in order to screen and process the data more accurately, a virtual rectangular area is set. The rectangular area is a rectangular area with the robot's body as the starting point and the horizontal distance L of the erroneous laser projection as the length.
[0100] In the above, what is obtained is all the actual position points in the forward direction and within the rectangular area.
[0101] For further reference, Figure 8 The step S320, using the least square method to filter out the erroneous points in the actual position points as the positions where the erroneous laser projection data are located, includes:
[0102] Step S321, using the least square method, calculate the straight line equation to obtain a theoretical value;
[0103] The above-mentioned screening and filtering step is equivalent to the process of converting the points projected by the laser into the polar coordinate system.
[0104] As mentioned above, by using the least square method, the equation of the straight line y=ax+b in the rectangular area can be calculated to obtain the values of a and b, where x and y are the corresponding coordinates of the theoretical values.
[0105] Step S322, substituting the actual position point into the straight line equation to obtain an actual value;
[0106] As mentioned above, the point where the laser is projected in the forward direction, that is, all the actual position points, are substituted into the straight line equation to obtain the actual coordinates corresponding to the actual position points, that is, the actual values.
[0107] Step S323, determining whether the difference between the actual value and the theoretical value is less than a preset comparison threshold;
[0108] The comparison threshold is a pre-set threshold for evaluating the difference between the theoretical value and the actual value, for example, 0.2 m.
[0109] Step S324: If yes, determine that the actual position point corresponding to the actual value is an erroneous point, and use it as the erroneous target position.
[0110] As mentioned above, if the "difference between the actual value and the theoretical value" is less than the above comparison threshold, it can be said that the actual value is close to the theoretical value, which means that the actual position point corresponding to the actual value is the point of incorrect laser projection, which is the wrong target position, so it is further necessary to filter out the point.
[0111] For example, refer to Figure 3 At this time, the laser sensor is at a distance of H from the ground (the machine's own characteristic data). From the IMU (inertial measurement unit) data azimuth reading, it can be seen that the pitch angle is \theta. If the theta angle is greater than the preset angle threshold, it can be determined that there is a possibility of tilted projection ground. At this time, according to The approximate distance of the laser error projection from the robot is obtained, and the corresponding possible erroneous laser data is filtered out according to the distance. Based on the fuselage coordinate system, all possible erroneous laser data are decomposed into corresponding x and y coordinates. A matrix [x] + b = matrix [y], the most likely A and b can be obtained. Then each possible erroneous data is substituted into the equation. If the predicted data and actual data of y differ too much, it means that the data point is not on the straight line of the laser error projection; otherwise, it is on the straight line of the laser error projection; finally, the data on the straight line of the laser error projection is filtered out.
[0112] In summary, the technical problem to be solved by this embodiment is to solve the problem that when a small service robot navigates through an inclined ground, the laser is incorrectly projected onto the ground due to the inclination, causing the robot to detect the wrong obstacle, blocking the path and causing planning failure.
[0113] In this embodiment, by adopting the method provided in this embodiment, a simple and effective method for detecting robot inclination and filtering the laser that is erroneously projected to the ground due to the inclination is proposed based on a mobile robot device; this method uses the least squares method to detect and filter the laser; this method can be used for mobile robots on slopes, mapping, path planning and control.
[0114] In this embodiment, by reading the data of the inertial measurement device, it is detected whether the robot is tilted; according to the height of the robot's lidar sensor and the tilt angle of the machine, the approximate position of the laser error projection onto the ground is calculated; the equation of the point wrongly projected onto the ground is calculated according to the least squares method, and then the distorted points are filtered out according to the equation, so that the robot will not be affected by the tilt state caused by uneven ground during the movement, thereby improving the robot's positioning accuracy in navigation and the navigation planning ability.
[0115] In addition, reference Fig. 9 The present invention also provides a laser distortion removal device, comprising:
[0116] A confirmation module 10 is used to confirm whether the robot is currently in a tilted state based on an inertial measurement device;
[0117] A calculation module 20, for calculating the horizontal distance of the erroneous laser projection of the robot when the robot is in a tilted state;
[0118] The filtering module 30 is used to filter out the range of erroneous laser data based on the horizontal distance of the erroneous laser projection by using the least square method as the erroneous projection laser and filter it.
[0119] In addition, the present invention also provides a laser distortion removal system, including a memory and a processor, wherein the memory is used to store a laser distortion removal program, and the processor runs the laser distortion removal program to enable the laser distortion removal system to perform the laser distortion removal method as described above.
[0120] In addition, the present invention also provides a computer-readable storage medium, on which a laser distortion removal program is stored. When the laser distortion removal program is executed by a processor, the laser distortion removal method as described above is implemented.
[0121] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention. The above is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, are similarly included in the patent protection scope of the present invention.
Claims
1. A laser distortion removal method, It is characterized in that include: Acquire current posture data of the robot based on an inertial measurement device; wherein the current posture data includes a pitch angle and a vertical height of the inertial measurement device from the ground; wherein the pitch angle is the pitch angle of the inertial measurement device; Determining whether the pitch angle is greater than a preset angle threshold; If yes, it is determined that the robot is in a tilted state; When the robot is in a tilted state, the horizontal distance of the erroneous laser projection is calculated according to the vertical height and the pitch angle; the horizontal distance of the erroneous laser projection is calculated using the following formula: ; Wherein, L is the horizontal distance of the erroneous laser projection, H is the vertical distance from the position of the laser radar in the robot to the horizontal plane, and θ is the pitch angle; Based on the horizontal distance of the erroneous laser projection, the range of the erroneous laser data is screened out using the least square method as the erroneous projection laser and filtered.
2. The laser distortion removal method according to claim 1, It is characterized in that The method of screening out the range of erroneous laser data based on the horizontal distance of the erroneous laser projection by using the least square method includes: Based on the horizontal distance of the erroneous laser projection, a plurality of actual position points based on a polar coordinate system in the forward direction of the robot are acquired; The least square method is used to screen out erroneous points in the actual position points as the positions where the erroneous laser projection data are located.
3. The laser distortion removal method according to claim 2, It is characterized in that The step of obtaining a plurality of actual position points based on a polar coordinate system in the forward direction of the robot based on the horizontal distance of the erroneous laser projection comprises: Based on the polar coordinate system, a plurality of actual position points are acquired within a rectangular area with a length L in the robot's forward direction.
4. The laser distortion removal method according to claim 2, It is characterized in that The method of using the least square method to select the erroneous points in the actual position points as the positions where the erroneous laser projection data are located includes: Using the least squares method, the equation of the line is calculated to obtain the theoretical value; Substituting the actual position point into the straight line equation to obtain the actual value; Determine whether the difference between the actual value and the theoretical value is less than a preset comparison threshold; If so, the actual position point corresponding to the actual value is determined to be an erroneous point, and is used as the position where the erroneous laser projection data is located.
5. A laser distortion removal device, It is characterized in that include: A confirmation module, configured to obtain current posture data of the robot based on an inertial measurement device; wherein the current posture data includes a pitch angle and a vertical height of the inertial measurement device from the ground; wherein the pitch angle is the pitch angle of the inertial measurement device; and determining whether the pitch angle is greater than a preset angle threshold; if so, determining that the robot is in a tilted state; A calculation module is used to calculate the horizontal distance of the erroneous laser projection according to the vertical height and the pitch angle when the robot is in a tilted state; the horizontal distance of the erroneous laser projection is calculated using the following formula: ; Wherein, L is the horizontal distance of the erroneous laser projection, H is the vertical distance from the position of the laser radar in the robot to the horizontal plane, and θ is the pitch angle; The filtering module is used to filter out the range of erroneous laser data based on the horizontal distance of the erroneous laser projection by using the least square method, and filter it as the erroneous projection laser.
6. A laser distortion removal system, It is characterized in that It comprises a memory and a processor, wherein the memory is used to store a laser distortion removal program, and the processor runs the laser distortion removal program so that the laser distortion removal system executes the laser distortion removal method according to any one of claims 1 to 4.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a laser distortion removal program, and when the laser distortion removal program is executed by the processor, the laser distortion removal method according to any one of claims 1 to 4 is implemented.
