Reflective beacon angle error compensation method, automatic walking device and storage medium
By calculating the rotation time of the laser turntable and the signal transmission time difference, and using the least squares fitting formula for angle error compensation, the problem of inaccurate angles of reflective beacons in automatic walking equipment is solved, and precise positioning and control are achieved.
Patent Information
- Application Number
- CN201911163982.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-11-25
AI Technical Summary
The angle of the reflective beacon obtained by the automatic walking equipment when moving in a straight line at a constant speed in a fixed direction is not accurate enough, resulting in the inability to carry out precise positioning and control.
By obtaining the rotation time Tsync of the laser turntable from the static state to the starting position of the mth circle, the compensation angle value of the beacon angle is calculated, and the least squares method or the weighted least squares method is used to fit the formula and the error is calculated based on multiple sets of data Compensation formula, perform angle error compensation to accurately obtain the angle of the reflective beacon.
When the automatic walking equipment moves in a straight line at a constant speed in a fixed direction, the accuracy of the angle of the reflective beacon is improved through angle error compensation, thereby facilitating precise positioning and control of the equipment.
Smart Images

Figure CN112947396B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of household appliances, and in particular to a reflective beacon angle error compensation method, an automatic walking device and a storage medium. Background Art
[0002] At present, the position of an automatic walking device when it moves in space can usually be determined by a laser positioning method. A laser turntable is set in the automatic walking device, and a laser emitting device, a laser receiving device and an angle encoder are arranged on the laser turntable. A plurality of reflective beacons are placed in advance in the working area of the automatic walking device, and the coordinates of the plurality of reflective beacons in the working area of the automatic walking device are known.
[0003] When the automatic walking device is moving, the laser emitting device emits a rotating laser scanning beam horizontally at a certain angular velocity of 360° to the outside. When the laser scanning beam sweeps over each preset reflective beacon, the reflective beacon forms a laser reflection beam parallel to the laser scanning beam; then, the laser receiving device receives the laser reflection beam and at the same time detects the angle between the laser reflection beam and the walking direction of the automatic walking device through an angle encoder, that is, the angle between each reflective beacon and the walking direction of the automatic walking device; by calculating and comparing these angles of multiple reflective beacons, the navigation and positioning system of the automatic walking device can calculate the current coordinates of the automatic walking device in the working area.
[0004] The time when the reflective beacon sends out the reflected laser signal is different from the time when the laser turntable receives the laser reflected signal, and the time when the laser turntable sends out the laser signal is different from the time when it receives the laser reflected signal. During the laser emission and reflection process, the automatic walking device is always in motion and the laser turntable is always in a rotating state, resulting in the reflective beacon angle value obtained by the encoder being inaccurate. Therefore, the coordinate position of the automatic walking device calculated by the angles of multiple reflective beacons is inevitably not accurate enough, and the automatic walking device cannot be accurately positioned and controlled. Summary of the invention
[0005] The purpose of the present invention is to provide a reflective beacon angle error compensation method, an automatic walking device and a storage medium, so as to solve the problem that the reflective beacon angle obtained by the current automatic walking device during uniform linear motion along a fixed direction is not accurate enough.
[0006] In order to achieve one of the above-mentioned purposes of the invention, the present invention provides a method for compensating the angle error of a reflective beacon, the method comprising: when the automatic walking device moves in a straight line at a uniform speed in a first direction, obtaining the rotation time T when the laser turntable rotates from a stationary state to the starting position of the mth circle sync , where the integer m≥6; according to the rotation time T sync, the compensation angle value of the first beacon angle is calculated by the first beacon angle error compensation formula, wherein the first beacon angle error compensation formula is a function formula of the first beacon angle with respect to the rotation time of the laser turntable when the automatic walking device moves in a uniform straight line in the first direction, and the first beacon angle is the angle between the laser reflection signal emitted by the first reflective beacon and the walking direction of the automatic walking device.
[0007] As a further improvement of an embodiment of the present invention, the method further includes: obtaining the communication time T of the first beacon angle signal transmitted from the laser signal processing module of the automatic walking device to the positioning calculation module of the automatic walking device com ; Calculate the compensation time T of the first beacon angle final =T sync +T com ; According to the compensation time T final , calculate the compensation angle value of the first beacon angle through the first beacon angle error compensation formula.
[0008] As a further improvement of an embodiment of the present invention, the method further includes: when the automatic walking device moves in a straight line at a uniform speed in the first direction, obtaining the first beacon angle A actually measured by the laser turntable n And the corresponding actual rotation time T of the laser turntable n , where n is the number of revolutions of the laser turntable.
[0009] As a further improvement of an embodiment of the present invention, the method further comprises: according to at least two sets of data (A n , T n ), and calculate the error compensation formula for the first beacon angle through the least squares fitting formula.
[0010] As a further improvement of an embodiment of the present invention, the method further comprises: according to at least two sets of data (A n , T n ), and calculate the error compensation formula for the first beacon angle through the weighted least squares fitting formula.
[0011] As a further improvement of an embodiment of the present invention, the method further includes: obtaining the communication time T of the first beacon angle signal transmitted from the laser signal processing module of the automatic walking device to the positioning calculation module of the automatic walking device com ; Calculate the compensation time T of the first beacon angle final =T sync +T com ; Get the actual rotation time T n and compensation time T final The time difference between t1 and t2; Calculate the weight coefficient Where β is a constant greater than zero; based on at least two sets of data (A n , T n ) and the weight coefficient c, and through the weighted least squares formula, the error compensation formula for the first beacon angle is calculated.
[0012] As a further improvement of an embodiment of the present invention, the method further includes: after the laser turntable rotates five times continuously, obtaining five corresponding sets of different data (A n , T n ); According to 5 different data sets (A n , T n ), and calculate the error compensation formula for the first beacon angle through the least squares fitting formula.
[0013] As a further improvement of an embodiment of the present invention, the method further includes: setting n to values m-5, m-4, m-3, m-2 and m-1 respectively, obtaining the time T sync The five nearest sets of data (A m-5 , T m-5 )、(A m-4 , T m-4 )、(A m-3 , T m-3 )、(A m-2 , T m-2 ) and (A m-1 , T m-1 ).
[0014] As a further improvement of an embodiment of the present invention, the method further includes: obtaining the time difference t2 when the laser turntable is at the starting position of the nth circle to the time when the laser reflection signal emitted by the first reflective beacon is received; obtaining the time t consumed by the laser turntable rotating n-1 circles round ; Calculate the actual rotation time T of the laser turntable n =t2+t round .
[0015] As a further improvement of an embodiment of the present invention, the method further includes: measuring the actual first beacon angle by an angle encoder in the laser turntable; and receiving a first beacon angle signal sent by the angle encoder.
[0016] As a further improvement of an embodiment of the present invention, the method further includes: obtaining an error compensation formula for the second beacon angle, according to the rotation time T sync , calculate the compensation angle value of the second beacon angle through the second beacon angle error compensation formula; obtain the error compensation formula of the third beacon angle, according to the rotation time T sync, calculate the compensation angle value of the third beacon angle through the third beacon angle error compensation formula; obtain the coordinate position of the automatic walking device according to the corresponding compensation angle values of the three beacons.
[0017] As a further improvement of an embodiment of the present invention, the automatic walking device is a lawn mowing robot.
[0018] The present invention also provides an automatic walking device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in any one of the above-mentioned reflective beacon angle error compensation methods are implemented.
[0019] The present invention also provides a storage medium, which is stored in a computer program, characterized in that when the computer program is executed by a processor, the steps in any one of the above-mentioned methods for compensating the angle error of the reflective beacon are implemented.
[0020] Compared with the prior art, the beneficial effects of the present invention are as follows: when the automatic walking device is moving in a uniform straight line in a first direction, the angle error compensation formula for the reflective beacon angle is obtained, and the compensation angle value of the current reflective beacon is calculated according to the current rotation time of the laser turntable obtained, so as to compensate for the error of the reflective beacon angle; at the same time, after the laser turntable rotates 5 circles, the rotation time when the laser turntable rotates to the starting position of the current circle is obtained, and the compensation angle values of all reflective beacons are calculated according to the rotation time after 5 circles, so that the coordinate position of the automatic walking device, that is, the current position information of the automatic walking device in the working area can be analyzed through the compensation angle values of multiple reflective beacons, thereby facilitating the precise positioning and control of the automatic walking device. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of a method for compensating for an angle error of a reflective beacon in an embodiment of the present invention;
[0022] Figure 2 It is a module schematic diagram of the automatic walking device in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in combination with the specific implementation methods of this application and the corresponding drawings. Obviously, the described implementation methods are only part of the implementation methods of this application, not all of the implementation methods. Based on the implementation methods in this application, all other implementation methods obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0024] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0025] like Figure 1 As shown, an embodiment of the present invention provides a method for compensating an angle error of a reflective beacon, and the method includes the following steps, which are described below:
[0026] S2 When the automatic walking device moves in a straight line at a uniform speed in the first direction, obtain the rotation time T of the laser turntable from a stationary state to the starting position of the mth circle sync , where the integer m ≥ 6;
[0027] S4 according to the rotation time T sync , the compensation angle value of the first beacon angle is calculated by the first beacon angle error compensation formula, wherein the first beacon angle error compensation formula is a function formula of the first beacon angle with respect to the rotation time of the laser turntable when the automatic walking device moves in a uniform straight line in the first direction, and the first beacon angle is the angle between the laser reflection signal emitted by the first reflective beacon and the walking direction of the automatic walking device.
[0028] In the working area of an automatic walking device such as a mobile robot, a plurality of reflective beacons are placed in advance, and information such as the position coordinates of the plurality of reflective beacons in the working area is known.
[0029] During the actual walking process, the time when the laser turntable sends out the laser signal and the time when the laser reflection signal is received and the time when the reflective beacon sends out the reflected laser signal are not at the same time point, and the automatic walking device is always in a walking state, and the laser turntable is always in a rotating state. These factors will cause the collected or obtained reflective beacon angle to be inaccurate, so angle error compensation is required.
[0030] In the embodiment of the present invention, at least three reflective beacons are provided, and the automatic walking device can be analyzed and positioned by acquiring the compensation angle values of at least three reflective beacons at the same time.
[0031] The embodiment of the present invention takes the first reflective beacon as an example to specifically describe the error compensation method.
[0032] In order to compensate for the error caused by time difference, motion state and other factors in the collection of the first reflective beacon angle, the error compensation formula for the first reflective beacon angle can be calculated in advance, that is, the first beacon angle error compensation formula. To ensure the accuracy of error compensation, the error compensation formula is calculated based on the premise that the automatic walking device is in a uniform linear motion state in the first direction, that is, when the direction of the automatic walking device is stable and the speed is uniform, the error compensation formula is applicable, and the reflective beacon angle in this motion state can be compensated more accurately. Among them, the first direction refers to the current walking direction of the automatic walking device.
[0033] Among them, the first reflective beacon or the actual angle of the first beacon and the corresponding laser turntable rotation time can be measured first, and the error compensation formula can be calculated based on the two data, that is, the function formula of the first beacon angle with respect to the laser turntable rotation time. The specific function formula can also be calculated based on the least squares method or the weighted least squares method.
[0034] In order to calculate the positioning of the automatic walking device, it is necessary to obtain the compensation angle values of multiple reflective beacons at the same time. Considering that when the laser turntable rotates to the starting position of each circle, that is, the mechanical zero point, all calculation and processing functions of the automatic walking device can be triggered, in this embodiment, the time point when the laser turntable rotates to the starting position of the mth circle is used as the synchronization time point for obtaining the angles of multiple reflective beacons, and m≥6, that is, the laser turntable has rotated at least 5 circles from a stationary state.
[0035] First, obtain the rotation time T of the laser turntable from a stationary state to the starting position of the mth circle sync , and then calculate the compensation angle value of the first beacon angle through the first beacon angle error compensation formula obtained above, and correct the angle of the first reflective beacon.
[0036] In addition, the rotation time T sync Based on the time difference of data signal transmission, the signal transmission time difference and the rotation time T sync The sum of the two is used as the final compensation duration value to calculate the compensation angle value of the first beacon angle.
[0037] In the reflective beacon angle error compensation method of this embodiment, taking into account the error compensation effect, the time point T at which the laser turntable rotates to the starting position of the current circle after the laser turntable rotates at least 5 circles from the stationary state is obtained. sync , according to the pre-obtained reflective beacon angle error compensation formula, calculate the corresponding reflective beacon compensation angle value, and correct the angle of the current reflective beacon; and set T sync The corresponding time point is used as the synchronization time point for synchronously acquiring the angles of other reflective beacons, so as to facilitate the subsequent analysis of the coordinate position of the automatic walking device through the compensation angle values of multiple reflective beacons.
[0038] Furthermore, after step S4, the method further includes:
[0039] Obtain the communication time T of the first beacon angle signal transmitted from the laser signal processing module of the automatic walking device to the positioning calculation module of the automatic walking device com ;
[0040] Calculate the compensation time T of the first beacon angle final =T sync +T com ;
[0041] According to the compensation time T final , calculate the compensation angle value of the first beacon angle through the first beacon angle error compensation formula.
[0042] In the embodiment of the present invention, the automatic walking equipment system includes a laser signal processing module (scanner) and a positioning calculation module (main). The laser signal processing module (scanner) can be used to produce angle data, save historical angle data or create a calculation formula; the positioning calculation module (main) can be used to collect communication time or calculate the estimated angle; when the angle, time and other data signals are transmitted from the laser signal processing module (scanner) to the positioning calculation module (main), there is a certain communication time difference T com .
[0043] To ensure the accuracy of error compensation, at the synchronization time T sync Consider the communication time difference based on time, that is, calculate the compensation time T final =T sync +T com , by compensating the time T final To calculate the compensation angle value, the compensation angle value is used as a correction to the angle of the first reflective beacon.
[0044] Of course, when the communication time difference T com If it is small enough, it can be ignored and not taken into consideration.
[0045] Furthermore, before step S4, the method further includes:
[0046] S31 When the automatic walking device moves in a straight line at a uniform speed in the first direction, obtain the first beacon angle A actually measured by the laser turntable n And the corresponding actual rotation time T of the laser turntable n , where n is the number of revolutions of the laser turntable.
[0047] In the embodiment of the present invention, the first beacon angle error compensation formula can be calculated by using the least square method or the weighted least square method formula.
[0048] When the automatic walking device moves at a constant speed along the first fixed direction, the actual angle A of the first reflective beacon can be collected first. n And the current acquisition time point T n , that is, simultaneously obtain or collect the first reflective beacon angle A n Rotation time of laser turntable T n ; and multiple sets of data obtained by multiple acquisitions or collections (A n , T n ), and then combine the derivation formula of the least square method or the weighted least square method to derive a specific first beacon angle error compensation formula. The specific first beacon angle error compensation formula refers to a formula containing specific parameter values. After substituting the rotation duration into the formula, a determined compensation angle value can be calculated.
[0049] Furthermore, after step S31, the method further includes:
[0050] S33 Based on at least two sets of data (A n , T n ), and calculate the error compensation formula for the first beacon angle through the least squares fitting formula.
[0051] Furthermore, after step S31, the method further includes:
[0052] S35 Based on at least two sets of data (A n , T n ), and calculate the error compensation formula for the first beacon angle through the weighted least squares fitting formula.
[0053] When the least square method or weighted least square method is used to derive the formula, the first beacon angle error compensation formula obtained is a linear function formula of the first beacon angle with respect to the rotation time of the laser turntable, which can be obtained by two or more sets of measured data (A n , T n ) is used to calculate the parameters in the formula, thereby obtaining the specific first beacon angle error compensation formula.
[0054] Further, for step S35, the method specifically includes:
[0055] Obtain the communication time T of the first beacon angle signal transmitted from the laser signal processing module of the automatic walking device to the positioning calculation module of the automatic walking device com ;
[0056] Calculate the compensation time T of the first beacon angle final =T sync +T com ;
[0057] Get the actual rotation time T n and compensation time T final The time difference between them is t1;
[0058] Calculate weight coefficient Where β is a constant greater than zero;
[0059] According to at least two sets of data (A n , T n ) and the weight coefficient c, and through the weighted least squares formula, the error compensation formula for the first beacon angle is calculated.
[0060] When calculating the specific first beacon angle error compensation formula by deriving the formula through the weighted least square method, the selection of the weight coefficient c is not limited.
[0061] Measured data (A n , T n ) is closer to the compensation time point T final The higher the credibility of the measured data, the more accurate the compensation angle value of the first beacon angle finally obtained will be.
[0062] Based on this, the acquisition time point and compensation time point T of the measured data can be obtained. final The time difference t1 between the two is taken, and the reciprocal of the time difference t1 is taken as the weight coefficient; in addition, to avoid the situation where the denominator is 0, a constant β greater than zero is added, and the reciprocal of the sum of t1 and β is taken as the final weight coefficient c, that is, Thus, a specific first beacon angle error compensation formula can be derived and calculated.
[0063] Of course, when the communication time difference T com Small enough to be ignored, or only the acquisition time point and synchronization time T of the measured data can be obtained. sync The time difference between the two is taken, and the reciprocal of this time difference is used as the final weight coefficient to derive the specific calculation formula.
[0064] Further, for step S33, the method specifically includes:
[0065] S331 After the laser turntable rotates 5 times continuously, 5 sets of corresponding different data (A n , T n );
[0066] S333 is based on 5 different data sets (A n , T n ), and calculate the error compensation formula for the first beacon angle through the least squares fitting formula.
[0067] Further, for step S331, the method specifically includes:
[0068] Set n to m-5, m-4, m-3, m-2 and m-1 respectively, and obtain the value corresponding to time T sync The five nearest sets of data (A m-5 , T m-5 )、(A m-4 , T m-4 )、(A m-3 , T m-3 )、(A m-2 , T m-2 ) and (A m-1 , T m-1 ).
[0069] In the embodiment of the present invention, in order to ensure the fitting accuracy of the least squares formula, five sets of measured data (A n , T n ) to calculate the formula.
[0070] Preferably, 5 different sets of data (A n , T n ) is the data obtained by rotating the laser turntable continuously for 5 circles, which can avoid the problem of low formula fitting accuracy caused by discontinuous data.
[0071] In addition, the closer the acquisition time of the measured data is to the synchronization time point T sync Or compensation time point T final When the measured data is more reliable, the fitting accuracy of the derived least square fitting formula is higher, and the calculated angle compensation value is more accurate; since the communication time difference is fixed, the synchronization time T can be obtained. sync The five most adjacent groups of measured data are used to derive a specific first beacon angle error compensation formula based on these five groups of measured data.
[0072] Therefore, by progressively selecting sync The five sets of measured data closest in time are used to derive the angle error compensation formula, which can greatly improve the fitting accuracy of the error compensation formula and avoid the fitting accuracy problems caused by too long intervals and untimely collection of measured data.
[0073] Further, for step S31, the method specifically includes:
[0074] Obtaining the time difference t2 when the laser turntable is at the starting position of the nth circle to when it receives the laser reflection signal emitted by the first reflective beacon;
[0075] Get the time t consumed by the laser turntable to rotate n-1 circles round ;
[0076] Calculate the actual rotation time T of the laser turntable n =t2+t round .
[0077] Further, for step S31, the method specifically includes:
[0078] Measuring the actual first beacon angle by an angle encoder in the laser turntable;
[0079] A first beacon angle signal sent by a receiving angle encoder.
[0080] The laser turntable has a mechanical zero point. When the laser turntable rotates to the mechanical zero point, the laser signal processing module (scanner) can obtain a mechanical zero signal. By recording the time interval between two adjacent mechanical zero signals, the time required for the laser turntable to rotate one circle can be obtained. round ; During the actual rotation process, the rotation duration of each circle of the laser turntable may be different.
[0081] To obtain the actual rotation time T of the laser turntable n , we can first obtain the total time t consumed by the laser turntable to rotate n-1 circles round , and obtain the time difference from the current mechanical zero point of the laser turntable to the time when the laser reflection signal is received, that is, the time difference t2 when the laser turntable is from the starting position of the nth circle to the time when the laser reflection signal emitted by the first reflective beacon is received; calculate t round The sum of t and t2 can finally get the actual rotation time T of the laser turntable. n .
[0082] In addition, the mechanical zero point of the laser turntable coincides with the zero point of the angle encoder itself, and the zero point signal of the angle encoder is the trigger signal for all calculation and processing functions in the automatic walking device system. The angle encoder is arranged in the laser turntable and is used to detect the angle between the laser reflected beam and the walking direction of the automatic walking device, that is, the angle of each reflective beacon. After detecting the actual angle of the first reflective beacon, the angle encoder can send the actual angle information to the positioning calculation module (main) for calculation and processing.
[0083] Furthermore, after step S4, the method further includes:
[0084] Obtain the error compensation formula for the second beacon angle according to the rotation time T sync , calculate the compensation angle value of the second beacon angle through the second beacon angle error compensation formula;
[0085] Obtain the error compensation formula of the third beacon angle according to the rotation time T sync , calculate the compensation angle value of the third beacon angle through the third beacon angle error compensation formula;
[0086] The coordinate position of the automatic walking device is obtained according to the corresponding compensation angle values of the three beacons.
[0087] In order to perform positioning calculation for the automatic walking device, three reflective beacons are provided in this embodiment, and the automatic walking device is analyzed and positioned by obtaining the compensation angle values of the three reflective beacons.
[0088] Similar to the first reflective beacon, the compensation angle values of the other two reflective beacons can be obtained through the above method steps; the compensation angle value can be the value corresponding to the synchronization time point T sync The corresponding compensation angle value can also be the compensation time point T final The corresponding compensation angle value.
[0089] Preferably, the specific coordinate position information of the automatic walking device is analyzed and calculated by obtaining the angle compensation values of three reflective beacons, namely, the first beacon angle compensation angle value, the second beacon angle compensation angle value, and the third beacon angle compensation angle value.
[0090] like Figure 2 As shown, an embodiment of the present invention further provides an automatic walking device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the reflective beacon angle error compensation method as described in any one of the above are implemented.
[0091] Furthermore, the automatic walking device is a lawn mowing robot.
[0092] Specifically, the automatic walking device in the embodiment of the present invention is a lawn mowing robot.
[0093] An embodiment of the present invention further provides a storage medium, wherein the storage medium is stored in a computer program, and when the computer program is executed by a processor, the steps in the reflective beacon angle error compensation method as described above are implemented.
[0094] The following is an overall description of the reflective beacon angle error compensation method:
[0095] In the embodiment of the present invention, the automatic walking device is a lawn mowing robot, three reflective beacons are pre-placed in the working area of the robot, and information such as the position coordinates of the three reflective beacons in the working area is known.
[0096] In order to analyze and locate the lawn mower robot, it is necessary to obtain the angle of the three reflective beacons at the same time. In order to compensate for the error caused by time difference, motion state and other factors on the angle of the reflective beacons, it is necessary to compensate the error of the angle of the three reflective beacons one by one, so as to finally obtain the compensation angle value of the three reflective beacons at the same time.
[0097] It should be noted that, in the embodiment of the present invention, the error compensation method is applicable only when the lawn mowing robot moves in a first direction with a constant direction and a uniform speed. The first direction refers to the current walking direction of the lawn mowing robot.
[0098] Get the rotation time T when the laser turntable rotates from a stationary state to the starting position of the mth circle sync , where the integer m ≥ 6, that is, the time point when the laser turntable reaches the starting position of the current circle after rotating at least 5 circles is T sync , T sync The time point for synchronously acquiring the included angles of the three reflective beacons is used to calculate the compensation angle values corresponding to the three reflective beacons.
[0099] Considering that there is a communication time difference when the angle, time and other signals are transmitted from the laser signal processing module (scanner) to the positioning calculation module (main), the communication time difference T can be obtained first. com , and then calculate the compensation time T final =T sync +T com , the compensation time T final The corresponding time point is used as the time point for finally synchronously acquiring the included angles of the three reflective beacons, so as to calculate the compensation angle values corresponding to the three reflective beacons.
[0100] When the mowing robot moves in the first direction at a constant speed, the laser turntable on the mowing robot also rotates at a constant speed. When the laser turntable rotates to the nth circle, the actual angle A of the first reflective beacon can be detected by the angle encoder on the laser turntable. n , and obtain the n The corresponding laser turntable rotation time T n , forming a set of measured data (A n , T n ), where T n The corresponding time point is the moment when the laser turntable receives the laser emission signal emitted by the first reflective beacon.
[0101] In order to ensure the timely and effective acquisition of measured data, the laser turntable can be placed at the closest synchronization time point T sync Or compensation time point T final The continuous 5-circle rotation is used as the measured data collection range to obtain the corresponding five sets of continuous measured data (A m-5 , T m-5 )、(A m-4 , T m-4 )、(A m-3 , T m-3 )、(A m-2 , T m-2 ) and (A m-1 , Tm-1 ) and form a measured data matrix.
[0102] The time difference from the laser turntable rotating from the starting position of the nth circle to the moment of receiving the laser reflection signal is t2, and the total time consumed by the laser turntable rotating n-1 circles is t round , the actual rotation time of the laser turntable is T n is t2 and t round The sum of the two; the measured angle A n The angle encoder detects the back shell and sends it to the positioning calculation module (main) for calculation and processing.
[0103] In order to improve the fitting accuracy, the angle error compensation formula can be obtained by deriving the formula using the weighted least squares method. To this end, the weight coefficient c needs to be determined first: Get the actual rotation time T of each n and compensation time point T final The time difference t1 between the two is calculated, and the sum of the time difference t1 and the constant β greater than zero is calculated, and the reciprocal of the sum of the two is used as the actual rotation time T of each rotation. n The corresponding weight coefficient c is Thus, the corresponding five weight coefficients are calculated one by one to form a weight matrix.
[0104] Then, according to the measured data matrix and the weight matrix, a formula is derived by weighted least square method to calculate and obtain a specific first reflective beacon error compensation formula.
[0105] Similarly, through the above method and steps, a specific second reflective beacon error compensation formula and a specific third reflective beacon error compensation formula can also be obtained.
[0106] Finally, according to the compensation time T final , the angle compensation values corresponding to the three reflective beacons are calculated through three error compensation formulas, so as to further analyze and obtain the coordinate position information of the mowing robot in the working area.
[0107] In summary, the reflective beacon angle error compensation method, automatic walking device and storage medium provided by the present invention, the method, taking into account the error compensation effect, obtains the time point T when the laser turntable rotates from a stationary state to the starting position of the current circle after the laser turntable rotates at least 5 circles. sync , according to the pre-obtained reflective beacon angle error compensation formula, calculate the corresponding reflective beacon compensation angle value, and correct the reflective beacon angle; and set T sync It is used as a time point for synchronously acquiring the angles of other reflective beacons, thereby facilitating the subsequent analysis of the coordinate position information of the automatic walking device through the compensation angle values of multiple reflective beacons.
[0108] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
[0109] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. All equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for compensating for angle error of a reflective beacon, characterized in that: include: When the automatic walking device moves in a uniform linear motion in the first direction, obtain the rotation time T of the laser turntable from a stationary state to the starting position of the mth circle sync、 The first beacon angle A actually measured by the laser turntable n And the corresponding actual rotation time T of the laser turntable n , where n is the number of revolutions of the laser turntable, and the integer m≥6; According to at least two sets of data (A n , T n ), calculating an error compensation formula for the first beacon angle by using a least squares fitting formula or a weighted least squares fitting formula; According to the rotation time T sync , the compensation angle value of the first beacon angle is calculated by the first beacon angle error compensation formula, wherein the first beacon angle error compensation formula is a function formula of the first beacon angle with respect to the rotation time of the laser turntable when the automatic walking device moves in a straight line at a uniform speed in the first direction, and the first beacon angle is the angle between the laser reflection signal emitted by the first reflective beacon and the walking direction of the automatic walking device; Wherein, the method according to at least two sets of data (A n , T n ), and calculate the error compensation formula about the first beacon angle by weighted least squares fitting formula, including: Obtain the communication time T of the first beacon angle signal transmitted from the laser signal processing module of the automatic walking device to the positioning calculation module of the automatic walking device com ; Calculate the compensation time T of the first beacon angle final =T sync +T com ; Get the actual rotation time T n and compensation time T final The time difference between them is t1; Calculate weight coefficient Where β is a constant greater than zero; According to at least two sets of data (A n , T n ) and the weight coefficient c, and through the weighted least squares formula, the error compensation formula for the first beacon angle is calculated.
2. The reflective beacon angle error compensation method according to claim 1, characterized in that: Step "According to the rotation time T sync , calculating the compensation angle value of the first beacon angle through the first beacon angle error compensation formula” specifically includes: Obtain the communication time T of the first beacon angle signal transmitted from the laser signal processing module of the automatic walking device to the positioning calculation module of the automatic walking device com ; Calculate the compensation time T of the first beacon angle final =T sync +T com ; According to the compensation time T final , calculate the compensation angle value of the first beacon angle through the first beacon angle error compensation formula.
3. The reflective beacon angle error compensation method according to claim 1, characterized in that: Step "based on at least two sets of data (A n , T n ), by using the least squares fitting formula, the error compensation formula for the first beacon angle is calculated” specifically includes: After the laser turntable rotates 5 times continuously, 5 sets of corresponding different data are obtained (A n , T n ); According to 5 different data sets (A n , T n ), and calculate the error compensation formula for the first beacon angle through the least squares fitting formula.
4. The reflective beacon angle error compensation method according to claim 3, characterized in that: Step "After the laser turntable rotates 5 times continuously, obtain the corresponding 5 sets of different data (A n , T n )” specifically includes: Set n to m-5, m-4, m-3, m-2 and m-1 respectively, and obtain the value corresponding to time T sync The five nearest sets of data (A m-5 , T m-5 )、(A m-4 , T m-4 )、(A m-3 , T m-3 )、(A m-2 , T m-2 ) and (A m-1 , T m-1 ).
5. The reflective beacon angle error compensation method according to claim 1, characterized in that: Step "When the automatic walking device moves in a straight line at a uniform speed in the first direction, obtain the first beacon angle A actually measured by the laser turntable n And the corresponding actual rotation time T of the laser turntable n , where n is the number of revolutions of the laser turntable” specifically includes: Obtaining the time difference t2 when the laser turntable is at the starting position of the nth circle to when it receives the laser reflection signal emitted by the first reflective beacon; Get the time t consumed by the laser turntable to rotate n-1 circles round ; Calculate the actual rotation time T of the laser turntable n =t2+t round .
6. The reflective beacon angle error compensation method according to claim 1, characterized in that: Step "When the automatic walking device moves in a straight line at a uniform speed in the first direction, obtain the first beacon angle A actually measured by the laser turntable n And the corresponding actual rotation time T of the laser turntable n , where n is the number of revolutions of the laser turntable” specifically includes: Measuring the actual first beacon angle by an angle encoder in the laser turntable; A first beacon angle signal sent by a receiving angle encoder.
7. The reflective beacon angle error compensation method according to claim 1, characterized in that: In step ", according to the rotation time T sync , after calculating the compensation angle value of the first beacon angle by the first beacon angle error compensation formula”, the method further includes: Obtain the error compensation formula for the second beacon angle according to the rotation time T sync , calculate the compensation angle value of the second beacon angle through the second beacon angle error compensation formula; Obtain the error compensation formula of the third beacon angle according to the rotation time T sync , calculate the compensation angle value of the third beacon angle through the third beacon angle error compensation formula; The coordinate position of the automatic walking device is obtained according to the corresponding compensation angle values of the three beacons.
8. An automatic walking device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps in the reflective beacon angle error compensation method described in any one of claims 1 to 7 are implemented.
9. The automatic walking device according to claim 8, characterized in that: The automatic walking device is a lawn mowing robot.
10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the reflective beacon angle error compensation method described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Turntable index error detection method based on laser gyroscope
CN104316081A
Angle calibrator and angle calibration method
JP2014228514A
