Mapping method for mobile robot and mobile robot
The mobile robot system autonomously maps boundaries using visual perception and positioning data fusion to enhance user experience and mapping accuracy by compensating for dynamic deviations.
Patent Information
- Application Number
- PCT/CN2026/097765
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2026-05-19
- Publication Date
- 2026-11-26
AI Technical Summary
Conventional mobile robot mapping methods require continuous user involvement, leading to suboptimal user experience and mapping inaccuracies due to reliance on fixed values that ignore dynamic factors like slippage and ground fluctuation, affecting path planning and mowing coverage.
A mobile robot system that autonomously follows boundaries using visual perception and positioning data fusion, generating accurate maps by real-time distance and pose data integration, enabling automated mapping and manual correction for improved accuracy.
Enhances user experience by reducing manual control and improves mapping accuracy through dynamic deviation compensation, ensuring precise boundary representation.
Smart Images

Figure CN2026097765_26112026_PF_FP_ABST
Abstract
Description
Mapping method for mobile robot and mobile robotTechnical Field
[0001] The present disclosure relates to the technical field of mobile robots, in particular to a mapping method for a mobile robot and a mobile robot.Background
[0002] For boundary-free mobile robots, such as robotic mowers, mapping is typically performed by controlling the mobile robot via a terminal device (e.g., a mobile application) . During the mapping process, the robotic mower records position information through the positioning module and uses the position information to generate a motion planning map.
[0003] In addition, during map construction, in order to control the robotic mower to maintain a safe distance from the boundary of the working area (such as the periphery of the lawn and the contour of the obstacle) to avoid collision, a preset fixed value is used to represent the distance between the mobile robot and the boundary.Summary
[0004] According to an embodiment of the present disclosure, a mapping method for a mobile robot includes:
[0005] controlling, by a control unit of the mobile robot, the mobile robot to perform edge-following movement along a boundary of a working area;
[0006] identifying, by a visual perception unit of the mobile robot during the edge-following movement, the boundary of the working area and distance data between the mobile robot and the boundary of the working area;
[0007] acquiring pose data of the mobile robot by a positioning device of the mobile robot;
[0008] fusing, by the control unit, the distance data and the pose data to generate coordinate data corresponding to the boundary of the working area; and
[0009] generating, by the control unit, a map of the boundary of the working area based on the coordinate data.
[0010] According to an embodiment of the present disclosure, a mobile robot includes a control unit, a visual perception unit, and a positioning device. The visual perception unit is coupled to the control unit and configured to identify a boundary of a working area and determine distance data associated with the boundary. The positioning device is coupled to the control unit and configured to acquire pose data of the mobile robot. The control unit is configured to: control the mobile robot to perform edge-following movement along the boundary of the working area; fuse the distance data and the pose data to generate coordinate data corresponding to the boundary of the working area; and generate a map of the boundary of the working area based on the coordinate data.Brief Description of Drawings
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required to be used in the description of the embodiments or the prior art will be briefly introduced below, and it should be understood that the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings according to these drawings without creative efforts.
[0012] FIG. 1 is a flowchart of a mapping method for a mobile robot according to an embodiment of the present disclosure;
[0013] FIG. 2 is a flowchart of a mapping method for a mobile robot according to another embodiment of the present disclosure;
[0014] FIG. 3 is a flowchart of a mapping method for a mobile robot according to another embodiment of the present disclosure;
[0015] FIG. 4 is a flowchart of a recharging method for a mobile robot according to an embodiment of the present disclosure;
[0016] FIG. 5 is a flowchart of a recharging method for a mobile robot according to another embodiment of the present disclosure;
[0017] FIG. 6 is a schematic diagram of a position of a mobile robot in a working area when receiving a recharging instruction;
[0018] FIG. 7 is a schematic diagram of the mobile robot returning to the guide point;
[0019] FIG. 8 is a schematic diagram of adjusting a heading angle by a mobile robot at a guide point;
[0020] FIG. 9 is a schematic diagram of a process in which a mobile robot moves from the guide point to the charger station;
[0021] FIG. 10 is a functional block diagram of a recharging device of a mobile robot according to an embodiment of the present disclosure;
[0022] FIG. 11 is a flowchart of a multi-sensor time synchronization method according to an embodiment of the present disclosure;
[0023] FIG. 12 is a detailed flowchart of S100 according to an embodiment of the present disclosure;
[0024] FIG. 13 is a detailed flowchart of S200 according to an embodiment of the present disclosure;
[0025] FIG. 14 is a detailed flowchart of S500 according to an embodiment of the present disclosure;
[0026] FIG. 15 is a flowchart of another multi-sensor time synchronization method according to an embodiment of the present disclosure;
[0027] FIG. 16 is a detailed flowchart of S700 according to an embodiment of the present disclosure;
[0028] FIG. 17 is a detailed flowchart of S730 according to an embodiment of the present disclosure;
[0029] FIG. 18 is a structural diagram of a positioning system according to an embodiment of the present disclosure;
[0030] FIG. 19 is a block diagram of a multi-sensor fusion positioning method based on dual filters in one embodiment of the present disclosure;
[0031] FIG. 20 is a flowchart of a multi-sensor fusion positioning method based on dual filters according to an embodiment of the present disclosure;
[0032] FIG. 21 is a structural block diagram of a multi-sensor fusion positioning system based on dual filters in an embodiment of the present disclosure.
[0033] In the drawings: 1, boundary of a working area; 2, charger station; 3, mobile robot; 11, recharging device; 111, recharging response module; 112, QR code recognition module; 113, path generation module; 114, recharging control module; 115, docking judge module; 100, data acquisition module; 101, visual sensor; 102, inertial sensor; 103, positioning control module; 200, satellite positioning module; 300, algorithm module; 4010, sensor module; 4020, main filter module; 4030, auxiliary filter module; 4040, initialization module; 4050, positioning processor.Detailed Description
[0034] Implementations of the present disclosure are described below with reference to specific embodiments, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the content disclosed in the specification. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. In addition to the specific methods, devices, and materials used in the embodiments, any similar or equivalent methods, devices, and materials in the prior art may also be used to implement the present disclosure according to the knowledge of those skilled in the art and the description of the present disclosure.
[0035] Terms used in the embodiments of the present disclosure are intended to describe specific implementations, but are not intended to limit the protection scope of the present disclosure. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art.
[0036] The structures, proportions, sizes, and the like shown in the drawings of the present disclosure are only used to cooperate with the content disclosed in the present disclosure for those skilled in the art to understand and read, and are not intended to limit the implementation conditions in the present disclosure, so they have no substantial technical significance. Any modification of the structure, change of the proportional relationship or adjustment of the size should still fall within the scope covered by the technical content disclosed in the present disclosure without affecting the effects and objectives that can be achieved by the present disclosure. Moreover, the accompanying drawings only show the components related to the present disclosure, rather than drawing according to the number, shape and size of the components in actual implementation, the type, number and proportion of each component in actual implementation may be arbitrarily changed, and the component layout type may also be more complex.
[0037] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present disclosure, however, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details, and in some of the embodiments, well-known structures and devices are shown in the form of block diagrams rather than in the form of details to avoid making the embodiments of the present disclosure difficult to understand.
[0038] The flowcharts and block diagrams in the accompanying drawings illustrate architectures, functions, and operations that may be implemented by the method and the computer program product according to various embodiments disclosed in the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, each of which includes one or more executable instructions for implementing the specified logical function (s) . It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. In some embodiments, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustration, and combinations of blocks in the block diagrams and / or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
[0039] Conventionally, a terminal device (e.g., a mobile application) is used to manually control the robotic mower, requiring continuous user involvement throughout the entire mapping process. Consequently, mapping a large-scale lawn scenario may take over 30 minutes, resulting in a suboptimal user experience..
[0040] In addition, during map construction, conventional methods employ a preset fixed value to define the spacing between the mobile robot and the boundary, which ignores dynamic factors such as robot slippage, shaking, and ground fluctuation during actual traveling, and causes a deviation between the actual spacing and the preset fixed value. This deviation will directly affect the construction accuracy of the boundary coordinates, eventually resulting in errors between the map contour and the actual scene, which affects the accuracy of subsequent path planning and mowing coverage.
[0041] In order to solve the above problems, an embodiment of the present disclosure provides a mapping method for a mobile robot. The method enables fully automated mapping and also assist a user in manual mapping and boundary delineation processes. Thereby, the method reduces reliance on continuous manual control, improve user experience, and improves mapping accuracy through a sensor data fusion strategy.
[0042] Referring to FIG. 1, in an embodiment, a mapping method for a mobile robot includes steps S1 to S4.
[0043] In step S1, the mobile robot automatically follows a boundary of a working area in a preset direction, where the preset direction refers to a clockwise direction or a counterclockwise direction.
[0044] In an embodiment, the mobile robot may be a robotic mower having an automatic traveling function, or may be another movable operation device having a self-propelled drive module. To supply power to a device, a base station is generally disposed near an operating area of the device. In a non-operating state, the device enters the base station for docking and charging, and the base station provides shielding to avoid debris interfering with the device. When an operation is required, the device exits the station and travels to its predetermined operation area to mow and collect weeds in the working area according to a certain traversal path. The mobile robot is provided with a positioning device and a visual perception unit for positioning.
[0045] The visual perception unit is configured to assist in positioning and mapping, and includes a binocular camera and a microprocessor, which can collect an environment image in front of the mobile robot using the binocular camera, and perform boundary segmentation on the environment image using a preset image segmentation algorithm in the microprocessor, to determine data such as a boundary of the working area, a boundary type, and a distance between the mobile robot and the boundary of the working area. The image segmentation algorithm may be, for instance, a segmentation algorithm such as U-Net or SegNet. The distance between the mobile robot and the boundary is calculated based on the pixel coordinates of the boundary in the image and the parallax principle of the binocular camera. The boundary type includes an outer peripheral boundary of the working area or a boundary of an internal obstacle in the working area. The outer peripheral boundary of the working area may be a natural boundary between the lawn and the cement, a fence, a surrounding wall, and the like. The boundary of the internal obstacle may be an outer contour line of an object inside the lawn that obstructs the mobile robot, for instance, a bottom edge of a tree, a flower bed, or a rock. In other embodiments, a monocular camera may also be used instead of a binocular camera, which is not limited herein.
[0046] The positioning device includes a satellite positioning device and an inertial measurement unit (IMU) . The satellite positioning device may be an RTK satellite positioning device (for instance, a GPS / BeiDou) . The satellite positioning device may cooperate with the inertial measurement unit to realize the positioning of the mobile robot.
[0047] After the mobile robot enters an automatic mapping mode and before the mobile robot automatically follows the boundary of the working area in the preset direction, the mobile robot moves to the boundary of the working area that needs to be mapped, and the position where the mobile robot is located when reaching the boundary of the working area is set as the mapping starting point for mapping of the boundary of the working area. As an example, the mapping starting point may be, for instance, a base station position or any position on the boundary of the working area.
[0048] In an embodiment, the user may control the mobile robot to move to the boundary of the working area that needs to be mapped through the user terminal, and the position where the mobile robot is located when reaching the boundary of the working area is set as the mapping starting point for mapping the boundary of the working area. For instance, the user sends a remote control instruction to the mobile robot through the user terminal, and the mobile robot moves to the boundary of the working area in response to the remote control instruction of the user terminal.
[0049] In another embodiment, the mobile robot autonomously moves to the boundary of the working area, and a position where the mobile robot is located when reaching the boundary of the working area is set as a mapping starting point for mapping the boundary of the working area. In an embodiment, the mobile robot rotates in place, and identifies an orientation closest to the boundary of the working area by the visual perception unit; and the mobile robot automatically moves to the boundary of the working area along the identified orientation.
[0050] Step S2, the mobile robot identifies a boundary of the working area by a visual perception unit on the mobile robot to perform along-edge following control, determines distance data between the mobile robot and the boundary of the working area, and acquires pose data of the mobile robot by a positioning device on the mobile robot. The along-edge following control refers to: controlling, according to boundary data output by the visual perception unit, the mobile robot to maintain a moving state parallel to the boundary of the working area and at a preset distance. The pose data includes position coordinates and a heading angle.
[0051] The mobile robot identifying the boundary of the working area by the visual perception unit on the mobile robot, and determining the distance data between the mobile robot and the boundary of the working area includes: collecting an environment image in front of the mobile robot by a binocular camera of the visual perception unit, and obtaining visual data including the boundary of the working area; performing boundary segmentation on the environment image by a preset image segmentation algorithm in a microprocessor of the visual perception unit, to determine the boundary of the working area; performing boundary following control based on an along-edge following control algorithm of the mobile robot; and calculating real-time distance data between the mobile robot and the boundary of the working area based on a boundary segmentation result using a parallax principle of binocular vision, to provide an accurate parameter for subsequent coordinate data correction of the boundary of the working area.
[0052] The mobile robot identifying the boundary of the working area by the visual perception unit on the mobile robot, and determining distance data between the mobile robot and the boundary of the working area further includes: obtaining real-time pose data of the mobile robot by the positioning device on the mobile robot, and using the real-time pose data as reference data for subsequent calculation of coordinate data of the boundary of the working area.
[0053] The positioning device includes a satellite positioning device and an inertial measurement unit (IMU) , where the satellite positioning device may be an RTK satellite positioning device (for instance, a GPS / BeiDou) . The mobile robot may obtain pose data of the mobile robot in real time by the satellite positioning device and / or the inertial measurement unit.
[0054] In an embodiment, when a satellite positioning signal quality of the satellite positioning device is good, the satellite positioning signal may be directly used to determine the real-time position coordinates of the mobile robot; and when the satellite positioning signal quality of the satellite positioning device is degraded due to signal loss of lock caused by occlusion or multipath interference, the mobile robot switches to the inertial measurement unit to measure an acceleration and an angular velocity of the mobile robot, and calculates the real-time position coordinates by an inertial navigation algorithm.
[0055] In an embodiment, when the visual perception unit on the mobile robot is used to identify the boundary of the working area, the visual perception unit is also used to identify a type of the boundary of the working area to provide reference data for a subsequent processing flow. The type of the boundary of the working area includes an outer peripheral boundary of the working area or a boundary of an internal obstacle in the working area.
[0056] In an embodiment, performing boundary segmentation on the environment image by the preset image segmentation algorithm in the microprocessor of the visual perception unit includes: obtaining the boundary of the working area and a segmentation confidence. The segmentation confidence may be used as a basis for mapping mode switching.
[0057] When the segmentation confidence is less than a preset confidence threshold, the recognition performance of the preset image segmentation algorithm on the boundary of the working area is unsatisfactory (for instance, the boundary is blurred and the mis-segmentation ratio is too high) , and at this time, the mobile robot will feed back a mode switching instruction to the user terminal to prompt the user to control the mobile robot to exit the automatic mapping mode. When the segmentation confidence is greater than or equal to the preset confidence threshold, it indicates that the image segmentation result meets the boundary recognition accuracy requirement, and the mobile robot continues to perform the automatic mapping task.
[0058] In the process that the mobile robot automatically follows the boundary of the working area in the preset direction, when the user finds that the automatic mapping route is unsatisfactory or receives the mode switching instruction fed back by the mobile robot, the user terminal may send an exit instruction for the automatic mapping mode to the mobile robot. When the mobile robot receives the exit instruction for the automatic mapping mode sent by the user terminal, the mobile robot exits the automatic mapping mode and enters a manual mapping mode.
[0059] In step S3, the distance data between the mobile robot and the boundary of the working area and the pose data of the mobile robot are fused to obtain actual coordinate data of the boundary of the working area. In this step, the fusion method may be different according to the type of the boundary of the working area.
[0060] In the process of constructing the lawn map by the mobile robot, when the type of the boundary of the working area is the outer peripheral boundary of the working area, since the mobile robot needs to maintain a safe operation interval during the mapping operation, its movement trajectory is always located inside the outer peripheral boundary of the working area. In order to obtain accurate coordinate data of the outer peripheral boundary of the working area, spatial correction needs to be performed on the pose data collected by the mobile robot in real time. In an embodiment, by calling the distance data between the mobile robot and the outer peripheral boundary of the working area corresponding to the pose data at each sampling moment, the pose data of the mobile robot is outwardly offset along the normal direction of the boundary based on a geometric mapping algorithm, i.e., the boundary coordinate of the working area is calculated by extending the mobile robot's pose data outward along the boundary's normal direction by the distance data, thereby realizing accurate reconstruction of the coordinates of the outer peripheral boundary of the working area.
[0061] In the process of constructing the lawn map by the mobile robot, when the type of the boundary of the working area is the boundary of the internal obstacle, since the mobile robot needs to maintain a safe operation interval during the map construction operation, its motion trajectory is always located outside the boundary of the internal obstacle. In order to obtain accurate coordinate data of the boundary of the internal obstacle, spatial correction needs to be performed on the pose data collected by the mobile robot in real time. In an embodiment, by calling the distance data between the mobile robot and the boundary of the internal obstacle corresponding to the pose data at each sampling moment, the pose data of the mobile robot is inwardly offset along the normal direction of the boundary based on the geometric mapping algorithm, i.e., the boundary coordinate of the obstacle is calculated by retracting the mobile robot's pose data inward along the boundary's normal direction by the distance data, thereby realizing accurate reconstruction of the coordinates of the boundary of the internal obstacle.
[0062] Since the distance data between the mobile robot and the boundary of the working area is acquired in real time after the boundary of the working area is identified based on the visual perception unit, compared with using a fixed value throughout the process, dynamic deviations of the mobile robot due to factors such as slipping and shaking can be avoided, the accurate reconstruction of the coordinates of the boundary of the working area is improved, and the mapping accuracy is improved.
[0063] Step S4: generating a map of the boundary of the working area based on the actual coordinate data of the boundary of the working area. During the movement of the robotic mower, the map of the boundary of the working area may be continuously constructed based on the acquired actual coordinate data of the boundary of the working area. When the mobile robot automatically follows the boundary of the working area to travel one full circle in the preset direction, it indicates that the map construction of the mobile robot for the boundary of the current working area is completed.
[0064] In an embodiment, when the mobile robot automatically follows the boundary of the working area in the preset direction, that is, in the process of automatic mapping, if the user finds that the mapping route is not satisfactory, the user may send a reverse movement instruction through an operation interface of the user terminal. When receiving the reverse movement instruction sent by the user terminal, the mobile robot performs a reverse movement action, and removes the map data of the corresponding boundary section in the constructed map during the reverse movement action. After the removing is completed, the mobile robot may continue to maintain the automatic mapping mode, or enter the manual mapping mode after exiting the automatic mapping mode to complete the mapping. The switching between automatic mapping and manual mapping ensures the mapping accuracy.
[0065] Similarly, in the present disclosure, when the mobile robot is in the manual mapping mode, if the user finds that the mapping route is not satisfactory, a reverse movement instruction may be sent through the operation interface of the user terminal. When receiving the reverse movement instruction sent by the user terminal, the mobile robot performs a reverse movement action, and removes the map data of the corresponding boundary section in the constructed map during the reverse movement action. After the removing is completed, the mobile robot may continue to maintain the manual mapping mode or switch to the automatic mapping mode to complete the mapping. The switching between automatic mapping and manual mapping ensures the mapping accuracy.
[0066] When only the map construction of the outer peripheral boundary of the working area or the outer contour boundary of a single obstacle is performed, the map construction process of the robotic mower ends after step S4 is completed. However, an actual lawn environment usually includes a plurality of obstacles in the working area, and an outer peripheral boundary of the working area and an outer contour of each obstacle each defines an independent boundary of the working area. Therefore, the actual mapping task needs to sequentially perform the mapping process for each boundary, and finally fuse them to generate a complete map of the working area. According to the difference in the execution sequence of the boundary type of the working area (outer peripheral boundary of the working area or boundary of the internal obstacle) , the subsequent processing flow after step S4 is detailed in the flow logic shown in FIGS. 2 and 3. FIG. 2 shows a mapping process starting from an outer peripheral boundary of the working area, and FIG. 3 shows mapping process starting from a boundary of an internal obstacle.
[0067] Referring to FIG. 2, in an optional embodiment of the present disclosure, when the boundary of the working area is the outer peripheral boundary of the working area, the mapping method for the mobile robot further includes: S5a, the mobile robot moves to the inner side (the central direction of the working area) of the outer peripheral boundary of the working area, and identifies the boundary of the internal obstacle in the working area by the visual perception unit; S6a, when the boundary of the internal obstacle is identified, the identified boundary of the internal obstacle is used as a new boundary of the working area, and the mobile robot returns to the step of automatically following the boundary of the working area in the preset direction, that is, returning to step S1, to obtain actual coordinate data of the new boundary and generate a map of the new boundary.
[0068] After the boundary mapping of the outer peripheral boundary of the working area is completed, and there is still a boundary of an internal obstacle in the working area for which boundary mapping is not performed, it means that the whole mapping task has not ended. At this time, it is necessary to reuse the visual perception unit to re-identify the boundary of the internal obstacle in the entire working area, and use the identified boundary of the internal obstacle as a new boundary of the working area, and return to step S1 to re-execute the mapping process. This process is performed cyclically until all boundaries are mapped.
[0069] Referring to FIG. 3, in an embodiment, when the boundary of the working area is the boundary of the internal obstacle, the mapping method for the mobile robot further includes: S5b, moving the mobile robot to the outer side of the boundary of the internal obstacle, and identifying an outer peripheral boundary of the working area or a boundary of another internal obstacle by the visual perception unit; and S6b, when the outer peripheral boundary of the working area or the boundary of the another internal obstacle is identified, taking the identified outer peripheral boundary of the working area or the identified boundary of the another internal obstacle as a new boundary of the working area, and returning to the step of the mobile robot automatically following the boundary of the working area in the preset direction, that is, returning to step S1.
[0070] After the boundary mapping of the boundary of the internal obstacle is completed, and there is an outer peripheral boundary of the working area or boundaries of other internal obstacles in the whole working area where mapping is not performed, it means that the whole mapping task has not ended. At this time, the visual perception unit needs to be reused to re-identify the outer peripheral boundary of the working area or the boundary of another internal obstacle, and the identified outer peripheral boundary of the working area or the boundary of the another internal obstacle is used as a new working area boundary, and the process returns to step S1 to re-execute the mapping process. This process is performed cyclically until all boundaries are mapped.
[0071] In summary, according to the mapping method for a mobile robot and the mobile robot in the above embodiments, through the preset automatic mapping logic, the mobile robot can autonomously complete boundary following, path planning and map construction without the full user control, thereby improving the user experience. In addition, in the automatic mapping process, the mobile robot acquires the distance data between the mobile robot and the boundary of the working area in real time through the visual perception unit, and constructs the coordinates of the boundary of the working area in combination with the real-time pose data provided by the positioning device, which can reduce the dynamic deviation caused by the slipping and shaking of the mobile robot and improve the mapping accuracy.
[0072] In some embodiments, the mapping method described above may be performed in conjunction with a recharging method and a multi-sensor time synchronization method. When the mobile robot completes a mapping task or has insufficient power during mapping, the recharging method can be used to control the mobile robot to return to the charger station for recharging. Moreover, during the mapping process, the pose data of the mobile robot can be acquired by the multi-sensor time synchronization method and the dual-filter fusion positioning method, thereby ensuring high-precision and low-latency pose estimation. The combination of these methods improves the efficiency and accuracy of the mapping process, and they are linked by a common inventive concept directed to autonomous operation of a mobile robot.
[0073] There are some limitations in the existing guidance method for the outdoor mobile robot to return to the charging station for charging. The buried wire guide control has low precision and is susceptible to terrain interference; infrared sensors are significantly affected by outdoor lighting, weather and other environmental factors, and has insufficient reliability; although LiDARs have high precision, it is expensive and difficult to be popularized on a large scale. In addition, in some technologies, a complex docking structure for a base station is adopted or a magnetic strip is additionally laid to ensure accurate recharging of the mobile robot, however, the magnetic strip needs to be accurately arranged, the construction is cumbersome and costly, the accuracy during short-distance docking is difficult to meet, and the magnetic strip sensing relies on the mobile robot to accurately travel on the magnetic strip, which is limited in application scenarios.
[0074] In order to solve the existing problems of mobile robot recharging, an embodiment provides an efficient, accurate and cost-controllable mobile robot recharging solution. The recharging solution is based on visual recognition and robot control technology, that is, a specified code is set on the charger station, the code is visually detected, a pose of the charger station is solved, and the mobile robot is controlled to follow the pose to realize the visual recharging function. The code includes a QR code, a barcode, or an AprilTag, which is not limited thereto. The corresponding recognition device only needs to be capable of recognizing the code. The following embodiments will be described by taking the case where the code is a QR code and the corresponding recognition device is a QR code recognition module as an example.
[0075] In this embodiment, the mobile robot may be a robotic mower having an automatic travel function, or may be another movable operation device having a self-propelled drive module. The mobile robot is provided with a positioning device and a visual perception unit for positioning.
[0076] The visual perception unit is configured to assist in positioning and QR code recognition, and may use the visual perception unit to collect and identify QR code images on the charger station, generate a recharging path based on an identification result, and guide the mobile robot to return to the charger station. The visual perception unit may be a binocular camera or a monocular camera. The visual perception unit may also be the visual perception unit described in the foregoing embodiments.
[0077] The positioning device has been described in the foregoing embodiments, and details are not described herein again.
[0078] Referring to FIGS. 4 and 5, FIGS. 4 and 5 are respectively two implementations of a recharging method for a mobile robot, including steps S10 to S70.
[0079] In steps S10 and S20, a recharging instruction is received to control the mobile robot to move to a guide point.
[0080] As shown in FIG. 6, when the mobile robot 3 operates autonomously in the working area defined by the boundary 1 of the working area (including performing the mapping method of the foregoing embodiment) , in the case that the operation cannot be continued, such as insufficient power, completed operation, abnormal operation, and the like, a recharging instruction is generated to start the recharging process, and after receiving the recharging instruction, the mobile robot 3 can respond to the recharging instruction and control the mobile robot 3 to move to the position shown in FIG. 7, that is, the guide point position, based on the navigation signal. The navigation signal may include one or more of a satellite navigation signal, an inertial navigation signal, and a visual navigation signal.
[0081] Locations of the charger station 2 and a guide point are identified in advance in the map of the working area of the mobile robot 3, the guide point is usually disposed in the working area and located directly in front of the charger station 2, and a distance from the guide point to the charger station 2 is defined as a first preset distance.
[0082] The first preset distance should be moderate, and should not be too close or too far. If too close, the mobile robot 3 not have enough space to adjust the pose, and it is difficult to accurately align with the charger station 2; if too far, it will increase the length of the recharging path and the time cost, and may also lead to the accumulation of positioning errors. The first preset distance may generally be determined according to the size of the mobile robot 3, the accuracy and control performance of the visual perception unit. As an example, the first preset distance is set to any value between 1.0 m and 2.5 m, such as 1.0 m, 1.5 m, 2.0 m, and 2.5 m.
[0083] The guide point is located in front of the charger station 2, which has the following advantages. After the mobile robot 3 reaches the guide point, the mobile robot 3 can be aligned with the charging interface of the charger station 2 only by moving linearly or fine-tuning the angle, thereby reducing complex steering movement operations and improving the docking success rate. The direction of the path from the guide point to the charger station 2 of the mobile robot 3 is clear (straight line or substantially straight line) , and a planning algorithm from the guide point to the charger station 2 does not need to consider complex steering and angle changes, thereby further reducing the calculation complexity. When the mobile robot directly faces the charger station 2, the visual perception unit can acquire information of the charger station 2 at a preset viewing angle, wherein the preset viewing angle is a viewing angle that can clearly identify the charger station, so as to reduce recognition errors caused by viewing angle deviations and improve positioning accuracy.
[0084] By setting the guide point, the recharging process can be split into two stages, i.e., a stage in which the mobile robot 3 moves to the guide point and a stage in which the mobile robot 3 moves to the charger station 2 from the guide point. A relatively fast, flexible control strategy may be used during the stage of the mobile robot moving to the guide point to improve movement efficiency. In the stage of going from the guide point to the charger station 2, based on more accurate positioning information, the pose of the mobile robot is adjusted by adopting refined policies such as PID control, so that the mobile robot can reach the charger station 2 more smoothly and accurately to complete charging docking.
[0085] In step S30, a QR code arranged on the charger station 2 is identified by the visual perception unit on the mobile robot 3. A QR code may be disposed on the charger station 2, and the QR code is disposed at a position of the charger station 2 facing the guide point, so that the mobile robot 3 can quickly identify the QR code by itself, and the computational cost of subsequent pose estimation of the charger station 2 is reduced. In other embodiments, a plurality of QR codes may also be provided on the charger station 2, which is not limited herein.
[0086] In order to avoid affecting the identification of the QR code in a period of low ambient brightness, such as a night period, the charger station 2 may be provided with a photosensitive sensor and an illumination compensation module. The ambient brightness is detected by the photosensitive sensor, and when it is detected that the ambient brightness is lower than a threshold, the illumination compensation module is controlled to be turned on, to ensure that the mobile robot can still clearly identify the QR code in a low-light environment, so that the mobile robot can quickly return to the charger station and accurately dock.
[0087] As shown in FIG. 4, in an embodiment, identifying the QR code arranged on the charger station 2 by the visual perception unit on the mobile robot 3 may further include S311, S312 and S313.
[0088] S311: determining whether an absolute value of a difference between the heading angle and a forward angle of the mobile robot 3 is within a preset range;
[0089] S312: if yes, identifying the QR code arranged on the charger station 2 by the visual perception unit of the mobile robot 3;
[0090] S313: if not, controlling the mobile robot 3 to rotate in place, and returning to the step of determining whether the absolute value of the difference between the heading angle and the forward angle of the mobile robot 3 is within the preset range.
[0091] The heading angle is defined as an included angle between the traveling direction of the mobile robot 3 and the reference direction. The forward angle is defined as an angle of the mobile robot 3 relative to the reference direction when the mobile robot 3 is located at the guide point, that is, the angle of the mobile robot 3 relative to the reference direction when the charger station 2 is located in front of the mobile robot 3. The forward angle and the heading angle are defined based on the same reference direction. The reference direction may be a straight line direction from the guide point to the charger station of the base station. The preset range may be a single value of 0 or a small interval near 0, so as to ensure that when the mobile robot 3 is located at the guide point, the mobile robot 3 can directly face the charger station 2, which is convenient and accurate to identify the QR code on the charger station 2.
[0092] When the mobile robot 3 returns to the guide point, due to the navigation error, the actual position of the mobile robot 3 deviates from the guide point, and the moving direction of the mobile robot 3 does not directly face the charger station 2. In this case, the difference between the heading angle of the mobile robot 3 and the forward angle may be used to determine whether the traveling direction of the mobile robot 3 directly faces the charger station 2. When the absolute value of the difference is within the preset range, it indicates that the mobile robot 3 is basically directly in front of the charger station 2, and the visual perception unit can better identify the QR code image on the charger station 2 from a visual angle, thereby reducing the data processing complexity. On the contrary, if the absolute value of the difference is outside the preset range, it indicates that the mobile robot 3 is not directly in front of the charger station 2, and the QR code may not be identified or incompletely identified due to an inclination of a viewing angle, blocking, or the like. At this time, as shown in FIG. 8, the mobile robot 3 needs to be controlled to rotate in place, so that when the mobile robot 3 directly faces the charger station 2, the QR code on the charger station 2 is accurately identified through the visual perception unit.
[0093] As shown in FIG. 5, in an embodiment, identifying the QR code arranged on the charger station 2 by the visual perception unit of the mobile robot 3 includes S321, S322 and S323.
[0094] S321, identifying the QR code arranged on the charger station 2 by the visual perception unit of the mobile robot 3;
[0095] S322: determining whether the QR code is identified;
[0096] if yes, performing S40: generating a recharging path based on an identification result of the QR code;
[0097] S323: If not, the mobile robot 3 is controlled to rotate by a preset angle in place, and return to the step of recognizing the QR code by the visual perception unit of the mobile robot 3.
[0098] When the mobile robot 3 moves to the guide point, the heading angle of the mobile robot 3 does not always face the charger station 2, and due to the navigation error, there is a deviation between the actual position of the mobile robot 3 and the guide point, which will lead to the failure of the QR code recognition. Then the mobile robot 3 is controlled to rotate in place by the preset angle to re-identify the QR code on the charger station 2 until the QR code is successfully identified. The preset angle may be adjusted according to actual needs, as an example, the preset angle may be any value between 25° and 35°, such as 25°, 30°, 35°. The preset angle may be adjusted according to actual needs.
[0099] Step S40, generating a recharging path based on an identification result of the QR code.
[0100] In an embodiment, generating the recharging path based on the identification result of the QR code may further include step S41-S43.
[0101] Step S41, calculating a pose of the charger station 2 based on the identification result of the QR code. In an embodiment, the visual recognition unit on the mobile robot 3 can capture an image of QR code on the charger station 2, and based on the pixel coordinates of the QR code in the image, the physical size of the QR code, and the internal parameters of the camera, the pose of the QR code can be calculated by algorithms such as perspective transformation and PnP. Since the QR code is fixed on the charger station 2, a fixed conversion relationship exists between the pose of the QR code and the pose of the charger station 2, the pose of the charger station 2 can be obtained based on the QR code pose.
[0102] Step S42: performing pose calibration on the mobile robot 3 based on the pose of the charger station 2, to generate a pose calibration result, where the pose calibration result may include information such as a relative orientation and a distance between the mobile robot 3 and the charger station 2, and provide data for recharging path planning.
[0103] Step S43: generating a recharging path according to the pose calibration result. After the pose calibration result is obtained, a recharging path may be planned by a built-in path planning method based on information such as the relative orientation and the distance between the mobile robot 3 and the charger station 2.
[0104] As shown in FIG. 9, due to the heading angle and the navigation error, the mobile robot 3 usually does not absolutely face the charger station 2, but has a certain error, so that the actually planned recharging path is substantially a curve. To illustrate this, FIG. 9 enlarges this error for demonstration.
[0105] In step S50, controlling the mobile robot 3 to move towards the charger station 2 along the recharging path, and adjusting the pose of the mobile robot 3 by PID control during the movement until the mobile robot returns to the charger station 2.
[0106] As shown in FIG. 9, after the recharging path is obtained, the mobile robot 3 can be controlled to move towards the charger station 2 along the recharging path, and during the movement, the pose of the mobile robot 3 is adjusted by PID control, and meanwhile, the low-speed low-tolerance re-planning strategy and position closed-loop control with high-precision pose are adopted until the mobile robot 3 returns to the charger station 2. The low-speed low-tolerance re-planning strategy refers to that the mobile robot 3 maintains a low-speed traveling state during a process of returning to the charger station 2 from the guide point, which reduces the inertial influence and improves the control sensitivity; meanwhile, a low-tolerance threshold is set, and once it is detected that a deviation between the actual traveling path and the planned path exceeds the low-tolerance threshold, the optimal recharging path is regenerated immediately based on the current position and the pose of the charger station 2 to ensure that the mobile robot always moves along an efficient and safe trajectory.
[0107] In step S60, determining whether a charging signal is received after the mobile robot 3 returns to the charger station 2;
[0108] If yes, the recharging process ends;
[0109] If not, S70 is executed to control the mobile robot 3 to move backward, and return to the step of identifying the QR code arranged on the charger station 2 by the visual perception unit on the mobile robot 3.
[0110] By determining whether the charging signal is received, it can be determined whether the recharging and docking is successful. When the charging signal is received, it indicates that the recharging and docking is successful, and the recharging process can be completed. When the charging signal is not received, it indicates that the recharging and docking fails, at this time, the mobile robot 3 is controlled to move backward, the mobile robot 3 moves away from the charger station 2 by a certain distance, the process returns to S30, and the steps of S30-S70 are repeated until the recharging and docking is successful, and the charging signal is received. This method significantly improves the overall success rate of recharging and enhances the stability and reliability of the system.
[0111] In an embodiment, the step of controlling the mobile robot 3 to move backward and returning to the step of identifying the QR code arranged on the charger station 2 by the visual perception unit on the mobile robot 3 includes: controlling the mobile robot 3 to move backward by a second preset distance, the second preset distance being less than the first preset distance; and returning to the step of identifying the QR code arranged on the charger station 2 by the visual perception unit on the mobile robot 3.
[0112] The first preset distance may be determined according to the length of a charging board of the charger station 2, so as to ensure that the mobile robot 3 can exit the charger station 2, and ensure that the distance between the mobile robot 3 and the charger station 2 is as close as possible, thereby shortening the recharging time and improving the efficiency. As an example, the second preset distance is any value between 0.5 m and 0.8 m, such as 0.5 m, 0.6 m, 0.7 m, and 0.8 m.
[0113] In another embodiment, the step of controlling the mobile robot 3 to move backward, and returning to the step of identifying the QR code arranged on the charger station 2 by the visual perception unit on the mobile robot 3 includes: controlling the mobile robot 3 to move backward; identifying a front end of the charging board of the charger station 2 by the visual perception unit; and returning to the step of identifying the QR code arranged on the charger station 2 by the visual perception unit on the mobile robot 3 when the front end of the charging board of the charger station 2 is identified.
[0114] Based on the same concept, as shown in FIG. 10, an embodiment further provides a recharging device 11 for a mobile robot, and the recharging device 11 includes a recharging response module 111, a QR code recognition module 112, a path generation module 113, a recharging control module 114 and a docking judge module 115.
[0115] The recharging response module 111 is configured to control the mobile robot to move to a guide point in response to a recharging instruction, where the guide point is disposed directly in front of a charger station, and a distance from the guide point to the charger station is a first preset distance.
[0116] The QR code recognition module 112 is configured to identify a QR code arranged on the charger station through a visual perception unit on the mobile robot.
[0117] The path generation module 113 is configured to generate a recharging path based on an identification result of the QR code.
[0118] The recharging control module 114 is configured to control the mobile robot to move toward the charger station along the recharging path, and adjust a pose of the mobile robot by PID control during the movement until the mobile robot returns to the charger station.
[0119] The docking judge module 115 is configured to determine whether a charging signal is received: if yes, the recharging process ends; if not, the mobile robot is controlled to move backward, and return to the step of identifying the QR code arranged on the charger station by the visual perception unit on the mobile robot.
[0120] The recharging device 11 for the mobile robot provided by the above embodiments belongs to the same concept as the recharging method for the mobile robot provided by the above embodiments, wherein the specific manner of performing operations by each module and unit has been described in detail in the method embodiment, and will not be repeated here. In practical applications of the recharging device 11 provided in the above embodiments, the above functions may be allocated to different functional modules as required, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
[0121] In conclusion, according to the recharging method and apparatus for a mobile robot and the mobile robot provided in the present disclosure, the mobile robot is controlled to move to a guide point in response to a recharging instruction, where the guide point is disposed directly in front of a charger station, and a distance from the guide point to the charger station is a first preset distance; a QR code disposed on the charger station is identified by a visual perception unit on the mobile robot; a recharging path is generated based on an identification result of the QR code; and the mobile robot is controlled to move to the charger station along the recharging path, and a pose of the mobile robot is adjusted by PID control in the moving process until the mobile robot returns to the charger station. According to the method, a QR code is set on a charger station, a pre-positioned guide point is introduced, a pose of the charger station is solved in real time based on visual recognition on a key path from the guide point to the charger station, and a pose of the mobile robot is dynamically followed through PID control, thereby greatly improving an intelligent level and reliability of autonomous recharging of the mobile robot.
[0122] In the foregoing embodiment, the positioning device usually uses an RTK (Real-Time Kinematic) positioning technology and a Visual Inertial Odometry (VIO) positioning technology.
[0123] RTK positioning technology is a high-precision satellite positioning technology, which is widely used in scenarios requiring high-precision positioning, and mainly provides centimeter-level positioning information in real time through differential GPS (DGPS) or differential GNSS (DGNSS) technology. Although the RTK positioning technology has the advantages of high precision and fast positioning, it may have the following disadvantages.
[0124] First, the RTK positioning technology is limited by satellite conditions. RTK technology relies on satellite signals. When the spatial configuration of the satellite system is not optimal for an area, the area may not obtain good satellite coverage in a specific time period, resulting in difficulty in obtaining a fixed solution for RTK measurement. In medium and low latitude areas, a blind zone will appear twice a day, each lasting about 20-30 minutes. The satellite geometry structure strength in the blind area is low, and it is difficult to obtain a fixed solution for RTK measurement.
[0125] Second, the RTK positioning technology is affected by the ionosphere. During the day, the ionospheric interference is large, the number of available satellites is small, the RTK initialization time is easily prolonged or even cannot be initialized, and it is difficult to obtain a fixed solution for measurement.
[0126] Third, the RTK positioning technology is affected by the transmission distance of the data link station. Data link station signals are easily affected by the external environment during transmission, such as interference of tall mountains, buildings and various high-frequency signal sources, and are severely attenuated during transmission, which seriously affects the accuracy and operation radius of the external industry, and the actual operation effective radius of RTK is smaller than its nominal radius.
[0127] Fourth, the RTK positioning technology is affected by the environment of air-through vision. When operating in mountainous areas, forest areas, urban dense building areas, and the like, there are many opportunities for GPS satellite signals to be blocked, the signal strength is low, the satellite spatial structure is poor, lock loss is easily caused, re-initialization is difficult or even cannot be completed, which affects normal operations.
[0128] The VIO positioning technology is a technology that uses one or more cameras and one or more inertial measurement units (IMUs) to perform sensor state measurement. The VIO combines the IMU and the visual information, and utilizes the complementarity of the IMU and the visual information, the IMU is suitable for calculating a short-term fast motion, and the visual information is suitable for calculating a long-term slow motion. This combination can improve positioning accuracy and robustness, and can perform positioning under poor RTK signal conditions. VIO has several advantages, but may also have the following disadvantages.
[0129] First, the problem of accumulated error and drift. The VIO system may have accumulated errors and drift problems in long-running and large-scale scenarios, especially when there are not enough environmental features, the errors will gradually accumulate, resulting in a decrease in positioning accuracy.
[0130] Second, the calibration accuracy of the sensor is not high enough. Accurate parameter calibration is one of the key steps of multi-sensor fusion, and the VIO system needs to calibrate three parameters: an internal parameter of the IMU, an internal parameter of the camera, and an external parameter between the IMU and the camera, and these calibration processes are complex and require high accuracy.
[0131] Third, the timestamp synchronization accuracy is not high enough. Time synchronization of a chip in which a plurality of sensors such as an IMU and a camera are located is not accurate enough, and trigger occasions of the IMU and the VIO are inconsistent, resulting in an easy positioning failure.
[0132] This embodiment provides a multi-sensor time synchronization method, a positioning system, and an automatic working device, which can solve the technical problems of inaccurate and unreliable positioning.
[0133] Referring to FIG. 11, a multi-sensor time synchronization method includes S100 to S500.
[0134] In S100, generating a high frequency pulse.
[0135] In S100, the high frequency pulse may be generated by an independent clock source, or the second trigger pulse of any sensor (see S400 below) may be used as the high frequency pulse. A function of the high frequency pulse is to synchronously trigger data acquisition of each sensor, so that each sensor can collect data at the same time, to ensure synchronization of data collected by each sensor.
[0136] Referring to FIG. 12, in an embodiment, S100 includes S101 and S102.
[0137] S101: calculating a frequency of the high frequency pulse, where the frequency of the high frequency pulse is calculated based on a sampling frequency of each sensor.
[0138] In S101, a sampling frequency of a sensor having the highest sampling frequency among a plurality of sensors may be used as the frequency of the high frequency pulse, and the frequency of the high frequency pulse may also be higher than the sampling frequency of the sensor with the highest sampling frequency. In some embodiments, the sampling frequencies of the plurality of sensors are 20 Hz, 30 Hz, and 40 Hz, and the frequency of the high frequency pulse may be the highest sampling frequency, that is, 40 Hz, or may be calculated according to the least common multiple of the sampling frequencies, that is, 120 Hz.
[0139] S102: generating the high frequency pulse, where the high frequency pulse is generated by an independent clock source based on the frequency of the high frequency pulse. After the frequency of the high frequency pulse is calculated, an independent clock source may be used to generate the high frequency pulse with the specified frequency through this step.
[0140] In an embodiment of the present disclosure, S100 includes: generating the high frequency pulse, where the high frequency pulse is a second trigger pulse sent by the sensor having the highest sampling frequency. Different from the previous embodiment, in this embodiment, the high frequency pulse is generated by the sensor having the highest sampling frequency. Taking three sensor sampling frequencies in S101 as an example, it is equivalent to configuring the sensor with the sampling frequency of 40 Hz generate high frequency pulse. That is, the sensor having the sampling frequency of 40 Hz collects data at a fixed frequency, and generates a high frequency pulse each time data acquisition is completed.
[0141] S200: generating a plurality of first trigger pulses, where the first trigger pulses are generated based on high frequency pulse. With the high frequency pulse, a plurality of first trigger pulses may be generated based on the high frequency pulse to ensure that the first trigger pulses are generated at the same time.
[0142] Referring to FIG. 13, in an embodiment of the present disclosure, S200 includes S201 and S202.
[0143] S201: calculating a frequency division ratio of each sensor, where the frequency division ratio of each sensor is calculated based on a sampling frequency of the respective sensor and the frequency of the high frequency pulse. The frequency division ratio is a ratio of the frequency of the high frequency pulse to the sampling frequency of the respective sensor, and may be directly obtained through calculation.
[0144] Taking three sensors in the S101 as an example, their sampling frequencies are 20 Hz, 30 Hz, and 40 Hz, respectively. If the high frequency pulse is sent by the third sensor when data acquisition is completed, or the frequency of the sensor with the highest sampling frequency is used as the frequency of the high frequency pulse, the frequency of the high frequency pulse is 40 Hz, and in this case, the frequency division ratios of frequency dividers corresponding to the plurality of sensors are 2, 4 / 3, 1, respectively. If the high frequency pulse frequency is 120 Hz, the frequency division ratios of the frequency dividers corresponding to the plurality of sensors are respectively 6, 4 and 3, respectively.
[0145] S202: generating the plurality of first trigger pulses, where the first trigger pulses are generated based on the frequency division ratio of each sensor by a respective frequency divider. A main function of the frequency divider is to reduce a frequency of an input signal to a relatively low frequency, where the frequency divider may perform frequency reduction according to an integer multiple, or may perform frequency reduction according to a non-integer multiple, and a non-integer multiple frequency reduction design is relatively complex. When the frequency of the high frequency pulse is calculated by the least common multiple, the frequency division ratios of the frequency dividers are integers, which is simpler in design, but may also cause the frequency of the high frequency pulse to be relatively high, which may be selected according to an actual situation.
[0146] In S202, after the frequency division ratios of the frequency dividers are calculated, the high frequency pulse is input into the frequency dividers, each frequency divider generates one first trigger pulse, and a plurality of frequency dividers may generate a plurality of first trigger pulses. In an embodiment, when the frequency division ratio is 1, no frequency divider may be provided, and the high frequency pulse may be directly used as the first trigger pulse for the sensor; when the second trigger pulse of any sensor is used as the high frequency pulse, the first trigger pulse of the sensor may not be generated.
[0147] S300: triggering data acquisition of each sensor, where the data acquisition is triggered by the respective first trigger pulse. When each sensor receives its corresponding first trigger pulse, its respective data acquisition is triggered, thereby realizing the synchronization of each sensor.
[0148] S400, outputting a plurality of second trigger pulses, wherein the second trigger pulses are respectively output by each sensor when data acquisition is completed. When each sensor completes data acquisition, one second trigger pulse is sent, so that the plurality of second trigger pulses can be obtained.
[0149] S500: in response to detecting at least one first trigger pulse or at least one second trigger pulse, triggering a corresponding first interrupt processing function, to obtain a timestamp of data collected by each sensor.
[0150] Referring to FIG. 14, in an embodiment of the present disclosure, S500 includes S501 to S504.
[0151] S501, classifying the sensors into a first type sensor and a second type sensor based on data acquisition time of each sensor and a preset time threshold. A sensor whose data acquisition time is less than the preset time threshold is considered as the first type sensor, and a sensor whose data acquisition time is greater than or equal to the preset time threshold is considered as the second-type sensor. There are many kinds of sensors, and the data acquisition time of each sensor is not equal, therefore, in order to stamp the data collected by the sensors with a more accurate timestamp, the data acquisition time needs to be fully considered.
[0152] S502: in response to detecting a first trigger pulse of the first type sensor or a second trigger pulse of the first type sensor, triggering the corresponding first interrupt processing function, to obtain a timestamp of data collected by the first type sensor. Data acquisition time of the first type sensor is very short, and a time point at which data acquisition starts or a time point at which data acquisition is completed may be directly used as the data acquisition time of the sensor. In an embodiment, the positioning control module 103 may trigger the first interrupt processing function according to the first trigger pulse or the second trigger pulse, so as to obtain a current system time in the positioning control module 103, and use the current system time as the timestamp of data collected by the first type sensor.
[0153] S503: in response to detecting a first trigger pulse of the second type sensor and a second trigger pulse of the second type sensor, triggering the corresponding first interrupt processing function, to separately obtain a first timestamp and a second timestamp. In S503, since the data acquisition of the second type sensors is time-consuming, it is necessary to obtain the time point when the data acquisition starts and the time point when the data acquisition is completed. The two time points respectively correspond to the first trigger pulse and the second trigger pulse, and therefore, the corresponding first interrupt processing function may be triggered according to the two trigger pulses to obtain the first timestamp and the second timestamp.
[0154] S504: calculating a timestamp of data collected by the second type sensor, where the timestamp of the data collected by the second type sensor is calculated based on the first timestamp and the second timestamp. Generally, the timestamp of the data collected by the second-type sensor is between the first timestamp and the second timestamp, and an appropriate calculation manner is selected according to the type of the sensor. In some embodiments, a middle value of the first timestamp and the second timestamp may be directly used as the timestamp of the data collected by the second-type sensor.
[0155] The first interrupt processing function in S502 and S503 is a general term of interrupt processing functions that can respond to a trigger pulse of a sensor, and specific first interrupt processing functions triggered by different sensors are different.
[0156] Referring to FIG. 15, in an embodiment of the present disclosure, the multi-sensor time synchronization method further includes: S600, receiving a calibration pulse; and S700, calibrating a current system time of the positioning control module 103, where the current system time is calibrated based on the calibration pulse. In this embodiment, the calibration pulse may be generated by another module, or may be generated by the satellite positioning module 200. The calibration pulse is accurate, so that the current system time of the positioning control module 103 can be calibrated through the calibration pulse, thereby ensuring that the timestamp obtained by the positioning control module 103 when triggering the first interrupt processing function is more accurate.
[0157] In an embodiment of the present disclosure, S700 includes: calibrating a current system time of the positioning control module 103, where the current system time is calibrated based on the calibration pulse and a response delay time, and the response delay time is a delay time for the second interrupt processing function to process the calibration pulse. In an embodiment, when receiving the calibration pulse, the positioning control module 103 needs to calibrate the current system time through the second interrupt processing function. In order to ensure the accuracy of the calibration time, the response delay time of the second interrupt processing function needs to be compensated.
[0158] The timer accuracy of the positioning control module 103 itself is not enough, errors will occur during actual operation, the PPS pulse sent by the satellite positioning module 200 can be used as the calibration pulse, it is sent at each integer second, after receiving the PPS pulse, the current system time of the positioning control module 103 can be calibrated to the integer second by rounding off, for instance. Then, the current system time is corrected again with reference to the response delay time x of the second interrupt processing function. In an embodiment, x is 10 microseconds, and if the calibration pulse (PPS pulse) is received, regardless of whether the current system time is XX. 997356 seconds or XX. 007547 seconds, it is first calibrated to XX. 000000 seconds, and then 10 microseconds are added, and the calibrated current system time is XX. 000010 seconds.
[0159] Referring to FIG. 16, in an embodiment of the present disclosure, the response delay time of the second interrupt processing function is basically a fixed value, which can be calculated and then stored in the positioning control module 103, and can be directly called during subsequent calculation. When the second interrupt processing function is changed, its response delay time needs to be recalculated. The response delay time of the second interrupt processing function may be calculated through S710 to S730.
[0160] S710: generating a plurality of calibration pulses of different multiples, where the calibration pulses of different multiples are generated based on the calibration pulses and frequency multipliers. In some embodiments, the calibration pulse is a PPS pulse sent by the satellite positioning module 200 at an interval of 1 second, and pulse signals of 1 second, 2 seconds, 3 seconds, 4 seconds, and 5 seconds may be generated by connecting the frequency multipliers of different multiples in parallel.
[0161] S720: in response to detecting the calibration pulse of any multiple, triggering a second interrupt processing function, to obtain a current system time of the positioning control module 103 at the current multiple. Taking the above five pulse signals as an example, when the five pulse signals arrive, the second interrupt processing function is triggered, the current system time recorded respectively is a1 to a5, and the values obtained in this step are a1 to a5, respectively.
[0162] S730: calculating the response delay time, where the response delay time is calculated based on current system time of the positioning control module 103 at different multiples.
[0163] Referring to FIG. 17, in an embodiment of the present disclosure, S730 includes S731 and S732.
[0164] S731: constructing an overdetermined equation set, where the overdetermined equation set is constructed based on current system time of the positioning control module 103 at different multiples. Taking the above five pulse signals as an example, the response delay time of the second interrupt processing function is recorded as x, and a deviation between the system time and the real time of the positioning control module 103 per second is recorded as y, then the following overdetermined equation set can be listed:
[0165] S732: calculating the response delay time, where the response delay time is a least squares solution of the overdetermined equation set. If the number of equations of the overdetermined equation set is greater than the number of unknowns, there is no analytical solution, and the least squares solution can be calculated, so that the calculated response delay time of the second interrupt processing function is more accurate. Certainly, two equations may also be directly listed to solve a unique analytical solution.
[0166] The division of the steps of the above methods is only for the purpose of clear description, and during implementation, the steps may be combined into one step or some steps may be split and decomposed into multiple steps, as long as the same logical relationship is included, which are all within the protection scope of the present disclosure; adding inconsequential modifications to the algorithm or process or introducing inconsequential designs, but not changing the core design of the algorithm and process is within the protection scope of the patent.
[0167] Referring to FIG. 18, FIG. 18 is a positioning system provided by an embodiment of the present disclosure, including a data acquisition module 100, a satellite positioning module 200 and an algorithm module 300. The data acquisition module 100 includes a visual sensor 101, an inertial sensor 102, and a positioning control module 103. The inertial sensor 102 sends a second trigger pulse when data acquisition is completed. The second trigger pulse sent by the inertial sensor 102 passes through the frequency divider to generate the first trigger pulse, and the frequency division ratio of the frequency divider is calculated based on the sampling frequency of the inertial sensor 102 and the sampling frequency of the visual sensor 101. The first trigger pulse triggers data acquisition of the visual sensor 101. The visual sensor 101 sends a second trigger pulse when data acquisition is completed. The positioning control module 103 detects at least one first trigger pulse or second trigger pulse, and then triggers a corresponding first interrupt processing function to obtain timestamps of data collected by the visual sensor 101 and the inertial sensor 102. The satellite positioning module 200 obtains positioning data. The algorithm module 300 calculates pose information, and the pose information is calculated based on the data including the timestamp and the positioning data output by the data acquisition module 100.
[0168] In this embodiment, the visual sensor 101 and the inertial sensor 102 are integrated into an independent one-piece structure, the data acquisition module 100. On the one hand, this can make the pose offset between the visual sensor 101 and the inertial sensor 102 more stable, thereby solving the error problem of joint calibration of the visual sensor 101 and the inertial sensor 102. On the other hand, this can also isolate external radio frequency signal interference, making the data collected by the two sensors more accurate.
[0169] Compared with the conventional visual inertial odometry (VIO) , the data acquisition module 100 in the present disclosure is integrated, and meanwhile, the positioning control module 103 in the integrated data acquisition module 100 synchronizes the timestamps of the data acquired by the visual sensor 101 and the inertial sensor 102. The following uses the visual sensor 101 and the inertial sensor 102 as an example to describe in detail how the positioning control module 103 obtains the data including the timestamp according to the foregoing synchronization method. 1) Time initialization. When communicating with the satellite positioning module 200, the algorithm module 300 may obtain an initial time, and send the initial time to the positioning control module 103 through an USB interface. 2) The sampling frequency of the inertial sensor 102 is higher than the sampling frequency of the visual sensor 101, so the inertial sensor 102 samples data of an accelerometer and a gyroscope at a fixed frequency, and generates a high frequency pulse pulse_h to be injected into the frequency divider and positioning control module 103 at the same time after the data acquisition is completed. The frequency divider down-converts the high frequency pulse to generate a low frequency pulse pulse_l and injects the low frequency pulse pulse_l into the visual sensor 101 and the positioning control module 103. 3) When the visual sensor 101 receives the low frequency pulse pulse_l, a global exposure is triggered. After the exposure is completed, the trigger pulse pulse_rgb is injected into the positioning control module 103. 4) After receiving the high frequency pulse pulse_h, the positioning control module 103 triggers an interrupt processing function irq_handle_imu, first stores a current system time as a timestamp ts_imu, then reads an angular velocity and an acceleration of the inertial sensor 102 by the SPI protocol, then writes the timestamp ts_imu into an IMU frame (that is, data collected by the inertial sensor 102) , and finally transmits the IMU frame to the algorithm module 300 through the USB interface. 5) After receiving the low frequency pulse pulse_l, the positioning control module 103 triggers an interrupt processing function irq_handle_rgb_pre, and stores a current system time as the timestamp ts_1. After receiving the trigger pulse pulse_rgb, the positioning control module 103 triggers an interrupt processing function irq_handle_rgb to store a current system time as the timestamp ts_2. The average value of ts_1 and ts_2 can be considered as an exposure timestamp ts_rgb; then the image collected by the visual sensor 101 is read through an MIPI protocol, then the exposure timestamp ts_rgb is written into an RGB frame (i.e., the data collected by the visual sensor 101) , and finally the RGB frame is transmitted to the algorithm module 300 through the USB interface. 6) After receiving the IMU frame and the RGB frame, the algorithm module 300 performs a fusion positioning algorithm with reference to the longitude and latitude positions sent by the satellite positioning module 200 to generate the pose of the positioning system. In this step, the fusion positioning algorithm may directly use the existing algorithm in the prior art, or may use the fusion positioning method in the following embodiment. Compared with previously unsynchronized sensor data, after time synchronization processing, the pose generated by the fused positioning algorithm is more accurate.
[0170] In an embodiment of the present disclosure, when the foregoing steps are performed to calculate each timestamp, response delay times of the first interrupt processing functions irq_handle_imu, irq_handle_rgb_pre, and irq_handle_rgb may be respectively calculated, and a more accurate timestamp is calculated based on the response delay times.
[0171] In an embodiment of the present disclosure, the positioning system may be installed on an automatic working device, or may be installed on another device that needs to be positioned, such as a vehicle. The automatic working device may be, for instance, a robotic mower. The robotic mower equipped with the above positioning system, and after actually traveling for 200 meters, the deviation from the real pose (taking the converged RTK positioning as the true value) is less than 3 cm.
[0172] For an outdoor mobile robot (including the mobile robot in the foregoing embodiment) , limited by a size or cost of the mobile robot, a single-antenna RTK positioning system is usually selected, and therefore, a positioning program cannot directly obtain a yaw angle of a main body of the mobile robot, and one manner is to calculate the yaw angle by controlling the mobile robot to travel a special trajectory. However, due to reasons such as control accuracy and ground unevenness, the accuracy of calculated yaw angle may be insufficient, and the insufficient accuracy may lead to some other problems such as a decrease in overall positioning accuracy, an increase in planning and control difficulty, and a decrease in operation efficiency.
[0173] Referring to FIG. 19, this embodiment provides a multi-sensor fusion positioning method and system based on a dual filter, and a mobile robot, which can solve some other problems caused by insufficient accuracy of the calculated yaw angle, such as a decrease in overall positioning accuracy, an increase in planning and control difficulty, and a reduction in operation efficiency. A multi-sensor fusion positioning method based on dual filters includes steps S4100, S4200, S4300, S4400, S4500, and S4600.
[0174] S4100: calibrating an accelerometer bias (ba) , a gyroscope bias (bg) , and a gravity direction (g) by IMU data during a stationary period, and initializing a state vector of a main filter, where the state vector of the main filter includes at least one of a position (x, y, z) , an attitude (roll, pitch, yaw) , a velocity (Vx, Vy, Vz) , a sensor bias (ba, bg) , and a gravity vector (g) .
[0175] Referring to FIG. 19 and FIG. 20, step S4100 includes the following steps:
[0176] collecting data in a stationary stage of the mobile robot, for instance, keeping the mobile robot stationary for at least 10 seconds after the mobile robot is started, and continuously collecting raw data of the accelerometer and the gyroscope through the inertial measurement unit (IMU) ;
[0177] initializing the gravity g. A vector with a mean direction of the accelerometer in the stationary period and a modulus length of 9.81 (the value is determined according to a local gravity constant) is taken as a gravity vector g. Taking an accelerometer of 100 HZ as an example, a total of 1000 frames of accelerometer data is taken for 10 seconds. The mean value of the 1000 frames of data is calculated and recorded as mean_acc, the modular length of mean_acc is measured as mean_acc. norm () , and a calculation formula of gravity g is: g = -mean_acc / mean_acc. norm () *9.81
[0178] initializing the gyroscope bias bg. The gyroscope bias value bg is directly obtained by calculating an average value of the gyroscope outputs during the stationary period. Taking a gyroscope output frequency of 100 Hz as an example, 1000 frames of gyroscope data in total are collected at rest for 10 seconds, and the gyroscope bias value is an average value of the 1000 frames of data.
[0179] initializing the accelerometer bias ba. The accelerometer bias is an average value of the accelerometer data in the stationary period after gravity g is removed.
[0180] initializing the position (x, y, z) , and if the real-time dynamic differential positioning (RTK) module is available, its initial positioning result is directly used; otherwise, the position is initialized to (0, 0, 0) .
[0181] initializing the attitude (roll, pitch, yaw) , roll, pitch, yaw all initialized to zero.
[0182] initializing the velocity (Vx, Vy, Vz) : The initial velocity is set to (0, 0, 0) ; and
[0183] initializing the covariance matrix according to noise characteristics of the sensor. For instance, an accelerometer noise variance is set to 0.01 m / s2, and a gyroscope noise variance is set to 0.001 rad / s.
[0184] S4200, initializing a state vector of an auxiliary filter based on a current state vector of the main filter.
[0185] Referring to FIG. 19 and FIG. 20, the current state vector and the covariance matrix of the main filter are completely copied to the auxiliary filter to initialize the auxiliary filter. That is, the state vector of the auxiliary filter has the same structure as the state vector of the main filter, and the state vector of the auxiliary filter is initialized as the current state vector of the main filter, and then both are updated independently. When initialization of the auxiliary filter is completed, an auxiliary trajectory list needs to be cleared (that is, all historical data is deleted) , and a pose sequence subsequently generated by the auxiliary filter is ready to be stored.
[0186] S4300: fusing, by the main filter, IMU data, wheel speedometer data, and RTK data, updating the state vector of the main filter through an IMU integration, correcting the respective velocity and the position in the state vector of the main filter through the wheel speedometer and the RTK data, outputting a real-time six-dimensional pose and covariance matrix, and storing the real-time six-dimensional pose and covariance in a main trajectory list.
[0187] Referring to FIG. 19 and FIG. 20, in this embodiment, step S4300 includes S4301 to S4304.
[0188] S4301: performing zero-bias compensation on the IMU data when the IMU data is obtained, updating the attitude in the state vector of the main filter through angular velocity integration, updating the velocity and the position in the state vector of the main filter through acceleration integration, and updating a covariance matrix based on an IMU noise model. S4301 includes S43011 to S43015.
[0189] S43011: compensating zero bias: zero bias correction is performed on an original acceleration araw and an angular velocity ω raw. In an embodiment, a=araw-ba, ω=ωraw -bg.
[0190] S43012, updating the attitude angle of the mobile robot through time integration by the compensated angular velocity. For instance, if the current yaw angle is 30 degrees, the angular velocity is 0.1 radians per second, and the time interval is 0.01 seconds, then a new yaw angle is 30 degrees plus 0.1 radians per second multiplied by 0.01 seconds (converted to degrees) .
[0191] S43013, updating the velocity through time integration by the compensated acceleration and gravity vector. For instance, if the current velocity is (0.5 m / s, 0, 0) and the acceleration is (0.2 m / s2, 0, 0) , the new velocity is (0.5+0.2×0.01) meters per second.
[0192] S43014, obtaining a new position by further integration according to the updated velocity.
[0193] S43015: adjusting the covariance matrix based on the noise model of the IMU. For instance, the accelerometer noise standard deviation is set to 0.1 m / s2, and the gyroscope noise standard deviation is set to 0.01 rad / s.
[0194] In S4302, when the wheel speedometer data is obtained, a linear velocity of the wheel speedometer is taken as an observation value, velocity components in the state vector of the main filter are corrected by the Kalman gain, and the covariance matrix is updated. The wheel speedometer provides the linear velocity of the mobile robot in a direction of travel. For instance, if the wheel speedometer measured speed is 0.8 m / s, this value, 0.8 m / s, is used as an observation value for Kalman filtering to correct the velocity component of the main filter.
[0195] S4303: when the RTK data is obtained, use the RTK absolute position as an observation value, and update the position and the covariance matrix in the state vector of the main filter by a Kalman gain. When the RTK signal is valid, the centimeter-level positioning result provided by the RTK signal is used as an observation value, to directly correct the position state of the main filter.
[0196] S4304: outputting, at a preset frequency, the six-dimensional pose and covariance matrix that are updated based on the IMU data, the wheel speedometer data, and the RTK data, and storing the six-dimensional pose and covariance matrix in the main trajectory list. The main filter outputs the six-dimensional pose (x, y, z, roll, pitch, yaw) and the covariance matrix at a frequency of 100 Hz, and stores these data in the main trajectory list according to timestamps.
[0197] S4400, fusing, by the auxiliary filter, the IMU data and the wheel speedometer data, updating the state vector of the auxiliary filter through the IMU integration, correcting velocity components in the state vector of the auxiliary filter by fusing the linear velocity in the wheel speedometer data, outputting pose information, and storing the pose information in the auxiliary trajectory list.
[0198] Referring to FIG. 19 and FIG. 20, in this embodiment, step S4400 includes S4401 to S4404.
[0199] S4401: performing zero-bias compensation on the IMU data when the IMU data is obtained, updating the attitude in the state vector of the auxiliary filter through angular velocity integration, updating the velocity and the position in the state vector of the auxiliary filter through acceleration integration, and updating the covariance matrix based on an IMU noise model. In S4401, the state vector and the covariance matrix of the auxiliary filter are updated in the same manner as in steps S43011 to S43014.
[0200] In S4402, when the wheel speedometer data is obtained, the linear velocity of the wheel speedometer is used as an observation value, the velocity components in the state vector of the auxiliary filter are corrected by the Kalman gain, and the covariance matrix is updated.
[0201] S4403, outputting, at a preset frequency, the six-dimensional pose and covariance matrix updated according to the IMU data and the wheel speedometer data, and storing the six-dimensional pose and covariance matrix in the auxiliary trajectory list.
[0202] S4404: storing the pose sequence of the auxiliary filter as a discrete point cloud, where each frame of data includes a timestamp and covariance matrix.
[0203] S4401 to S4404 update the state vector and the covariance matrix of the auxiliary filter in substantially the same manner as steps S4301 to S4304, and output the pose and the covariance matrix of the auxiliary filter. The difference is that the auxiliary filter does not fuse RTK data, and only relies on the IMU integration and wheel speedometer linear velocity correction.
[0204] S4500, aligning trajectories of the main filter and the auxiliary filter through a point cloud matching algorithm, calculating a rotation error between the trajectories of the main filter and the auxiliary filter, and extracting a yaw angle error.
[0205] Referring to FIG. 19 and FIG. 20, in this embodiment, step S4500 includes S4501 to S4502.
[0206] S4501, matching the main and auxiliary trajectories by the point cloud matching algorithm. In an embodiment, the point cloud matching algorithm is used for matching to obtain the rotation of the main and auxiliary point clouds. The point cloud matching algorithm may be ICP or NDT. Taking ICP as an example, since each frame of point cloud has a timestamp, a matching relationship of the point cloud can be directly obtained according to the timestamp (the computing power consumption of the conventional ICP algorithm to iteratively find the closest point can be omitted) , and then a rotation matrix is calculated through singular value decomposition (SVD) .
[0207] S4502: extracting the yaw angle error from the rotation matrix. For instance, if the rotation matrix represents rotation about the Z axis by 1 degree, the yaw angle error is 1 degree.
[0208] S4600, correcting the yaw angle of the main filter by using the yaw angle error as an observation value, resetting the state vector of the auxiliary filter, clearing the main trajectory list and the auxiliary trajectory list, and re-initializing the auxiliary filter, that is, returning to S4200.
[0209] Referring to FIG. 19 and FIG. 20, in this embodiment, the extracted yaw angle error is used as an observation value, and the yaw of the main filter is updated by the Kalman gain. For instance, if the yaw angle error is 0.3 degrees and the Kalman gain is 0.8, the corrected yaw angle is the original yaw value plus 0.3×0.8 degrees.
[0210] In the embodiment, the method further includes: when the number of trajectory points in the auxiliary trajectory list reaches a preset threshold, aligning trajectories of the main filter and the auxiliary filter through the point cloud matching algorithm, calculating the rotation error between the trajectories of the main filter and the auxiliary filter, and extracting the yaw angle error.
[0211] In this embodiment, the step of correcting the yaw angle of the main filter by using the yaw angle error as the observation value, resetting the state vector of the auxiliary filter, clearing the main trajectory list and the auxiliary trajectory list, and returning to step S4200 further includes: when a moving distance reaches a predetermined distance threshold or a time interval reaches a predetermined time threshold, resetting the state vector of the auxiliary filter, and clearing the main trajectory list and the auxiliary trajectory list. For instance, when the moving distance of the mobile robot exceeds 10 meters, the main trajectory list and auxiliary trajectory list are cleared, and a state of the auxiliary filter is reset to a current stage of the main filter; if the moving distance does not reach the predetermined distance threshold, but the time interval exceeds 30 seconds, the reset is also triggered, the state of the auxiliary filter is reset to the current stage of the main filter.
[0212] In this embodiment, the method further includes: when the rotation error calculated by the point cloud matching algorithm exceeds a preset rotation threshold, determining that the matching fails, discarding the current data, and re-initializing the auxiliary filter.
[0213] FIG. 21 is a structural block diagram of a dual filter-based multi-sensor fusion positioning system according to an embodiment of the present disclosure. In this embodiment, a dual filter-based multi-sensor fusion positioning system is provided, and the dual filter-based multi-sensor fusion positioning system is in one-to-one correspondence with the dual filter-based multi-sensor fusion positioning method in the foregoing embodiment. In an embodiment, the dual filter-based multi-sensor fusion positioning system includes a sensor module 4010, a main filter module 4020, an auxiliary filter module 4030, an initialization module 4040, and a positioning processor 4050.
[0214] The sensor module 4010 includes an inertial measurement unit, a real-time dynamic differential positioning assembly and a wheel speedometer, and is configured to collect acceleration, angular velocity, absolute position and wheel velocity data of the mobile robot.
[0215] The main filter module 4020 is connected to the sensor module 4010, and is configured to: fuse IMU data, wheel speedometer data, and RTK data, update the state vector of the auxiliary filter through an IMU integration, correct the velocity and the position through the wheel speedometer and the RTK data, output a real-time six-dimensional pose and covariance, and store the real-time six-dimensional pose and covariance matrix in a main trajectory list.
[0216] The auxiliary filter module 4030 is connected to the sensor module 4010 and the main filter module 4020, and is configured to: fuse IMU data and wheel speedometer data, update a state vector of the auxiliary filter through the IMU integration, correct velocity components in the state vector of the auxiliary filter by fusing a linear velocity in the wheel speedometer data, output pose information, and store the pose information in an auxiliary trajectory list.
[0217] The initialization module 4040 is connected to the sensor module 4010, the main filter module 4020, and the auxiliary filter module 4030, and is configured to: calibrate an accelerometer bias (ba) , a gyroscope bias (bg) , and a gravity direction (g) by IMU data during a stationary period, and initialize a state vector of the main filter, where the state vector of the main filter includes a position (x, y, z) , a pose (roll, pitch, yaw) , a velocity (Vx, Vy, Vz) , a sensor bias (ba, bg) , and a gravity vector (g) ; and initialize the auxiliary filter based on a current state vector of the main filter.
[0218] The positioning processor 4050 is connected to the sensor module 4010, the main filter module 4020, the auxiliary filter module 4030 and the initialization module 4040. The positioning processor 4050 is configured to: align trajectories of the main filter and the auxiliary filter through a point cloud matching algorithm, calculate a rotation error between the trajectories of the main filter and the auxiliary filter, extract a yaw angle error; use the yaw angle error as an observation value to correct the yaw angle of the main filter, reset the state vector of the auxiliary filter, and clear the main trajectory list and the auxiliary trajectory list.
[0219] In an embodiment, a dual filter-based multi-sensor fusion positioning system is configured to perform the foregoing dual filter-based multi-sensor fusion positioning method, and details of the system are not described herein again. Each module in the multi-sensor fusion positioning system based on dual filters may be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in or independent of a processor in the computer device in a hardware form, or may be stored in a memory in the computer device in a software form, so that the processor invokes and performs operations corresponding to the foregoing modules.
[0220] In an embodiment, an outdoor mobile robot is further provided, and the outdoor mobile robot is the dual filter-based multi-sensor fusion positioning system described in the foregoing embodiments, and can implement the dual filter-based multi-sensor fusion positioning method described in the foregoing embodiments. For instance, the outdoor mobile robot is a device such as a robotic mower. When the robotic mower adopts the above-mentioned multi-sensor fusion positioning method based on dual filters, the threshold of the number of trajectory points can be adjusted according to the terrain of the lawn. In complex terrain, the number of auxiliary trajectory points that trigger matching may be increased from 50 to 100 to improve matching robustness. The noise parameter can be adjusted for different velocities. During high-speed driving, the observation noise of the wheel speedometer can be increased to reduce its weight for velocity correction.
[0221] The multi-sensor fusion positioning method and system based on the dual filter and the mobile robot in the foregoing embodiments can optimize yaw angle accuracy, and a conventional single-antenna RTK system cannot directly measure a yaw angle, and needs to rely on indirect calculation, and is susceptible to ground unevenness or a control error, resulting in a large yaw angle error (usually > 3°) . However, in the present disclosure, the short-term high-precision trajectory of the auxiliary filter is matched with the point cloud of the trajectory of the main filter, the yaw angle error (Δyaw) is calculated in real time, and is fed back to the main filter as an observation value to realize dynamic correction. Experiments show that the yaw angle error of the present disclosure can be controlled within ≤0.5°, which is 6 times smaller than that of the conventional method.
[0222] The multi-sensor fusion positioning method and system based on the dual filter and the mobile robot in the foregoing embodiments can enhance the global positioning accuracy, and the main filter fuses the absolute position (centimeter-level accuracy) of the RTK, the high-frequency attitude data of the IMU and the linear velocity observation of the wheel speedometer, so that the plane positioning accuracy reaches ≤ 5 cm and the vertical accuracy ≤ 10 cm, thereby meeting the requirements of the outdoor mobile robot for high-precision positioning.
[0223] The multi-sensor fusion positioning method and system based on dual filters and the mobile robot in the foregoing embodiments have a high anti-sensor noise capability, and through zero-bias compensation in a stationary stage, system errors of the accelerometer and the gyroscope are eliminated, and integral drift is reduced; linear velocity observation is provided through the wheel speedometer, absolute position correction is provided by RTK, high-frequency attitude update is provided by IMU, and the three cooperate to suppress the noise influence of a single sensor.
[0224] The multi-sensor fusion positioning method and system based on the dual filter and the mobile robot in the foregoing embodiments have high applicability and scalability, and can adapt to mobile robots with different sizes and motion characteristics, such as a small robotic mower and a large agricultural machine, by adjusting the threshold of the number of trajectory points and noise parameters.
[0225] To sum up, the foregoing embodiments provide the multi-sensor fusion positioning method and system based on dual filters, and the mobile robot, which can improve positioning accuracy, robustness, real-time performance, and cost-effectiveness through a dual-filter collaborative architecture, dynamic closed-loop error correction, and multi-sensor redundant fusion, and can be applied to outdoor mobile robot scenarios with high requirements on accuracy and reliability, such as agriculture, logistics, and inspection.
[0226] In an embodiment, the positioning device includes various sensors such as an IMU, a wheel speedometer, and an RTK module. In order to obtain high-precision pose data, this embodiment first ensures that the data collected by each sensor has a uniform time reference through the multi-sensor time synchronization method described in the previous embodiment. On this basis, in this embodiment, the synchronized sensor data is fused by the multi-sensor fusion positioning method based on the dual filter in the foregoing embodiment. The main filter fuses the IMU, wheel speedometer and RTK data to output a high-precision six-dimensional pose; the auxiliary filter fuses only the IMU and wheel speedometer data to output auxiliary pose information. The yaw angle error between the trajectories of the main filter and auxiliary filter is calculated by the point cloud matching algorithm, and the main filter is corrected by feedback, thereby suppressing the positioning drift when the RTK signal is lost or interfered.
[0227] Through the cooperation of time synchronization and fusion positioning, real-time pose data with high precision, low delay, and strong anti-interference ability can be provided for the mapping method, thereby improving the construction accuracy of the boundary map.
[0228] The scope of the present disclosure should be covered by the claims of the present disclosure.
Claims
1.A mapping method for a mobile robot, comprising:controlling, by a control unit of the mobile robot, the mobile robot to perform edge-following movement along a boundary of a working area;identifying, by a visual perception unit of the mobile robot during the edge-following movement, the boundary of the working area and distance data between the mobile robot and the boundary of the working area;acquiring pose data of the mobile robot by a positioning device of the mobile robot;fusing, by the control unit, the distance data and the pose data to generate coordinate data corresponding to the boundary of the working area; andgenerating, by the control unit, a map of the boundary of the working area based on the coordinate data.2.The mapping method according to claim 1, further comprising:controlling the mobile robot to move toward the boundary of the working area in response to a user input received from a user terminal; andsubsequently controlling the mobile robot to perform the edge-following movement along the boundary of the working area.3.The mapping method according to claim 1, further comprising:identifying, by the visual perception unit, a direction toward the boundary of the working area; andautomatically moving the mobile robot toward the boundary of the working area along the identified direction to perform the edge-following movement.4.The mapping method according to claim 1, wherein the step of identifying the boundary of the working area comprises:collecting an environment image by the visual perception unit; andperforming semantic segmentation on the environment image using a segmentation model to identify the boundary of the working area.5.The mapping method according to claim 4, wherein the step of performing semantic segmentation on the environment image comprises:determining a segmentation confidence associated with the boundary of the working area;transmitting a mode switching notification to a user terminal to prompt a user to switch the mobile robot from an automatic mapping mode to a manual mapping mode when the segmentation confidence is less than a preset confidence threshold; andcontinuing the automatic mapping mode when the segmentation confidence is greater than or equal to the preset confidence threshold.6.The mapping method according to claim 1, further comprising:in response to receiving a reverse movement instruction from a user terminal during the edge-following movement;controlling the mobile robot to perform a reverse movement action; andremoving, in real time, map data corresponding to a boundary section traversed during the reverse movement action.7.The mapping method according to claim 1, further comprising:in response to receiving an exit instruction for an automatic mapping mode from a user terminal; andcontrolling the mobile robot to exit the automatic mapping mode and enter a manual mapping mode.8.The mapping method according to claim 7, further comprising:while the mobile robot operates in the manual mapping mode, maintaining previously generated map sections.9.The mapping method according to claim 1, wherein the step of acquiring the pose data comprises:acquiring satellite positioning data and inertial measurement unit (IMU) data; andfusing the satellite positioning data and the IMU data through a filter algorithm to generate the pose data.10.The mapping method according to claim 1, further comprising:controlling the mobile robot to move to a guide point in response to a recharging instruction, the guide point being located at a predefined position relative to a charger station;identifying, by the visual perception unit, a code arranged on the charger station;generating a recharging path based on an identification result of the code;controlling the mobile robot to move toward the charger station along the recharging path; andadjusting a pose of the mobile robot during movement until the mobile robot reaches the charger station.11.The mapping method according to claim 1, wherein the step of acquiring the pose data comprises:generating a high-frequency pulse;generating a plurality of trigger pulses based on the high-frequency pulse;triggering data acquisition of a plurality of sensors using the trigger pulses;receiving completion pulses from the plurality of sensors after the data acquisition; anddetermining timestamps associated with sensor data based on the trigger pulses and the completion pulses,wherein the high-frequency pulse is generated by:(i) an independent clock source; or(ii) a second trigger pulse generated by a sensor having a highest sampling frequency among the plurality of sensors.12.The mapping method according to claim 11, wherein the high-frequency pulse is generated by an independent clock source.13.The mapping method according to claim 1, wherein the step of acquiring the pose data comprises:fusing IMU data, wheel speed data, and positioning data through a main filter;fusing the IMU data and the wheel speed data through an auxiliary filter;aligning trajectories generated by the main filter and the auxiliary filter;determining a yaw angle error based on the aligned trajectories; andcorrecting a yaw angle of the main filter using the yaw angle error.14.The mapping method according to claim 13, further comprising:controlling navigation of the mobile robot using the corrected yaw angle.15.A mobile robot, comprising:a control unit;a visual perception unit coupled to the control unit and configured to identify a boundary of a working area and determine distance data associated with the boundary; anda positioning device coupled to the control unit and configured to acquire pose data of the mobile robot,wherein the control unit is configured to:control the mobile robot to perform edge-following movement along the boundary of the working area;fuse the distance data and the pose data to generate coordinate data corresponding to the boundary of the working area; andgenerate a map of the boundary of the working area based on the coordinate data.16.The mobile robot according to claim 15, wherein the visual perception unit is configured to perform semantic segmentation on an environment image to identify the boundary of the working area.17.The mobile robot according to claim 15, wherein the control unit is configured to:determine a segmentation confidence associated with the boundary of the working area; andswitch the mobile robot from an automatic mapping mode to a manual mapping mode when the segmentation confidence is less than a preset confidence threshold.18.The mobile robot according to claim 15, wherein the control unit is configured to:control the mobile robot to move to a guide point located at a predefined position relative to a charger station;identify a code arranged on the charger station;generate a recharging path based on the identified code; andcontrol the mobile robot to move toward the charger station along the recharging path.19.The mobile robot according to claim 15, wherein the positioning device comprises a plurality of sensors configured to perform synchronized data acquisition based on trigger pulses generated from a high-frequency pulse.20.The mobile robot according to claim 15, wherein the control unit is configured to:fuse IMU data, wheel speed data, and positioning data through a main filter;fuse the IMU data and the wheel speed data through an auxiliary filter;determine a yaw angle error based on aligned trajectories of the main filter and the auxiliary filter; andcorrect a yaw angle of the main filter using the yaw angle error.
