TWI701622B - Method and device for robot field return - Google Patents

Method and device for robot field return Download PDF

Info

Publication number
TWI701622B
TWI701622B TW107125336A TW107125336A TWI701622B TW I701622 B TWI701622 B TW I701622B TW 107125336 A TW107125336 A TW 107125336A TW 107125336 A TW107125336 A TW 107125336A TW I701622 B TWI701622 B TW I701622B
Authority
TW
Taiwan
Prior art keywords
robot
coordinates
current
aforementioned
area
Prior art date
Application number
TW107125336A
Other languages
Chinese (zh)
Other versions
TW202008239A (en
Inventor
朱建強
徐玨晶
Original Assignee
大陸商浙江立鏢機器人有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商浙江立鏢機器人有限公司 filed Critical 大陸商浙江立鏢機器人有限公司
Priority to TW107125336A priority Critical patent/TWI701622B/en
Publication of TW202008239A publication Critical patent/TW202008239A/en
Application granted granted Critical
Publication of TWI701622B publication Critical patent/TWI701622B/en

Links

Images

Abstract

一種用於機器人(1,2)場地回流的方法和裝置,包括:獲取工作區中的當前空閒的機器人(1,2)的當前座標(S101);獲取所述當前空閒狀態的機器人(1,2)待返回的所有目的地座標(S102);根據當前座標到所有目的地座標的距離和時間,計算距離當前座標最近的目標目的地座標(S103);控制當前空閒狀態的機器人(1,2)按照目標目的地座標對應的回流路徑駛出工作區,以保證所述當前空閒狀態的機器人(1,2)有序離場(S104);並且在出現路徑交匯時,對機器人(1,2)進行排隊管理,確定擁堵點區域(S501);根據所述擁堵點區域內的每個機器人(1,2)發送的通過請求分別為所述擁堵點區域內的每個機器人(1,2)設置調度指令(S502);分別向所述擁堵點區域內的每個機器人(1,2)發送調度指令,以使接收到調度指令的機器人(1,2)根據所述調度指令通過所述擁堵點區域(S503)。 A method and device for field return of robots (1, 2), including: obtaining the current coordinates of the currently idle robots (1, 2) in the work area (S101); obtaining the currently idle robots (1, 2) 2) All destination coordinates to be returned (S102); According to the distance and time from the current coordinates to all destination coordinates, calculate the target destination coordinates closest to the current coordinates (S103); control the robot in the current idle state (1, 2) ) Drive out of the work area according to the return path corresponding to the target destination coordinates to ensure that the robots (1, 2) in the current idle state leave the field in an orderly manner (S104); and when the path intersection occurs, the robots (1, 2) ) Perform queue management to determine the congestion point area (S501); according to the passing request sent by each robot (1, 2) in the congestion point area, each robot (1, 2) in the congestion point area Set a dispatch instruction (S502); send a dispatch instruction to each robot (1, 2) in the congestion point area, so that the robot (1, 2) that receives the dispatch instruction passes through the congestion according to the dispatch instruction Dot area (S503).

Description

用於機器人場地回流的方法和裝置 Method and device for robot field return

本發明關於通訊領域,具體而言,關於一種用於機器人場地回流的方法和裝置。 The present invention relates to the field of communications, in particular, to a method and device for robot field return.

隨著社會經濟的發展,超級市場、機場、車站、會展中心及物流倉庫等大型人流、物流場所的規模和數量不斷擴大,這使得以往以人為主的模式已滿足不了人們的需求。在這樣的背景下,能夠自主工作的機器人應運而生。該機器人是一個集成環境感知、路線規劃、動態決策、行為控制以及報警模組為一體的多功能綜合系統,能夠實現定時、流動自助工作。 With the development of society and economy, the scale and number of large-scale crowds and logistics places such as supermarkets, airports, stations, convention and exhibition centers, and logistics warehouses continue to expand. This makes the past human-oriented model no longer able to meet people's needs. In this context, robots that can work autonomously came into being. The robot is a multifunctional integrated system that integrates environment perception, route planning, dynamic decision-making, behavior control and alarm modules. It can realize timing and mobile self-service work.

具體的,在物流領域,機器人可以作為一個運輸裝置,其內設置有行走裝置和搬運裝置,藉由搬運裝置在固定位置的儲貨區搬運貨物,然後藉由行走裝置將搬運的貨物運送到指定的貨物排放區,在藉由搬運裝置將搬運的貨物投遞或者卸載在當前的貨物排放區時,為了保證機器人能夠正常而有序的循環工作,每個機器人需要按照指定的路線返回到指定儲貨區,進而重複取貨-運貨-卸貨-返回取貨的工作。 Specifically, in the field of logistics, a robot can be used as a transport device, which is equipped with a walking device and a transport device. The transport device is used to transport the goods in the storage area at a fixed position, and then the transported goods are transported to the designated In order to ensure the normal and orderly cycle work of the robots, each robot needs to return to the designated storage area according to the designated route when the goods being transported are delivered or unloaded in the current goods discharge area by the handling device. Area, and then repeat the work of picking up-shipping-unloading-returning to pick up.

其中,在只有一個上述儲貨區和貨物排放區的情況下,每個機器人的路線單一,該種情況下較容易控 制機器人的活動路線,但是,在上述儲貨區和貨物排放區較多時,對應的機器人的路線同樣較多,此時,當大數量、高密度的機器人集群在場地內進行大規模上述動態活動時,即每個機器人在投遞或搬運完貨物後,更需要儘快有序離場,而待離場的機器人有可能影響到場地內其他正在工作的機器人,此外,當機器人集群在場地內的回流路徑上有一個必經點時,如需要短時間內通過該點,容易發生擁堵的情況,導致整體工作效率的降低,因此,需要給出優化離場調度方案,以提高工作效率。 Among them, when there is only one storage area and cargo discharge area, the route of each robot is single. In this case, it is easier to control the movement route of the robot. However, when there are more storage areas and cargo discharge areas, , The corresponding robots have more routes. At this time, when a large number of high-density robot clusters perform large-scale dynamic activities in the field, that is, each robot needs to be orderly as soon as possible after delivering or handling goods. Leaving the field, and the robot waiting to leave the field may affect other working robots in the field. In addition, when the robot cluster has a necessary point on the return path in the field, it is easy to pass this point in a short time. Congestion occurs, resulting in a decrease in overall work efficiency. Therefore, it is necessary to provide an optimized departure scheduling plan to improve work efficiency.

發明人在研究中發現,針對大數量、高密度的機器人集群在場地內進行大規模上述動態活動時的有序離場且提高工作效率的問題,目前尚未提出有效的解決方法,此外,機器人集群在場地內進行大規模動態活動的過程中,若機器人集群在場地內有一個必經點,當需要短時間內通過該點時,容易發生擁堵的情況,進一步導致整體工作效率的降低。 The inventor found in his research that there is no effective solution to the problem of orderly departure and improvement of work efficiency when a large number of high-density robot clusters perform large-scale dynamic activities in the venue. In the process of large-scale dynamic activities in the field, if the robot cluster has a necessary point in the field, when it needs to pass through this point in a short time, congestion is prone to occur, which further reduces the overall work efficiency.

本發明的目的在於提供一種用於機器人場地回流的方法和裝置,以保證機器人在投遞完貨物後儘快有序離開工作區場地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率;並且在出現機器人路徑交匯時,避免機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,提高機器人在場地內的工作效率以及機器人集群的整體工作效率。 The purpose of the present invention is to provide a method and device for robot field return to ensure that robots leave the work area in an orderly manner as soon as possible after delivering goods, effectively reducing the number of idle robots in the field, and at the same time reducing the robot path Probability of intersection; and when robot path intersections occur, it prevents robots from being congested in the congestion point area, improves the speed of robots passing through the congestion point, and improves the work efficiency of the robot in the field and the overall work efficiency of the robot cluster.

第一方面,本發明實施例提供了一種用於機器人場地回流的方法,包括:獲取工作區中的當前空閒狀態的機器人的當前座標;獲取所述當前空閒狀態的機器人待返回的所有目的地座標;其中,所述目的地座標為多個且多個所述目的地座標均處於工作區外;所述工作區外包括多個不同區域的儲貨區,多個所述目的地座標均設置在工作區外的預設區域的儲貨區中;根據所述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離所述當前座標最近的目標目的地座標;控制所述當前空閒狀態的機器人按照所述目標目的地座標對應的回流路徑駛出工作區,以保證所述當前空閒狀態的所述機器人有序離場。 In the first aspect, an embodiment of the present invention provides a method for robot field return, including: obtaining the current coordinates of the robot in the current idle state in the work area; obtaining all the destination coordinates of the robot in the current idle state to be returned Wherein, the destination coordinates are multiple and multiple of the destination coordinates are outside the working area; the outside of the working area includes multiple storage areas in different areas, and multiple destination coordinates are all set in In the storage area of the preset area outside the working area; according to the distance and time from the current coordinates of the currently idle robot to all destination coordinates, calculate the target destination coordinates closest to the current coordinates; control the The robot in the currently idle state drives out of the work area according to the return path corresponding to the target destination coordinates to ensure that the robot in the currently idle state leaves the field in an orderly manner.

結合第一方面,本發明實施例提供了第一方面的第一種可能的實施方式,其中,所述根據所述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離所述當前座標最近的目標目的地座標包括:計算所述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑;根據所述回流路徑對應的距離和時間,計算所述當前空閒狀態的機器人的當前座標與每一個所述目的地座標之間的第一匹配代價;將計算的多個所述第一匹配代價進行比較,選擇最小 的第一匹配代價;確定選擇的所述最小的第一匹配代價對應的回流路徑中的目的地座標為距離所述當前座標最近的目標目的地座標。 With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein the distance is calculated based on the distance and time from the current coordinates of the robot in the current idle state to all destination coordinates The nearest target destination coordinates of the current coordinates include: calculating a return path from the current coordinates of the robot in the currently idle state to each of the destination coordinates; calculating the current return path according to the distance and time corresponding to the return path The first matching cost between the current coordinates of the robot in the idle state and each of the destination coordinates; comparing the multiple calculated first matching costs, and selecting the smallest first matching cost; determining the selected one The destination coordinates in the return path corresponding to the smallest first matching cost are the target destination coordinates that are closest to the current coordinates.

結合第一方面的第一種可能的實施方式,本發明實施例提供了第一方面的第二種可能的實施方式,其中,所述計算所述機器人的當前座標到每一個所述目的地座標的回流路徑包括:獲取其他機器人的當前座標;根據所述當前空閒狀態的機器人的當前座標以及其他機器人的當前座標,計算所述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑。 In combination with the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, in which the current coordinates of the robot are calculated to each of the destination coordinates The return path includes: obtaining the current coordinates of other robots; according to the current coordinates of the robot in the current idle state and the current coordinates of other robots, calculating the current coordinates of the robot in the current idle state to each of the destination coordinates Return path.

結合第一方面,本發明實施例提供了第一方面的第三種可能的實施方式,其中,所述方法還包括:判斷所述當前空閒狀態的機器人的電量是否滿足標準電量;在檢測到所述當前空閒狀態的機器人的電量低於所述標準電量時,確定對應的所述機器人為待充電機器人;獲取所述待充電機器人待返回的所有充電站座標;其中,所述充電站座標為多個且多個所述充電站座標均處於工作區外的預設區域中;根據所述待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離所述待充電機器人的當前座標最近的目標充電站座標; 控制所述待充電機器人按照所述目標充電站座標對應的回流路徑駛出工作區,以保證所述待充電機器人有序駛入目標充電站進行充電。 With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the method further includes: determining whether the power of the robot in the current idle state meets the standard power; When the power of the robot in the current idle state is lower than the standard power, the corresponding robot is determined to be a robot to be charged; all the coordinates of the charging station to be returned by the robot to be charged are acquired; wherein the coordinates of the charging station are more One and more of the charging station coordinates are all located in a preset area outside the working area; according to the distance and time from the current coordinates of the robot to be charged to the coordinates of all charging stations, the closest distance to the current coordinates of the robot to be charged is calculated The coordinates of the target charging station; control the robot to be charged to drive out of the work area according to the return path corresponding to the coordinates of the target charging station to ensure that the robot to be charged enters the target charging station in an orderly manner for charging.

結合第一方面的第三種可能的實施方式,本發明實施例提供了第一方面的第四種可能的實施方式,其中,所述根據所述待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離所述待充電機器人的當前座標最近的目標充電站座標包括:計算所述待充電機器人的當前座標到每一個所述充電站座標的回流路徑;根據所述回流路徑對應的距離和時間,計算所述待充電機器人的當前座標與每一個所述充電站座標之間第二匹配代價;將計算的多個所述第二匹配代價進行比較,選擇最小的第二匹配代價;確定選擇的所述最小的第二匹配代價對應的回流路徑中的充電站座標為距離所述待充電機器人的當前座標最近的目標充電站座標。 In combination with the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the current coordinates of the robot to be charged to the coordinates of all charging stations Distance and time. Calculating the coordinates of the target charging station closest to the current coordinates of the robot to be charged includes: calculating a return path from the current coordinates of the robot to be charged to each of the charging station coordinates; according to the corresponding return path Distance and time, calculating a second matching cost between the current coordinates of the robot to be charged and each of the charging station coordinates; comparing a plurality of the second matching costs calculated, and selecting the smallest second matching cost; It is determined that the coordinates of the charging station in the return path corresponding to the selected minimum second matching cost are the coordinates of the target charging station closest to the current coordinates of the robot to be charged.

結合第一方面,本發明實施例提供了第一方面的第五種可能的實施方式,其中,分別建立與多個機器人的資料連接,還包括:確定擁堵點區域;根據所述擁堵點區域內的每個機器人發送的通過請求分別為所述擁堵點區域內的每個機器人設置調度指令; 分別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。 With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein establishing data connections with multiple robots respectively further includes: determining a congestion point area; according to the congestion point area Each robot sends a pass request to set a scheduling instruction for each robot in the congestion point area; and sends a scheduling instruction to each robot in the congestion point area, so that the robot that receives the scheduling instruction is based on the The scheduling instruction passes through the congestion point area.

