Course acquisition method of mobile equipment and mobile equipment

By screening and using approximately straight-line positioning data sets and wheel speed data, combined with linear fitting, the problem of inaccurate traditional heading acquisition is solved, and the accuracy of heading acquisition and the intelligence of the working system are improved.

CN118565464APending Publication Date: 2024-08-30POSITEC POWER TOOLS (SUZHOU) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310880113.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2023-07-18
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When traditional movable devices obtain heading, the walking trajectory may be a curve or a polyline, resulting in a large error between the calculated heading and the actual heading, resulting in inaccurate heading acquisition results.

Method used

By obtaining the positioning data collected by the positioning sensor, a valid data set whose movement trajectory of the movable device is an approximate straight line is filtered out. After judging that the filtering is completed, the initial heading is determined based on the valid data set. The method includes calculating a temporary heading based on positioning data, determining whether the trajectory is an approximate straight line based on wheel speed data, and determining the initial heading through linear fitting.

Benefits of technology

It improves the accuracy of heading acquisition, avoids the problem of inconsistency between the initial heading and the actual heading, saves storage space and computing resources, and improves the intelligence of the working system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118565464A
    Figure CN118565464A
Patent Text Reader

Abstract

The invention relates to a course acquisition method of a mobile device and the mobile device, and belongs to the technical field of computers.The method comprises the steps that positioning data collected by a positioning sensor is acquired, and a positioning data set is obtained; screening out an effective data set of which the moving track of the movable equipment is an approximate straight line from the positioning data set; judging whether the screening of the valid data set is completed or not; if the judgment result is completion, determining the initial course of the mobile equipment based on the effective data set; the problem that a traditional course obtaining result is not accurate enough can be solved. The initial course of the mobile equipment is obtained only when the moving track of the mobile equipment is determined to be the approximate straight line, so that the problem that the initial course obtained by the mobile equipment is not consistent with the actual course can be avoided, and the accuracy of obtaining the initial course is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a heading acquisition method for a movable device and the movable device, and belongs to the field of computer technology. Background Art

[0002] At present, mobile devices can replace manual work to complete a variety of tasks. For example, a cart can complete a mapping task under human drive, and a lawn mower can complete a lawn mowing task while moving autonomously. Mobile devices often need to automatically obtain the current heading during movement in order to complete the work task based on the current heading.

[0003] Conventional mobile devices are usually equipped with positioning sensors. When obtaining a heading, the mobile device stores the first positioning data of the starting position, then moves to the target position and stores the second positioning data of the target position; the heading of the mobile device is calculated using the azimuth deviation between the first positioning data and the second positioning data.

[0004] However, when the movable device moves from the starting position to the target position, the walking trajectory may be a curve or a broken line. At this time, the error between the calculated heading and the actual heading is large, which will lead to the problem of inaccurate heading acquisition results. Summary of the invention

[0005] The present application provides a movable device and a control method for the movable device, which can solve the problem that the traditional heading acquisition result is not accurate enough. The present application provides the following technical solutions:

[0006] On the one hand, a method for obtaining a heading of a mobile device is provided, the method comprising:

[0007] S1, acquiring positioning data collected by a positioning sensor on the movable device to obtain a positioning data set;

[0008] S2, filtering out valid data sets whose moving trajectories of movable devices are approximately straight lines from the positioning data sets;

[0009] S3, determining whether the screening of the valid data set is completed;

[0010] S4: If the result of the determination is completion, determining the initial heading of the movable device based on the valid data set.

[0011] Optionally, S3 includes: if the distance of the moving trajectory of the movable device calculated according to the valid data set is greater than or equal to a preset distance, it is determined that the screening of the valid data set is completed.

[0012] Optionally, the S2 includes:

[0013] S21, for positioning data i-1, positioning data i and positioning data i+1 determined in the positioning data set according to the sampling order or the reverse order, calculate a temporary heading i-1 based on the i-1th group of data, and calculate a temporary heading i based on the i-th group of data; wherein the i-1th group of data includes positioning data i-1 and positioning data i, the i-th group of data includes positioning data i and positioning data i+1, and i is an integer greater than 1;

[0014] S22, if the temporary heading i-1 and the temporary heading i meet the preset conditions, determine that the moving trajectory of the movable device is an approximate straight line, and classify the i-1th group of data and the ith group of data into the valid data set; the preset conditions include that the temporary heading i-1 is basically consistent with the temporary heading i.

[0015] Optionally, the S2 includes:

[0016] S23, if the i-1th group of data and the ith group of data are included in the valid data set, the value of i is increased by 1, and steps S21 and S22 are performed again;

[0017] S24, repeatedly execute steps S21-S23 until the temporary heading k and the temporary heading k+1 do not satisfy the preset condition; the k is an integer greater than the i.

[0018] Optionally, the S3 includes:

[0019] The distance of the moving track of the movable device is calculated according to the first positioning data and the last positioning data in the valid data set; and it is determined whether the distance is greater than or equal to the preset distance.

[0020] Optionally, if the step S3 determines that the screening of the valid data set is not completed, the steps S1 and S2 are re-executed until the step S3 determines that the screening of the valid data set is completed.

[0021] Optionally, the movable device includes a movable component, and the movable device is further provided with a wheel speed sensor; the wheel speed sensor is used to collect wheel speed data of the movable component;

[0022] The step S22 also includes: determining whether the wheel speed data is greater than or equal to a preset speed threshold; if the temporary heading i-1 and the temporary heading i meet the preset conditions, and the wheel speed data is greater than or equal to the preset speed threshold, determining that the moving trajectory of the movable device is an approximate straight line.

[0023] Optionally, the mobile assembly includes a first wheel body and a second wheel body; the wheel speed sensor is used to collect wheel speed data of the first wheel body and the second wheel body;

[0024] The step S22 further includes determining whether the wheel speed data indicates that the wheel speed of the first wheel body is substantially consistent with the wheel speed of the second wheel body.

[0025] Optionally, the movable device includes a movable component, and the movable device is further provided with a wheel speed sensor to collect wheel speed data of the movable component;

[0026] The step of determining a temporary heading comprises:

[0027] Determine a travel direction based on each set of data;

[0028] determining a running direction of the movable device based on the wheel speed data;

[0029] When the running direction is forward, determining the traveling direction as the temporary heading;

[0030] When the running direction is backward, the opposite direction of the traveling direction is determined as the temporary heading.

[0031] Optionally, determining the initial heading of the movable device based on the valid data set includes:

[0032] Performing linear fitting on each positioning data in the valid data set;

[0033] The initial heading is determined based on the traveling direction obtained by linear fitting.

[0034] Optionally, the method further comprises:

[0035] In the case where the initial heading is determined to be successful, a target control action is performed, wherein the target control action is used to indicate that the initial heading is determined to be successful.

[0036] In another aspect, a movable device is provided, the movable device comprising:

[0037] The movable device comprises:

[0038] The wheel body is used to drive the movable device to move when receiving a driving force;

[0039] A positioning sensor, used to collect positioning data of the movable device;

[0040] The processor connected to the positioning sensor is used to perform at least the following steps:

[0041] S1, acquiring positioning data collected by the positioning sensor to obtain a positioning data set;

[0042] S2, filtering out valid data sets whose moving trajectories of movable devices are approximately straight lines from the positioning data sets;

[0043] S3, determining whether the screening of the valid data set is completed;

[0044] S4: If the result of the determination is completion, determining the initial heading of the movable device based on the valid data set.

[0045] Optionally, the movable device further comprises: a prompt component connected to the processor;

[0046] The processor is further configured to: output a prompt instruction to the prompt component when determining that the initial heading is successful;

[0047] The prompt component is used to output a prompt indicating that the initial heading is successfully obtained when receiving the prompt instruction.

