Distributed multi-robot scheduling method and device
By using a distributed scheduling method in a multi-robot system, using restricted areas and status data packets to determine deadlocks and dynamically adjusting the scheduling status, the deadlock and network dependency problems of multi-robot scheduling in open places are solved, achieving high coverage and seamless operation. Interfering application scenarios.
Patent Information
- Application Number
- CN202210571456.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-05-24
AI Technical Summary
Existing multi-robot scheduling technology cannot effectively avoid deadlocks and collisions in open spaces, and centralized scheduling relies on wireless network quality and is complex to deploy; distributed scheduling cannot be applied to independent task scenarios of service robots.
Using a distributed multi-robot scheduling method, each robot loads a map of the restricted area, determines whether entry into the restricted area is allowed and whether a deadlock will occur by receiving status data packets from other robots, switches the scheduling state according to the preset priority information, and uses the LoRa module to broadcast Communication, dynamically adjust motion paths to avoid deadlocks.
It realizes efficient scheduling of independent task scenarios for multiple robots in open places, makes up for the application shortcomings of traditional distributed scheduling, reduces dependence on wireless network quality, and is suitable for interference-free work of robots of different types and sizes in the same scene. .
Smart Images

Figure CN114895641B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a distributed multi-robot scheduling technology. Background Art
[0002] When multiple robots work in the same scene, due to the homogeneity of algorithms, mutual interference between sensors, and blind spots in observation, it is often difficult for robots to flexibly and accurately avoid each other, and they are prone to collisions or waiting for each other (i.e. deadlock). At this time, the participation of the multi-machine scheduling system is needed to coordinate the movement behaviors of each robot.
[0003] Existing multi-robot scheduling technologies can be roughly divided into two categories:
[0004] 1. Centralized scheduling: deploy a central server, all robots are connected to the server, and the server plans the movement path of each robot. The advantage of centralized scheduling is that it can avoid deadlock and achieve optimal efficiency, but it also has the following disadvantages:
[0005] Not suitable for open places with a large number of dynamic obstacles: The current centralized dispatching system is mostly used in closed places such as factories and docks. The multi-machine collaborative path planning algorithm often relies on speed-based estimation. For open scenes such as restaurants, the presence of a large number of pedestrians causes robots to avoid obstacles and take detours at any time, which causes conflicts in the pre-completed centralized path planning in actual operation.
[0006] Highly dependent on wireless network quality: The centralized scheduling system has very high requirements for the communication delay and data packet loss rate between the robot and the server. Once the robot enters an area with unstable communication, it is easy to cause scheduling failure, leading to collision or deadlock.
[0007] Complex deployment: The wireless network at the customer site needs to be transformed and both the robot and the server need to be connected to the network. In addition to the additional deployment work, network security issues will also be involved.
[0008] 2. Distributed scheduling: The biggest advantage of distributed scheduling is that it does not rely on servers and is therefore not restricted by the operating environment. A common application scenario is cluster control, such as drone formation flight. In this scenario, all units form a whole to complete an expected action, but this is not applicable to the application scenario of service robots. Take restaurant delivery as an example, each robot has an independent task to perform, and their respective destinations, movement directions, and obstacle avoidance behaviors are independent of each other.
[0009] Therefore, a scheduling system that combines the advantages of the above two scheduling methods is needed to meet the application scenarios of intelligent mobile service robots. Summary of the invention
[0010] The purpose of this application is to provide a distributed multi-robot scheduling method and device.
[0011] According to one aspect of the present application, a distributed multi-robot scheduling method is provided, wherein each robot is loaded with the same map containing one or more restricted areas, and the method is configured in each robot, and the method includes:
[0012] When receiving a running instruction to the target point, a motion path is generated and based on the current position information, it is determined whether it is in a restricted area;
[0013] When the robot is not in a restricted area, the robot is judged based on the motion path and status data packets received from other robots whether the restricted area to be entered still allows the robot to enter and whether a deadlock will occur in subsequent movements after entering, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information; or when the robot is in a restricted area, the robot is judged based on the motion path and status data packets received from other robots whether a deadlock is caused by reaching the current restricted area, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information.
[0014] Furthermore, before receiving the status data packet sent by other robots, the method further includes:
[0015] Receive, by broadcasting, identity data packets of all robots within the communication range, wherein the identity data packets include robot identifiers and map identifiers;
[0016] Determine other robots located on the same map according to the robot identifier and the map identifier;
[0017] The receiving of status data packets sent by other robots comprises:
[0018] Receive status data packets of other robots located in the same map.
[0019] Preferably, the identity data packet also includes: a survival time and a data packet sequence number to avoid repeated reception.
[0020] Furthermore, a LoRa module is preset in the robot, wherein the broadcast includes: broadcast communication performed through the LoRa module.
[0021] Further, the status data packet includes a locked area that the robot is currently in or decides to enter, wherein the step of judging whether the robot is still allowed to enter the restricted area based on the movement path and receiving status data packets sent by other robots and judging whether a deadlock will occur in subsequent movements after entering the restricted area, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information includes:
[0022] Determining a path vector according to the motion path, wherein the path vector includes all restricted areas that have not been entered in the motion path;
[0023] updating a capacity vector according to the locked areas in the received plurality of status data packets, wherein the capacity vector includes the remaining capacity of each restricted area;
[0024] Determine whether the remaining capacity corresponding to the restricted area to be entered in the capacity vector is greater than or equal to 1, and if not, switch the scheduling state according to the preset priority information; or,
[0025] If so, it is determined whether deadlock will occur in subsequent movement after entering based on the capacity vector, the restricted area to be entered, and the received plurality of status data packets, so as to determine whether to switch the scheduling state or continue the movement based on the preset priority information.
[0026] Further, the state data packet includes a path vector corresponding to the robot, wherein judging whether a deadlock will occur in subsequent movement after entering according to the capacity vector, the restricted area to be entered, and a plurality of received state data packets, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information includes:
[0027] updating the capacity vector according to the restricted area to be entered, and marking the restricted area to be entered as a locked area;
[0028] Traversing each state data packet, if the path vector of the corresponding robot in the state data packet is less than or equal to the updated capacity vector, releasing the locked area corresponding to the robot and updating the capacity vector again;
[0029] If the locked areas corresponding to all robots can be released, the system is in a safe state and continues to move; or,
[0030] If the system is in a non-safe state, the scheduling state is changed according to the priority information.
[0031] Preferably, the converting the scheduling state according to the priority information comprises:
[0032] When the priority information is the lowest priority, the vehicle is converted to an avoidance state to avoid and wait at the avoidance point corresponding to the restricted area to be entered, wherein the avoidance and waiting includes determining whether the restricted area to be entered is unlocked according to a preset time interval, and continuing to move after unlocking;
[0033] When the priority information is the highest priority, the vehicle is switched to a motion waiting state and the restricted area to be entered is marked, so that deadlock detection is performed at a preset time interval and the vehicle continues to move after the deadlock is released;
[0034] When the priority information is a medium priority, it is converted to an avoidance queuing state, so as to enter the avoidance state after the robot with the lowest priority completes the avoidance.
[0035] Further, the status data packet includes the current restricted area of the corresponding robot, wherein the determining whether a deadlock is caused by reaching the current restricted area based on the movement path and receiving the status data packets sent by other robots, thereby determining to switch the scheduling state or continue the movement according to the preset priority information includes:
[0036] updating the capacity vector according to the current restricted area, and marking the current restricted area as a locked area;
[0037] Traverse each state data packet, if in the updated capacity vector, the capacity vector element value corresponding to the current restricted area of the robot corresponding to the state data packet is greater than or equal to 1, then release the locked area corresponding to the robot and update the capacity vector again;
[0038] If the locked areas corresponding to all robots can be released, there is no deadlock; or,
[0039] If there is a locked area corresponding to a certain robot that cannot be released, there is a deadlock, and the scheduling state is changed according to the preset priority information.
[0040] Furthermore, the status data packet also includes a restricted area that the corresponding robot is about to enter, wherein, after determining whether a deadlock is caused by reaching the current restricted area based on the motion path and receiving status data packets sent by other robots, the method further includes:
[0041] If the distance between the restricted area to be entered and the current restricted area is less than a preset distance threshold, updating the capacity vector according to the restricted area to be entered, and marking the restricted area to be entered as a locked area;
[0042] Traverse each state data packet, if in the updated capacity vector, the capacity vector element value corresponding to the restricted area that the robot is about to enter corresponding to the state data packet is greater than or equal to 1, then release the locked area corresponding to the robot and update the capacity vector again;
[0043] If the locked areas corresponding to all robots can be released, there is no deadlock; or,
[0044] If there is a locked area corresponding to a certain robot that cannot be released, there is a deadlock, and the scheduling state is changed according to the preset priority information.
[0045] According to another aspect of the present application, a computer-readable medium is provided, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the operations of the aforementioned method.
[0046] According to another aspect of the present application, a distributed multi-robot scheduling device is also provided, wherein the device comprises:
[0047] one or more processors; and
[0048] A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the above-described method.
[0049] Compared with the prior art, the present application generates a motion path and determines whether it is in a restricted area based on the current position information when receiving a running instruction to go to the target point; when it is not in a restricted area, it determines whether the robot is allowed to enter the restricted area to be entered and whether a deadlock will occur in the subsequent movement after entering based on the motion path and the status data packets received from other robots, thereby determining whether to convert the scheduling state or continue to move according to the preset priority information; or when it is in a restricted area, it determines whether a deadlock will be caused by reaching the restricted area to be entered based on the motion path and the status data packets received from other robots, thereby determining whether to convert the scheduling state or continue to move according to the preset priority information. In this way, it can be applied to scenarios where multiple robot tasks are relatively independent, thereby making up for the defect that traditional distributed scheduling can only be applied to cluster control with consistent tasks, and achieving high coverage of application scenarios. At the same time, the scheduling method of the present application is not affected by the specific task type or motion planning algorithm of the robot, and only dynamically determines whether it is deadlocked during movement. Therefore, robots of different types and sizes can be easily deployed in the same scene to perform their respective work without interfering with each other. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0051] Figure 1 A flow chart of a distributed multi-robot scheduling method according to one aspect of the present application is shown;
[0052] Figure 2 A flow chart of a distributed multi-robot scheduling method according to a preferred embodiment of the present application is shown.
[0053] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0054] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0055] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.
[0056] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0057] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0058] In multi-robot application scenarios, the entire application environment can be divided according to the task type, the activity area required for the task, and the area where conflict prevention is required. The entire application environment can be divided into several maps, each map can be divided into several restricted areas, and several avoidance points can be set according to the restricted areas. For example, the robot working on the production line has a different task type from the robot responsible for transporting finished products, and the activity area is also obviously different. The two tasks do not interfere with each other. Therefore, two maps can be drawn according to the required activity range of the robot, and the map number can be saved in the robot of the corresponding task. In this way, in the scheduling task, other robots that do not interfere with the scheduling task can be excluded by obtaining the robot map number, greatly reducing interference with the scheduling task.
[0059] It should be made clear here that even if they are in the same map, the tasks of each robot are relatively independent. Taking the restaurant robot as an example, all food delivery robots share a map, but their respective target points, moving directions, and obstacle avoidance behaviors are relatively independent. Compared with the traditional distributed scheduling methods, the scheduling tasks that can be handled by this application are significantly more advanced. The traditional distributed scheduling methods are often used, for example, in formation robot flight control, where all units form a whole and complete a unified cluster control of an expected action, but cannot be applied to multiple units with relatively independent tasks.
[0060] In a map, restricted areas are divided according to the possible movement trajectories of the robots in the map and the upper capacity limit of the restricted areas is set. For example, restricted areas need to be divided in scenes where movement trajectories frequently intersect, such as corridors, elevators, carriages, and various entrances and exits. In practical applications, a rectangular area can generally be drawn to define a restricted area. The data structure defining the restricted area includes but is not limited to an Oriented Rectangle (used to define a tiltable rectangle). The upper capacity limit of the restricted area is based on actual needs. For example, if a restricted area only allows one robot to pass through, it can be set as a single-row area, that is, the upper limit is 1; if a restricted area allows one robot to avoid and the other to pass through, the upper capacity limit can be set to 2; if the coverage of a restricted area is large, the upper capacity limit can also be increased accordingly.
[0061] At the same time, avoidance points should be set for each restricted area. When the restricted area reaches its capacity limit, the avoidance points serve as temporary resting places for robots that enter subsequently. One or more avoidance points can be set for a restricted area, and the specific number of avoidance points is also determined manually based on actual application requirements.
[0062] In order to further explain the technical means adopted by the present application and the effects achieved, the technical solution of the present application is clearly and completely described below in combination with the accompanying drawings and preferred embodiments.
[0063] Figure 1 A distributed multi-robot scheduling method provided in one aspect of the present application is shown, wherein each robot is loaded with the same map containing one or more restricted areas, and the method is configured in each robot, and the method includes:
[0064] S11, when receiving a running instruction to go to a target point, generates a moving path and determines whether it is in a restricted area based on the current position information;
[0065] S12: when the robot is not in the restricted area, judging whether the robot is still allowed to enter the restricted area based on the movement path and the received status data packets sent by other robots and judging whether a deadlock will occur in the subsequent movement after entering, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information; or
[0066] When in a restricted area, based on the movement path and the status data packets received from other robots, it is determined whether a deadlock is caused by reaching the current restricted area, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information.
[0067] In this embodiment, in step S11, when a running instruction to go to a target point is received, a motion path is generated and it is determined whether the vehicle is in a restricted area based on the current position information.
[0068] In this step, the host computer can issue tasks to the robot. When the robot receives the task, it generates a motion path according to the target point and operation instructions contained in the task and prepares to go to the target point. It should be clear that the host computer is only responsible for business-related logic in the content involved in this application, such as setting tasks for each robot according to the business and issuing tasks. The host computer has nothing to do with scheduling tasks. Therefore, it is obviously different from the central server that needs to perform path planning and centralized scheduling in centralized scheduling. At the same time, due to the use of distributed scheduling, the robot in the application scenario only needs to receive tasks, and then use the scheduling method described in this application for autonomous scheduling. There is no need for complex deployment in centralized scheduling, and the dependence on the quality of the wireless network is low. At the same time, the scheduling speed of distributed scheduling is faster, so it has greater application advantages for open places with a large number of dynamic obstacles.
[0069] In this embodiment, in step S12, when the robot is not in the restricted area, it is determined whether the robot is allowed to enter the restricted area and whether a deadlock will occur in subsequent movements after entering the restricted area based on the movement path and the received status data packets sent by other robots, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information; or
[0070] When in a restricted area, based on the movement path and the status data packets received from other robots, it is determined whether a deadlock is caused by reaching the current restricted area, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information.
[0071] Here, if the robot is not currently in a restricted area, it means that the robot is on the way to the next restricted area. In this case, it is necessary to first determine whether the restricted area to be entered has reached the upper limit of capacity. Obviously, when the restricted area to be entered does not allow the robot to enter, the robot cannot continue to move, and it is necessary to change the scheduling state according to the preset priority information; and when the restricted area to be entered allows the robot to enter, it is necessary to further determine whether the robot will cause a deadlock in the system in subsequent movements after entering. For example, the restricted areas to be passed by two robots are exactly the same but the movement directions are opposite. In this case, even if the restricted areas to be entered by the two robots are allowed to enter, they will still meet in subsequent movements and deadlock in a certain restricted area. Therefore, judgment is also required for this situation. Through the double judgment of the above method, the purpose of preventing deadlock can be more comprehensively achieved.
[0072] Here, it should be made clear that the priority information is determined according to the task characteristics of the robot. For example, the priority of a robot performing a task should be higher than the priority of a robot returning to the pile. In actual applications, all robots should be set up in accordance with unified rules to ensure the unity of the entire system.
[0073] When the robot is currently in a restricted area, it is necessary to determine whether a deadlock has occurred in the current system.
[0074] This application can be applied to scenarios where multiple robot tasks are relatively independent through this multi-level and multi-step scheduling strategy, thereby making up for the defect that traditional distributed scheduling can only be applied to cluster control with consistent tasks, and achieving high coverage of application scenarios. At the same time, the scheduling method of this application does not focus on the specific task type or motion planning algorithm of the robot, but only dynamically determines whether there is a deadlock during the movement. Therefore, robots of different types and sizes can be easily deployed in the same scene to perform their respective work without interfering with each other.
[0075] In another preferred embodiment, see Figure 2 As shown, Figure 2 Step S21 in Figure 1 Step S11 in the embodiment is the same or substantially the same, so it is not described here again, and is only included here by reference. Wherein, the step S22 includes: receiving identity data packets of all robots within the communication range by broadcasting, wherein the identity data packets include robot identification and map identification; the step S23 includes: determining other robots located in the same map according to the robot identification and map identification.
[0076] Furthermore, a LoRa module is preset in the robot, wherein the broadcast includes: broadcast communication performed through the LoRa module.
[0077] Here, inserting the Lora communication module into the robot enables routing through broadcast relays using each robot, thereby achieving zero-cost expansion of communication coverage. At the same time, no other equipment deployment is required, and the operation is simple.
[0078] Specifically, each robot using the scheduling method of the present application can broadcast an identity data packet with a robot identifier and a map identifier. Similarly, the robot receiving the identity data packet determines whether the robot corresponding to the identity data packet is located in the same map based on the map identifier. If it is in the same map, its own robot identifier is added and broadcast accordingly. For example, the identity data packet sent by the robot may also include two fields: the survival time and the data packet sequence number. If the survival time is greater than 0, it means that the robot receiving the data packet should reduce the survival time by 1 and then continue to broadcast it, thereby achieving the purpose of expanding the communication coverage. Since there is a situation where data packets are forwarded, a machine may receive the same data packet multiple times. At this time, it is necessary to distinguish them by sequence numbers to avoid repeated processing. In addition, the commands for receiving and sending identity data packets can be designed by yourself. In a feasible solution, the design can refer to the ping command of the network test.
[0079] In this way, the robot can continuously obtain the basic information of other robots to determine whether they are located in the same map as itself, and thus determine whether it is necessary to combine the robot's data for scheduling.
[0080] The step S24 includes: when not in the restricted area, judging whether the robot is still allowed to enter the restricted area to be entered and whether a deadlock will occur in subsequent movements after entering based on the movement path and status data packets received from other robots located on the same map, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information; or, when in the restricted area, judging whether a deadlock will be caused by reaching the restricted area to be entered based on the movement path and status data packets received from other robots located on the same map, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information.
[0081] Further, the status data packet includes a locked area that the robot is currently in or decides to enter, wherein the step of judging whether the robot is still allowed to enter the restricted area based on the movement path and receiving status data packets sent by other robots and judging whether a deadlock will occur in subsequent movements after entering the restricted area, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information includes:
[0082] Determining a path vector according to the motion path, wherein the path vector includes all restricted areas that have not been entered in the motion path;
[0083] updating a capacity vector according to the locked areas in the received plurality of status data packets, wherein the capacity vector includes the remaining capacity of each restricted area;
[0084] Determine whether the remaining capacity corresponding to the restricted area to be entered in the capacity vector is greater than or equal to 1, and if not, switch the scheduling state according to the preset priority information; or,
[0085] If so, it is determined whether deadlock will occur in subsequent movement after entering based on the capacity vector, the restricted area to be entered, and the received plurality of status data packets, so as to determine whether to switch the scheduling state or continue the movement based on the preset priority information.
[0086] Here, by receiving data from other robots in the same map, it is determined whether there is any margin in the restricted area to be entered. If there is no margin, there is no need to perform the next deadlock determination, and the scheduling state should be converted; if there is a margin, it is necessary to determine whether the next movement will cause the system to deadlock from a global perspective. This hierarchical and step-by-step judgment method improves the scheduling speed. At the same time, the deadlock judgment performed here is a safety assessment of the entire system, not just a feasibility judgment of a certain step of a certain robot's movement. Therefore, it is a comprehensive and global deadlock prevention for the entire system (i.e., the movement of all robots in the map).
[0087] Further, the state data packet includes a path vector corresponding to the robot, wherein judging whether a deadlock will occur in subsequent movement after entering according to the capacity vector, the restricted area to be entered, and a plurality of received state data packets, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information includes:
[0088] updating the capacity vector according to the restricted area to be entered, and marking the restricted area to be entered as a locked area;
[0089] Traversing each state data packet, if the path vector of the corresponding robot in the state data packet is less than or equal to the updated capacity vector, releasing the locked area corresponding to the robot and updating the capacity vector again;
[0090] If the locked areas corresponding to all robots can be released, the system is in a safe state and continues to move; or,
[0091] If the system is in a non-safe state, the scheduling state is changed according to the priority information.
[0092] Here, in this way, it is assumed that the robot is allowed to move to the restricted area to be entered, that is, the capacity vector element value corresponding to the restricted area to be entered is reduced by one (that is, the capacity vector is updated according to the restricted area to be entered), and then a loop is performed to determine whether all the restricted areas (that is, path vectors) that have not yet been reached in the movement paths of other robots in the map can also be allowed to enter (corresponding to the operation of releasing the locked area and updating the capacity vector). If all the restricted areas that have not been reached by all robots can be entered, it means that the action of the robot moving to the restricted area to be entered will not cause deadlock in subsequent movements, that is, the action of the robot moving to the restricted area to be entered is safe for the system, and therefore, the robot can continue to move.
[0093] This method realizes the security assessment of the entire system and also provides comprehensive and global deadlock prevention for the entire system.
[0094] Further, the status data packet includes the current restricted area of the corresponding robot, wherein the determination based on the movement path and the status data packets received from other robots whether a deadlock is caused by reaching the current restricted area, thereby determining whether to change the scheduling state or continue moving according to the preset priority information includes: updating the capacity vector according to the current restricted area, and marking the current restricted area as a locked area; traversing each status data packet, if in the updated capacity vector, the capacity vector element value corresponding to the current restricted area of the robot corresponding to the status data packet is greater than or equal to 1, then releasing the locked area corresponding to the robot and updating the capacity vector again; if the locked areas corresponding to all robots can be released, then there is no deadlock; or, if there is a locked area corresponding to a certain robot that cannot be released, then there is a deadlock, and the scheduling state is changed according to the preset priority information.
[0095] Here, when the robot is already in the restricted area, it is necessary to determine whether the current system has been deadlocked. In actual scenarios, the initial placement of the robot may be in the planned restricted area, or the restricted area where the robot moves after deadlock prevention is temporarily occupied by other robots. Therefore, only performing deadlock prevention on the way to the restricted area cannot completely prevent the occurrence of deadlock collisions. It is necessary to perform a comprehensive deadlock detection on the current system after entering the restricted area.
[0096] Furthermore, the status data packet also includes a restricted area that the corresponding robot is about to enter, wherein, after determining whether a deadlock is caused by reaching the current restricted area based on the motion path and receiving status data packets sent by other robots, it also includes: if the distance between the restricted area to be entered and the current restricted area is less than a preset distance threshold, updating the capacity vector according to the restricted area to be entered, and marking the restricted area to be entered as a locked area; traversing each status data packet, if in the updated capacity vector, the capacity vector element value corresponding to the restricted area that the robot corresponding to the status data packet is about to enter is greater than or equal to 1, releasing the locked area corresponding to the robot and updating the capacity vector again; if the locked areas corresponding to all robots can be released, there is no deadlock; or, if there is a locked area corresponding to a certain robot that cannot be released, there is a deadlock, and the scheduling state is converted according to the preset priority information.
[0097] Here, when the restricted area that the robot is about to enter is close to or adjacent to the current restricted area, the path required for the robot to travel from the current restricted area to the restricted area to be entered is shorter. Therefore, in this case, the current restricted area and the restricted area to be entered that is close in position can be regarded as an area block, and deadlock detection can be performed on the area block.
[0098] To achieve the above goal, a distance threshold can be preset. When the restricted area to be entered is close to the current restricted area, it can be assumed that the robot is allowed to move to the restricted area to be entered, that is, the capacity vector element value corresponding to the restricted area to be entered is reduced by one (that is, the capacity vector is updated according to the restricted area to be entered), and then the restricted areas to be entered by other robots in the map are cyclically determined to see whether they can also be entered (corresponding to the operation of releasing the locked area and updating the capacity vector). If the restricted areas to be entered by all robots are allowed to enter, it means that the action of the robot moving from the current restricted area to the restricted area to be entered at a closer distance will not cause other robots in the same map to deadlock in the next movement. This method realizes the combined detection of the current restricted area and the restricted area to be entered at a closer distance.
[0099] Further, converting the scheduling state according to the priority information includes:
[0100] When the priority information is the lowest priority, the vehicle is converted to an avoidance state to avoid and wait at the avoidance point corresponding to the restricted area to be entered, wherein the avoidance and waiting includes determining whether the restricted area to be entered is unlocked according to a preset time interval, and continuing to move after unlocking;
[0101] When the priority information is the highest priority, the vehicle is switched to a motion waiting state and the restricted area to be entered is marked, so that deadlock detection is performed at a preset time interval and the vehicle continues to move after the deadlock is released;
[0102] When the priority information is a medium priority, it is converted to an avoidance queuing state, so as to enter the avoidance state after the robot with the lowest priority completes the avoidance.
[0103] Here, the present application designs a scheduling state conversion mode, and the robot motion states involved in this conversion mode include: continue moving: the robot is heading towards the target point along the motion path; avoid: the robot is heading towards an avoidance point corresponding to an inaccessible restricted area; avoidance waiting: the robot successfully arrives at the avoidance point and is waiting; avoidance queuing: the robot decides to avoid, but there are machines with lower priority in the same area that are avoiding, so it waits in place; movement waiting: the robot decides to continue moving, but needs to stop and wait for other robots to complete the avoidance.
[0104] The robot switches between these scheduling states according to the scheduling method as described above, thereby realizing the scheduling of multiple robots.
[0105] Compared with the prior art, the present application generates a motion path and determines whether it is in a restricted area based on the current position information when receiving a running instruction to go to the target point; when it is not in a restricted area, it determines whether the robot is allowed to enter the restricted area to be entered and whether a deadlock will occur in the subsequent movement after entering based on the motion path and the status data packets received from other robots, thereby determining whether to convert the scheduling state or continue to move according to the preset priority information; or when it is in a restricted area, it determines whether a deadlock is caused by reaching the current restricted area based on the motion path and the status data packets received from other robots, thereby determining whether to convert the scheduling state or continue to move according to the preset priority information. In this way, it can be applied to scenarios where multiple robot tasks are relatively independent, thereby making up for the defect that traditional distributed scheduling can only be applied to cluster control with consistent tasks, and achieving high coverage of application scenarios. At the same time, the scheduling method of the present application does not focus on the specific task type or path planning algorithm of the robot, but only dynamically determines whether it is deadlocked during movement. Therefore, robots of different types and sizes can be easily deployed in the same scene to perform their respective work without interfering with each other.
[0106] In addition, an embodiment of the present application further provides a computer-readable medium on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the aforementioned method.
[0107] The embodiment of the present application also provides a distributed multi-robot scheduling device, wherein the device includes:
[0108] one or more processors; and
[0109] A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the aforementioned method.
[0110] For example, when the computer-readable instructions are executed, the one or more processors: upon receiving an operation instruction to go to a target point, generate a motion path and determine whether the current position information is in a restricted area;
[0111] When the robot is not in the restricted area, based on the movement path and the received status data packets sent by other robots, it is determined whether the robot is still allowed to enter the restricted area and whether a deadlock will occur in the subsequent movement after entering, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information; or
[0112] When in a restricted area, based on the movement path and the status data packets received from other robots, it is determined whether a deadlock is caused by reaching the current restricted area, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information.
[0113] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A distributed multi-robot scheduling method, wherein: Each robot is loaded with the same map containing one or more restricted areas, and the method is configured in each robot, and the method includes: When receiving a running instruction to the target point, a motion path is generated and based on the current position information, it is determined whether it is in a restricted area; When the robot is not in the restricted area, based on the movement path and the received status data packets sent by other robots, it is determined whether the robot is still allowed to enter the restricted area and whether a deadlock will occur in the subsequent movement after entering, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information; or When in a restricted area, based on the movement path and the status data packets received from other robots, it is determined whether a deadlock is caused by reaching the current restricted area, so as to determine whether to switch the scheduling state or continue the movement according to the preset priority information.
2. The method according to claim 1, wherein: Before receiving the status data packet sent by other robots, it also includes: Receive, by broadcasting, identity data packets of all robots within the communication range, wherein the identity data packets include robot identifiers and map identifiers; Determine other robots located on the same map according to the robot identifier and the map identifier; The receiving of status data packets sent by other robots comprises: Receive status data packets of other robots located in the same map.
3. The method according to claim 2, wherein: The identity data packet also includes: survival time and data packet sequence number to avoid repeated reception.
4. The method according to claim 2 or 3, wherein a LoRa module is preset in the robot, wherein: The broadcast includes: broadcast communication performed through a LoRa module.
5. The method according to any one of claims 2 to 4, wherein the status data packet includes a locked area that the robot to which it belongs is currently in or decides to enter, wherein: The determining whether the robot is still allowed to enter the restricted area to be entered based on the movement path and the status data packets received from other robots and whether a deadlock will occur in subsequent movements after entering, thereby determining to switch the scheduling state or continue the movement according to the preset priority information includes: Determining a path vector according to the motion path, wherein the path vector includes all restricted areas that have not been entered in the motion path; updating a capacity vector according to the locked areas in the received plurality of status data packets, wherein the capacity vector includes the remaining capacity of each restricted area; Determine whether the remaining capacity corresponding to the restricted area to be entered in the capacity vector is greater than or equal to 1, and if not, switch the scheduling state according to the preset priority information; or, If so, it is determined whether deadlock will occur in subsequent movement after entering based on the capacity vector, the restricted area to be entered, and the received plurality of status data packets, so as to determine whether to switch the scheduling state or continue the movement based on the preset priority information.
6. The method according to claim 5, wherein the state data packet includes a path vector corresponding to the robot, wherein: The determining whether a deadlock will occur in subsequent movement after entering the restricted area according to the capacity vector, the restricted area to be entered, and the received plurality of status data packets, thereby determining whether to switch the scheduling state or continue the movement according to the preset priority information includes: updating the capacity vector according to the restricted area to be entered, and marking the restricted area to be entered as a locked area; Traversing each state data packet, if the path vector of the corresponding robot in the state data packet is less than or equal to the updated capacity vector, releasing the locked area corresponding to the robot and updating the capacity vector again; If the locked areas corresponding to all robots can be released, the system is in a safe state and continues to move; or, If the system is in a non-safe state, the scheduling state is changed according to the priority information.
7. The method according to claim 6, wherein: The switching of the scheduling state according to the priority information comprises: When the priority information is the lowest priority, the vehicle is converted to an avoidance state to avoid and wait at the avoidance point corresponding to the restricted area to be entered, wherein the avoidance and waiting includes determining whether the restricted area to be entered is unlocked according to a preset time interval, and continuing to move after unlocking; When the priority information is the highest priority, the vehicle is switched to a motion waiting state and the restricted area to be entered is marked, so that deadlock detection is performed at a preset time interval and the vehicle continues to move after the deadlock is released; When the priority information is a medium priority, it is converted to an avoidance queuing state, so as to enter the avoidance state after the robot with the lowest priority completes the avoidance.
8. The method according to claim 7, wherein the status data packet includes the current restricted area of the corresponding robot, wherein: The determining whether a deadlock is caused by reaching the current restricted area based on the movement path and receiving status data packets sent by other robots, thereby determining to switch the scheduling state or continue the movement according to the preset priority information includes: updating the capacity vector according to the current restricted area, and marking the current restricted area as a locked area; Traverse each state data packet, if in the updated capacity vector, the capacity vector element value corresponding to the current restricted area of the robot corresponding to the state data packet is greater than or equal to 1, then release the locked area corresponding to the robot and update the capacity vector again; If the locked areas corresponding to all robots can be released, there is no deadlock; or, If there is a locked area corresponding to a certain robot that cannot be released, there is a deadlock, and the scheduling state is changed according to the preset priority information.
9. The method according to claim 8, wherein the status data packet further includes a restricted area that the corresponding robot is about to enter, wherein: After determining whether a deadlock is caused by reaching the current restricted area based on the motion path and receiving status data packets sent by other robots, the method further includes: If the distance between the restricted area to be entered and the current restricted area is less than a preset distance threshold, updating the capacity vector according to the restricted area to be entered, and marking the restricted area to be entered as a locked area; Traverse each state data packet, if in the updated capacity vector, the capacity vector element value corresponding to the restricted area that the robot is about to enter corresponding to the state data packet is greater than or equal to 1, then release the locked area corresponding to the robot and update the capacity vector again; If the locked areas corresponding to all robots can be released, there is no deadlock; or, If there is a locked area corresponding to a certain robot that cannot be released, there is a deadlock, and the scheduling state is changed according to the preset priority information.
10. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1 to 9.
11. A distributed multi-robot scheduling device, wherein: The equipment includes: one or more processors; and A memory storing computer readable instructions which, when executed, cause the processor to perform the operations of the method as claimed in any one of claims 1 to 9.