結合第一方面的第五種可能的實施方式,本發明實施例提供了第一方面的第六種可能的實施方式,其中,所述確定擁堵點區域,包括:獲取所述多個機器人的路徑;根據所述多個機器人的路徑確定擁堵點;從所述擁堵點的鄰近區域中確定擁堵點區域。 In combination with the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein the determining the congestion point area includes: obtaining the paths of the multiple robots Determine the congestion point according to the paths of the multiple robots; determine the congestion point area from the adjacent area of the congestion point.

結合第一方面的第六種可能的實施方式,本發明實施例提供了第一方面的第七種可能的實施方式,其中,所述通過請求包括:機器人在所述擁堵點區域內的位置。 In combination with the sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, wherein the passing request includes: the position of the robot in the congestion point area.

結合第一方面,本發明實施例提供了第一方面的第八種可能的實施方式,其中,所述根據所述擁堵點區域內的每個機器人發送的通過請求分別為所述擁堵點區域內的每個機器人設置調度指令,包括:根據所述擁堵點區域內的每個機器人發送的通過請求的時間順序、所述通過請求包含的所述每個機器人在所述擁堵點區域內的位置,分別為所述擁堵點區域內的每個機器人設置調度指令。 With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, wherein the passing request sent by each robot in the congestion point area is respectively in the congestion point area The scheduling instructions for each robot in the configuration include: according to the time sequence of the passage request sent by each robot in the congestion point area, and the position of each robot in the congestion point area included in the passage request, A scheduling instruction is set for each robot in the congestion point area respectively.

結合第一方面,本發明實施例提供了第一方面的第九種可能的實施方式,其中,所述調度指令包括:機器人在所述擁堵點區域內開始運行的時間,所述機器人 通過所述擁堵點區域的路線以及所述機器人通過所述擁堵點區域的速度。 With reference to the first aspect, an embodiment of the present invention provides a ninth possible implementation manner of the first aspect, wherein the scheduling instruction includes: the time when the robot starts running in the congestion point area, and the robot passes through the The route of the congestion point area and the speed of the robot passing through the congestion point area.

第二方面,本發明實施例還提供了一種用於機器人場地回流的裝置,包括:第一獲取模組,用於獲取工作區中的當前空閒狀態的機器人的當前座標;第二獲取模組,用於獲取所述當前空閒狀態的機器人待返回的所有目的地座標;其中,所述目的地座標為多個且多個所述目的地座標均處於工作區外;所述工作區外包括多個不同區域的儲貨區,多個所述目的地座標均設置在工作區外的預設區域的儲貨區中;第一計算模組,用於根據所述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離所述當前座標最近的目標目的地座標;第一控制模組,用於控制所述當前空閒狀態的機器人按照所述目標目的地座標對應的回流路徑駛出工作區,以保證所述當前空閒狀態的所述機器人有序離場。 In a second aspect, an embodiment of the present invention also provides a device for robot field return, including: a first acquisition module for acquiring the current coordinates of the robot in the current idle state in the work area; and a second acquisition module, Used to obtain all the destination coordinates to be returned by the robot in the current idle state; wherein, there are multiple destination coordinates and multiple destination coordinates are outside the working area; the outside working area includes multiple For the storage areas of different areas, multiple destination coordinates are set in the storage area of the preset area outside the working area; the first calculation module is used to reach the destination coordinates according to the current coordinates of the robot in the current idle state. The distance and time of all destination coordinates are calculated, and the target destination coordinates closest to the current coordinates are calculated; the first control module is used to control the robot in the current idle state to drive along the return path corresponding to the target destination coordinates Leave the work area to ensure that the robots in the current idle state leave the field in an orderly manner.

結合第二方面,本發明實施例提供了第二方面的第一種可能的實施方式,其中,所述第一計算模組包括:第一計算單元,用於計算所述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑;第二計算單元,用於根據所述回流路徑對應的距離和時間,計算所述當前空閒狀態的機器人的當前座標與每一 個所述目的地座標之間的第一匹配代價;第一比較單元,用於將計算的多個所述第一匹配代價進行比較;第一選擇單元,用於選擇第一比較單元比較得到的最小的第一匹配代價;第一確定單元,用於確定選擇的所述最小的第一匹配代價對應的回流路徑中的目的地座標為距離所述當前座標最近的目標目的地座標。 With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, wherein the first calculation module includes: a first calculation unit configured to calculate the current idle state of the robot The return path from current coordinates to each of the destination coordinates; a second calculation unit, configured to calculate the current coordinates of the robot in the currently idle state and each of the destinations according to the distance and time corresponding to the return path The first matching cost between the coordinates; a first comparison unit for comparing a plurality of the first matching costs calculated; a first selection unit for selecting the smallest first match compared by the first comparison unit Cost; a first determining unit, configured to determine that the destination coordinates in the return path corresponding to the selected minimum first matching cost are the target destination coordinates that are closest to the current coordinates.

結合第二方面的第一種可能的實施方式,本發明實施例提供了第二方面的第二種可能的實施方式,其中,所述第一計算單元包括:獲取子單元,用於獲取其他機器人的當前座標;計算子單元,用於根據所述當前空閒狀態的機器人的當前座標以及其他機器人的當前座標,計算所述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑。 With reference to the first possible implementation manner of the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, wherein the first calculation unit includes: an acquisition subunit for acquiring other robots The current coordinates of the; calculation subunit for calculating the return path from the current coordinates of the currently idle robot to each of the destination coordinates according to the current coordinates of the currently idle robot and the current coordinates of other robots .

結合第二方面,本發明實施例提供了第二方面的第三種可能的實施方式,其中,所述裝置還包括:判斷模組,用於判斷所述當前空閒狀態的機器人的電量是否滿足標準電量;第一確定模組,用於在檢測到所述當前空閒狀態的機器人的電量低於所述標準電量時,確定對應的所述機器人為待充電機器人;第二獲取模組,用於獲取所述待充電機器人待返回的 所有充電站座標;其中,所述充電站座標為多個且多個所述充電站座標均處於工作區外的預設區域中;第二計算模組,用於根據所述待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離所述待充電機器人的當前座標最近的目標充電站座標;第二控制模組,用於控制所述待充電機器人按照所述目標充電站座標對應的回流路徑駛出工作區,以保證所述待充電機器人有序駛入目標充電站進行充電。 With reference to the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, wherein the device further includes: a judgment module for judging whether the power of the robot in the current idle state meets the standard Electricity; a first determination module, used to determine that the corresponding robot is a robot to be charged when it is detected that the current idle state of the robot’s power is lower than the standard power; the second acquisition module is used to acquire The coordinates of all charging stations to be returned by the robot to be charged; wherein, there are multiple charging station coordinates and the multiple charging station coordinates are all located in a preset area outside the working area; the second calculation module is used for According to the distance and time from the current coordinates of the robot to be charged to the coordinates of all charging stations, calculate the coordinates of the target charging station closest to the current coordinates of the robot to be charged; the second control module is used to control the robot to be charged Drive out of the work area according to the return path corresponding to the coordinates of the target charging station to ensure that the robot to be charged enters the target charging station for charging in an orderly manner.

結合第二方面的第三種可能的實施方式,本發明實施例提供了第二方面的第四種可能的實施方式,其中,所述第二計算模組包括:第三計算單元,用於計算所述待充電機器人的當前座標到每一個所述充電站座標的回流路徑;第四計算單元,用於根據所述回流路徑對應的距離和時間,計算所述待充電機器人的當前座標與每一個所述充電站座標之間第二匹配代價;第二比較單元,用於將計算的多個所述第二匹配代價進行比較;第二選擇單元,用於選擇第二比較單元比較得到的最小的第二匹配代價;第二確定單元,用於確定選擇的所述最小的第二匹配代價對應的回流路徑中的充電站座標為距離所述待充電機器人的當前座標最近的目標充電站座標。 In combination with the third possible implementation manner of the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, wherein the second calculation module includes: a third calculation unit for calculating The return path from the current coordinates of the robot to be charged to the coordinates of each charging station; the fourth calculation unit is used to calculate the current coordinates of the robot to be charged and each of the coordinates according to the distance and time corresponding to the return path A second matching cost between the coordinates of the charging station; a second comparison unit, used to compare a plurality of the second matching costs calculated; a second selection unit, used to select the smallest one obtained by the second comparison unit comparison A second matching cost; a second determining unit for determining that the charging station coordinates in the return path corresponding to the selected minimum second matching cost are the coordinates of the target charging station closest to the current coordinates of the robot to be charged.

結合第二方面的第三種可能的實施方式,本 發明實施例提供了第二方面的第五種可能的實施方式,其中,所述裝置分別建立與多個機器人的資料連接,還包括,第二確定模組,用於確定所述擁堵點區域;設置模組,用於根據所述擁堵點區域內的每個機器人發送的通過請求分別為所述擁堵點區域內的每個機器人設置調度指令;發送模組,用於分別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。 In combination with the third possible implementation manner of the second aspect, an embodiment of the present invention provides a fifth possible implementation manner of the second aspect, wherein the device establishes data connections with multiple robots respectively, and further includes: 2. A determination module, used to determine the congestion point area; a setting module, used to set scheduling instructions for each robot in the congestion point area according to the pass request sent by each robot in the congestion point area The sending module is configured to send a scheduling instruction to each robot in the congestion point area, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction.

結合第二方面的第三種可能的實施方式,本發明實施例提供了第二方面的第六種可能的實施方式,其中,所述第二確定模組,包括:獲取單元,用於獲取所述多個機器人的路徑;擁堵點確定單元,用於根據所述多個機器人的路徑確定擁堵點;擁堵點區域確定單元,用於從所述擁堵點的鄰近區域中確定擁堵點區域。 With reference to the third possible implementation manner of the second aspect, an embodiment of the present invention provides a sixth possible implementation manner of the second aspect, wherein the second determining module includes: an acquiring unit configured to acquire The path of the multiple robots; a congestion point determination unit for determining a congestion point according to the paths of the multiple robots; a congestion point area determination unit for determining a congestion point area from the adjacent area of the congestion point.

結合第二方面的第三種可能的實施方式,本發明實施例提供了第二方面的第七種可能的實施方式,其中,所述通過請求包括,機器人在所述擁堵點區域內的位置。 In combination with the third possible implementation manner of the second aspect, an embodiment of the present invention provides a seventh possible implementation manner of the second aspect, wherein the passing request includes the position of the robot in the congestion point area.

結合第二方面的第三種可能的實施方式,本發明實施例提供了第二方面的第八種可能的實施方式,其中,所述設置模組,用於根據所述擁堵點區域內的每個機 器人發送的通過請求的時間順序、所述通過請求包含的所述每個機器人在所述擁堵點區域內的位置,分別為所述擁堵點區域內的每個機器人設置調度指令。 In combination with the third possible implementation manner of the second aspect, an embodiment of the present invention provides an eighth possible implementation manner of the second aspect, in which the setting module is configured to perform according to each congestion point area. The time sequence of the passage request sent by each robot, and the position of each robot included in the passage request in the congestion point area, respectively set a scheduling instruction for each robot in the congestion point area.

結合第二方面的第三種可能的實施方式,本發明實施例提供了第二方面的第九種可能的實施方式,其中,所述調度指令包括:機器人在所述擁堵點區域內開始運行的時間,所述機器人通過所述擁堵點區域的路線以及所述機器人通過所述擁堵點區域的速度。 In combination with the third possible implementation manner of the second aspect, an embodiment of the present invention provides a ninth possible implementation manner of the second aspect, wherein the scheduling instruction includes: the robot starts running in the congestion point area Time, the route of the robot passing the congestion point area and the speed of the robot passing the congestion point area.

本發明實施例提供的一種用於機器人場地回流的方法和裝置,包括:首先獲取工作區中的當前空閒狀態的機器人的當前座標以及待返回的所有目的地座標;然後,根據該機器人的當前座標到所有目的地座標的距離和時間,計算距離當前座標最近的目標目的地座標;最後控制機器人按照目標目的地座標對應的回流路徑駛出工作區,以保證空閒狀態的機器人有序離場,與先前技術中大數量、高密度的機器人集群在場地內活動結束有序離場的問題未得到有效解決相比,其根據即時定位的空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算目標目的地座標,並控制機器人按照計算的目標目的地座標對應的回流路徑駛出工作區,保證了機器人在投遞完貨物後儘快有序離開工作區場地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率;並且在出現機器人路徑交匯時,對機器人進行排隊管理,通過分別建立與多個機器人的資料連接,確定擁堵點區域; 根據擁堵點區域內的每個機器人發送的通過請求以及擁堵點區域內的每個機器人的路徑分別為擁堵點區域內的每個機器人設置調度指令;分別向擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據調度指令通過擁堵點區域,避免機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,提高機器人在場地內的工作效率以及機器人集群的整體工作效率。 An embodiment of the present invention provides a method and device for robot field return, including: first obtaining the current coordinates of the robot in the current idle state in the work area and all the destination coordinates to be returned; then, according to the current coordinates of the robot The distance and time to all destination coordinates are calculated, and the target destination coordinates closest to the current coordinates are calculated. Finally, the robot is controlled to drive out of the work area according to the return path corresponding to the target destination coordinates to ensure the orderly departure of idle robots, and The problem of the large number and high density of robot clusters in the field in order to leave the field in the previous technology has not been effectively resolved. Compared with the distance and time from the current coordinates of the robots in the idle state based on instant positioning to all destination coordinates , Calculate the coordinates of the target destination, and control the robot to drive out of the work area according to the return path corresponding to the calculated target destination coordinates, ensuring that the robot will leave the work area in an orderly manner as soon as possible after delivering the goods, effectively reducing the number of idle robots in the field At the same time, it also reduces the probability of robot path intersection; and when there is robot path intersection, the robots are queued, and the data connection with multiple robots is established to determine the congestion point area; according to each congestion point area The passing request sent by each robot and the path of each robot in the congestion point area are respectively set up scheduling instructions for each robot in the congestion point area; dispatching instructions are sent to each robot in the congestion point area to make the dispatch The instructed robot passes through the congestion point area according to the scheduling instruction, avoids the robot from being congested in the congestion point area, increases the speed of the robot through the congestion point, and improves the work efficiency of the robot in the field and the overall work efficiency of the robot cluster.

為使本發明的上述目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下。 In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are described in detail below in conjunction with the accompanying drawings.

1、2‧‧‧機器人 1, 2‧‧‧Robot

11‧‧‧第一獲取模組 11‧‧‧First acquisition module