[0048] On the one hand, a method for obtaining a heading of a mobile device is provided, the method comprising:

[0049] The self-moving device is controlled to move at a moving speed lower than that during operation, and during the movement, positioning data collected by a positioning sensor is acquired to obtain a positioning data set, wherein the positioning data set includes RTK data; it is determined whether the screening of the positioning data set is completed; if the judgment result is completed, an initial heading of the self-moving device is determined based on the positioning data set.

[0050] In one embodiment, a linear fit is performed on each positioning data in the positioning data set to determine the initial heading.

[0051] In one embodiment, the self-moving device moves in a working area defined by a boundary. Before obtaining the positioning data collected by the positioning sensor, the method further includes: obtaining the distance between the self-moving device and the boundary in front of the moving direction, and if the distance is less than a preset threshold, controlling the self-moving device to rotate to a direction where the distance is greater than the preset threshold.

[0052] In one embodiment, in the process of acquiring positioning data collected by a positioning sensor, whether to use the positioning data to determine the initial heading is determined based on whether a preset amount of positioning data can be collected within a preset time period; or, based on whether a preset distance can be moved within a preset time period; or, based on the quality of the detected satellite signal.

[0053] In one embodiment, after determining the initial heading of the self-moving device, the method further includes: in the process of controlling the self-moving device to move according to the planned path, comparing the pitch angle corresponding to the positioning data with the corrected pitch angle obtained by the fusion algorithm, and when the difference between the two is greater than a preset threshold, determining that the initial heading angle is inaccurate.

[0054] In one embodiment, if the initial heading angle continues to be inaccurate for a period of time and poor signal quality is detected, the mobile device is controlled to re-acquire the initial heading angle.

[0055] The beneficial effects of the present application are: obtaining a positioning data set by acquiring positioning data collected by a positioning sensor; screening out a valid data set in which the moving trajectory of a movable device is an approximate straight line from the positioning data set; judging whether the screening of the valid data set is completed; if the judgment result is completed, determining the initial heading of the movable device based on the valid data set; solving the problem that the traditional heading acquisition result is not accurate enough; because the initial heading of the movable device is acquired only when it is determined that the moving trajectory of the movable device is an approximate straight line, the problem that the initial heading acquired by the movable device is inconsistent with the actual heading can be avoided, thereby improving the accuracy of the initial heading acquisition.

[0056] In addition, by determining the temporary heading in the order or in reverse order of the positioning data collection, only valid data sets are stored, so that the processor does not need to store all the positioning data, which can save memory storage space.

[0057] In addition, by representing the distance of the valid data set by the distance between the first positioning data and the last positioning data in the valid data set, it is possible to avoid the problem of sequentially calculating and accumulating the distances of adjacent positioning data, which results in a large consumption of resources for distance calculation, and to improve the efficiency of distance calculation.

[0058] In addition, by combining the wheel speed data to determine whether the moving trajectory is an approximate straight line, it is possible to avoid the problem of the movable device obtaining the initial heading when moving abnormally, resulting in inaccurate initial heading, and the accuracy of the initial heading can be further improved.

[0059] In addition, the initial heading is determined by performing linear fitting on the positioning data in the valid data set, and the initial heading can be determined by combining multiple positioning data to further improve the accuracy of the initial heading.

[0060] In addition, by executing the target control action to indicate that the initial heading is successfully determined, the user can be promptly prompted whether the initial heading is successful or failed so that the user can perform subsequent actions, thereby improving the intelligence of the working system.

[0061] In addition, more positioning data can be obtained within the same distance, and the initial heading obtained by fitting with more positioning data is more accurate.

[0062] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1A is a side view of a trolley provided by one embodiment of the present application;

[0064] Figure 1B is a top view of a trolley provided by one embodiment of the present application;

[0065] Figure 2 is a schematic diagram of an intelligent lawn mower provided by an embodiment of the present application;

[0066] Figure 3 is a block diagram of a working system provided by an embodiment of the present application;

[0067] Figure 4 is a flow chart of a method for obtaining the heading of a movable device provided by an embodiment of the present application;

[0068] Figure 5 is a flow chart of a method for detecting linear movement of a movable device provided by an embodiment of the present application;

[0069] Figure 6 This is a flowchart of a method for obtaining the heading of a movable device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0070] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.

[0071] It should be noted that the detailed descriptions described in conjunction with the accompanying drawings are intended to be a description of various configurations, and are not intended to represent the only configuration in which the concepts described herein can be practiced. The device embodiments and method embodiments described herein will be described in the following detailed description and illustrated in the accompanying drawings by various boxes, modules, units, components, circuits, steps, processes, algorithms, etc. (collectively referred to as "elements"). These elements can be implemented using electronic hardware, computer software, or any combination thereof. Whether these elements are implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. If the terms in the specification and claims of this application and the accompanying drawings of the specification are described using "first", "second", etc., this description is used to distinguish different objects, rather than to describe a specific order.

[0072] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprise" indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. It should also be understood that the terms used in this specification of the application are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in the specification of the application and the appended claims, unless the context clearly indicates otherwise, the singular forms of "one", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in the specification of the application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0073] It should be noted that, in the absence of explicit special instructions, the various technical features in the embodiments of the present application can be regarded as being able to be combined or combined with each other, as long as the combination or combination cannot be implemented due to technical reasons. In order to more fully illustrate the present application, some exemplary, optional, or preferred features are described in combination with other technical features in the embodiments of the present application, but this combination is not necessary, and it should be understood that the exemplary, optional, or preferred features and other technical features are separable or independent from each other, as long as the separability or independence cannot be implemented due to technical reasons. Some functional descriptions of the technical features in the method embodiment can be understood as performing the function, method or step, and some functional descriptions of the technical features in the device embodiment can be understood as using this device to perform the function, method or step.

[0074] In one embodiment of the present application, a work system is proposed, and the work system is used to perform work tasks in a target area. For example, performing a mapping task in a lawn, or performing a task of mowing and trimming the lawn. Figure 1A and Figure 1B , the working system at least includes a movable device 10. A movable device refers to a working device that can move autonomously or under the influence of an external force. The movable device can be a self-moving device, such as a smart lawn mower, a smart sweeper, etc.; or, the movable device can also be a cart that moves under the influence of an external force. This embodiment does not limit the type of the movable device. The movable device 10 includes: a main body 100 and an execution component 101 connected to the main body 100.

[0075] The main body 100 includes a shell, and the shell packages and supports the execution component 101 and other parts.

[0076] The execution component 101 is used for the movable device 10 to perform work tasks. In this embodiment, the execution component 101 includes at least a moving component, and the moving component is used to drive the movable device 10 to move when receiving a driving force to complete a moving task (or a walking task). The moving component includes at least a wheel body, and the number of wheel bodies is at least one. FIG1 is taken as an example that the number of wheel bodies in the movable component is two. In actual implementation, the number of wheel bodies can also be 4, 3, etc., and this embodiment does not limit the number of wheel bodies. In addition, the wheel body can be a universal wheel, a track wheel, or a wheel, etc., and this embodiment does not limit the implementation method and number of the wheel body.

[0077] In one example, the wheel body uses the external force acting on the movable device as a driving force to drive the movable device to move. Figure 1A and Figure 1B As shown, taking the movable device as a cart as an example, the driving force received by the wheel body is the thrust acting on the cart. In actual implementation, the driving force received by the wheel body can also be the pulling force acting on the movable device, and this embodiment does not limit the driving method of the external force. Figure 1A and Figure 1B In the description, the number of wheels of the trolley is two as an example. In actual implementation, the number of wheels may be one or more than two. This embodiment does not limit the number of wheels on the trolley.

[0078] In the case where the movable device is a trolley, the movable device may further include a trolley handle 102 connected to the main body 100, and the trolley handle 102 is used for a user to hold to provide thrust. The trolley handle 102 is fixedly arranged on the movable device, or is detachably connected to the movable device.

