Mobile robot and navigation method and apparatus therefor, and device, medium and product
By adding virtual barriers as plug-ins to map information, analyzing and planning navigation paths, the problems of high cost and low navigation efficiency of physical electronic fences are solved, and efficient and safe mobile robot navigation control is achieved.
Patent Information
- Application Number
- PCT/CN2023/142226
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2023-12-27
- Publication Date
- 2024-10-31
AI Technical Summary
In the existing technology, the cost of physical electronic fences is high and the navigation efficiency is low. The traditional cost map based on ROS has a large amount of calculations, which affects the CPU operating efficiency and makes it difficult to effectively regulate the walking path of mobile robots in dangerous areas.
Use plug-in form to add virtual barriers to map information. By obtaining target navigation points and map information, analyze the virtual barriers, determine the relationship between real-time location points and target navigation points, plan navigation paths, generate avoidance instructions, and realize navigation control of virtual barriers. Avoid danger areas.
It reduces costs, improves navigation efficiency, simplifies data processing, enhances security and stability, and avoids the complex implementation process of physical electronic fences.
Smart Images

Figure CN2023142226_31102024_PF_FP_ABST
Abstract
Description
Mobile robot and navigation method, device, equipment, medium and product thereof
[0001] Related applications
[0002] This application claims priority to Chinese patent application number 2023104609624, filed on April 25, 2023, entitled “Mobile robot and its navigation method, device, computer equipment and storage medium,” the entire text of which is hereby incorporated by reference. Technical Field
[0003] The present application relates to the field of intelligent navigation technology, and in particular to a mobile robot and its navigation method, device, computer equipment, storage medium and computer program product. Background Art
[0004] Multi-point navigation control for mobile robots can be achieved by publishing target points, allowing the mobile robot to autonomously navigate from point A to point B, then to point C, and finally to point D. Because some roads in actual use scenarios cannot be walked on arbitrarily, it is necessary to add electronic fences to regulate the specific walking paths of the mobile robot according to actual application scenarios.
[0005] Traditional electronic fences are physical, consisting of a host computer and a front-end detection fence. The host computer generates and receives high-voltage pulse signals and generates alarm signals when the front-end detection fence is in a contact, short-circuit, or open state, and sends them to the security alarm center. The front-end detection fence is a physical perimeter composed of rods and metal wires.
[0006] Summary of the Invention
[0007] The present application provides an efficient mobile robot navigation method, apparatus, mobile robot, computer equipment, computer-readable storage medium, and computer program product.
[0008] In a first aspect, the present application provides a mobile robot navigation method. The method comprises:
[0009] Get target navigation point and map information;
[0010] Parsing the map information to obtain a virtual barrier; adding the virtual barrier to the map information in a plug-in form;
[0011] If the target navigation point is within the virtual barrier, obtaining the real-time position of the movable robot; and
[0012] Path planning is performed based on the real-time location point and the target navigation point to obtain a navigation path.
[0013] In one embodiment, parsing the map information to obtain the virtual barrier includes:
[0014] Parsing the map information to obtain prohibited barrier layer information;
[0015] Based on the prohibited barrier layer information, obtaining coordinate value parameters of the virtual barrier; and
[0016] Calculation is performed according to the coordinate value parameters to obtain a virtual barrier.
[0017] In one embodiment, calculating according to the coordinate value parameters to obtain the virtual barrier includes:
[0018] Determine the number of coordinate points and coordinate value information according to the coordinate value parameters; and
[0019] When the number of the coordinate points is greater than two, a polygonal area is determined according to the coordinate value information, and the polygonal area is set as a virtual barrier.
[0020] In one embodiment, the method further comprises:
[0021] If the number of coordinate points is determined to be one according to the coordinate value parameters, determining a coordinate point according to the coordinate value information, and setting the coordinate point as a touch-prohibited coordinate point; and
[0022] If the number of coordinate points is determined to be two according to the coordinate value parameters, a prohibited touch line is determined according to the coordinate value information.
[0023] In one embodiment, after performing path planning based on the real-time location point and the target navigation point to obtain a navigation path, the method further includes:
[0024] generating and sending navigation instructions to a controller based on the navigation path;
[0025] Acquiring real-time position information of the movable robot during movement; and
[0026] If it is determined based on the real-time position information during the movement that the prohibited touch coordinate point, the prohibited touch line, and the boundary of the virtual barrier are identified during the navigation process, an avoidance instruction is generated and sent to the controller.
[0027] In one embodiment, after generating and sending the avoidance instruction to the controller, the method further includes:
[0028] If it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
[0029] In one embodiment, the method further comprises:
[0030] If the target navigation point is outside the virtual barrier, the target navigation point is ignored.
[0031] In a second aspect, the present application further provides a mobile robot navigation device. The device comprises:
[0032] Information acquisition module, used to obtain target navigation points and map information;
[0033] A parsing module, configured to parse the map information to obtain a virtual barrier; the virtual barrier is added to the map information in a plug-in form;
[0034] a position acquisition module, configured to acquire the real-time position of the movable robot if the target navigation point is within the virtual barrier; and
[0035] The planning module is used to perform path planning based on the real-time location point and the target navigation point to obtain a navigation path.
[0036] In a third aspect, the present application further provides a mobile robot comprising a mobile robot body and a controller, wherein the controller stores a computer program, and when the controller executes the computer program, the following steps are implemented:
[0037] Get target navigation point and map information;
[0038] Parsing the map information to obtain a virtual barrier; adding the virtual barrier to the map information in a plug-in form;
[0039] If the target navigation point is within the virtual barrier, obtaining the real-time position of the movable robot; and
[0040] Path planning is performed based on the real-time location point and the target navigation point to obtain a navigation path.
[0041] In a fourth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0042] Get target navigation point and map information;
[0043] Parsing the map information to obtain a virtual barrier; adding the virtual barrier to the map information in a plug-in form;
[0044] If the target navigation point is within the virtual barrier, obtaining the real-time position of the movable robot; and
[0045] Path planning is performed based on the real-time location point and the target navigation point to obtain a navigation path.
[0046] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:
[0047] Get target navigation point and map information;
[0048] Parsing the map information to obtain a virtual barrier; adding the virtual barrier to the map information in a plug-in form;
[0049] If the target navigation point is within the virtual barrier, obtaining the real-time position of the movable robot; and
[0050] Path planning is performed based on the real-time location point and the target navigation point to obtain a navigation path.
[0051] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:
[0052] Get target navigation point and map information;
[0053] Parsing the map information to obtain a virtual barrier; adding the virtual barrier to the map information in a plug-in form;
[0054] If the target navigation point is within the virtual barrier, obtaining the real-time position of the movable robot; and
[0055] Path planning is performed based on the real-time location point and the target navigation point to obtain a navigation path. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0057] FIG1 is a diagram illustrating an application environment of a mobile robot navigation method according to an embodiment;
[0058] FIG2 is a schematic flow chart of a mobile robot navigation method according to an embodiment;
[0059] FIG3 is a structural diagram of a mobile robot according to one embodiment;
[0060] FIG4 is a schematic flow chart of a mobile robot navigation method according to another embodiment;
[0061] FIG5 is a schematic diagram of a flow chart of a virtual barrier determination process according to one embodiment;
[0062] FIG6 is a schematic flow chart of a navigation process of a mobile robot in an application embodiment;
[0063] FIG7 is a block diagram of a mobile robotic device according to one embodiment;
[0064] FIG8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0066] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0067] Multi-point navigation control for mobile robots can be achieved by publishing target points, allowing the mobile robot to autonomously navigate from point A to point B, then to point C, and finally to point D. Because some roads in actual use scenarios cannot be walked on arbitrarily, electronic fences need to be added to regulate the specific walking paths of the mobile robot according to actual application scenarios.
[0068] A physical electronic fence consists of a main unit and a front-end detection fence. The main unit generates and receives high-voltage pulse signals and generates an alarm signal when the front-end detection fence is in a contact, short-circuit, or open state, which is then sent to a security alarm center. The front-end detection fence is a physical perimeter composed of poles and metal wires. Setting up an electronic fence allows mobile robots to avoid dangerous situations during navigation, but physical electronic fences are very expensive. Furthermore, the implementation of physical electronic fences is complex, resulting in low navigation efficiency.
[0069] Cost control can be achieved by setting up virtual barriers. The virtual barriers can judge the current driving behavior of the mobile robot by judging whether it has exceeded the limit, and implement warnings or alarms. However, if obstacles are drawn in areas on the map where robot movement is prohibited, objects will be added to the static layer of the map. Since the traditional cost map based on ROS (Robot Operating System) requires a large amount of computing power, it affects the operating efficiency of the CPU (Central Processing Unit). Based on this, the present application proposes a mobile robot navigation method that implements virtual barriers in a plug-in form.
[0070] The mobile robot navigation method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. In this case, user 102 interacts with mobile robot 104. User 102 publishes the target navigation point and map information on mobile robot 104. Mobile robot 104 obtains the target navigation point and map information, parses the map information, and obtains a virtual barrier; the virtual barrier is added to the map information in the form of a plug-in; if the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained; the path is planned based on the real-time position and the target navigation point to obtain a navigation path. In this case, the mobile robot can be a sweeping robot, an industrial robot, a medical robot, a tour guide robot, etc., which is not limited in this embodiment.
[0071] In one embodiment, as shown in FIG2 , a mobile robot navigation method is provided. The method is described by taking the mobile robot 104 in FIG1 as an example, and includes the following steps:
[0072] Step 200: Obtain target navigation point and map information.
[0073] As shown in Figure 3, the mobile robot 104 includes the ROS metasystem, the host scheduling system, and the slave control system (i.e., the mobile robot's controller). Map information includes a grid map and a cost map. The grid map is the static map layer. The robot's navigation target point is the coordinate point of the destination that the user wants the mobile robot to reach, i.e., the coordinate point of the mobile robot's movement destination on the grid map.
[0074] Specifically, the user enables navigation on the ROS metasystem and publishes navigation information, which includes map information, a path planner, a positioning algorithm, and target navigation points. The ROS metasystem sends this navigation information to the host computer scheduling system, which receives the target navigation points and map information.
[0075] Step 400: parse the map information to obtain a virtual barrier.
[0076] Virtual barriers are added to the map information as plug-ins. They are located in the costmap's forbidden barrier layer. This means the forbidden barrier layer is added to the costmap as a plug-in, eliminating the need to modify other static map layers. Virtual barriers are only detected when they are within the costmap's range. Virtual barriers can be manually deleted based on specific operational needs. This requires minimal computation, does not impact CPU efficiency, and reduces resource waste. The virtual barrier is easy to use and maintain, and can be a polygonal area. When a mobile robot is within the virtual barrier, the barrier restricts its range of movement, preventing it from leaving. Four edges can be set to enclose a virtual barrier, or the user can draw a polygonal area, creating a closed area as a virtual barrier.
[0077] Specifically, the host computer (host computer scheduling system) of the mobile robot parses the map information and extracts a virtual barrier corresponding to the virtual barrier type from the map information based on the type of the virtual barrier, wherein the type of the virtual barrier is the type of the layer where the virtual barrier is located.
[0078] Step 600: If the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained.
[0079] Specifically, after the mobile robot host computer obtains the target navigation point and map information, it can perform path planning. First, the mobile robot host computer determines the positional relationship between the target navigation point and the virtual barrier, that is, determines whether the target navigation point is within the virtual barrier. It is understood that "within the virtual barrier" means within the range defined by the virtual barrier. For example, when the virtual barrier is an area bounded by a polygon, the range defined by the virtual barrier can be the interior of the polygon, which corresponds to a no-exit type virtual barrier. The range defined by the virtual barrier can also be the area on the map outside the polygon (i.e., the area outside the polygon on the map), which corresponds to a no-entry type virtual barrier.
[0080] For example, if the horizontal coordinate of the target navigation point is greater than the minimum horizontal coordinate within the virtual barrier, and the horizontal coordinate of the target navigation point is less than the maximum horizontal coordinate within the virtual barrier, and at the same time the vertical coordinate of the target navigation point is greater than the minimum vertical coordinate within the virtual barrier, and the vertical coordinate of the target navigation point is less than the maximum vertical coordinate within the virtual barrier, then it is determined that the target navigation point is within the virtual barrier. At this time, the real-time position point of the movable robot is obtained through the laser sensor (lidar) of the movable robot, that is, the coordinate point of the current movable robot in the grid map.
[0081] In an optional embodiment, the method further includes: if the target navigation point is outside the virtual barrier, ignoring the target navigation point.
[0082] Specifically, if the horizontal coordinate of the target navigation point is less than or equal to the minimum horizontal coordinate within the virtual barrier, or the horizontal coordinate of the target navigation point is greater than or equal to the maximum horizontal coordinate within the virtual barrier, or the vertical coordinate of the target navigation point is less than or equal to the minimum vertical coordinate within the virtual barrier, or the vertical coordinate of the target navigation point is greater than or equal to the maximum vertical coordinate within the virtual barrier, then the target navigation point is determined to be outside the virtual barrier. At this time, the route is intercepted by the virtual barrier, so that no path planning is generated and the target navigation point is ignored, so that the movable robot avoids going to dangerous scenes, reflecting the high safety of applying virtual barriers, and then waits for the release of the next target navigation point.
[0083] Step 800: perform path planning based on the real-time location point and the target navigation point to obtain a navigation path.
[0084] Specifically, the mobile robot's host computer performs global and local path planning based on the real-time location and target navigation points. Using optimization methods, it obtains the optimal path between the real-time location and the target navigation point, obtains the navigation path, and sends this path to the controller (the lower-computer control system). The controller then performs autonomous navigation control based on the navigation path. The mobile robot's host computer also performs speed planning based on the navigation path. Based on the navigation path, it calculates the optimal speed along the path and performs motion control. If external factors (virtual barriers) are encountered during navigation, the current speed will be adjusted according to speed constraints.
[0085] In the mobile robot navigation method described above, a target navigation point and map information are acquired; the map information is parsed to obtain a virtual barrier; the virtual barrier is added to the map information as a plug-in; if the target navigation point is within the virtual barrier, the real-time location of the mobile robot is acquired; and a path is planned based on the real-time location and the target navigation point to obtain a navigation path. By adding the virtual barrier as a plug-in to the map information, a navigation path is generated during navigation based on the positional relationship between the virtual barrier and the target navigation point, achieving the effect of a physical electronic fence. This approach simplifies data processing and significantly improves navigation efficiency.
[0086] In an optional embodiment, as shown in FIG4 , parsing the map information to obtain the virtual barrier includes:
[0087] Step 420: parse the map information to obtain prohibited barrier layer information;
[0088] Step 440 , obtaining coordinate value parameters of the virtual barrier based on the prohibited barrier layer information;
[0089] Step 460 , performing calculations based on the coordinate value parameters to obtain a virtual barrier.
[0090] The layer type for the virtual barrier's location is a prohibited barrier layer, which stores the coordinates of the virtual barriers. Virtual barriers can also include points, lines, and other information. When a virtual barrier is a point or line, it indicates a prohibited barrier. For example, prohibited barriers include stop virtual barriers, road section virtual barriers, and intersection virtual barriers. Users can define different types of virtual barriers based on operational requirements, setting their size, area, and shape. They can also update virtual barriers (e.g., add or delete them) based on operational needs. This requires only adding virtual barrier information to the prohibited barrier layer, making implementation simple and cost-effective.
[0091] Specifically, the mobile robot's host computer (host computer scheduling system) parses the map information to obtain a costmap layer and a static map layer. Based on the type of the layer where the virtual barrier is located, it extracts the prohibited barrier layer information corresponding to the virtual barrier type from the costmap layer. The prohibited barrier layer information can be a prohibited barrier layer file. The coordinate parameters of the virtual barrier are then obtained from the prohibited barrier layer file. The coordinate parameters are then used to calculate the area corresponding to the virtual barrier. Furthermore, the mobile robot's host computer first saves the resolution of the prohibited barrier layer, then sets the initial boundary of the prohibited barrier layer to zero coordinates. The coordinate parameters are then obtained and used to determine the virtual barrier, generating the current virtual barrier area. The area corresponding to the virtual barrier is then set to untouchable. The shape and size of the virtual barrier are determined by the coordinate parameters. For example, the coordinate parameters of a virtual barrier are -[[-11.15, -15.614], [-12.35, -13.89], [-10.05, -12.218]].
[0092] In this embodiment, by setting virtual barrier coordinate parameters in the prohibited barrier layer and adding it to the costmap as a plug-in, the computational effort and resource consumption required by the local costmap during navigation can be reduced. This improves the mobile robot's navigational performance, enables rapid startup, and facilitates the addition, deletion, and modification of virtual barriers. Traditionally, adding and modifying static map layers increases the computational effort and resource consumption of the local costmap. Implementing this as a virtual plug-in not only saves time and effort, but also improves safety and stability.
[0093] In an optional embodiment, calculating according to the coordinate value parameters to obtain the virtual barrier includes:
[0094] According to the coordinate value parameters, determine the number of coordinate points and coordinate value information;
[0095] When the number of coordinate points is greater than two, a polygonal area is determined based on the coordinate value information, and the polygonal area is set as a virtual barrier.
[0096] The coordinate value parameter includes the number of coordinate points and the coordinate value information of each coordinate point corresponding to the number of coordinate points.
[0097] Specifically, the host computer of the mobile robot first calculates the number of coordinate points from the coordinate value parameters based on the coordinate value parameters and extracts the coordinate value information of each coordinate point. Then, the virtual barrier is determined based on the number of coordinate points. As shown in Figure 5, the type of parameter is the number of coordinate points. If the number of coordinate points is greater than two, the polygonal area enclosed by the coordinate points is determined based on each coordinate value information, and the polygonal area is set as a virtual barrier. Virtual barriers can also include no-go-out types and no-entry types. A no-go-out type virtual barrier indicates that the mobile robot cannot leave the virtual barrier, and a no-entry type virtual barrier indicates that the mobile robot cannot enter the polygonal area within the virtual barrier. This embodiment uses the example of a polygonal area virtual barrier of the no-go type to illustrate the navigation control of the mobile robot. When the polygonal virtual barrier is of other types, navigation can be performed according to specific operational requirements, which is not limited in this embodiment.
[0098] In an optional embodiment, the above method further includes:
[0099] If the number of coordinate points is determined to be one according to the coordinate value parameter, the coordinate point is determined according to the coordinate value information, and the coordinate point is set as a prohibited touch coordinate point;
[0100] If the number of coordinate points is determined to be two according to the coordinate value parameters, the prohibited touch line is determined according to the coordinate value information.
[0101] Specifically, if the mobile robot's host computer determines that there are fewer than two coordinate points, the virtual barrier formed by the coordinate points is designated as a no-touch type. Furthermore, if there is only one coordinate point, the single coordinate point in the coordinate value information is set as a no-touch coordinate point. If there are two coordinate points, the straight line on which the two coordinate points lie is determined and designated as a no-touch line. For example, the coordinate value parameters for the no-touch coordinate point can be -[17.09, -6.388], and the coordinate value parameters for the no-touch line can be -[[8.33, 2.11], [8.26, 5.11]].
[0102] In this embodiment, the corresponding prohibited touch type can be determined based on the number of coordinate points contained in the coordinate value parameters, and then a virtual barrier can be quickly generated. Such virtual barriers can be avoided during the navigation process, thereby improving the safety and efficiency of the mobile robot's navigation.
[0103] In an optional embodiment, after performing path planning based on the real-time location point and the target navigation point to obtain the navigation path, the method further includes:
[0104] Based on the navigation path, generate and send navigation instructions to the controller;
[0105] Obtaining real-time location information of the mobile robot during movement;
[0106] If, based on the real-time position information during movement, it is determined that prohibited touch coordinate points, prohibited touch lines, and boundaries of virtual barriers are identified during navigation, an avoidance instruction is generated and sent to the controller.
[0107] Specifically, after the mobile robot's host computer generates a navigation path, it generates navigation instructions based on the navigation path and sends these instructions to the mobile robot controller (the lower computer control system). After receiving the navigation instructions, the mobile robot controller converts them into corresponding control actions to perform operations. During the navigation process, the host computer controls the laser sensor (lidar) to obtain the mobile robot's real-time position information. Based on this real-time position information, the host computer determines whether the mobile robot has identified the no-touch coordinate points, no-touch lines, and the boundaries of the virtual barrier. If the distance to the no-touch coordinate points, no-touch lines, or the boundaries of the virtual barrier is less than a preset safety distance threshold, the host computer generates an avoidance instruction and sends it to the lower computer controller. The host computer can also perform local navigation planning or navigation path optimization based on the no-touch locations, thereby preventing the mobile robot from colliding with the virtual barrier and dangerous areas. In actual application, when the mobile robot approaches the boundary of the virtual barrier during navigation, the cost map automatically identifies it as a black boundary, and the mobile robot will not leave or collide with this boundary, just like a real barrier.
[0108] In an optional embodiment, after generating and sending the avoidance instruction to the controller, the method further includes:
[0109] If it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
[0110] Specifically, the mobile robot host computer can also determine whether the mobile robot has reached the target navigation point based on the real-time position information of the mobile robot and the target navigation point of this navigation. When it is determined that the distance between the real-time position information and the target navigation point is less than the preset error range, the mobile robot host computer generates a stop command and sends the stop command to the controller to make the robot stop navigating and wait for the release of the next target navigation point.
[0111] To facilitate understanding of the technical solution provided in the embodiment of the present application, as shown in FIG6 , the mobile robot navigation method provided in the embodiment of the present application is briefly described using a complete mobile robot navigation process:
[0112] (1) The user publishes the target navigation point in the mobile robot ROS system. Before publishing the target navigation point, the user can also upload the map information to the ROS system.
[0113] (2) The ROS system sends the map information and the target navigation point to the host computer scheduling system. The host computer scheduling system parses the map information, obtains the virtual barrier, and then determines whether the target navigation point is outside the virtual barrier.
[0114] (3) If the target navigation point is outside the virtual barrier, ignore the target navigation point and wait for the next target navigation point to be released.
[0115] (4) If the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained; path planning is performed based on the real-time position and the target navigation point to obtain a navigation path; based on the navigation path, navigation instructions are generated and sent to the controller.
[0116] (5) Acquire the real-time position information of the movable robot during the movement process; if it is determined that the prohibited touch coordinate points, prohibited touch lines and boundaries of the virtual barrier are identified during the navigation process based on the real-time position information during the movement process, generate and send an avoidance instruction to the controller.
[0117] (6) If the mobile robot is determined to have reached the target navigation point based on the real-time position information and the target navigation point, a stop command is generated and sent to the mobile robot controller, and the mobile robot stops operating and waits for the next target navigation point to be released.
[0118] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0119] Based on the same inventive concept, embodiments of the present application also provide a mobile robot navigation device for implementing the mobile robot navigation method described above. The solution to the problem provided by this device is similar to the solution described in the method described above. Therefore, the specific limitations of one or more mobile robot navigation device embodiments provided below can be found in the above-mentioned limitations of the mobile robot navigation method and will not be repeated here.
[0120] In one embodiment, as shown in FIG7 , a mobile robot navigation device is provided, including: an information acquisition module 702 , a parsing module 704 , a position acquisition module 706 , and a planning module 708 , wherein:
[0121] Information acquisition module 702, used to obtain target navigation points and map information;
[0122] The parsing module 704 is used to parse the map information to obtain virtual barriers; the virtual barriers are added to the map information in the form of plug-ins;
[0123] A position acquisition module 706 is configured to acquire the real-time position of the mobile robot if the target navigation point is within the virtual barrier;
[0124] The planning module 708 is used to perform path planning based on the real-time location point and the target navigation point to obtain a navigation path.
[0125] In one embodiment, the parsing module 704 is further configured to parse the map information to obtain prohibited barrier layer information; obtain coordinate value parameters of the virtual barrier based on the prohibited barrier layer information; and perform calculations based on the coordinate value parameters to obtain the virtual barrier.
[0126] In one embodiment, the parsing module 704 is further configured to determine the number of coordinate points and coordinate value information based on the coordinate value parameters; when the number of coordinate points is greater than two, determine a polygonal area based on the coordinate value information and set the polygonal area as a virtual barrier.
[0127] In one embodiment, the analysis module 704 is also used to determine the coordinate point according to the coordinate value information if the number of coordinate points is determined to be one according to the coordinate value parameters, and set the coordinate point as a prohibited touch coordinate point; if the number of coordinate points is determined to be two according to the coordinate value parameters, determine the prohibited touch line according to the coordinate value information.
[0128] In one embodiment, the planning module 708 is also used to generate and send navigation instructions to the controller based on the navigation path; obtain the real-time position information of the movable robot during the movement; if it is determined based on the real-time position information during the movement that prohibited touch coordinate points, prohibited touch lines and boundaries of the virtual barrier are identified during the navigation process, then generate and send avoidance instructions to the controller.
[0129] In one embodiment, the planning module 708 is further configured to generate and send a stop instruction to the mobile robot controller if it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point.
[0130] In one embodiment, the location acquisition module 706 is further configured to ignore the target navigation point if the target navigation point is outside the virtual barrier.
[0131] Each module in the mobile robot navigation device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0132] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in Figure 8. The computer device includes a processor, memory, a communication interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal via wired or wireless communication, and the wireless communication may be achieved via Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When the computer program is executed by the processor, a method for mobile robot navigation is implemented. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or may be buttons, a trackball, or a touchpad provided on the computer device housing, or may be an external keyboard, touchpad, or mouse.
[0133] Those skilled in the art will understand that the structure shown in FIG8 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In one embodiment, a mobile robot is provided, comprising a mobile robot body and a controller, wherein the controller stores a computer program, and when the controller executes the computer program, the following steps are implemented:
[0135] Get target navigation point and map information;
[0136] Analyze the map information to obtain virtual barriers; the virtual barriers are added to the map information in the form of plug-ins;
[0137] If the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained;
[0138] Path planning is performed based on the real-time location point and the target navigation point to obtain the navigation path.
[0139] In one embodiment, when the controller executes the computer program, the following steps are further implemented: parsing the map information to obtain prohibited barrier layer information; obtaining coordinate value parameters of the virtual barrier based on the prohibited barrier layer information; calculating the virtual barrier according to the coordinate value parameters.
[0140] In one embodiment, when the controller executes the computer program, it also implements the following steps: determining the number of coordinate points and coordinate value information based on the coordinate value parameters; when the number of coordinate points is greater than two, determining a polygonal area based on the coordinate value information, and setting the polygonal area as a virtual barrier.
[0141] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the number of coordinate points is determined to be one according to the coordinate value parameters, the coordinate point is determined according to the coordinate value information, and the coordinate point is set as a prohibited touch coordinate point; if the number of coordinate points is determined to be two according to the coordinate value parameters, the prohibited touch line is determined according to the coordinate value information.
[0142] In one embodiment, when the controller executes the computer program, it also implements the following steps: based on the navigation path, generating and sending navigation instructions to the controller; obtaining the real-time position information of the movable robot during the movement process; if it is determined based on the real-time position information during the movement process that prohibited touch coordinate points, prohibited touch lines and boundaries of the virtual barrier are identified during the navigation process, then generating and sending avoidance instructions to the controller.
[0143] In one embodiment, when the controller executes the computer program, the following steps are further implemented: if it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
[0144] In one embodiment, when the controller executes the computer program, the following steps are further implemented: if the target navigation point is outside the virtual barrier, ignoring the target navigation point.
[0145] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0146] Get target navigation point and map information;
[0147] Analyze the map information to obtain virtual barriers; the virtual barriers are added to the map information in the form of plug-ins;
[0148] If the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained;
[0149] Path planning is performed based on the real-time location point and the target navigation point to obtain the navigation path.
[0150] In one embodiment, when the processor executes the computer program, the following steps are further implemented: parsing the map information to obtain prohibited barrier layer information; obtaining coordinate value parameters of the virtual barrier based on the prohibited barrier layer information; calculating the virtual barrier according to the coordinate value parameters.
[0151] In one embodiment, when the processor executes the computer program, it further implements the following steps: determining the number of coordinate points and coordinate value information based on the coordinate value parameters; when the number of coordinate points is greater than two, determining a polygonal area based on the coordinate value information, and setting the polygonal area as a virtual barrier.
[0152] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the number of coordinate points is determined to be one according to the coordinate value parameters, the coordinate point is determined according to the coordinate value information, and the coordinate point is set as a prohibited touch coordinate point; if the number of coordinate points is determined to be two according to the coordinate value parameters, the prohibited touch line is determined according to the coordinate value information.
[0153] In one embodiment, when the processor executes the computer program, it also implements the following steps: based on the navigation path, generating and sending navigation instructions to the controller; obtaining the real-time position information of the movable robot during the movement process; if it is determined based on the real-time position information during the movement process that prohibited touch coordinate points, prohibited touch lines and boundaries of the virtual barrier are identified during the navigation process, then generating and sending avoidance instructions to the controller.
[0154] In one embodiment, when the processor executes the computer program, it further implements the following steps: if it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: if the target navigation point is outside the virtual barrier, ignoring the target navigation point.
[0156] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0157] Get target navigation point and map information;
[0158] Analyze the map information to obtain virtual barriers; the virtual barriers are added to the map information in the form of plug-ins;
[0159] If the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained;
[0160] Path planning is performed based on the real-time location point and the target navigation point to obtain the navigation path.
[0161] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: parsing the map information to obtain prohibited barrier layer information; obtaining coordinate value parameters of the virtual barrier based on the prohibited barrier layer information; calculating according to the coordinate value parameters to obtain the virtual barrier
[0162] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the number of coordinate points and coordinate value information based on the coordinate value parameters; when the number of coordinate points is greater than two, determining a polygonal area based on the coordinate value information, and setting the polygonal area as a virtual barrier.
[0163] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the number of coordinate points is determined to be one according to the coordinate value parameters, the coordinate point is determined according to the coordinate value information, and the coordinate point is set as a prohibited touch coordinate point; if the number of coordinate points is determined to be two according to the coordinate value parameters, the prohibited touch line is determined according to the coordinate value information.
[0164] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the navigation path, a navigation instruction is generated and sent to the controller; the real-time position information of the movable robot during the movement is obtained; if it is determined based on the real-time position information during the movement that prohibited touch coordinate points, prohibited touch lines and boundaries of the virtual barrier are identified during the navigation process, an avoidance instruction is generated and sent to the controller.
[0165] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
[0166] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the target navigation point is outside the virtual barrier, ignoring the target navigation point.
[0167] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0168] Get target navigation point and map information;
[0169] Analyze the map information to obtain virtual barriers; the virtual barriers are added to the map information in the form of plug-ins;
[0170] If the target navigation point is within the virtual barrier, the real-time position of the mobile robot is obtained;
[0171] Path planning is performed based on the real-time location point and the target navigation point to obtain the navigation path.
[0172] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: parsing the map information to obtain prohibited barrier layer information; obtaining coordinate value parameters of the virtual barrier based on the prohibited barrier layer information; calculating according to the coordinate value parameters to obtain the virtual barrier
[0173] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the number of coordinate points and coordinate value information based on the coordinate value parameters; when the number of coordinate points is greater than two, determining a polygonal area based on the coordinate value information, and setting the polygonal area as a virtual barrier.
[0174] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the number of coordinate points is determined to be one according to the coordinate value parameters, the coordinate point is determined according to the coordinate value information, and the coordinate point is set as a prohibited touch coordinate point; if the number of coordinate points is determined to be two according to the coordinate value parameters, the prohibited touch line is determined according to the coordinate value information.
[0175] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the navigation path, a navigation instruction is generated and sent to the controller; the real-time position information of the movable robot during the movement is obtained; if it is determined based on the real-time position information during the movement that prohibited touch coordinate points, prohibited touch lines and boundaries of the virtual barrier are identified during the navigation process, an avoidance instruction is generated and sent to the controller.
[0176] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if it is determined that the mobile robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
[0177] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the target navigation point is outside the virtual barrier, ignoring the target navigation point.
[0178] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0179] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0180] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A mobile robot navigation method, comprising: Get the target navigation point and map information; Parsing the map information to obtain a virtual barrier; The virtual barrier is added to the map information in a plug-in form; If the target navigation point is within the virtual barrier, the real-time position point of the movable robot is obtained; as well as Path planning is performed according to the real-time location point and the target navigation point to obtain a navigation path.
2. The method according to claim 1, wherein: The parsing of the map information to obtain the virtual barrier includes: Parsing the map information to obtain prohibited barrier layer information; Based on the prohibited barrier layer information, obtaining coordinate value parameters of the virtual barrier; and Calculation is performed according to the coordinate value parameters to obtain a virtual barrier.
3. The method according to claim 2, wherein: The calculating according to the coordinate value parameters to obtain the virtual barrier comprises: Determine the number of coordinate points and coordinate value information according to the coordinate value parameters; and When the number of the coordinate points is greater than two, a polygonal area is determined according to the coordinate value information, and the polygonal area is set as a virtual barrier.
4. The method according to claim 2, further comprising: If the number of coordinate points is determined to be one according to the coordinate value parameters, a coordinate point is determined according to the coordinate value information, and the coordinate point is set as a prohibited touch coordinate point; as well as If the number of coordinate points is determined to be two according to the coordinate value parameters, a prohibited touch line is determined according to the coordinate value information.
5. The method according to claim 4, wherein: After performing path planning according to the real-time location point and the target navigation point to obtain a navigation path, the method further includes: Based on the navigation path, generating and sending navigation instructions to a controller; Acquiring real-time position information of the movable robot during movement; and If it is determined according to the real-time position information during the movement that the prohibited touch coordinate point, the prohibited touch line and the boundary of the virtual barrier are identified during the navigation process, an avoidance instruction is generated and sent to the controller.
6. The method according to claim 5, wherein: After generating and sending the avoidance instruction to the controller, the method further includes: If it is determined that the movable robot has reached the target navigation point based on the real-time position information and the target navigation point, a stop instruction is generated and sent to the mobile robot controller.
7. The method according to claim 1, further comprising: If the target navigation point is outside the virtual barrier, the target navigation point is ignored.
8. A mobile robot navigation device, comprising: Information acquisition module, used to obtain target navigation points and map information; A parsing module, used for parsing the map information to obtain a virtual barrier; The virtual barrier is added to the map information in a plug-in form; A position acquisition module, used for acquiring the real-time position point of the movable robot if the target navigation point is within the virtual barrier; as well as The planning module is used to perform path planning according to the real-time location point and the target navigation point to obtain a navigation path.
9. A movable robot, comprising a movable robot body and a controller, wherein the controller uses the method according to any one of claims 1 to 7 to perform navigation control on the movable robot body.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
12. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Bus signal priority triggering determination method based on virtual electronic fence
CN107025793A
Offline initial construction and online scroll update method of UUV geofence
CN110231827A
Method for controlling an autonomous, mobile robot
CN110709790A
Path navigation method and device and computer readable storage medium
CN110793532A
Mobile robot and navigation method and device thereof, computer equipment and storage medium
CN116448095A