12‧‧‧第二獲取模組 12‧‧‧Second acquisition module

13‧‧‧第一計算模組 13‧‧‧The first calculation module

14‧‧‧第一控制模組 14‧‧‧The first control module

15‧‧‧判斷模組 15‧‧‧Judgment Module

16‧‧‧第一確定模組 16‧‧‧First Confirmation Module

17‧‧‧第二獲取模組 17‧‧‧Second acquisition module

18‧‧‧第二計算模組 18‧‧‧Second calculation module

19‧‧‧第二控制模組 19‧‧‧Second control module

51‧‧‧第二確定模組 51‧‧‧Second Confirmation Module

52‧‧‧設置模組 52‧‧‧Setting Module

53‧‧‧發送模組 53‧‧‧Send module

131‧‧‧第一計算單元 131‧‧‧First calculation unit

132‧‧‧第二計算單元 132‧‧‧Second calculation unit

133‧‧‧第一比較單元 133‧‧‧First comparison unit

134‧‧‧第一選擇單元 134‧‧‧First choice unit

135‧‧‧第一確定單元 135‧‧‧First determination unit

181‧‧‧第三計算單元 181‧‧‧The third calculation unit

182‧‧‧第四計算單元 182‧‧‧Fourth calculation unit

183‧‧‧第二比較單元 183‧‧‧The second comparison unit

184‧‧‧第二選擇單元 184‧‧‧Second Choice Unit

185‧‧‧第二確定單元 185‧‧‧Second Determining Unit

1311‧‧‧獲取子單元 1311‧‧‧Get subunit

1312‧‧‧計算子單元 1312‧‧‧Calculation subunit

S101~S104‧‧‧步驟 S101~S104‧‧‧Step

S201~S204‧‧‧步驟 S201~S204‧‧‧Step

S301~S305‧‧‧步驟 S301~S305‧‧‧Step

S401~S404‧‧‧步驟 S401~S404‧‧‧Step

S501~S503‧‧‧步驟 S501~S503‧‧‧Step

為了更清楚地說明本發明實施例的技術方案,下面將對實施例中所需要使用的圖式作簡單地介紹,應當理解,以下圖式僅示出了本發明的某些實施例,因此不應被看作是對範圍的限定,對於本案所屬技術領域中具有通常知識者來講,在不付出創造性勞動的前提下,還可以根據這些圖式獲得其他相關的圖式。 In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention and therefore do not It should be regarded as a limitation of the scope. For those with ordinary knowledge in the technical field of the case, they can also obtain other related schemas based on these schemas without creative work.

圖1示出了本發明實施例所提供的一種用於機器人場地回流的方法的流程圖;圖2示出了本發明實施例所提供的另一種用於機器人場地回流的方法的流程圖;圖3示出了本發明實施例所提供的另一種用於機器人場地回流的方法的流程圖; 圖4示出了本發明實施例所提供的另一種用於機器人場地回流的方法的流程圖;圖5示出了本發明實施例所提供的另一種用於機器人場地回流的方法的流程圖;圖6示出了本發明實施例所提供的一種機器人1和機器人2在擁堵點區域的位置示意圖;圖7示出了本發明實施例所提供的另一種機器人1和機器人2在擁堵點區域的位置示意圖;圖8示出了本發明實施例所提供的一種機器人1和機器人2通過擁堵點區域的路線圖;圖9示出了本發明實施例所提供的一種用於機器人場地回流的裝置的結構示意圖;圖10示出了本發明實施例所提供的一種用於機器人場地回流的裝置中第一計算模組的結構示意圖;圖11示出了本發明實施例所提供的一種用於機器人場地回流的裝置中第一計算單元的結構示意圖;圖12示出了本發明實施例所提供的另一種用於機器人場地回流的裝置的結構示意圖;圖13示出了本發明實施例所提供的一種用於機器人場地回流的裝置中第二計算模組的結構示意圖。 Figure 1 shows a flow chart of a method for robot field return provided by an embodiment of the present invention; Figure 2 shows a flowchart of another method for robot field return provided by an embodiment of the present invention; 3 shows a flowchart of another method for robot field return provided by an embodiment of the present invention; FIG. 4 shows a flowchart of another method for robot field return provided by an embodiment of the present invention; 5 shows a flow chart of another method for backflow of a robot field provided by an embodiment of the present invention; FIG. 6 shows a schematic diagram of the positions of the robot 1 and the robot 2 in the congested area provided by the embodiment of the present invention; FIG. 7 shows another schematic diagram of the positions of the robot 1 and the robot 2 in the congestion point area provided by the embodiment of the present invention; FIG. 8 shows the position of the robot 1 and the robot 2 through the congestion point area provided by the embodiment of the present invention. Route map; Figure 9 shows a schematic structural diagram of a device for robot field return provided by an embodiment of the present invention; Figure 10 shows the first in the device for robot field return provided by an embodiment of the present invention Schematic diagram of the structure of the computing module; Figure 11 shows a schematic diagram of the structure of the first computing unit in a device for robot field return provided by an embodiment of the present invention; Figure 12 shows another embodiment of the present invention. Schematic diagram of the structure of the device for robot field return; FIG. 13 shows the structure of the second calculation module in the device for robot field return provided by an embodiment of the present invention.

圖14示出了本發明實施例所提供的另一種用於機器人場地回流的裝置的結構示意圖。 Fig. 14 shows a schematic structural diagram of another device for robot field return provided by an embodiment of the present invention.

下面將結合本發明實施例中圖式,對本發明 實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。通常在此處圖式中描述和示出的本發明實施例的元件可以以各種不同的配置來佈置和設計。因此,以下對在圖式中提供的本發明的實施例的詳細描述並非旨在限制要求保護的本發明的範圍,而是僅僅表示本發明的選定實施例。基於本發明的實施例,本案所屬技術領域中具有通常知識者在沒有做出創造性勞動的前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The elements of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by a person with ordinary knowledge in the technical field to which the case belongs without creative work shall fall within the protection scope of the present invention.

機器人的出現為社會經濟的發展提供了較大的幫助,如能夠滿足超級市場、機場、車站、會展中心及物流倉庫等大型人流、物流場所的規模和數量不斷擴大的需求,如應用在物流領域,機器人可以作為傳輸裝置,將儲貨區的貨物從儲貨區搬運到投遞區(即貨物排放區)並進行投遞,再返回到相應的儲貨區,而在只有一個上述儲貨區和貨物排放區的情況下,每個機器人的路線單一,該種情況下較容易控制機器人的活動路線,但是,在上述儲貨區和貨物排放區較多時,對應的機器人的路線同樣較多,此時,當大數量、高密度的機器人集群在場地內進行大規模上述動態活動時,即每個機器人在投遞或搬運完貨物後,更需要儘快有序離場,而待離場的機器人有可能影響到場地內其他正在工作的機器人;此外,當機器人集群在場地內的回流路徑上有一個必經點時,如需要短時間內通過該點,容易發生擁堵的情況,導致整體工作效率的降低, 因此,需要給出優化離場調度方案,以提高工作效率。 The emergence of robots has provided great help for the development of social economy, such as being able to meet the growing demand for the scale and number of large-scale crowds and logistics venues such as supermarkets, airports, stations, convention and exhibition centers, and logistics warehouses, such as applications in the logistics field , The robot can be used as a transmission device to transport the goods in the storage area from the storage area to the delivery area (that is, the cargo discharge area) and deliver them, and then return to the corresponding storage area, and there is only one storage area and the goods mentioned above. In the case of the discharge area, each robot has a single route. In this case, it is easier to control the robot's active route. However, when there are more storage areas and cargo discharge areas, the corresponding robots have more routes. At the time, when a large number of high-density robot clusters perform large-scale dynamic activities in the venue, that is, after each robot delivers or transports goods, it needs to leave the venue as soon as possible in an orderly manner, and the robots waiting to leave the venue may Affects other working robots in the field; in addition, when the robot cluster has a necessary point on the return path in the field, if it needs to pass through this point in a short time, congestion is prone to occur, resulting in a decrease in overall work efficiency Therefore, it is necessary to provide an optimized departure scheduling plan to improve work efficiency.

對此,參見圖1,本發明實施例提供了一種用於機器人場地回流的方法,所述方法包括如下步驟: In this regard, referring to FIG. 1, an embodiment of the present invention provides a method for robot field return, and the method includes the following steps:

S101、獲取工作區中的當前空閒狀態的機器人的當前座標。 S101. Acquire the current coordinates of the robot in the currently idle state in the work area.

具體的,處於工作區的機器人在投遞完搬運的貨物後,即處於空閒狀態,此時,首先獲取當前空閒狀態的機器人的當前座標,即確定該當前空閒狀態的機器人的當前座標。 Specifically, the robot in the work area is in the idle state after delivering the goods to be transported. At this time, the current coordinates of the robot in the current idle state are first obtained, that is, the current coordinates of the robot in the current idle state are determined.

而實際上,在工作區中設置有多個機器人的投遞區(即貨物排放區),而確定機器人的當前座標在大範圍上來講是確定機器人當前投遞的投遞區的位置。 In fact, there are multiple robot delivery areas (that is, cargo discharge areas) in the work area, and determining the current coordinates of the robot in a large range is to determine the location of the delivery area where the robot is currently delivering.

具體的,上述機器人的工作區可以分解為多個空格(該空格可以理解為具有預設長和寬的空格),每個空格對應一個位置的座標,其中,每個空格只能容納一個機器人,當一個空格被一個機器人佔有時,該空格不能再容納另一個機器人,即兩個及兩個以上的機器人不能同時佔據同一個空格。 Specifically, the working area of the above-mentioned robot can be divided into multiple spaces (the spaces can be understood as spaces with preset length and width), and each space corresponds to the coordinates of a position, and each space can only accommodate one robot. When a space is occupied by a robot, the space cannot accommodate another robot, that is, two or more robots cannot occupy the same space at the same time.

故確定投遞完貨物的機器人的當前座標,即獲取(即確定)機器人投遞完貨物所在的空格的位置。 Therefore, the current coordinates of the robot that has delivered the goods are determined, that is, the position of the space where the robot has delivered the goods is obtained (that is, determined).

S102、獲取所述當前空閒狀態的機器人待返回的所有目的地座標;其中,所述目的地座標為多個且多個所述目的地座標均處於工作區外;所述工作區外包括多個不同區域的儲貨區,多個所述目的地座標均設置在工作 區外的預設區域的儲貨區中。 S102. Acquire all destination coordinates to be returned by the robot in the currently idle state; wherein there are multiple destination coordinates and multiple destination coordinates are outside the work area; the outside work area includes multiple For the cargo storage areas of different regions, a plurality of the destination coordinates are set in the cargo storage area of the preset area outside the working area.

其中,上述目的地座標可以有多個且多個所述目的地座標均處於工作區外;而在機器人的工作區外包括多個不同區域的儲貨區,而上述多個所述目的地座標正是對應設置在工作區外的預設區域的儲貨區中。 Wherein, there may be multiple destination coordinates and multiple destination coordinates are outside the working area; and the robot’s working area includes multiple storage areas in different areas, and the multiple destination coordinates are It is correspondingly set in the storage area of the preset area outside the working area.

具體的,在確定了機器人投遞完貨物所在的空格的位置之後,還需要確定該空閒狀態的機器人待離場(即待返回)的所有工作區外的儲貨區的目的地座標,以便根據確定的當前座標和所有目的地座標的回流路徑,計算距離所述當前座標最近的目標目的地座標。 Specifically, after determining the position of the space where the robot has delivered the goods, it is also necessary to determine the destination coordinates of all the storage areas outside the work area where the idle robot is to leave (that is, to return), so as to determine The current coordinates of, and the return path of all destination coordinates, calculate the target destination coordinates closest to the current coordinates.

S103、根據所述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離所述當前座標最近的目標目的地座標。 S103: Calculate the target destination coordinates closest to the current coordinates according to the distance and time from the current coordinates of the robot in the currently idle state to all destination coordinates.

具體的,在確定了空閒狀態的機器人的當前座標和所有目的地座標之後,根據空閒狀態的機器人的當前座標到每一個所述目的地座標的距離和時間,來計算距離和時間的結合對應的最優的組合,然後將該最優組合對應的目的地座標作為距離所述當前座標最近的目標目的地座標。 Specifically, after determining the current coordinates of the robot in the idle state and all the destination coordinates, according to the distance and time from the current coordinates of the robot in the idle state to each of the destination coordinates, the corresponding combination of distance and time is calculated Optimal combination, and then the destination coordinates corresponding to the optimal combination are used as the target destination coordinates closest to the current coordinates.

其中,空閒狀態的機器人的當前座標到每一個所述目的地座標的距離(即行駛路線)是綜合考慮到多個機器人的路線而確定的,該距離(即行駛路線)對應的當前空閒狀態的機器人與其他機器人(包括其他空閒狀態的機器人和處於工作狀態的機器人)的路線不會重合(即避免兩 個及兩個以上的機器人同時佔有一個空閒的空格),這樣則能夠使得空閒狀態的機器人均能有序的返回儲貨區的目的地座標,從而進行下一個取貨、搬運、卸貨(即投遞)和離場的循環工作過程。 Wherein, the distance from the current coordinates of the robot in the idle state to each of the destination coordinates (i.e. the driving route) is determined by comprehensively considering the routes of multiple robots, and the distance (i.e. the driving route) corresponds to the current idle state The route of the robot and other robots (including other idle robots and working robots) will not overlap (that is, avoid two or more robots occupying an idle space at the same time), so that the idle state of the machine can be made Everyone can return to the destination coordinates of the storage area in an orderly manner, so as to carry out the next cycle of pick-up, handling, unloading (ie delivery) and departure.

S104、控制所述當前空閒狀態的機器人按照所述目標目的地座標對應的回流路徑駛出工作區,以保證所述當前空閒狀態的機器人有序離場。 S104. Control the robot in the current idle state to drive out of the work area according to the return path corresponding to the target destination coordinates to ensure that the robot in the current idle state leaves the field in an orderly manner.