[0079] The number of the cart handles 102 is one or at least two. Figure 1A and Figure 1B In the example, the number of the cart handle 102 is one. At this time, the user can push the cart with one hand, which improves the convenience of pushing the cart.

[0081] The cart handle 102 is provided with a command input module 150 , which may be a physical switch or a touch button. The present embodiment does not limit the implementation of the command input module 150 .

[0082] The trolley further includes: a receiving cavity 105 located on the main body 100 and used for placing objects, Figure 1B The accommodating cavity 105 is located in the middle of the two wheels. The accommodating cavity 105 can be used to accommodate a positioning sensor and a processor. The relevant description of the positioning sensor and the processor is detailed below.

[0083] In another example, the driving force on the wheel body is provided by a driving motor inside the movable device. In this case, the moving assembly further includes a driving motor connected to the wheel body. In this case, the movable device is a self-moving device with autonomous movement capability. The driving motor is connected to the wheel body by transmission, and when the driving motor is started, the wheel body is driven to run, thereby driving the movable device to move.

[0084] For example: Figure 2 As shown, taking the movable device as an intelligent lawn mower as an example, the movable component includes a wheel body 120 and a drive motor ( Figure 2 The wheel body 120 is rotated by the driving force provided by the driving motor, driving the intelligent lawn mower to move. At this time, the execution component 101 may also include a mowing element 130 and an output motor for driving the mowing element 130. When the output motor is started, the mowing element 130 is driven to rotate, and the mowing element 130 is used to cut vegetation when it rotates to complete the mowing task. The mowing element 130 may be a blade 131 for cutting vegetation.

[0085] Different types of movable devices may be running in the same working system, for example, both self-moving devices and trolleys; or, only one type of movable device may be running, for example, only self-moving devices may be running. This embodiment does not limit the usage scenarios of the working system.

[0086] In this embodiment, the working system also includes a detection module for detecting the operating status of the movable device. The detection module includes at least a positioning sensor 300. The positioning sensor 300 is used to obtain positioning data of the movable device. The positioning data is at least used to indicate the position of the movable device.

[0087] In one example, the positioning sensor 300 is installed on a movable device. The positioning sensor 300 may be fixedly connected to the movable device, or may be detachably connected to the movable device. In the case where the positioning sensor 300 is detachably connected to the movable device, the positioning sensor 300 needs to be installed on the movable device before obtaining the heading of the movable device. In order to indicate whether the positioning sensor 300 is installed successfully, refer to Figure 1B and Figure 3 The movable device may optionally be provided with a prompt component 104. When the positioning sensor 300 is successfully installed on the movable device, the prompt component 104 outputs a prompt indicating successful installation. Figure 1B In the embodiment, the prompt component 104 can be set on the main body 100 for explanation. In other embodiments, the prompt component 104 can also be set on the cart handle. This embodiment does not limit the setting position of the prompt component 104.

[0088] Optionally, the prompt component 104 may be an indicator light, in which case the prompt of successful installation is that the indicator light displays the first color, flashes, or is always on, and this embodiment does not limit the manner in which the indicator light outputs the prompt of successful installation. And / or, the prompt component 104 may be an audio playback component, in which case the prompt of successful installation may be a voice prompt or a beep, and this embodiment does not limit the manner in which the audio playback component outputs the prompt of successful installation. And / or, the prompt component 104 may be a communication component, in which case the prompt of successful installation may be an installation success message sent by the communication component to the mobile terminal.

[0089] The method of determining whether the positioning sensor 300 is successfully installed includes but is not limited to: a detection component is installed on the movable device, and the detection component is used to detect whether the positioning sensor 300 is docked with the installation interface on the movable device; when the detection component detects that the positioning sensor 300 is docked with the installation interface on the movable device, it is determined that the positioning sensor 300 is successfully installed, and a prompt output instruction is output to the prompt component 104 to trigger the prompt component 104 to output a prompt of successful installation. Alternatively, the positioning sensor 300 automatically starts the collection of positioning data after powering on. At this time, when the positioning sensor 300 is installed in the movable device, the movable device supplies power to the positioning sensor 300. Accordingly, when the processor 200 receives the positioning data collected by the positioning sensor 300, it is determined that the positioning sensor 300 is successfully installed, and a prompt output instruction is output to the prompt component 104 to trigger the prompt component 104 to output a prompt of successful installation. In other embodiments, the detection method of the successful installation of the positioning sensor 300 may also be other methods, which is not limited in this embodiment. In addition, the detection component may be a Hall switch, a micro switch, etc., and the implementation method of the detection component is not limited in this embodiment.

[0090] Taking the movable device as a cart as an example, before the user pushes the cart to collect positioning data, the positioning sensor 300 needs to be installed on the cart. When the positioning sensor 300 successfully collects positioning data, the indicator light shows green. After that, the user pushes the cart to move to obtain the heading of the cart when it moves.

[0091] refer to Figure 1B The positioning sensor 300 is integrated on the main body 100 of the trolley. Specifically, the positioning sensor 300 is installed in the accommodating cavity 105 to collect the positioning data of the body.

[0092] Reference Figure 3The positioning sensor 300 includes but is not limited to: a real-time kinematic (RTK) sensor 310 and an inertial measurement unit (IMU) 320 , one or a combination thereof, for acquiring positioning data of the movable device 10 .

[0093] The RTK sensor 310 collects positioning data of the movable device in real time based on the RTK principle.

[0094] IMU320 includes at least an accelerometer and a gyroscope, for example, a six-axis IMU includes a three-axis accelerometer and a three-axis gyroscope. Among them, the accelerometer is used to collect acceleration, and the speed can be obtained by integrating the acceleration; the distance moved by the fuselage can be obtained based on the speed and the moving time; the gyroscope is used to collect angular velocity, and the heading angle can be obtained by integrating the angular velocity; the position of the movable device can be determined based on the distance and the heading angle. In some implementations, in order to improve the accuracy of the heading angle, the IMU also includes a magnetometer, for example, a nine-axis IMU includes a three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetometer. The magnetometer is used to collect magnetic field strength and direction. Based on the magnetic field strength and direction of the geomagnetic field collected by the magnetometer, the initial heading angle of the movable device can be determined.

[0095] In other embodiments, the positioning sensor 300 may also include other types of sensors, such as image sensors, etc. This embodiment does not limit the types of sensors included in the positioning sensor 300. Among them, the image sensor is set on the shell or body of the movable device, and obtains the scene image information around the movable device 1 and analyzes the displacement data of the movable device to obtain the positioning data.

[0096] The positioning sensor 300 can directly obtain position information through one of the RTK sensor 310 and the IMU 320, or obtain more accurate positioning data by combining and correcting the positioning data of at least two sensors.

[0097] refer to Figure 3 The working system further includes a processor 200 connected to the positioning sensor 300 by wire or wirelessly. In this embodiment, the processor 200 is used to receive the positioning data collected by the positioning sensor 300 and process the positioning data.

[0098] Optionally, in one embodiment, the processor 200 may be installed in a removable device. For example, the processor 200 and the positioning sensor 300 are integrated into the same module and are arranged in a Figure 1B In the accommodating cavity 105 shown.

[0099] Alternatively, the processor 200 is installed in the mobile terminal and is in communication connection with the positioning sensor 300 . In this case, the processor 200 in the mobile terminal executes a specific calculation and analysis process and transmits the calculation and analysis results to the movable device 10 .

[0100] Optionally, refer to Figure 3 The processor 200 may also be connected to an instruction input module 150 for receiving user instructions.

[0101] In one implementation, the instruction input module 150 is implemented as a key set on a removable device, and the key may be a physical key, such as Figure 1B or, it may be a touch button, such as a virtual button displayed on a touch screen of a mobile device, etc. This embodiment does not limit the implementation method of the button on the mobile device.

[0102] In another implementation, the instruction input module 150 is implemented as an interactive interface in the mobile terminal, and the interactive interface receives instructions input by the user.

[0103] The working system also includes a power supply device 400. The power supply device 400 can be installed in the mobile device, or can also be arranged outside the mobile device as an independent power supply device. Optionally, the power supply device 400 is implemented as at least one battery pack, and is connected to the mobile device 10 through the battery pack interface on the mobile device 10 to provide power to various components in the working system, such as: to the processor 200.

[0104] In this embodiment, the processor 200 includes at least a heading acquisition module 210, and the heading acquisition module 210 is used to perform at least the following steps:

[0105] S1, obtaining positioning data collected by a positioning sensor on a movable device to obtain a positioning data set;

[0106] S2, filtering out valid data sets whose moving trajectories of movable devices are approximately straight lines from the positioning data sets;

[0107] S3, determining whether the screening of the valid data set is completed;

[0108] S4: If the result of the determination is completion, the initial heading of the movable device is determined based on the valid data set.

[0109] In the present application, an approximate straight line means that the line connecting each positioning data in the valid data set is a straight line, or the difference in slopes of each adjacent positioning data line projected onto the horizontal plane is within a certain range.

[0110] Optionally, the processor 200 triggers the heading acquisition module 210 to run in response to the heading acquisition instruction. At this time, the processor 200 also includes an instruction trigger module 220 connected to the heading acquisition module 210. The instruction trigger module 220 sends the positioning data to the heading acquisition module 210 when the heading acquisition instruction is obtained.

[0111] The heading acquisition instruction is used to instruct to start the heading acquisition function. The heading acquisition instruction can be generated when the mobile device is turned on, or when the instruction input module 150 obtains the heading acquisition input operation. This embodiment does not limit the acquisition method of the heading acquisition instruction.

[0112] Optionally, after the processor 200 obtains the initial heading, the initial heading can be input into a preset positioning algorithm module 230, so that the positioning algorithm module 230 can use a preset positioning algorithm to determine the posture of the movable device based on the initial heading, thereby effectively helping the positioning algorithm module to converge quickly and achieve high-precision positioning requirements in a short time, thereby enabling precise control of the machine.

[0113] At this time, the working system also includes a positioning algorithm module 230 connected to the heading acquisition module 210. The positioning algorithm module 230 is used to calculate the position and posture of the movable device at each moment based on the initial heading output by the heading acquisition module 210. In this embodiment, by correcting the heading data obtained by the positioning algorithm module 210 after obtaining the initial heading, the accuracy of the position and posture calculated by the positioning algorithm can be improved.

[0114] The positioning algorithm running in the positioning algorithm module 230 includes, but is not limited to: an extended Kalman filter (Extended Kalman Filter, EKF) algorithm, a linear Gaussian system (Linear Gaussian, LG) algorithm, etc. This embodiment does not limit the implementation method of the positioning algorithm.

[0115] Optionally, in order to enable the user to know in time that the initial heading is acquired successfully, the processor 200 is further used to execute a target control action when the initial heading is determined to be successful, and the target control action is used to indicate that the initial heading is determined to be successful.

[0116] At this time, if the processor 200 has not executed the target control action, it means that the initial heading has not been successfully acquired. The user can trigger the mobile device to re-execute the steps of the heading acquisition module to re-acquire the initial heading; or, the heading acquisition process ends.

[0117] In one example, the target control action is to control the prompt component 104 in the movable device to output a prompt indicating that the initial heading acquisition is successful. Figure 3The mobile device further includes: a prompt component 104 connected to the processor 200. At this time, it is used to: output a prompt instruction to the prompt component when the heading determination module 240 successfully determines the initial heading. That is, the target control action executed by the processor 200 at this time is the action of outputting the prompt instruction.

[0118] Accordingly, the prompt component 104 is used to output a prompt indicating that the initial heading is successfully acquired when receiving the prompt instruction. The prompt indicating that the initial heading is successfully acquired is different from the above-mentioned prompt indicating that the installation is successful.

[0119] Optionally, the prompt component 104 may be an indicator light, in which case the prompt that the initial heading is successfully acquired is that the indicator light displays a second color, flashes, or is always on, and this embodiment does not limit the way the indicator light outputs the prompt. And / or, the prompt component 104 may be an audio playback component, in which case the prompt that the initial heading is successfully acquired may be a voice prompt, or a beep, and this embodiment does not limit the way the audio playback component outputs the prompt. And / or, the prompt component 104 may be a communication component, in which case the prompt that the initial heading is successfully acquired may be a communication message sent by the communication component to the mobile terminal.

[0120] For example, taking the movable device as a cart, after the positioning sensor is successfully installed on the cart so that the indicator light of the cart turns green, the user pushes the cart to move in a straight line in any direction, and waits for the indicator light to turn red, indicating that the heading acquisition module 210 successfully acquires the initial heading. After that, the user can continue to push the cart to move along the desired route (i.e., not limited to a straight line) to perform work tasks, such as: map construction tasks, or tasks of collecting positioning data of target locations, etc.

[0121] It should be noted that: when the working system provided in the above embodiment acquires the heading of a movable device, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the processor 200 is divided into different functional modules to complete all or part of the functions described above.

[0122] In this embodiment, the processor 200 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 200 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array).