具體的,控制該當前空閒狀態的機器人按照上述計算的目標目的地座標對應的回流路徑駛出工作區,返回到對應的儲貨區的目標目的地座標中,以保證機器人在投遞完貨物後儘快有序離開工作區場地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率,提高機器人在場地內的工作效率。 Specifically, the robot in the current idle state is controlled to drive out of the work area according to the return path corresponding to the target destination coordinates calculated above, and return to the target destination coordinates of the corresponding storage area to ensure that the robot will deliver the goods as soon as possible Leaving the work area in an orderly manner effectively reduces the number of idle robots in the field, and at the same time reduces the probability of robot paths crossing, and improves the efficiency of robots in the field.

本發明實施例提供的一種用於機器人場地回流的方法,與先前技術中大數量、高密度的機器人集群在場地內活動結束有序離場的問題未得到有效解決相比,其根據即時定位的空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算目標目的地座標,並控制機器人按照計算的目標目的地座標對應的回流路徑駛出工作區,保證了機器人在投遞完貨物後儘快有序離開工作區場地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率,提高機器人在場地內的工作效率。 The method for returning robots to the field provided by the embodiment of the present invention is compared with the problem that the large number and high-density robot clusters in the prior art have not effectively solved the problem of orderly leaving in the field. It is based on real-time positioning. The distance and time from the current coordinates of the idle robot to all destination coordinates, calculate the target destination coordinates, and control the robot to drive out of the work area according to the calculated return path corresponding to the target destination coordinates, ensuring that the robot will deliver the goods after delivery Leaving the work area as soon as possible in an orderly manner, effectively reducing the number of idle robots in the field, and at the same time reducing the probability of robot paths crossing, and improving the efficiency of robots in the field.

在機器人的工作區外包括多個不同區域的儲 貨區,多個所述目的地座標均設置在工作區外的預設區域的儲貨區中,為了更進一步保證機器人在投遞完貨物後儘快有序離開工作區場地,可以針對該空閒狀態的機器人的當前座標計算距離該空閒狀態的機器人最近的目標目的地座標的儲貨區,然後控制該空閒狀態的機器人沿著目標目的地座標的儲貨區的回流路徑駛出工作區,這樣能夠使機器人更快的離場。 The robot’s work area includes multiple storage areas in different areas, and multiple destination coordinates are set in the storage area of the preset area outside the work area, in order to further ensure that the robot can deliver goods as soon as possible after delivery. To leave the work area in an orderly manner, the storage area of the target destination coordinates closest to the idle robot can be calculated for the current coordinates of the idle robot, and then the idle robot is controlled to store the coordinates along the target destination coordinate. The return path of the cargo area is driven out of the work area, so that the robot can leave the field faster.

具體的,參考圖2,上述步驟103具體包括: Specifically, referring to FIG. 2, the foregoing step 103 specifically includes:

S201、計算所述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑。 S201: Calculate a return path from the current coordinates of the robot in the currently idle state to each of the destination coordinates.

具體的,在機器人的工作區外包括多個不同區域的儲貨區,多個所述目的地座標均設置在工作區外的預設區域的儲貨區中,為了方便確定距離當前空閒狀態的機器人的當前座標最近的目標目的地座標目標,首先計算上述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑,該回流路徑攜帶有距離和時間參數。 Specifically, the robot’s working area includes a plurality of storage areas in different areas, and multiple destination coordinates are set in the storage area of the preset area outside the working area. In order to facilitate the determination of the distance from the current idle state The current coordinate of the robot is the closest target destination coordinate target, and the return path from the current coordinates of the robot in the current idle state to each of the destination coordinates is first calculated, and the return path carries distance and time parameters.

較佳的,該回流路徑的確定方式包括:首先獲取場地內其他機器人的當前座標;然後根據所述當前空閒狀態的機器人的當前座標以及場地內其他機器人的當前座標,計算所述當前空閒狀態的機器人的當前座標到每一個所述目的地座標的回流路徑,目的是保證該空閒狀態的機器人駛出工作區的路線不會與其他機器人重合,即避免了兩個及兩個以上的機器人同時佔有一個空閒的空格。 Preferably, the method for determining the return path includes: first obtaining the current coordinates of other robots in the field; and then calculating the current coordinates of the current idle state based on the current coordinates of the robot in the currently idle state and the current coordinates of other robots in the field. The return path from the current coordinates of the robot to each of the destination coordinates is to ensure that the route of the idle robot out of the work area does not overlap with other robots, that is, to prevent two or more robots from occupying at the same time A free space.

S202、根據所述回流路徑對應的距離和時 間,計算所述當前空閒狀態的機器人的當前座標與每一個所述目的地座標之間的第一匹配代價。 S202: Calculate the first matching cost between the current coordinates of the robot in the currently idle state and each of the destination coordinates according to the distance and time corresponding to the return path.

具體的,根據上述步驟201確定的回流路徑,計算包括距離和時間參數的第一匹配代價;具體的,第一匹配代價的計算方式可以為:第一匹配代價=距離×距離的權重+時間×時間的權重;可替換地:第一匹配代價的計算方式可以為:第一匹配代價=距離×距離的權重與時間×時間的權重之積。 Specifically, according to the return path determined in step 201, the first matching cost including distance and time parameters is calculated; specifically, the first matching cost can be calculated as: first matching cost=distance×distance weight+time× The weight of time; alternatively: the calculation method of the first matching cost can be: the first matching cost=the product of the weight of distance×distance and the weight of time×time.

需要說明的是,本發明實施例中對第一匹配代價的計算方式不僅僅局限於上述兩種計算方式,本發明該計算方式不做具體限制。 It should be noted that the calculation method of the first matching cost in the embodiment of the present invention is not limited to the above two calculation methods, and the calculation method of the present invention is not specifically limited.

S203、將計算的多個所述第一匹配代價進行比較,選擇最小的第一匹配代價。 S203. Compare the multiple calculated first matching costs, and select the smallest first matching cost.

具體的,選擇上述任意一種計算方式計算第一匹配代價,然後將上述計算得到的所有的第一匹配代價進行比較,選擇得到的數值結果最小的匹配代價,以便後續將對應選擇的數值最小的匹配代價的目的地座標作為距離所述當前座標最近的目標目的地座標。 Specifically, select any one of the above calculation methods to calculate the first matching cost, and then compare all the first matching costs obtained by the above calculations, and select the matching cost with the smallest numerical result, so that the corresponding selected numerical value will be matched subsequently The destination coordinates of the cost are taken as the target destination coordinates closest to the current coordinates.

S204、確定選擇的所述最小的第一匹配代價對應的回流路徑中的目的地座標為距離所述當前座標最近的目標目的地座標。 S204: Determine that the destination coordinates in the return path corresponding to the selected smallest first matching cost are the target destination coordinates that are closest to the current coordinates.

考慮到空閒狀態的機器人可能會存在電量不足的情況,導致該機器人無法完成下一次從取貨到投遞到返回的過程的問題,或者考慮到空閒狀態的機器人的電量 不足以完成整個工作區域的貨物投遞點到工作區外的取貨點的最遠的回流路徑的問題時,還需要即時檢測機器人的電量情況,並控制機器人在電量不足的情況下,去工作區外的機器人充電站充電,參考圖3,具體實現方式如下: Considering that the robot in the idle state may have insufficient power, causing the robot to be unable to complete the next process from picking up to delivery to returning, or considering that the power of the idle robot is not enough to complete the goods in the entire work area When there is a problem with the farthest return path from the delivery point to the pickup point outside the work area, it is also necessary to detect the power of the robot immediately, and control the robot to go to the robot charging station outside the work area to charge when the power is insufficient. Figure 3, the specific implementation is as follows:

S301、判斷所述當前空閒狀態的機器人的電量是否滿足標準電量。 S301: Determine whether the power of the robot in the current idle state meets the standard power.

本發明實施例中的標準電量是能夠使機器人滿足從取貨到運貨到卸貨到返回儲貨區的最遠的路徑的電量;而當前機器人已經完成卸貨的過程後,首先判斷該空閒狀態的機器人剩餘的電量是否低於該標準電量,若該空閒狀態的機器人剩餘的電量低於該標準電量,則需要及時調遣該機器人去機器人充電站進行充電,以保證該空閒狀態的機器人能夠順利完成下一輪從取貨到運貨到卸貨到返回儲貨區的工作。 The standard electric quantity in the embodiment of the present invention is the electric quantity that enables the robot to satisfy the furthest path from picking up to transporting to unloading to returning to the storage area; and after the current robot has completed the unloading process, it first determines the idle state Whether the remaining power of the robot is lower than the standard power, if the remaining power of the idle robot is lower than the standard power, the robot needs to be dispatched to the robot charging station for charging in time to ensure that the idle robot can successfully complete the download A round of work from picking up to shipping to unloading to returning to the storage area.

S302、在檢測到所述當前空閒狀態的機器人的電量低於所述標準電量時,確定對應的所述機器人為待充電機器人。 S302: When it is detected that the power of the robot in the current idle state is lower than the standard power, it is determined that the corresponding robot is a robot to be charged.

具體的,在檢測到上述空閒狀態的機器人剩餘的電量低於該標準電量時,為了及時調遣該空閒狀態的機器人去充電,首先將該機器人確定為待充電機器人,以便後續統一調遣待充電機器人前往機器人充電站。 Specifically, when it is detected that the remaining power of the robot in the idle state is lower than the standard power, in order to dispatch the robot in the idle state to charge in time, the robot is first determined as the robot to be charged, so that the robot to be charged will be dispatched uniformly subsequently. Robot charging station.

S303、獲取所述待充電機器人待返回的所有充電站座標;其中,所述充電站座標為多個且多個所述充電站座標均處於工作區外的預設區域中。 S303. Obtain all charging station coordinates to be returned by the robot to be charged; wherein there are multiple charging station coordinates and the multiple charging station coordinates are all located in a preset area outside the working area.

實際上,在確定了待充電機器人所在的空格的位置之後,還需要確定該待充電機器人待離場(即待返回)的所有充電站座標,以便根據確定的當前座標和所有充電站座標的回流路徑,計算距離所述當前座標最近的目標充電站座標。 In fact, after determining the position of the space where the robot to be charged is located, it is also necessary to determine the coordinates of all the charging stations where the robot to be charged is to leave the field (that is, to be returned), so as to determine the current coordinates and the return of all the charging station coordinates. The path calculates the coordinates of the target charging station closest to the current coordinates.

S304、根據所述待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離所述待充電機器人的當前座標最近的目標充電站座標。 S304: Calculate the coordinates of the target charging station closest to the current coordinates of the robot to be charged according to the distance and time from the current coordinates of the robot to be charged to the coordinates of all charging stations.

具體的,在確定了待充電機器人的當前座標和所有充電站座標之後,根據待充電機器人的當前座標到每一個所述充電站座標的距離和時間,來計算距離和時間的結合對應的最優的組合,然後將該最優組合對應的充電站座標作為距離所述當前座標最近的目標充電站座標。 Specifically, after the current coordinates of the robot to be charged and the coordinates of all charging stations are determined, the optimal combination of distance and time is calculated according to the distance and time from the current coordinates of the robot to be charged to each of the charging station coordinates Then, the coordinates of the charging station corresponding to the optimal combination are used as the coordinates of the target charging station closest to the current coordinates.

其中,待充電機器人的當前座標到每一個所述充電站座標的距離(即行駛路線)是綜合考慮到多個機器人的路線而確定的,該距離(即行駛路線)對應的待充電機器人與其他機器人(包括待充電機器人以及待會兒回目標目的地座標的機器人)的路線不會重合(即避免兩個及兩個以上的機器人同時佔有一個空閒的空格),這樣則能夠使得待充電機器人能有序的返回目標充電站,從而進行充電,然後在進行下一個取貨、搬運、卸貨(即投遞)和離場的循環工作過程。 Wherein, the distance from the current coordinates of the robot to be charged to each of the charging station coordinates (i.e. the driving route) is determined by comprehensively considering the routes of multiple robots. The distance (i.e. driving route) corresponds to the robot to be charged and other The routes of the robots (including the robot to be charged and the robot that will return to the target destination coordinates later) will not overlap (that is, to avoid two or more robots occupying an empty space at the same time), so that the robot to be charged can be Return to the target charging station in an orderly manner for charging, and then proceed to the next cycle of picking up, handling, unloading (ie delivery) and leaving the site.

S305、控制所述待充電機器人按照所述目標充電站座標對應的回流路徑駛出工作區,以保證所述待充 電機器人有序駛入目標充電站進行充電。 S305. Control the robot to be charged to drive out of the work area according to the return path corresponding to the coordinates of the target charging station to ensure that the robot to be charged enters the target charging station in an orderly manner for charging.

具體的,控制該待充電機器人按照上述計算的目標充電站座標對應的回流路徑駛出工作區,並駛入充電站座標對應的機器人充電站,以保證待充電機器人儘快有序離開工作區場地進行充電,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率,提高機器人在場地內的工作效率。 Specifically, the robot to be charged is controlled to drive out of the work area according to the return path corresponding to the coordinates of the target charging station calculated above, and drive into the robot charging station corresponding to the coordinates of the charging station to ensure that the robot to be charged leaves the work area in an orderly manner as soon as possible Charging effectively reduces the number of idle robots in the field, and at the same time reduces the probability of robot paths crossing, and improves the working efficiency of robots in the field.

在機器人的工作區外包括多個不同區域的機器人充電站(包括充電站座標),多個所述充電站座標均設置在工作區外的預設區域的儲貨區中,為了更進一步保證機器人在投遞完貨物後儘快有序離開工作區場地前往機器人充電站,可以針對該空閒狀態的機器人的當前座標計算距離該空閒狀態的機器人最近的目標充電站座標,然後控制該空閒狀態的機器人沿著目標充電站座標的回流路徑駛出工作區,這樣能夠使機器人更快的離場。對此,參考圖4,本發明實施例中,上述步驟304的具體實現方式如下: The robot’s working area includes multiple robot charging stations (including charging station coordinates) in different areas. The multiple charging station coordinates are all set in the storage area of the preset area outside the working area. In order to further ensure the robot After the goods are delivered, leave the work area and go to the robot charging station in an orderly manner. According to the current coordinates of the idle robot, the coordinates of the target charging station closest to the idle robot can be calculated, and then the idle robot can be controlled along The return path of the target charging station coordinates exits the work area, which enables the robot to leave the field faster. In this regard, referring to FIG. 4, in the embodiment of the present invention, the specific implementation of the foregoing step 304 is as follows:

S401、計算所述待充電機器人的當前座標到每一個所述充電站座標的回流路徑。 S401: Calculate the return path from the current coordinates of the robot to be charged to the coordinates of each charging station.

為了方便確定距離待充電機器人的當前座標最近的目標充電站座標,首先計算上述待充電機器人的當前座標到每一個所述充電站座標的回流路徑,該回流路徑攜帶有距離和時間參數。 In order to facilitate the determination of the target charging station coordinates closest to the current coordinates of the robot to be charged, first calculate the return path from the current coordinates of the robot to be charged to each of the charging station coordinates, and the return path carries distance and time parameters.

較佳的,該回流路徑的確定方式包括:首先獲取其他機器人的當前座標;然後根據所述待充電機器人 的當前座標以及其他機器人的當前座標,計算所述待充電機器人的當前座標到每一個所述充電站座標的回流路徑,目的是保證待充電機器人駛出工作區的路線不會與其他機器人重合,即避免了兩個及兩個以上的機器人同時佔有一個空閒的空格。 Preferably, the method for determining the return path includes: first obtaining the current coordinates of other robots; then, according to the current coordinates of the robot to be charged and the current coordinates of other robots, calculating the current coordinates of the robot to be charged to each of the robots. The purpose of describing the return path of the charging station coordinates is to ensure that the route of the robot to be charged out of the work area does not overlap with other robots, that is, to prevent two or more robots from occupying an empty space at the same time.

S402、根據所述回流路徑對應的距離和時間,計算所述待充電機器人的當前座標與每一個所述充電站座標之間第二匹配代價。具體的,根據上述步驟401確定的回流路徑,計算包括距離和時間參數的第二匹配代價;具體的,第二匹配代價的計算方式可以為:第二匹配代價=距離×距離的權重+時間×時間的權重;可替換地:第二匹配代價的計算方式可以為:第二匹配代價=距離×距離的權重與時間×時間的權重之積。 S402: Calculate a second matching cost between the current coordinates of the robot to be charged and the coordinates of each charging station according to the distance and time corresponding to the return path. Specifically, according to the return path determined in step 401, the second matching cost including distance and time parameters is calculated; specifically, the second matching cost can be calculated as follows: second matching cost=distance×distance weight+time× The weight of time; alternatively: the calculation method of the second matching cost can be: the second matching cost=the product of the weight of distance×distance and the weight of time×time.

需要說明的是,本發明實施例中對第二匹配代價的計算方式不僅僅局限於上述兩種計算方式,本發明該計算方式不做具體限制。 It should be noted that the calculation method of the second matching cost in the embodiment of the present invention is not limited to the above two calculation methods, and the calculation method of the present invention is not specifically limited.

S403、將計算的多個所述第二匹配代價進行比較,選擇最小的第二匹配代價。 S403: Compare the multiple calculated second matching costs, and select the smallest second matching cost.

具體的,選擇上述任意一種計算方式計算第二匹配代價,然後將上述計算得到的所有的第二匹配代價進行比較,選擇得到的數值結果最小的匹配代價,以便後續將對應選擇的數值最小的匹配代價的充電站座標作為距離所述當前座標最近的目標充電站座標。 Specifically, select any one of the above calculation methods to calculate the second matching cost, and then compare all the second matching costs obtained by the above calculations, and select the matching cost with the smallest numerical result, so that the corresponding selected numerical value will be matched subsequently The coordinates of the charging station of the cost are taken as the coordinates of the target charging station closest to the current coordinates.

S404、確定選擇的所述最小的第二匹配代價 對應的回流路徑中的充電站座標為距離所述待充電機器人的當前座標最近的目標充電站座標。 S404. Determine that the charging station coordinates in the return path corresponding to the selected minimum second matching cost are the coordinates of the target charging station closest to the current coordinates of the robot to be charged.

進一步地,參見圖5,當出現機器人路徑交匯時,對機器人進行排隊管理,分別建立與多個機器人的資料連接,上述方法還包括: Further, referring to Fig. 5, when the robot path intersection occurs, the robots are queued and managed to establish data connections with multiple robots. The above method further includes:

步驟S501、確定擁堵點區域。 Step S501: Determine the congestion point area.

本發明實施例中,伺服器與場地內的多個機器人(包括空閒狀態的機器人和處於工作狀態的機器人)建立了資料連接,進而獲取所述多個機器人的路徑(包括空閒狀態的機器人的回流路徑和處於工作狀態的機器人的行駛路徑),並對所述多個機器人的回流路徑進行分析,確定路徑中出現頻率較高的地點為擁堵點,從所述擁堵點的鄰近區域中確定擁堵點區域,其中,擁堵點區域不同於將機器人排成一列,先進入擁堵點區域的機器人排在最前面的排隊區域,而是包括機器人散落在擁堵點區域內的各個位置。 In the embodiment of the present invention, the server establishes a data connection with multiple robots in the field (including idle robots and working robots), and then obtains the paths of the multiple robots (including the return of idle robots). The path and the travel path of the robot in the working state), and analyze the return paths of the multiple robots, determine that the location with a higher frequency in the path is the congestion point, and determine the congestion point from the adjacent area of the congestion point The congestion point area is different from arranging the robots in a row, and the robots that enter the congestion point area first are placed in the foremost queuing area, but include the robots scattered at various positions in the congestion point area.

步驟S502、根據所述擁堵點區域內的每個機器人發送的通過請求分別為所述擁堵點區域內的每個機器人設置調度指令。 Step S502: According to the passing request sent by each robot in the congestion point area, a scheduling instruction is set for each robot in the congestion point area.

其中,所述通過請求包括但不限於:機器人在所述擁堵點區域內的位置。每個機器人進入到擁堵點區域,都會被觸發向伺服器發送通過請求,伺服器根據擁堵點區域內的每個機器人發送的通過請求的時間順序、通過請求包含的每個機器人在擁堵點區域內的位置,分別為擁堵點區域內的每個機器人設置調度指令。 Wherein, the passing request includes but is not limited to: the position of the robot in the congestion point area. Each robot entering the congestion point area will be triggered to send a pass request to the server. The server will send a pass request to each robot in the congestion point area according to the time sequence of the pass request, and each robot included in the pass request is in the congestion point area Set the scheduling instructions for each robot in the congestion area.

具體的,為擁堵點區域內的機器人設置調度指令,需要綜合考慮如下因素: Specifically, to set scheduling instructions for robots in the congestion area, the following factors need to be considered:

(1)機器人發送通過請求的時間順序; (1) The time sequence in which the robot sends the approval request;

機器人發送的每個請求都有時效限制,為了避免機器人發送的通過請求回應超時,避免優先到達擁堵點區域的機器人不能優先通過擁堵點區域,伺服器為機器人設置調度指令時,需要根據機器人發送的通過請求的時間順序進行設置。 Each request sent by the robot has a time limit. In order to avoid the timeout of the response to the request sent by the robot, and to avoid that the robot that first reaches the congestion point area can not pass the congestion point area first, when the server sets the scheduling command for the robot, it needs to be sent according to the robot The time sequence of the request is set.

(2)機器人在擁堵點區域內的位置; (2) The position of the robot in the congestion area;

擁堵點區域是與擁堵點鄰近的區域,每個機器人進入到擁堵點區域後,散落在擁堵點區域內的各個位置,並不是排成一列,先進入擁堵點區域的機器人排在最前面,當某個機器人通過擁堵點的路線上有其他機器人阻擋,則為了能夠快速通過擁堵點區域,可以為阻擋其他機器人的機器人設置調度指令,令其優先通過擁堵點區域。 The congestion point area is the area adjacent to the congestion point. After each robot enters the congestion point area, they are scattered at various positions in the congestion point area. They are not lined up. The robots that enter the congestion point area first are ranked first. If a robot is blocked by other robots on its route through a congestion point, in order to quickly pass through the congestion point area, a scheduling command can be set for the robot that blocks other robots to make it pass the congestion point area first.

其中,根據伺服器對機器人通過擁堵點區域的不同的需求,可以適應的調整因素(1)、(2)的優先順序別。例如,當伺服器對機器人進入擁堵點區域的通過請求時效要求較高,則增加因素(1)的比例;當伺服器對對機器人進入擁堵點區域的通過請求時效要求較低,對機器人通過擁堵點區域的總體效率要求較高,則增加因素(2)的比例。 Among them, according to the different requirements of the server for the robot to pass through the congestion point area, the priority order of the adjustment factors (1) and (2) can be adapted. For example, when the server has a higher timeliness requirement for the passage request of the robot to enter the congestion point area, increase the proportion of factor (1); when the server has a lower timeliness request for the robot to enter the congestion point area, it is for the robot to pass through the congestion point area. If the overall efficiency requirement of the dot area is higher, increase the ratio of factor (2).

需要注意的是,為了提高機器人通過擁堵點區域的速度,每個機器人都應該以最大行走速度通過擁堵 點區域,而且,考慮到每個機器人的最大行走速度不同,為了避免機器人在擁堵點區域內擁堵,伺服器應該根據每個機器人的最大行走速度為每個機器人設置調度指令。 It should be noted that in order to increase the speed of robots passing through the congestion point area, each robot should pass through the congestion point area at the maximum walking speed. Moreover, considering that the maximum walking speed of each robot is different, in order to avoid the robot in the congestion point area Congestion, the server should set scheduling instructions for each robot according to the maximum walking speed of each robot.

其中,調度指令包括但不限於:機器人在擁堵點區域內開始運行的時間,機器人通過擁堵點區域的路線以及機器人通過擁堵點區域的速度。 Among them, the scheduling instructions include but are not limited to: the time when the robot starts to run in the congestion point area, the route of the robot through the congestion point area, and the speed of the robot through the congestion point area.

需要注意的是,調度指令包含機器人在擁堵點區域內開始運行的時間的方式包括:A、直接在調度指令中攜帶開始執行時間;B、當到達機器人開始運行的時間時,向機器人發送包含機器人通過擁堵點區域的路線以及機器人通過擁堵點區域的速度的調度指令。 It should be noted that the ways in which the scheduling instruction includes the time when the robot starts to run in the congestion point area include: A. Directly carry the start execution time in the scheduling instruction; B. When the time when the robot starts to run, send the robot containing the robot Scheduling instructions for the route through the congestion point area and the speed of the robot through the congestion point area.

需要注意的是,進入到擁堵點區域後,機器人是處於等候狀態,當接收到調度指令後才開始按照調度指令通過擁堵點區域。其中,由於伺服器設置調度指令的時間很快,可以忽略不計,因此,機器人處於等候狀態的時間並不長,不會影響機器人通過擁堵點區域的速度。 It should be noted that after entering the congestion point area, the robot is in a waiting state. After receiving the dispatching instruction, it starts to pass the congestion point area according to the dispatching instruction. Among them, since the time for the server to set the scheduling command is very fast and can be ignored, the robot is in the waiting state for not long, and it will not affect the speed of the robot through the congestion point area.

步驟S503、分別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。 Step S503: Send a scheduling instruction to each robot in the congestion point area, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction.

伺服器為擁堵點區域內的每個機器人設置了調度指令後,將針對每個機器人的調度指令發送給對應的機器人,機器人接收到調度指令,按照調度指令中的開始執行時間開始以調度指令中的路線和速度通過擁堵點區 域。 After the server sets the scheduling instructions for each robot in the congestion point area, it sends the scheduling instructions for each robot to the corresponding robots. The robots receive the scheduling instructions and start with the scheduling instructions according to the start execution time in the scheduling instructions. The route and speed through the congestion point area.

在本發明實施例提供的方法中,進一步地,確定擁堵點區域;根據所述擁堵點區域內的每個機器人發送的通過請求以及所述擁堵點區域內的每個機器人的路徑分別為所述擁堵點區域內的每個機器人設置調度指令;分別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。對擁堵點區域的每個機器人的通過請求進行分析,為每個機器人設置各自的調度指令,避免了機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,進而提高了機器人集群的整體工作效率。 In the method provided by the embodiment of the present invention, the congestion point area is further determined; according to the passing request sent by each robot in the congestion point area and the path of each robot in the congestion point area, the Each robot in the congestion point area sets a scheduling instruction; and each robot in the congestion point area is sent a scheduling instruction, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction. Analyze the passing request of each robot in the congestion point area, and set its own scheduling instructions for each robot to avoid the robot from being congested in the congestion point area, improve the speed of the robot passing the congestion point, and improve the overall robot cluster Work efficiency.

下面結合具體的應用場景對上述步驟S501-S503進行詳細的說明。其中,系統中存在機器人1、2以及伺服器,場地中存在機器人工作區,其中A點為工作區與儲貨區之間的某個節點,機器人充電區和儲貨區C1、C2...CN,為了方便設置回流路徑,伺服器將整個工作區節點化,給每個節點(空格)分配座標(x,y),並將擁堵點的重力值設置為(0,0),然後向周圍節點輻射,距離每增加1個座標單位,重力值增加1個單位,即重力值為座標點到座標原點的最小距離,其中,重力值=X座標+Y座標。 The above steps S501-S503 will be described in detail below in conjunction with specific application scenarios. Among them, there are robots 1, 2 and servers in the system, and there is a robot work area in the field, where point A is a node between the work area and the storage area, the robot charging area and the storage area C1, C2... CN, in order to facilitate the setting of the return path, the server nodeizes the entire work area, assigns coordinates (x, y) to each node (space), and sets the gravity value of the congestion point to (0,0), and then moves it around For node radiation, every time the distance increases by 1 coordinate unit, the gravity value increases by 1 unit, that is, the gravity value is the minimum distance from the coordinate point to the coordinate origin, where the gravity value = X coordinate + Y coordinate.

伺服器獲知機器人1的路徑為:從工作區內的某個位置-A-C1,機器人2的路徑為從工作區內的某個位置-A-C2。伺服器經過分析,確定所有機器人都會經過A點,A點出現的頻率最高,因此確定A為擁堵點,從A鄰近的區 域中選取擁堵點區域。機器人被設置為當進入到擁堵點區域時,被觸發向伺服器發送通過請求。 The server learns that the path of the robot 1 is: from a certain position in the work area-A-C1, and the path of the robot 2 is from a certain position in the work area-A-C2. After analysis, the server determines that all robots will pass through point A, and point A appears the most frequently. Therefore, it determines that A is the congestion point and selects the congestion point area from the area adjacent to A. The robot is set to be triggered to send a pass request to the server when it enters the congestion area.