[0123] The processor 200 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also called a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0124] The codes of each module in the processor 200 are stored in the memory. Figure 3 The working system further includes a memory 500, which may include one or more computer-readable storage media, which may be non-transitory. The memory 500 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices.

[0125] In some embodiments, the non-transitory computer-readable storage medium in the memory 500 is used to store at least one instruction, which is used to be executed by the processor 200 to implement the heading acquisition method of the movable device provided in the following method embodiment of the present application.

[0126] In other embodiments, the mobile device 100 may also optionally include: a peripheral device interface and at least one peripheral device. The processor 200, the memory 500 and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Schematically, the peripheral device includes but is not limited to: a radio frequency circuit and a prompt component.

[0127] In summary, in the working system provided in the present embodiment, a positioning data set is obtained by acquiring the positioning data collected by the positioning sensor; a valid data set in which the moving trajectory of the movable device is approximately a straight line is screened out from the positioning data set; it is determined whether the screening of the valid data set is completed; if the judgment result is completed, the initial heading of the movable device is determined based on the valid data set; the problem that the traditional heading acquisition result is not accurate enough can be solved; because the initial heading of the movable device is obtained only when it is determined that the moving trajectory of the movable device is approximately a straight line, the problem of the initial heading not being consistent with the actual heading can be avoided, thereby improving the accuracy of the initial heading acquisition.

[0128] In addition, by executing a target control action, such as outputting a prompt instruction, when the initial heading is determined to be successful, to instruct the prompt component to output a prompt that the initial heading is successfully obtained, it can indicate that the initial heading is determined successfully, thereby promptly prompting the user whether the initial heading is successful or failed, which can improve the intelligence of the working system.

[0129] The following is a detailed description of the control method for a mobile device provided by the present application. Figure 3 The processor 200 in the working system is taken as an example for explanation. Figure 4 This is a flow chart of a control method for a mobile device provided by an embodiment of the present application, the method comprising at least the following steps:

[0130] S1, obtaining positioning data collected by the positioning sensor to obtain a positioning data set.

[0131] Optionally, the processor acquires the positioning data collected by the positioning sensor in response to the heading acquisition instruction. When acquiring the positioning data, the processor reads a preset number of positioning data collected by the positioning sensor within a preset time period, triggering the execution of step S2, for example: the processor acquires 15 positioning data collected by the positioning sensor within 3 seconds; or, the processor receives the positioning data collected by the positioning sensor in real time, triggering the execution of step S2. This embodiment does not limit the way in which the processor acquires the positioning data.