當機器人1和機器人2依次進入了擁堵點區域後,分別向伺服器發送其在擁堵點區域的位置,如圖6所示,為本實施例提供的一種機器人1和機器人2在擁堵點區域的位置圖,其中,機器人1的位置座標為(5,6),重力值為11;機器人2的位置座標為(5,0),重力值為5,且機器人1與機器人2存在不重合的最小路徑,其中機器人1的路徑為S1,機器人2的路徑為S2。 When robot 1 and robot 2 enter the congestion point area in turn, they respectively send their positions in the congestion point area to the server. As shown in FIG. 6, the position of robot 1 and robot 2 in the congestion point area is provided in this embodiment. Location map, where the position coordinate of robot 1 is (5,6) and the gravity value is 11; the position coordinate of robot 2 is (5,0), the gravity value is 5, and there is a minimum of non-coincidence between robot 1 and robot 2. Path, where the path of robot 1 is S1, and the path of robot 2 is S2.

從圖6中可知,雖然機器人1首先向伺服器發送了通過請求,但機器人2的重力值更小,距離擁堵點的位置更近,如果機器人1通過擁堵點A的時間T1大於機器人2通過擁堵點A的時間T2,則為了提高機器人通過擁堵點A的效率,機器人1和機器人2選擇最小路徑通過擁堵點A,在不影響機器人1通過擁堵點A的同時,為機器人2設置包含與機器人1相同的開始執行時間的調度指令,且調度指令中機器人1的路徑S1與機器人2的路徑S2不重合,如圖6中的S1與S2路徑,這樣節省了機器人2通過路徑S2通過擁堵點A的時間,進而提高了機器人1、2通過擁堵點A的整體速度。 It can be seen from Figure 6 that although the robot 1 sends a pass request to the server first, the gravity value of the robot 2 is smaller and the location of the congestion point is closer. If the time T1 for the robot 1 to pass the congestion point A is greater than that of the robot 2 to pass the congestion At time T2 of point A, in order to improve the efficiency of robots passing through congestion point A, robots 1 and 2 choose the smallest path to pass through congestion point A. While not affecting robot 1’s passage through congestion point A, set robot 2 to include and robot 1 The same start execution time scheduling instruction, and the path S1 of robot 1 and the path S2 of robot 2 in the scheduling instruction do not overlap, as shown in the S1 and S2 paths in Figure 6, which saves the robot 2 from passing through the congestion point A through the path S2 Time, thereby increasing the overall speed of the robots 1 and 2 through the congestion point A.

如果機器人1通過擁堵點A的時間T1小於機器人2通過擁堵點A的時間T2(由於每個機器人的速度不同,如果機器人1的速度大於機器人2的速度,則會出現這種情況),則也可以為機器人1和機器人2設置包含相同的開 始執行時間的調度指令,這樣在機器人1通過擁堵點A之後,不影響機器人2通過擁堵點A的時間,進而提高了機器人1、2通過擁堵點A的整體速度。 If the time T1 for robot 1 to pass through congestion point A is less than the time T2 for robot 2 to pass through congestion point A (due to the different speeds of each robot, this will happen if the speed of robot 1 is greater than that of robot 2), then It is possible to set a scheduling instruction containing the same start execution time for robot 1 and robot 2, so that after robot 1 passes through congestion point A, the time for robot 2 to pass through congestion point A is not affected, thereby increasing the time for robots 1 and 2 to pass through congestion point A. The overall speed.

如果機器人1通過擁堵點A的時間T1等於機器人2通過擁堵點A的時間T2,則當伺服器對機器人發送通過請求的時間順序有要求時,則可以為機器人1設置的調度指令包含的開始執行時間優先於為機器人2設置的調度指令包含的開始執行時間,且調度指令中機器人1的路徑S1與機器人2的路徑S2不重合,例如,為機器人1設置的調度指令為“10:00按照S1路徑以3公里/小時的速度通過擁堵點A”,為機器人2設置的調度指令可以為“10:01按照S2路徑以3.5公里/小時的速度通過擁堵點A”。 If the time T1 for robot 1 to pass through congestion point A is equal to the time T2 for robot 2 to pass through congestion point A, then when the server has requirements for the time sequence of the robot's passing requests, it can start execution included in the scheduling instructions set for robot 1 The time has priority over the start execution time included in the scheduling instruction set for robot 2, and the path S1 of robot 1 and the path S2 of robot 2 in the scheduling instruction do not overlap. For example, the scheduling instruction set for robot 1 is "10:00 in accordance with S1 The path passes through the congestion point A at a speed of 3 km/h. The scheduling instruction set for the robot 2 can be “10:01 to pass through the congestion point A at a speed of 3.5 km/h according to the S2 path”.

如圖7所示,為本實施例提供的另一種機器人1和機器人2在擁堵點區域的位置圖,其中,機器人1的位置座標為(6,0),重力值為6;機器人2的位置座標為(5,0),重力值為5,機器人1的路徑為S1,機器人2的路徑為S2,機器人2在機器人1的最小路徑上。 As shown in Fig. 7, another position map of robot 1 and robot 2 in the congestion point area provided by this embodiment, where the position coordinate of robot 1 is (6, 0), the gravity value is 6; the position of robot 2 The coordinates are (5, 0), the gravity value is 5, the path of the robot 1 is S1, the path of the robot 2 is S2, and the robot 2 is on the minimum path of the robot 1.

雖然機器人1首先向伺服器發送了通過請求,但機器人2距離擁堵點A的距離更近,如果機器人1通過擁堵點A的時間T1大於機器人2通過擁堵點A的時間T2,則為了提高機器人通過擁堵點A的效率,為機器人1和機器人2設置包含相同的開始執行時間的調度指令,其中,機器人1的路徑為S1,機器人2的路徑為S2,即在不影響機器人1通過擁堵點A的同時,節省了機器人2通過擁堵點A的 時間,進而提高了機器人1、2通過擁堵點A的整體速度。 Although robot 1 first sends a pass request to the server, robot 2 is closer to congestion point A. If the time T1 for robot 1 to pass congestion point A is greater than the time T2 for robot 2 to pass congestion point A, in order to improve the robot passing The efficiency of congestion point A is to set scheduling instructions with the same start execution time for robot 1 and robot 2. Among them, the path of robot 1 is S1, and the path of robot 2 is S2, that is, the path that does not affect robot 1 passing through congestion point A At the same time, the time for the robot 2 to pass through the congestion point A is saved, thereby increasing the overall speed of the robots 1 and 2 through the congestion point A.

如果機器人1通過擁堵點A的時間T1小於等於機器人2通過擁堵點A的時間T2(由於每個機器人的速度不同,如果機器人1的速度大於機器人2的速度,則會出現這種情況),則根據機器人發送通過請求的時間順序,可以為機器人1設置的調度指令包含的開始執行時間優先於為機器人2設置的調度指令包含的開始執行時間,其中,機器人1的路徑為S1’,其中S1’為繞過機器人2通過擁堵點A的路徑,如圖8所示的S1’。如果根據機器人在所述擁堵點區域內的位置設置調度指令,則為機器人2設置的調度指令包含的開始執行時間優先於為機器人1設置的調度指令包含的開始執行時間,且機器人1的路徑為S1’,機器人2的路徑為S2,使機器人2在機器人1通過擁堵點A之前通過。 If the time T1 for the robot 1 to pass through the congestion point A is less than or equal to the time T2 for the robot 2 to pass through the congestion point A (due to the different speeds of each robot, this situation will occur if the speed of the robot 1 is greater than the speed of the robot 2), then According to the time sequence of the robot sending the request, the start execution time included in the scheduling instruction set for robot 1 has priority over the start execution time included in the scheduling instruction set for robot 2. The path of robot 1 is S1', where S1' In order to bypass the path of the robot 2 through the congestion point A, as shown in FIG. 8 S1'. If the scheduling instruction is set according to the position of the robot in the congestion point area, the start execution time included in the scheduling instruction set for robot 2 has priority over the start execution time included in the scheduling instruction set for robot 1, and the path of robot 1 is S1', the path of the robot 2 is S2, so that the robot 2 passes before the robot 1 passes the congestion point A.

需要注意的是,圖6和圖7只是本實施例提供的一種具體的應用場景,實際應用中,機器人集群不僅限於兩個機器人,只要根據本實施例提供的根據所述擁堵點區域內的每個機器人發送的通過請求的時間順序、所述通過請求包含的所述每個機器人在所述擁堵點區域內的位置,為所述擁堵點區域內的每個機器人設置調度指令的方法均在本發明的保護範圍之內。 It should be noted that Figs. 6 and 7 are only a specific application scenario provided by this embodiment. In actual applications, the robot cluster is not limited to two robots, as long as it is provided according to this embodiment according to each of the congestion point areas. The time sequence of the passing requests sent by each robot, the position of each robot included in the passing request within the congestion point area, and the method of setting scheduling instructions for each robot in the congestion point area are all in this Within the scope of protection of the invention.

在本發明實施例提供的方法中,進一步地,確定擁堵點區域;根據所述擁堵點區域內的每個機器人發送的通過請求以及所述擁堵點區域內的每個機器人的路徑分別為所述擁堵點區域內的每個機器人設置調度指令;分 別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。對擁堵點區域的每個機器人的通過請求進行分析,為每個機器人設置各自的調度指令,避免了機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,進而提高了機器人集群的整體工作效率。 In the method provided by the embodiment of the present invention, the congestion point area is further determined; according to the passing request sent by each robot in the congestion point area and the path of each robot in the congestion point area, the Each robot in the congestion point area sets a scheduling instruction; and each robot in the congestion point area is sent a scheduling instruction, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction. Analyze the passing request of each robot in the congestion point area, and set its own scheduling instructions for each robot to avoid the robot from being congested in the congestion point area, improve the speed of the robot passing the congestion point, and improve the overall robot cluster Work efficiency.

本發明實施例提供的一種用於機器人場地回流的方法,與先前技術中大數量、高密度的機器人集群在場地內活動結束有序離場的問題未得到有效解決相比,其根據即時定位的空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算目標目的地座標,並控制機器人按照計算的目標目的地座標對應的回流路徑駛出工作區,保證了機器人在投遞完貨物後儘快有序離開工作區場地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率;並且在出現機器人路徑交匯時,對機器人進行排隊管理,通過分別建立與多個機器人的資料連接,確定擁堵點區域;根據擁堵點區域內的每個機器人發送的通過請求以及擁堵點區域內的每個機器人的路徑分別為擁堵點區域內的每個機器人設置調度指令;分別向擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據調度指令通過擁堵點區域,避免機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,提高機器人在場地內的工作效率以及機器人集群的整體工作效率。 The method for returning robots to the field provided by the embodiment of the present invention is compared with the problem that the large number and high-density robot clusters in the prior art have not effectively solved the problem of orderly leaving in the field. It is based on real-time positioning. The distance and time from the current coordinates of the idle robot to all destination coordinates, calculate the target destination coordinates, and control the robot to drive out of the work area according to the calculated return path corresponding to the target destination coordinates, ensuring that the robot will deliver the goods after delivery Leaving the work area as soon as possible in an orderly manner, effectively reducing the number of idle robots in the field, and at the same time reducing the probability of robot path intersections; and when robot path intersections occur, the robots are queued and managed by establishing a connection with multiple robots. According to the data connection of the congestion point area, determine the congestion point area; according to the passing request sent by each robot in the congestion point area and the path of each robot in the congestion point area, set scheduling instructions for each robot in the congestion point area; Each robot in the point area sends a scheduling instruction so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction, avoiding the robot from being congested in the congestion point area, increasing the speed of the robot passing the congestion point, and improving the robot’s presence in the field The work efficiency and the overall work efficiency of the robot cluster.

本發明實施例還提供了一種用於機器人場地回流的裝置,所述裝置用於執行上述用於機器人場地回流的方法,所述裝置可以設置在控制機器人工作的伺服器中,參考圖9,所述裝置包括:第一獲取模組11,用於獲取工作區中的當前空閒狀態的機器人的當前座標;第二獲取模組12,用於獲取當前空閒狀態的機器人待返回的所有目的地座標;其中,目的地座標為多個且多個目的地座標均處於工作區外;工作區外包括多個不同區域的儲貨區,多個目的地座標均設置在工作區外的預設區域的儲貨區中;第一計算模組13,用於根據當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離當前座標最近的目標目的地座標;第一控制模組14,用於控制當前空閒狀態的機器人按照目標目的地座標對應的回流路徑駛出工作區,以保證當前空閒狀態的機器人有序離場。 The embodiment of the present invention also provides a device for robot field return, the device is used to implement the above method for robot field return, the device can be set in a server that controls the robot's work, referring to FIG. 9, The device includes: a first acquisition module 11 for acquiring the current coordinates of the robot in the current idle state in the work area; a second acquisition module 12 for acquiring all the destination coordinates of the robot in the current idle state to be returned; Among them, there are multiple destination coordinates and multiple destination coordinates are outside the working area; outside the working area includes multiple storage areas in different areas, and multiple destination coordinates are set in the storage area of the preset area outside the working area. In the cargo area; the first calculation module 13 is used to calculate the target destination coordinates closest to the current coordinates according to the distance and time from the current coordinates of the robot in the currently idle state to all destination coordinates; the first control module 14, It is used to control the robot in the current idle state to drive out of the work area according to the return path corresponding to the target destination coordinates to ensure that the robot in the current idle state leaves the field in an orderly manner.

本發明實施例提供的一種用於機器人場地回流的裝置,與先前技術中大數量、高密度的機器人集群在場地內活動結束有序離場的問題未得到有效解決相比,其根據即時定位的空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算目標目的地座標,並控制機器人按照計算的目標目的地座標對應的回流路徑駛出工作區,保證了機器人在投遞完貨物後儘快有序離開工作區場 地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率,提高機器人在場地內的工作效率。 An embodiment of the present invention provides a device for returning robots to the field. Compared with the problem of the large number and high-density of robot clusters in the prior art, the problem of orderly leaving the field after activities in the field has not been effectively solved, it is based on real-time positioning. The distance and time from the current coordinates of the idle robot to all destination coordinates, calculate the target destination coordinates, and control the robot to drive out of the work area according to the calculated return path corresponding to the target destination coordinates, ensuring that the robot will deliver the goods after delivery Leaving the work area as soon as possible in an orderly manner, effectively reducing the number of idle robots in the field, and at the same time reducing the probability of robot paths crossing, and improving the efficiency of robots in the field.