[0132] In one embodiment of the present application, whether the acquired positioning data set can be used to determine the initial heading is determined based on whether a preset amount of positioning data can be collected within a preset time period; or, based on whether a preset distance can be moved within a preset time period; or, based on the quality of the satellite signal detected during the movement. For example: if 10 positioning data are not collected within 3 seconds, the process of re-determining the initial heading is initiated; if the moving distance within 3 seconds is less than 0.3m, the process of re-determining the initial heading is initiated; if the satellite signal quality is poor within 3 seconds, the process of re-determining the initial heading is initiated.

[0133] In this embodiment, the processor acquires the positioning data in the order or in reverse order in which the sensor acquires the positioning data.

[0134] In an example, the positioning data in the positioning data set is collected by a positioning sensor, such as an RTK sensor.

[0135] In another example, the processor fuses the positioning data collected by at least two positioning sensors to obtain a positioning data set. At this time, the processor needs to align the positioning data collected by at least two positioning sensors in advance, and the data alignment method includes: based on the time synchronization principle, using pulse per second (PPS) to control at least two positioning sensors to synchronously collect positioning data, and obtain multiple positioning data collected at the same time, and the multiple positioning data are used to fuse into the same positioning data indicating the same position in the positioning data set.

[0136] S2, filter out valid data sets whose moving trajectories of movable devices are approximately straight lines from the positioning data sets.

[0137] An approximate straight line means that the line connecting each positioning data in the valid data set is a straight line, or the difference in the slope of each adjacent positioning data line projected onto the horizontal plane is within a certain range. Since the heading of the movable device remains basically unchanged when it moves in an approximate straight line, the heading obtained in the approximate straight line stage is more accurate.

[0138] In one example, the valid data set is determined based on the temporary heading indicated by the adjacent positioning data in the positioning data set. At this time, in order to achieve the comparison of the temporary heading, the valid data set includes at least 3 positioning data. At this time, the temporary heading refers to the angle at which the front end of the mobile device is deflected at the time of collecting the current positioning data relative to the time of collecting the previous positioning data.

[0139] Specifically, S2 includes at least the following S21 and S22:

[0140] S21, for positioning data i-1, positioning data i and positioning data i+1 determined in the positioning data set according to the sampling order or the reverse order, calculate the temporary heading i-1 based on the i-1th group of data, and calculate the temporary heading i based on the i-th group of data; wherein the i-1th group of data includes positioning data i-1 and positioning data i, and the i-th group of data includes positioning data i and positioning data i+1. i is an integer greater than 1;

[0141] In one example, if the movable device always moves forward, that is, there is no backward movement, at this time, the running direction of the movable device is fixed (that is, always forward). At this time, a temporary heading is determined, including: for each set of data, the direction of travel of the positioning data with a later collection order relative to the positioning data with an earlier collection order is determined as the temporary heading.

[0142] For example, calculating the temporary heading i-1 based on the i-1th group of data includes calculating the travel direction of the positioning data i relative to the positioning data i-1 to obtain the temporary heading.

[0143] For another example, calculating a temporary heading i based on the i-th group of data includes calculating the travel direction of positioning data i+1 relative to positioning data i to obtain the temporary heading.

[0144] Take the positioning data collected by the RTK sensor as an example, where the positioning data is represented by the coordinate position in the reference coordinate system, and the reference coordinate system is constructed with the x-axis and y-axis in a plane parallel to the horizontal plane, and the z-axis is perpendicular to the horizontal plane. Assume that the position coordinate of the positioning data collected earlier in the movable device in the xOy plane is P i-1 (x i-1 ,y i-1 ), the position coordinates of the positioning data collected later on the xOy plane are P i (x i ,yi ). Then the direction of travel is:

[0145] Δθ i =atan2((y i -y i-1 ), (x i -x i-1 )), i is an integer starting from 2.

[0146] Among them, the atan2 function can reflect the azimuth angle of two points in a two-dimensional coordinate system and is directional.

[0147] In another example, if the movable device moves backward during the movement, a temporary heading is determined, including: determining the direction of travel based on each set of data; determining the running direction of the movable device; when the running direction is forward, determining the direction of travel as the temporary heading; when the running direction is backward, determining the opposite direction of the direction of travel as the temporary heading.

[0148] Determining the travel direction based on each set of data includes: for each set of data, determining the travel direction of the positioning data collected later relative to the positioning data collected earlier. The specific calculation method of the travel direction is referred to above, and this embodiment will not be repeated here.

[0149] Optionally, the movable device is further provided with a wheel speed sensor to collect wheel speed data of the movable component. In this case, determining the running direction of the movable device includes: determining the running direction based on the wheel speed data. That is, the wheel speed data includes the rotation direction of the wheel body. When the wheel speed data indicates that the rotation direction drives the movable device forward, the running direction is forward. When the wheel speed data indicates that the rotation direction drives the movable device backward, the running direction is backward.

[0150] Specifically, when the wheel speed data is negative, the movable device is judged to be moving backward, and the temporary heading yaw is obtained as the negative value of the calculated traveling direction; when the wheel speed data is positive, the movable device is judged to be moving forward, and the temporary heading yaw is the calculated traveling direction and does not change. The temporary heading yaw is expressed by the following formula:

[0151]

[0152] Among them, v represents the wheel speed data, and yaw' represents the travel direction.

[0153] In other embodiments, the running direction may also be indicated by the user, and this embodiment does not limit the method for obtaining the running direction.

[0154] S22, if the temporary heading i-1 and the temporary heading i meet the preset conditions, determine that the moving trajectory of the movable device is an approximate straight line, and classify the i-1th group of data and the ith group of data into the valid data set.

[0155] Among them, the preset conditions include at least that the temporary heading i-1 is basically consistent with the temporary heading i. In this embodiment, the difference between the temporary heading i-1 and the temporary heading i can be represented by the difference of the temporary headings. Accordingly, when the temporary heading i-1 and the temporary heading i meet the preset conditions, the moving trajectory of the movable device is determined to be an approximate straight line, including: determining the difference between the temporary heading i indicated by the i-th group of data and the temporary heading i-1 indicated by the i-1th group of data, and obtaining the heading difference; when the heading difference is within the preset range, determining that the moving trajectory of the movable device is an approximate straight line, and classifying the i-1th group of data and the i-th group of data into the valid data set.

[0156] Specifically, the heading difference is the difference obtained by subtracting the temporary heading i-1 from the temporary heading i. In other embodiments, the heading difference may also be the difference obtained by subtracting the temporary heading i-1 from the temporary heading i.

[0157] The preset range may be [-20°, +20°]. In actual implementation, the value of the preset range may also be other values. This embodiment does not limit the value of the preset range.

[0158] When the heading difference does not fall within the preset range or the positioning data in the positioning data set have completed step S2, step S3 is executed.

[0159] In other embodiments, the difference between the temporary heading i-1 and the temporary heading i can also be represented by the ratio of the temporary headings. At this time, the preset range is changed accordingly, but the comparison principle is the same as the difference, and this embodiment will not be repeated here.

[0160] In the above embodiment, the temporary heading is calculated based on the adjacent positioning data as an example for explanation. In other embodiments, the temporary heading can also be determined based on the first positioning data and each second positioning data. In this case, the temporary heading refers to the angle at which the front end of the mobile device deflects relative to the first positioning data at the time of collecting the second positioning data. This embodiment does not limit the method for determining the temporary heading.

[0161] The first positioning data is any positioning data in the positioning data set, and the second positioning data is each second positioning data in the positioning data set except the first positioning data. The first positioning data can be the first positioning data in the acquisition order or in reverse order, or can be other positioning data. This embodiment does not limit the implementation method of the first positioning data.

[0162] Specifically, taking the first positioning data as positioning data 1 which is the first in the collection order or in reverse order as an example, S21 can be replaced by: calculating the temporary heading i-1 based on positioning data 1 and positioning data i; calculating the temporary heading i based on positioning data 1 and positioning data i+1.

[0163] In some scenarios, the movable device may move abnormally during the movement, such as: the movable device is suspended in the air due to external force, the mobile component is stuck, the mobile component is suspended, etc. The positioning algorithm module usually needs to fuse the positioning data collected by multiple positioning sensors. When the movable device moves abnormally, the positioning data collected by different positioning sensors may indicate that the movable device is in different motion states. For example: in the dragging scenario, the RTK sensor indicates that the movable device is moving, but the wheel speed sensor indicates that the movable device is stationary. At this time, the initial heading obtained by the positioning algorithm module based on the positioning data is inaccurate and has a large error. Based on this, in this embodiment, in order to ensure that the valid data set is the positioning data collected when the movable device moves normally, it is also necessary to determine the motion state of the movable device.

[0164] Accordingly, refer to Figure 1A The movable device is also provided with a wheel speed sensor 103, which is arranged on the wheel body and is used to collect wheel speed data of the mobile component. The wheel speed data can be directly collected speed data, or can be calculated based on displacement and duration. The wheel speed sensor can be an odometer (odom, ODO). This embodiment does not limit the implementation method of the wheel speed sensor.

[0165] If the mobile assembly includes at least two wheels, the wheel speed data collected by the wheel speed sensor 103 includes the wheel speed data of each wheel. In this case, the wheel speed sensors 103 are distributed on each wheel. For example, the wheel speed sensors 103 are located on the central axis of each wheel.

[0166] Step S22 also includes: determining whether the wheel speed data is greater than or equal to a preset speed threshold; if the temporary heading i-1 and the temporary heading i meet the preset conditions, and the wheel speed data is greater than or equal to the preset speed threshold, determining that the moving trajectory of the movable device is an approximate straight line.

[0167] The preset speed threshold may be 0.3 m / s or other values. This embodiment does not limit the value of the preset speed threshold.

[0168] Before S2, the processor also needs to obtain wheel speed data collected by the wheel speed sensor. The description of the processor obtaining wheel speed data is similar to the description of obtaining positioning data in S1, which will not be repeated in this embodiment.

[0169] Since the wheel speed data is greater than the preset speed threshold, it indicates that the movable device is not in a stationary state. This can avoid the valid data set being collected when the movable device is suspended in the air due to external force or the moving component is stuck, thereby improving the validity of the positioning data in the valid data set.

[0170] In some scenarios, the mobile assembly includes a first wheel body and a second wheel body distributed on both sides of the device, and accordingly, the wheel speed sensor is used to collect wheel speed data of the first wheel body and the second wheel body. At this time, in order to improve the accuracy of the temporary heading determined by the movable device, the wheel body data of each wheel body can be combined to further exclude the acquisition of the initial heading in the case of abnormal movement of the movable device.

[0171] At this time, S22 further includes: determining whether the wheel speed data indicates that the wheel speed of the first wheel body is substantially consistent with the wheel speed of the second wheel body.

[0172] Correspondingly, if the temporary heading i-1 and the temporary heading i meet the preset conditions, the wheel speed data is greater than or equal to the preset speed threshold, and the wheel speed data indicates whether the wheel speed of the first wheel body is basically consistent with the wheel speed of the second wheel body, it is determined that the moving trajectory of the movable device is an approximate straight line.

[0173] Since the wheel speeds of the first wheel body and the second wheel body are basically the same, it means that the heading of the movable device is basically unchanged. Therefore, by combining the wheel speed difference and the temporary heading difference to determine whether it is an approximate straight line, the accuracy of screening valid data sets can be improved. If the wheel speed difference is greater than the preset speed threshold, it means that the movable device is driven by the mobile component to rotate, and the moving trajectory of the movable device is not an approximate straight line.

[0174] The wheel speed difference may be represented by a difference, for example, if the difference between the wheel speed of the first wheel body and the wheel speed of the second wheel body is less than or equal to a speed deviation threshold (such as 0.1 m / s), it is determined that the wheel speeds are substantially the same. Alternatively, the wheel speed difference may also be represented by a ratio, and this embodiment does not limit the method for determining the wheel speed difference.

[0175] At this time, the wheel speed data needs to meet the following conditions:

[0176]

[0177] Among them, v l Indicates the wheel speed of the first wheel (left wheel), v r Indicates the wheel speed of the second wheel (right wheel), v min Indicates the preset speed threshold, and threshold indicates the speed deviation threshold.

[0178] In some embodiments, S2 further includes:

[0179] S23, if the i-1th group of data and the ith group of data are classified as valid data sets, the value of i is increased by 1, and steps S21 and S22 are executed again;

[0180] S24, repeatedly execute steps S21-S23 until the temporary heading k and the temporary heading k+1 do not meet the preset conditions; k is an integer greater than i.

[0181] S3, determining whether the screening of the valid data set is completed.

[0182] In one example, determining whether the screening of the valid data set is completed includes: if the distance of the moving trajectory of the movable device calculated according to the valid data set is greater than or equal to a preset distance, determining that the screening of the valid data set is completed.

[0183] Optionally, calculating the distance of the moving trajectory of the movable device according to the valid data set includes: calculating the distance of the moving trajectory of the movable device according to the first positioning data and the last positioning data in the valid data set. Assume that the first positioning data and the last positioning data are represented by position coordinates in a reference coordinate system, and the reference coordinate system constructs an x-axis and a y-axis with a plane parallel to the horizontal plane, and a z-axis is perpendicular to the horizontal plane. At this time, the position coordinates of the first positioning data on the xOy plane are (x1, y1), and the position coordinates of the last positioning data on the xOy plane are (x N ,y N ), the distance calculation method is expressed by the following formula:

[0184] ΔP=sqrt((x 1′ -x N′ ) 2 +(y 1′ -y N′ ) 2 )

[0185] Among them, sqrt represents the square root function.

[0186] Alternatively, calculating the distance of the moving track of the movable device according to the valid data set includes: calculating the adjacent distances between two adjacent positioning data in the valid data set, and determining the sum of the adjacent distances as the distance of the moving track.

[0187] The preset distance may be 0.5 meters. In actual implementation, the preset distance may also be other values. This embodiment does not limit the value of the preset distance.

[0188] When the distance of the moving track of the movable device is greater than or equal to the preset distance, it is determined that the movable device is in a linear moving state, and S4 is executed; when the distance of the moving track of the movable device is less than the preset distance, it is determined that the screening of the valid data set is incomplete.

[0189] In another example, determining whether the screening of the valid data set is completed includes: determining that the screening of the valid data set is completed according to the duration of the continuous addition of the positioning data to the valid data set being greater than or equal to a preset duration threshold. At this time, if the duration is less than the preset duration threshold, it is determined that the screening of the valid data set is not completed. The preset duration threshold is less than or equal to the reading duration of the positioning data (i.e., the preset duration mentioned above).

[0190] In yet another example, determining whether the screening of the valid data set is completed includes: based on the number of positioning data added to the valid data set being greater than or equal to a preset number threshold, the preset number threshold being greater than 3 and less than or equal to the number of positioning data in the positioning data set.

[0191] In other embodiments, the conditions for completing the screening of valid data sets may also be other conditions, which are not listed one by one in this embodiment.

[0192] If the screening of the valid data set is not completed in step S3, steps S1 and S2 are re-executed until the screening of the valid data set is completed in step S3.