在機器人的工作區外包括多個不同區域的儲貨區,多個所述目的地座標均設置在工作區外的預設區域的儲貨區中,為了更進一步保證機器人在投遞完貨物後儘快有序離開工作區場地,可以針對該空閒狀態的機器人的當前座標計算距離該空閒狀態的機器人最近的目標目的地座標的儲貨區,然後控制該空閒狀態的機器人沿著目標目的地座標的儲貨區的回流路徑駛出工作區,這樣能夠使機器人更快的離場。對此,參考圖10,第一計算模組13包括:第一計算單元131,用於計算當前空閒狀態的機器人的當前座標到每一個目的地座標的回流路徑;第二計算單元132,用於根據回流路徑對應的距離和時間,計算當前空閒狀態的機器人的當前座標與每一個目的地座標之間的第一匹配代價;第一比較單元133,用於將計算的多個第一匹配代價進行比較;第一選擇單元134,用於選擇第一比較單元比較得到的最小的第一匹配代價;第一確定單元135,用於確定選擇的最小的第一匹配代價對應的回流路徑中的目的地座標為距離當前座標最近的目標目的地座標。 The robot’s work area includes multiple storage areas in different areas, and multiple destination coordinates are set in the storage area of the preset area outside the work area, in order to further ensure that the robot can deliver goods as soon as possible after delivery. To leave the work area in an orderly manner, the storage area of the target destination coordinates closest to the idle robot can be calculated for the current coordinates of the idle robot, and then the idle robot is controlled to store the coordinates along the target destination coordinate. The return path of the cargo area is driven out of the work area, so that the robot can leave the field faster. In this regard, referring to FIG. 10, the first calculation module 13 includes: a first calculation unit 131 for calculating the return path from the current coordinates of the robot in the current idle state to each destination coordinate; and a second calculation unit 132 for According to the distance and time corresponding to the return path, calculate the first matching cost between the current coordinates of the robot in the current idle state and each destination coordinate; the first comparison unit 133 is used to perform the calculation of multiple first matching costs Comparison; a first selection unit 134 for selecting the smallest first matching cost compared by the first comparison unit; a first determining unit 135 for determining the destination in the return path corresponding to the selected smallest first matching cost The coordinates are the coordinates of the target destination closest to the current coordinates.

較佳的,該回流路徑的確定方式具體通過如 下裝置實現,參考圖11,進一步的,第一計算單元131包括:獲取子單元1311,用於獲取其他機器人的當前座標;計算子單元1312,用於根據當前空閒狀態的機器人的當前座標以及其他機器人的當前座標,計算機器人的當前座標到每一個目的地座標的回流路徑。 Preferably, the method for determining the return path is specifically realized by the following device. Referring to FIG. 11, further, the first calculation unit 131 includes: an acquisition subunit 1311 for acquiring the current coordinates of other robots; a calculation subunit 1312 for Based on the current coordinates of the robot in the current idle state and the current coordinates of other robots, the return path from the current coordinates of the robot to each destination coordinate is calculated.

考慮到空閒狀態的機器人可能會存在電量不足的情況,導致該機器人無法完成下一次從取貨到投遞到返回的過程的問題,或者考慮到空閒狀態的機器人的電量不足以完成整個工作區域的貨物投遞點到工作區外的取貨點的最遠的回流路徑的問題時,還需要即時檢測機器人的電量情況,並控制機器人在電量不足的情況下,去工作區外的機器人充電站充電,參考圖12,具體實現方式如下:所述裝置還包括:判斷模組15,用於判斷當前空閒狀態的機器人的電量是否滿足標準電量;第一確定模組16,用於在檢測到當前空閒狀態的機器人的電量低於標準電量時,確定對應的機器人為待充電機器人;第二獲取模組17,用於獲取待充電機器人待返回的所有充電站座標;其中,充電站座標為多個且多個充電站座標均處於工作區外的預設區域中;第二計算模組18,用於根據待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離待充電機器人的當前座標最近的目標充電站座標; 第二控制模組19,用於控制待充電機器人按照目標充電站座標對應的回流路徑駛出工作區,以保證待充電機器人有序駛入目標充電站進行充電。 Considering that the robot in the idle state may have insufficient power, causing the robot to be unable to complete the next process from picking up to delivery to returning, or considering that the power of the idle robot is not enough to complete the goods in the entire work area When there is a problem with the farthest return path from the delivery point to the pickup point outside the work area, it is also necessary to detect the power of the robot immediately, and control the robot to go to the robot charging station outside the work area to charge when the power is insufficient. Figure 12, the specific implementation is as follows: the device further includes: a judging module 15 for judging whether the power of the robot in the current idle state meets the standard power; the first determining module 16 is used for detecting the current idle state When the power of the robot is lower than the standard power, the corresponding robot is determined to be the robot to be charged; the second acquisition module 17 is used to acquire the coordinates of all the charging stations to be returned by the robot to be charged; wherein there are multiple and multiple charging station coordinates The coordinates of the charging station are all located in a preset area outside the working area; the second calculation module 18 is used to calculate the closest distance to the current coordinates of the robot to be charged according to the distance and time from the current coordinates of the robot to be charged to the coordinates of all charging stations The coordinates of the target charging station; the second control module 19 is used to control the robot to be charged to drive out of the work area according to the return path corresponding to the coordinates of the target charging station to ensure that the robot to be charged enters the target charging station for charging in an orderly manner.

在機器人的工作區外包括多個不同區域的機器人充電站(包括充電站座標),多個所述充電站座標均設置在工作區外的預設區域的儲貨區中,為了更進一步保證機器人在投遞完貨物後儘快有序離開工作區場地前往機器人充電站,可以針對該空閒狀態的機器人的當前座標計算距離該空閒狀態的機器人最近的目標充電站座標,然後控制該空閒狀態的機器人沿著目標充電站座標的回流路徑駛出工作區,這樣能夠使機器人更快的離場。對此,參考圖13,第二計算模組18包括:第三計算單元181,用於計算待充電機器人的當前座標到每一個充電站座標的回流路徑;第四計算單元182,用於根據回流路徑對應的距離和時間,計算待充電機器人的當前座標與每一個充電站座標之間第二匹配代價;第二比較單元183,用於將計算的多個第二匹配代價進行比較;第二選擇單元184,用於選擇第二比較單元比較得到的最小的第二匹配代價;第二確定單元185,用於確定選擇的最小的第二匹配代價對應的回流路徑中的充電站座標為距離待充電機器人的當前座標最近的目標充電站座標。 The robot’s working area includes multiple robot charging stations (including charging station coordinates) in different areas. The multiple charging station coordinates are all set in the storage area of the preset area outside the working area. In order to further ensure the robot After the goods are delivered, leave the work area and go to the robot charging station in an orderly manner. According to the current coordinates of the idle robot, the coordinates of the target charging station closest to the idle robot can be calculated, and then the idle robot can be controlled along The return path of the target charging station coordinates exits the work area, which enables the robot to leave the field faster. In this regard, referring to FIG. 13, the second calculation module 18 includes: a third calculation unit 181 for calculating the return path from the current coordinates of the robot to be charged to the coordinates of each charging station; a fourth calculation unit 182 for calculating the return path The distance and time corresponding to the path are calculated, and the second matching cost between the current coordinates of the robot to be charged and the coordinates of each charging station is calculated; the second comparison unit 183 is used to compare the calculated multiple second matching costs; the second option The unit 184 is used to select the smallest second matching cost compared by the second comparison unit; the second determining unit 185 is used to determine the coordinates of the charging station in the return path corresponding to the selected smallest second matching cost as the distance to be charged The coordinates of the nearest target charging station of the robot's current coordinates.

進一步地,參見圖14,當出現機器人路徑交匯時,對機器人進行排隊管理,上述裝置分別建立與多個機器人的資料連接,還包括:第二確定模組51,用於確定擁堵點區域;設置模組52,用於根據所述擁堵點區域內的每個機器人發送的通過請求分別為所述擁堵點區域內的每個機器人設置調度指令;發送模組53,用於分別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。 Further, referring to Fig. 14, when there is a robot path intersection, the robots are queued and managed. The above-mentioned device establishes data connections with multiple robots respectively, and further includes: a second determination module 51 for determining the congestion point area; The module 52 is used to set scheduling instructions for each robot in the congestion point area according to the passing request sent by each robot in the congestion point area; the sending module 53 is used to respectively send a dispatch instruction to the congestion point Each robot in the area sends a scheduling instruction, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction.

其中,所述第二確定模組51,包括:獲取單元,用於獲取所述多個機器人的路徑;擁堵點確定單元,用於根據所述多個機器人的路徑確定擁堵點;擁堵點區域確定單元,用於從所述擁堵點的鄰近區域中確定擁堵點區域。 Wherein, the second determination module 51 includes: an acquisition unit for acquiring the paths of the multiple robots; a congestion point determination unit for determining a congestion point according to the paths of the multiple robots; and determining a congestion point area The unit is used to determine the congestion point area from the adjacent area of the congestion point.

其中,所述通過請求包括:機器人在所述擁堵點區域內的位置。 Wherein, the passing request includes: the position of the robot in the congestion point area.

其中,所述設置模組52,用於根據所述擁堵點區域內的每個機器人發送的通過請求的時間順序、所述通過請求包含的所述每個機器人在所述擁堵點區域內的位置,分別為所述擁堵點區域內的每個機器人設置調度指令。 Wherein, the setting module 52 is configured to according to the time sequence of the passage request sent by each robot in the congestion point area, and the position of each robot included in the passage request in the congestion point area , Respectively set scheduling instructions for each robot in the congestion point area.

其中,所述調度指令包括:機器人在所述擁堵點區域內開始運行的時間,所述機器人通過所述擁堵點 區域的路線以及所述機器人通過所述擁堵點區域的速度。 Wherein, the scheduling instruction includes: the time at which the robot starts to run in the congestion point area, the route of the robot through the congestion point area, and the speed of the robot through the congestion point area.

在本發明實施例提供的裝置中,進一步地,確定擁堵點區域;根據所述擁堵點區域內的每個機器人發送的通過請求以及所述擁堵點區域內的每個機器人的路徑分別為所述擁堵點區域內的每個機器人設置調度指令;分別向所述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據所述調度指令通過所述擁堵點區域。對擁堵點區域的每個機器人的通過請求進行分析,為每個機器人設置各自的調度指令,避免了機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,進而提高了機器人集群的整體工作效率。 In the device provided by the embodiment of the present invention, the congestion point area is further determined; the passage request sent by each robot in the congestion point area and the path of each robot in the congestion point area are respectively the Each robot in the congestion point area sets a scheduling instruction; and each robot in the congestion point area is sent a scheduling instruction, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction. Analyze the passing request of each robot in the congestion point area, and set its own scheduling instructions for each robot to avoid the robot from being congested in the congestion point area, improve the speed of the robot passing the congestion point, and improve the overall robot cluster Work efficiency.

本發明實施例提供的一種用於機器人場地回流的裝置,與先前技術中大數量、高密度的機器人集群在場地內活動結束有序離場的問題未得到有效解決相比,其根據即時定位的空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算目標目的地座標,並控制機器人按照計算的目標目的地座標對應的回流路徑駛出工作區,保證了機器人在投遞完貨物後儘快有序離開工作區場地,有效的減少了場地內空閒機器人的數量,同時還減少了機器人路徑交匯的概率,提高機器人在場地內的工作效率;並且在出現機器人路徑交匯時,對機器人進行排隊管理,通過分別建立與多個機器人的資料連接,確定擁堵點區域;根據擁堵點區域內的每個機器人發送的通過請求以及擁堵點區域內的每個機器人的路徑分別為擁堵點區域內 的每個機器人設置調度指令;分別向擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據調度指令通過擁堵點區域,避免機器人在擁堵點區域發生擁堵,提高了機器人通過擁堵點的速度,提高機器人在場地內的工作效率以及機器人集群的整體工作效率。 An embodiment of the present invention provides a device for returning robots to the field. Compared with the problem of the large number and high-density of robot clusters in the prior art, the problem of orderly leaving the field after activities in the field has not been effectively solved, it is based on real-time positioning. The distance and time from the current coordinates of the idle robot to all destination coordinates, calculate the target destination coordinates, and control the robot to drive out of the work area according to the calculated return path corresponding to the target destination coordinates, ensuring that the robot will deliver the goods after delivery Leaving the work area as soon as possible in an orderly manner, effectively reducing the number of idle robots in the field, and at the same time reducing the probability of robot path intersections, improving the efficiency of robots in the field; and queuing robots when there is a robot path intersection Management, by separately establishing data connections with multiple robots to determine the congestion point area; according to the passage request sent by each robot in the congestion point area and the path of each robot in the congestion point area, each of the congestion point areas Set scheduling instructions for each robot; send scheduling instructions to each robot in the congestion point area, so that the robot that receives the scheduling instruction passes through the congestion point area according to the scheduling instruction, avoids the robot from being congested in the congestion point area, and improves the robot’s passage through congestion. The speed of the point can improve the working efficiency of the robot in the field and the overall working efficiency of the robot cluster.

本發明實施例所提供的進行機器人場地回流的方法的電腦程式產品,包括存儲了程式碼的電腦可讀存儲介質,所述程式碼包括的指令可用於執行前面方法實施例中所述的方法,具體實現可參見方法實施例,在此不再贅述。 The computer program product of the method for reflowing the robot field provided by the embodiment of the present invention includes a computer-readable storage medium storing a program code, and the program code includes instructions that can be used to execute the method described in the previous method embodiment, For specific implementation, please refer to the method embodiment, which will not be repeated here.

所屬技術領域中具有通常知識者可以清楚地瞭解到,為描述的方便和簡潔,上述描述的系統、裝置和單元的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。 Those with ordinary knowledge in the technical field can clearly understand that for the convenience and conciseness of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here. .

在本申請所提供的幾個實施例中,應該理解到,所揭露的系統、裝置和方法,可以藉由其它的方式實現。以上所描述的裝置實施例僅僅是示意性的,例如,所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,又例如,多個單元或元件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通訊連接可以是通過一些通訊介面,裝置或單元的間接耦合或通訊連接,可以是電性,機械或其它的形式。 In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation. For example, multiple units or elements may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some communication interfaces, devices or units, and may be in electrical, mechanical or other forms.