[0193] At this time, after S3, the process further includes: S5, if the screening of the valid data set is not completed, obtaining n updated positioning data collected by the positioning sensor on the mobile device; S6, using the n updated positioning data to update the first n positioning data in the calculation order in the positioning data set, obtaining an updated positioning data set, and triggering the execution of step S2. Where n is a positive integer greater than 1.

[0194] n is a preset value, or n is determined based on the period of the positioning sensor collecting positioning data. For example, if the positioning sensor collects 5 points per second, the value of n is 5. This embodiment does not limit the value and setting method of n.

[0195] In order to more clearly understand the detection process of the straight-line movement state in this embodiment (i.e., the process of detecting whether the movement trajectory is an approximate straight line), this embodiment takes the positioning data as RTK data, the preset conditions including the temporary heading being basically consistent, the wheel speed being basically consistent, and the wheel speed being greater than the preset speed threshold as an example to illustrate the detection process of the straight-line movement state. Figure 5 , the process includes at least steps 51-58:

[0196] Step 51, reading the synchronously collected RTK data and wheel speed data;

[0197] Step 52, calculating the heading difference of the temporary heading based on the RTK data at adjacent moments, and determining the wheel speed difference based on the wheel speed data;

[0198] Step 53, determining whether the heading difference is within a preset range, whether the absolute value of the wheel speed difference is less than or equal to the speed deviation threshold, and whether the absolute value of the wheel speed data is greater than the preset speed threshold; if so, executing step 54; if any of the conditions is not met, executing step 56;

[0199] Step 54, determining the RTK data as the positioning data in the valid data set;

[0200] Step 55, determining whether the RTK data in the positioning data set has been read; if so, executing step 57; if not, executing step 51;

[0201] Step 56, determining whether the screening of the valid data set is completed; if completed, executing step 57; if not completed, executing step 58;

[0202] Step 57, determine that the movable device is in a linear moving state, and the process ends;

[0203] Step 58, determine that the movable device is not in a linear moving state, and the process ends.

[0204] S4: If the result of the determination is completion, the initial heading of the movable device is determined based on the valid data set.

[0205] In one example, determining the initial heading of the movable device based on the valid data set includes: performing linear fitting on each positioning data in the valid data set; and determining the initial heading based on the travel direction obtained by the linear fitting. The initial heading can be determined using RTK data in the positioning data set.

[0206] The linear fitting method may be a linear fitting based on the least squares method. The linear fitting formula is expressed by the following formula:

[0207]

[0208] Among them, k is the inverse tangent function, which represents the direction of travel obtained by linear fitting. Then, the initial heading can be obtained by combining the wheel speed data.

[0209] In other embodiments, the initial heading may also be an average value of various temporary headings, or may also be a heading determined by any two positioning data in the valid data set. This embodiment does not limit the method for determining the initial heading.

[0210] Optionally, when the initial heading is determined to be successful, the processor may further execute a target control action, where the target control action is used to indicate that the initial heading is determined to be successful.

[0211] In order to more clearly understand the method for determining the initial heading provided by the present application, the method is described below with an example. Figure 6 The process of determining the initial heading includes at least the following steps 61-66:

[0212] Step 61, obtaining positioning data collected by multiple positioning sensors;

[0213] Step 62, aligning each positioning data;

[0214] Step 63, determining whether the movable device is in a linear movement state based on the aligned positioning data; if so, executing step 64; if not, executing step 61 again;

[0215] For the specific detection process, please refer to the above embodiments and Figure 5 .

[0216] Step 64, performing straight line fitting on the aligned positioning data to obtain the travel direction;

[0217] Step 65, determining whether the vehicle is moving forward based on the wheel speed data; if so, executing step 66; if not, executing step 67;

[0218] Step 66, determine that the initial heading is the traveling direction, and the process ends;

[0219] Step 67, determine that the initial heading is the opposite direction of the traveling direction, and the process ends.

[0220] In summary, the method for obtaining the heading of a movable device provided in the present embodiment obtains a positioning data set by obtaining the positioning data collected by a positioning sensor; a valid data set in which the moving trajectory of the movable device is approximately a straight line is screened out from the positioning data set; it is determined whether the screening of the valid data set is completed; if the judgment result is completed, the initial heading of the movable device is determined based on the valid data set; the problem that the traditional heading acquisition results are not accurate enough can be solved; because the working system obtains the initial heading of the movable device only when it is determined that the moving trajectory of the movable device is approximately a straight line, the problem that the initial heading obtained by the movable device is inconsistent with the actual heading can be avoided, thereby improving the accuracy of the initial heading acquisition.

[0221] In addition, by determining the temporary heading in the order or in reverse order of the positioning data collection, only valid data sets are stored, so that the processor does not need to store all the positioning data, which can save memory storage space.

[0222] In addition, by representing the distance of the valid data set by the distance between the first positioning data and the last positioning data in the valid data set, it is possible to avoid the problem of sequentially calculating and accumulating the distances of adjacent positioning data, which results in a large consumption of resources for distance calculation, and to improve the efficiency of distance calculation.

[0223] In addition, by combining the wheel speed data to determine whether the moving trajectory is an approximate straight line, it is possible to avoid the problem of the movable device obtaining the initial heading when moving abnormally, resulting in inaccurate initial heading, and the accuracy of the initial heading can be further improved.

[0224] In addition, the initial heading is determined by performing linear fitting on the positioning data in the valid data set, and the initial heading can be determined by combining multiple positioning data to further improve the accuracy of the initial heading.

[0225] In addition, by executing the target control action to indicate that the initial heading is successfully determined, the user can be promptly prompted whether the initial heading is successful or failed so that the user can perform subsequent actions, thereby improving the intelligence of the working system.

[0226] Furthermore, after obtaining the initial heading, the self-mobile device uses RTK, IMU and ODO for fusion positioning based on the initial heading. In the process of moving the device after obtaining the initial heading (walking along the planned path), the pitch angle determined by the data collected by RTK is compared with the corrected pitch angle obtained by the fusion algorithm. When the difference between the two is greater than a preset threshold (such as 1 degree), it is determined that the initial heading angle is inaccurate. If the initial heading angle continues to be inaccurate for a period of time (such as 10s), the self-mobile device is controlled to re-acquire the initial heading angle, that is, restart the process of obtaining the initial heading angle described above.

[0227] In the process of device movement after obtaining the initial heading, in addition to the above-mentioned angle comparison, the satellite signal quality of the device over a period of time can also be detected. If the angle difference continues to be greater than the preset threshold and the satellite signal quality is poor over a period of time, the device is controlled to shut down and stop timing after detecting the poor satellite signal quality, and then the machine is controlled to continue moving after the satellite signal quality improves. During the movement, the previously unfinished timing process is continued, the angle difference is calculated, and the satellite signal quality is monitored. If the satellite signal quality is good over a period of time, it is only necessary to determine whether the initial heading is accurate based on the angle difference. If the initial heading is accurate over a period of time, the device can be controlled to continue moving and working according to the planned path set in the program or user instructions.

[0228] When the self-moving device in this application is a smart lawn mower, a matching charging station needs to be provided for charging or docking. When the charging station is out of bounds, the user needs to draw a virtual boundary connected to the actual working area. When the self-moving device departs from the charging station, the path from the charging station to the actual working area can be planned in the map determined by the virtual boundary. Because the charging station is generally placed near the user's house, if the virtual boundary is drawn too large, it may affect the user's walking when the self-moving device moves in the virtual boundary. Therefore, most virtual boundaries are drawn relatively narrow. When calibrating the heading, due to the short moving distance of the device, only collecting the head and tail positioning data to obtain the heading will produce a large error. Therefore, when determining the initial heading, the multiple RTK data collected in this application can be used to obtain a more accurate initial heading by linearly fitting the RTK data set.

[0229] Furthermore, unlike the above-mentioned embodiment, the self-mobile device can be controlled to move at a lower speed than the working speed or use a higher frequency positioning data collection device to collect positioning data (higher frequency RTK), so that more positioning data can be obtained within the same distance compared with before the change, and the initial heading obtained by fitting with more positioning data is more accurate. When the initial heading is determined, the self-mobile device is controlled to reaccelerate to the normal moving speed.

[0230] Before the self-mobile device starts the process of obtaining the initial heading, the distance between the self-mobile device and the front boundary of the moving direction can be obtained. If the distance is less than a preset threshold (such as 0.5m), the self-mobile device is controlled to turn to a direction with a distance greater than the preset threshold to ensure that the device does not go out of bounds during the straight-line process of determining the initial heading. Specifically, first move a short distance (such as 10cm), use the collected first and last RTK positioning data to determine the rough heading, and then judge the distance between the device and the front boundary of the moving direction based on the rough heading and the current position. If the distance is less than the preset threshold, the angle difference between the boundary farthest from the device and the rough heading at the current position is determined in combination with the map, and the machine is controlled to rotate in place according to the angle difference, so that the distance between the front boundary after rotation and the device is greater than the preset threshold. After this condition is met, the machine is controlled to start obtaining the initial heading.

[0231] When the self-moving device is a smart lawn mower, since it can be controlled to move in a straight line by a program, the process of filtering the moving trajectory as an approximate straight line in S2 of this application may not be executed in the process of obtaining the initial heading, so as to improve the program processing speed. That is, the positioning data collected by the positioning sensor on the self-moving device can be directly obtained to obtain a positioning data set; determine whether the filtering of the positioning data set is completed; if the judgment result is completed, the initial heading of the self-moving device is determined based on the positioning data set. Of course, the process of filtering the moving trajectory as an approximate straight line in S2 can also be carried out directly. After obtaining the positioning data set, the fitting method as in the aforementioned embodiment is adopted for each positioning data in the positioning data set; the initial heading is determined based on the travel direction obtained by fitting. Of course, the process of filtering the moving trajectory as an approximate straight line in S2 of this application can also be executed, and this application does not limit this.

[0232] In one embodiment of the present application, in the process of acquiring positioning data collected by the positioning sensor, it is possible to determine whether the acquired positioning data set can be used to determine the initial heading based on whether a preset amount of positioning data can be collected within a preset time; or based on whether a preset distance can be moved within a preset time; or based on the quality of the satellite signal detected during the movement. For example: if 10 positioning data are not collected within 3 seconds, the process of re-determining the initial heading is initiated; if the moving distance within 3 seconds is less than 0.3m, the process of re-determining the initial heading is initiated; if the satellite signal quality is poor within 3 seconds, the process of re-determining the initial heading is initiated.

[0233] After determining the initial heading, the process of determining whether the initial heading is correct in the above embodiment can still be performed, and this embodiment will not be repeated here. When the initial heading is determined to be correct, the self-moving device can be controlled to move and work according to the planned path.

[0234] In this embodiment, more positioning data are acquired within the same distance and linear fitting is performed using more positioning data, thereby obtaining a more accurate initial heading.

[0235] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0236] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for obtaining the heading of a movable device, It is characterized in that The method comprises: S1, acquiring positioning data collected by a positioning sensor on the movable device to obtain a positioning data set; S2, filtering out valid data sets whose moving trajectories of movable devices are approximately straight lines from the positioning data sets; S3, determining whether the screening of the valid data set is completed; S4: If the result of the determination is completion, determining the initial heading of the movable device based on the valid data set.

2. The method according to claim 1, It is characterized in that The S3 includes: if the distance of the moving track of the movable device calculated according to the valid data set is greater than or equal to a preset distance, it is determined that the screening of the valid data set is completed.

3. The method according to claim 1, It is characterized in that The S2 includes: S21, for positioning data i-1, positioning data i and positioning data i+1 determined in the positioning data set according to the sampling order or the reverse order, calculate a temporary heading i-1 based on the i-1th group of data, and calculate a temporary heading i based on the i-th group of data; wherein the i-1th group of data includes positioning data i-1 and positioning data i, the i-th group of data includes positioning data i and positioning data i+1, and i is an integer greater than 1; S22, if the temporary heading i-1 and the temporary heading i meet the preset conditions, determine that the moving trajectory of the movable device is an approximate straight line, and classify the i-1th group of data and the ith group of data into the valid data set; the preset conditions include that the temporary heading i-1 is basically consistent with the temporary heading i.

4. The method according to claim 3, It is characterized in that The S2 includes: S23, if the i-1th group of data and the ith group of data are included in the valid data set, the value of i is increased by 1, and steps S21 and S22 are performed again; S24, repeatedly execute steps S21-S23 until the temporary heading k and the temporary heading k+1 do not satisfy the preset condition; the k is an integer greater than the i.

5. The method according to claim 2, It is characterized in that The S3 includes: The distance of the moving track of the movable device is calculated according to the first positioning data and the last positioning data in the valid data set; and it is determined whether the distance is greater than or equal to the preset distance.

6. The method according to claim 1, It is characterized in that If the step S3 determines that the screening of the valid data set is not completed, the steps S1 and S2 are re-executed until the step S3 determines that the screening of the valid data set is completed.

7. The method according to claim 3, It is characterized in that The movable device includes a movable component, and the movable device is also provided with a wheel speed sensor; the wheel speed sensor is used to collect wheel speed data of the movable component; The step S22 also includes: determining whether the wheel speed data is greater than or equal to a preset speed threshold; if the temporary heading i-1 and the temporary heading i meet the preset conditions, and the wheel speed data is greater than or equal to the preset speed threshold, determining that the moving trajectory of the movable device is an approximate straight line.

8. The method according to claim 7, It is characterized in that The mobile assembly includes a first wheel body and a second wheel body; the wheel speed sensor is used to collect wheel speed data of the first wheel body and the second wheel body; The step S22 further includes determining whether the wheel speed data indicates that the wheel speed of the first wheel body is substantially consistent with the wheel speed of the second wheel body.

9. The method according to claim 3, It is characterized in that The movable device includes a movable component, and the movable device is also provided with a wheel speed sensor to collect wheel speed data of the movable component; The determining of the temporary heading comprises: Determine a travel direction based on each set of data; determining a running direction of the movable device based on the wheel speed data; When the running direction is forward, determining the traveling direction as the temporary heading; When the running direction is backward, the opposite direction of the traveling direction is determined as the temporary heading.

10. The method according to claim 1, It is characterized in that The determining the initial heading of the movable device based on the valid data set includes: Performing linear fitting on each positioning data in the valid data set; The initial heading is determined based on the traveling direction obtained by linear fitting.

11. The method according to claim 1, It is characterized in that The method further comprises: In the case where the initial heading is determined to be successful, a target control action is performed, wherein the target control action is used to indicate that the initial heading is determined to be successful.

12. A removable device, It is characterized in that The movable device comprises: A moving component, used to drive the movable device to move when receiving a driving force; A positioning sensor, used to collect positioning data of the movable device; The processor connected to the positioning sensor is used to perform at least the following steps: S1, acquiring positioning data collected by the positioning sensor to obtain a positioning data set; S2, filtering out valid data sets whose moving trajectories of movable devices are approximately straight lines from the positioning data sets; S3, determining whether the screening of the valid data set is completed; S4: If the judgment result is yes, determining the initial heading of the movable device based on the valid data set.

13. The movable device according to claim 11, It is characterized in that The movable device further comprises: a prompt component connected to the processor; The processor is further configured to: output a prompt instruction to the prompt component when determining that the initial heading is successful; The prompt component is used to output a prompt indicating that the initial heading is successfully obtained when receiving the prompt instruction.

Citation Information

Cited By

  • Wheel speed false rejection detection method and device for integrated navigation and storage medium

    CN122631063A