所述作為分離部件說明的單元可以是或者也 可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

另外,在本發明各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。 In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.

所述功能如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲介質中。基於這樣的理解,本發明的技術方案本質上或者說對先前技術做出貢獻的部分或者該技術方案的部分可以以軟體產品的形式體現出來,該電腦軟體產品存儲在一個存儲介質中,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本發明各個實施例所述方法的全部或部分步驟。而前述的存儲介質包括:U盤、行動硬碟、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、磁碟或者光碟等各種可以存儲程式碼的介質。 If the function is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc., which can store program codes. Medium.

以上所述,僅為本發明的具體實施方式,但本發明的保護範圍並不局限於此,任何熟悉本技術領域的技術人員在本發明揭露的技術範圍內,可輕易想到變化或替換,都應涵蓋在本發明的保護範圍之內。因此,本發明的保護範圍應以所述申請專利範圍的保護範圍為準。 The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the patent application.

S101~S104‧‧‧步驟 S101~S104‧‧‧Step

Claims (8)

一種用於機器人場地回流的方法,包括以下步驟:獲取工作區中的當前空閒狀態的機器人的當前座標;獲取前述當前空閒狀態的機器人待返回的所有目的地座標;其中,前述目的地座標為多個且多個前述目的地座標均處於工作區外;前述工作區外包括多個不同區域的儲貨區,多個前述目的地座標均設置在工作區外的預設區域的儲貨區中;根據前述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離前述當前座標最近的目標目的地座標;及控制前述當前空閒狀態的機器人按照前述目標目的地座標對應的回流路徑駛出工作區,以保證前述當前空閒狀態的機器人有序離場,其中,分別建立與多個機器人的資料連接,且前述方法還包括以下步驟:確定擁堵點區域;根據前述擁堵點區域內的每個機器人發送的通過請求分別為前述擁堵點區域內的每個機器人設置調度指令;分別向前述擁堵點區域內的每個機器人發送調度指令,以使接收到調度指令的機器人根據前述調度指令通過前述擁堵點區域,且 其中,前述確定擁堵點區域包括以下步驟:獲取前述多個機器人的路徑;根據前述多個機器人的路徑確定擁堵點;從前述擁堵點的鄰近區域中確定擁堵點區域。 A method for robot field return, including the following steps: acquiring the current coordinates of the robot in the currently idle state in the work area; acquiring all the destination coordinates of the robot in the current idle state to be returned; wherein the aforementioned destination coordinates are multiple One and more of the aforementioned destination coordinates are all located outside the work area; the aforementioned work area includes multiple storage areas of different areas, and the multiple aforementioned destination coordinates are all set in the storage area of the preset area outside the work area; According to the distance and time from the current coordinates of the robot in the current idle state to all the destination coordinates, calculate the target destination coordinates closest to the current coordinates; and control the return path of the robot in the current idle state according to the target destination coordinates. Driving out of the work area to ensure that the aforementioned robots in the current idle state leave the field in an orderly manner, wherein data connections with multiple robots are established respectively, and the aforementioned method further includes the following steps: determining the congestion point area; according to the aforementioned congestion point area The pass request sent by each robot sets a scheduling instruction for each robot in the aforementioned congestion point area; sends a scheduling instruction to each robot in the aforementioned congestion point area, so that the robot that receives the scheduling instruction passes through the aforementioned scheduling instruction The aforementioned congestion point area, and Wherein, determining the congestion point area includes the following steps: acquiring the paths of the aforementioned multiple robots; determining the congestion point according to the paths of the aforementioned multiple robots; determining the congestion point area from the neighborhood of the aforementioned congestion point. 如請求項1所記載之方法,其中,前述根據前述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離前述當前座標最近的目標目的地座標包括以下步驟:計算前述當前空閒狀態的機器人的當前座標到每一個前述目的地座標的回流路徑;根據前述回流路徑對應的距離和時間,計算前述當前空閒狀態的機器人的當前座標與每一個前述目的地座標之間的第一匹配代價;將計算的多個第一匹配代價進行比較,選擇最小的第一匹配代價;確定選擇的前述最小的第一匹配代價對應的回流路徑中的目的地座標為距離前述當前座標最近的目標目的地座標。 The method described in claim 1, wherein the calculation of the target destination coordinates closest to the current coordinates based on the distance and time from the current coordinates of the robot in the current idle state to all destination coordinates includes the following steps: calculating the current coordinates The return path from the current coordinates of the robot in the idle state to each of the aforementioned destination coordinates; according to the distance and time corresponding to the aforementioned return path, calculate the first between the current coordinates of the aforementioned robot in the current idle state and each of the aforementioned destination coordinates. Matching cost; compare multiple calculated first matching costs, select the smallest first matching cost; determine the destination coordinates in the return path corresponding to the selected minimum first matching cost as the target closest to the aforementioned current coordinates Destination coordinates. 如請求項2所記載之方法,其中,前述計算前述當前空閒狀態的機器人的當前座標到每一個前述目的地座標的回流路徑包括以下步驟:獲取其他機器人的當前座標;根據前述當前空閒狀態的機器人的當前座標以及 其他機器人的當前座標,計算前述當前空閒狀態的機器人的當前座標到每一個前述目的地座標的回流路徑。 For the method described in claim 2, wherein the aforementioned calculation of the return path from the current coordinates of the robot in the current idle state to each of the aforementioned destination coordinates includes the following steps: obtaining the current coordinates of other robots; according to the robot in the current idle state The current coordinates of and The current coordinates of other robots are calculated, and the return path from the current coordinates of the robot in the current idle state to each of the aforementioned destination coordinates is calculated. 如請求項1所記載之方法,其中,前述方法還包括以下步驟:判斷前述當前空閒狀態的機器人的電量是否滿足標準電量;在檢測到前述當前空閒狀態的機器人的電量低於前述標準電量時,確定對應的前述當前空閒狀態的機器人為待充電機器人;獲取前述待充電機器人待返回的所有充電站座標;其中,前述充電站座標為多個且多個前述充電站座標均處於工作區外的預設區域中;根據前述待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離前述待充電機器人的當前座標最近的目標充電站座標;控制前述待充電機器人按照前述目標充電站座標對應的回流路徑駛出工作區,以保證前述待充電機器人有序駛入目標充電站進行充電。 The method described in claim 1, wherein the aforementioned method further includes the following steps: judging whether the power of the robot in the current idle state meets the standard power; when it is detected that the power of the robot in the current idle state is lower than the standard power, It is determined that the corresponding robot in the current idle state is the robot to be charged; all the coordinates of the charging station to be returned by the robot to be charged are obtained; wherein, the coordinates of the charging station are multiple, and the coordinates of the multiple charging stations are all located outside the working area. Set the area; according to the distance and time from the current coordinates of the robot to be charged to the coordinates of all charging stations, calculate the coordinates of the target charging station closest to the current coordinates of the robot to be charged; control the robot to be charged to correspond to the coordinates of the target charging station To ensure that the aforementioned robot to be charged enters the target charging station for charging in an orderly manner. 如請求項4所記載之方法,其中,前述根據前述待充電機器人的當前座標到所有充電站座標的距離和時間,計算距離前述待充電機器人的當前座標最近的目標充電站座標包括以下步驟:計算前述待充電機器人的當前座標到每一個前述 充電站座標的回流路徑;根據前述回流路徑對應的距離和時間,計算前述待充電機器人的當前座標與每一個前述充電站座標之間第二匹配代價;將計算的多個第二匹配代價進行比較,選擇最小的第二匹配代價;確定選擇的前述最小的第二匹配代價對應的回流路徑中的充電站座標為距離前述待充電機器人的當前座標最近的目標充電站座標。 The method described in claim 4, wherein the calculation of the coordinates of the target charging station closest to the current coordinates of the robot to be charged based on the distance and time from the current coordinates of the robot to be charged to the coordinates of all charging stations includes the following steps: calculation The current coordinates of the aforementioned robot to be charged to each of the aforementioned The return path of the charging station coordinates; calculate the second matching cost between the current coordinates of the aforementioned robot to be charged and each of the aforementioned charging station coordinates according to the distance and time corresponding to the aforementioned return path; compare the calculated multiple second matching costs , Select the smallest second matching cost; determine that the charging station coordinates in the return path corresponding to the selected minimum second matching cost are the coordinates of the target charging station closest to the current coordinates of the robot to be charged. 如請求項1所記載之方法,其中,前述通過請求包括:機器人在前述擁堵點區域內的位置,其中,前述根據前述擁堵點區域內的每個機器人發送的通過請求分別為前述擁堵點區域內的每個機器人設置調度指令,包括:根據前述擁堵點區域內的每個機器人發送的通過請求的時間順序、前述通過請求包含的前述每個機器人在前述擁堵點區域內的位置,分別為前述擁堵點區域內的每個機器人設置調度指令。 The method described in claim 1, wherein the passing request includes the position of the robot in the congestion point area, wherein the passing request sent by each robot in the congestion point area is respectively in the congestion point area The scheduling instructions for each robot in the above-mentioned congestion point area include: according to the time sequence of the passage request sent by each robot in the aforementioned congestion point area, and the position of each robot in the aforementioned congestion point area included in the aforementioned passage request, respectively, the aforementioned congestion point Set scheduling instructions for each robot in the dot area. 如請求項1所記載之方法,其中,前述調度指令包括:機器人在前述擁堵點區域內開始運行的時間、前述機器人通過前述擁堵點區域的路線以及前述機器人通過前述擁堵點區域的速度。 The method described in claim 1, wherein the scheduling instruction includes: the time when the robot starts to run in the congestion point area, the route of the robot through the congestion point area, and the speed of the robot through the congestion point area. 一種使用如請求項1至7中任一項所記載之方法的用於機器人場地回流的裝置,包括: 第一獲取模組,用於獲取工作區中的當前空閒狀態的機器人的當前座標;第二獲取模組,用於獲取前述當前空閒狀態的機器人待返回的所有目的地座標;其中,前述目的地座標為多個且多個前述目的地座標均處於工作區外;前述工作區外包括多個不同區域的儲貨區,多個前述目的地座標均設置在工作區外的預設區域的儲貨區中;第一計算模組,用於根據前述當前空閒狀態的機器人的當前座標到所有目的地座標的距離和時間,計算距離前述當前座標最近的目標目的地座標;及第一控制模組,用於控制前述當前空閒狀態的機器人按照前述目標目的地座標對應的回流路徑駛出工作區,以保證前述當前空閒狀態的機器人有序離場。 A device for robot field return using the method described in any one of Claims 1 to 7, including: The first acquisition module is used to acquire the current coordinates of the robot in the current idle state in the work area; the second acquisition module is used to acquire all the destination coordinates of the robot in the current idle state to be returned; wherein, the aforementioned destination There are multiple coordinates and multiple of the aforementioned destination coordinates are all outside the work area; the aforementioned work area includes multiple storage areas in different areas, and multiple aforementioned destination coordinates are all set in the preset area outside the work area. The first calculation module is used to calculate the closest target destination coordinates to the current coordinates of the target according to the distance and time from the current coordinates of the robot in the current idle state to all the destination coordinates; and the first control module, It is used to control the aforementioned robot in the current idle state to drive out of the work area according to the return path corresponding to the aforementioned target destination coordinates, so as to ensure the orderly departure of the aforementioned robot in the current idle state.
TW107125336A 2018-07-23 2018-07-23 Method and device for robot field return TWI701622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107125336A TWI701622B (en) 2018-07-23 2018-07-23 Method and device for robot field return

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107125336A TWI701622B (en) 2018-07-23 2018-07-23 Method and device for robot field return

Publications (2)

Publication Number Publication Date
TW202008239A TW202008239A (en) 2020-02-16
TWI701622B true TWI701622B (en) 2020-08-11

Family

ID=70412709

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107125336A TWI701622B (en) 2018-07-23 2018-07-23 Method and device for robot field return

Country Status (1)

Country Link
TW (1) TWI701622B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116295662B (en) * 2023-05-23 2023-08-29 北京易同云网科技有限公司 Crop growth state monitoring method and device, electronic equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446342A (en) * 2016-01-04 2016-03-30 杭州亚美利嘉科技有限公司 Method and apparatus for place backflow of robot terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446342A (en) * 2016-01-04 2016-03-30 杭州亚美利嘉科技有限公司 Method and apparatus for place backflow of robot terminal

Also Published As

Publication number Publication date
TW202008239A (en) 2020-02-16

Similar Documents

Publication Publication Date Title
WO2017118001A1 (en) Method and device for returning robots from site
CA3101530C (en) Management method, device and system applied to goods-to-person system, server and computer storage medium
CN108469786B (en) Large-scale intelligent storage distributed sorting system
US9694976B1 (en) Re-arrange stored inventory holders
US11446821B2 (en) Method and device for determining driving route of sorting robot
US9663292B1 (en) Forecasted robotic drive unit dispatch
US20210078175A1 (en) Method, server and storage medium for robot routing
CN105446342B (en) Method and apparatus for the reflux of robot terminal place
CN110059926B (en) Sorting scheduling method and device, warehousing system and readable storage medium
CN109399123A (en) Goods sorting method, system, control server, robot and medium
WO2020113987A1 (en) Transfer robot-based control method and device
CN109583709A (en) A kind of automatic parking robot group method for scheduling task
JP2021531585A (en) Scheduling method and scheduling device for self-guided transport vehicles
CN112700193A (en) Order distribution method and device, computing equipment and computer readable storage medium
TWI701622B (en) Method and device for robot field return
CN112016802A (en) Equipment scheduling method and device and electronic equipment
CN113627858A (en) Method and device for determining cache location of warehouse
JP2023024414A (en) Method, device, and facility for arranging delivery of articles and recording medium
CN116933477A (en) Simulation model construction method and device
CN114474052A (en) Method and system for controlling interaction between robot and container and robot
CN117196263B (en) Cargo scheduling method, device, equipment and computer readable storage medium
US11926060B2 (en) Transport of objects using robots
CN109901569A (en) Mobile device navigation method and related equipment
CN114936811A (en) Method and device for dispatching robot to deliver takeout
CN115983553A (en) Stereoscopic warehouse task scheduling method and device, computer equipment and storage medium