Tour route creation device
The tour route creation device optimizes mobile object navigation by employing diverse route creation methods to efficiently traverse multiple movement target areas while avoiding obstacles, enhancing route efficiency and cost-effectiveness.
Patent Information
- Application Number
- JP2023055090
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-11
AI Technical Summary
Existing methods do not effectively create efficient tour routes for mobile objects to traverse multiple movement target areas, particularly in environments with obstacles.
A tour route creation device that utilizes various route creation functions, including center-to-gravity routes, cyclic loop routes, and cyclic pattern determination, to optimize the movement of mobile objects between multiple movement target areas while avoiding obstacles.
The device efficiently creates tour routes that minimize movement cost and optimize traversal through multiple target areas, ensuring effective navigation and obstacle avoidance.
Smart Images

Figure 2024142775000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a travel route creation device for creating a travel route for a mobile object to travel through a plurality of travel target areas. [Background technology]
[0002] The applicant has invented a mobile object movement control system, which includes a movement schedule information creation process that creates movement plan information (planned movement route) for a mobile object moving on a movement target surface (movement target area), and a movement control process that moves the mobile object based on the movement plan information and controls the movement of the mobile object by comparing actual movement information of the mobile object acquired by a movement information acquisition means with the movement plan information (see Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-154400 A Summary of the Invention [Problem to be solved by the invention]
[0004] The above-mentioned method for controlling the movement of a moving body does not disclose how to create a circuit route for efficiently moving the moving body between multiple target areas when there are multiple target areas for movement, and there was a problem in that there was a need to develop a circuit route creation device for creating such a circuit route. In view of the above-mentioned problems, the present invention provides a travel route creation device capable of creating an efficient travel route for a mobile object to travel through a plurality of travel target areas. [Means for solving the problem]
[0005] The circuit route creation device of the present invention is a circuit route creation device for recognizing the position information of a plurality of target areas for movement which are partitioned based on XY coordinate information, and creating a circuit route for a mobile body to travel around the plurality of target areas for movement, and is characterized in having a plurality of types of circuit route creation functions which have different methods for creating circuit routes, and a selection means for selecting one of the circuit route creation functions. One of the multiple types of circular route creation functions includes an inter-center-of-gravity route creation means for creating an inter-center-of-gravity route connecting the centers of gravity of each of a plurality of moving target areas, a circular loop route creation means for creating a circular loop route that has the shortest distance among the circular loop routes that travel around each of the moving target areas by tracing the inter-center-of-gravity routes, a circular pattern setting means for setting a plurality of circular patterns within each moving target area, and a circular pattern setting means for determining a combination of circular patterns within each moving target area that will minimize the movement cost when moving through each moving target area based on the created circular loop route. The system is characterized by comprising a pattern determination means, and a patrol route creation means for, after determining a combination of patrol patterns within each moving target area, deleting the inter-movement target area route with the highest movement cost from among the inter-movement target area routes connecting the end point of the patrol pattern of one moving target area and the start point of the patrol pattern of the other moving target area in two moving target areas, and creating a patrol route in which the moving target area that was the end point of the deleted inter-movement target area route is set as the patrol start area and the moving target area that was the start point of the deleted inter-movement target area route is set as the patrol end area. One of the multiple types of route creation functions includes a route pattern setting means for setting multiple route patterns in each target area, an evaluation value creation means for setting possible start and end points of multiple route patterns that can be set in each target area by the route pattern setting means for each target area, and creating an evaluation value indicating the ease of movement between two points when moving between two points from the end point of the route pattern assumed in one target area to the start point of the route pattern assumed in the other target area between two arbitrary target areas, for each of the two points determined by combinations of the start and end points, and a route creation means for creating a route between two points with high evaluation values. and a circular loop creating means for creating a circular loop that goes around each of the movement target areas by adopting the route having the highest movement cost among the routes between the movement target areas that make up the circular loop, determining the order of the movement target areas by deleting the route with the highest movement cost from among the routes between the movement target areas that make up the circular loop, and setting the movement target area that was the end point of the deleted route as the circulation start area and the movement target area that was the start point of the deleted route as the circulation end area. After the circulation order has been determined, a circular pattern that connects the start point and end point of each movement target area is determined for each movement target area, and creating a circular route formed by the determined circular pattern within each movement target area and the route between each movement target area. One of the multiple types of circular route creation functions includes a circular loop creation means for creating a circular loop that goes around each of the moving target areas, a movement cost calculation means for calculating the movement cost when a moving body moves along the route of the created circular loop, and a circular route creation means for creating a circular route that goes around each of the moving target areas by deleting the inter-movement target area route with the highest movement cost from among the inter-movement target area routes that form the created circular loop, and creating a circular route that goes around each of the moving target areas with the moving target area to which the route end of the deleted inter-movement target area route was connected as the start area of the circular route and the moving target area to which the route start end of the deleted inter-movement target area route was connected as the goal area of the circular route, The loop creation means includes an initial cyclic loop creation means for creating an initial cyclic loop by setting cyclic information for each movement target area, and a cyclic loop update means for creating a cyclic loop with changed cyclic information of the initial cyclic loop, and the cyclic route creation means includes a determination means for determining which cyclic route to keep between a current cyclic route created based on a current cyclic loop created by the cyclic loop update means, and a previous cyclic route created based on a previous cyclic loop created by the cyclic loop update means, and the cyclic information is combination information composed of information on a cyclic pattern within one's own movement target area, which is set for each movement target area, and information on a next movement target area to proceed to. One of the multiple types of circular route creation functions includes a circular loop creation means for creating a circular loop that goes around each of the moving target areas, a movement cost calculation means for calculating the movement cost when a moving body moves along the route of the created circular loop, and a circular route creation means for deleting the inter-movement target area route with the highest movement cost from among the inter-movement target area routes that form the created circular loop, and creating a circular route that goes around each of the moving target areas with the moving target area to which the route end of the deleted inter-movement target area route was connected as the start area of the circular route and the moving target area to which the route start end of the deleted inter-movement target area route was connected as the goal area of the circular route, and the circular loop creation means includes an initial generation circular loop creation means for creating a circular loop by setting circular information for each of the moving target areas, and a subsequent generation circular loop creation means, and the circular route creation means includes an initial generation circular loop creation means for creating a circular loop by setting circular information for each of the moving target areas, and a subsequent generation circular loop creation means for creating a circular loop by setting circular information for each of the moving target areas. The system is characterized in that it comprises a circulating route creating means and a subsequent generation circulating route creating means, the initial generation circulating loop creating means creates a plurality of circulating loops, the initial generation circulating route creating means changes the circulating information for each movement target area for each of the plurality of initial generation circulating loops created by the initial generation circulating loop creating means to create a plurality of initial generation circulating routes, the subsequent generation circulating loop creating means extracts several initial generation circulating routes having low movement costs from the plurality of initial generation circulating routes and creates a subsequent generation circulating loop using the circulating information of the extracted initial generation circulating routes, the subsequent generation circulating route creating means changes the circulating information for each movement target area for each of the subsequent generation circulating loops created by the subsequent generation circulating loop creating means to create a subsequent generation circulating route, and the circulating information is combination information composed of information of a circulating pattern within its own movement target area set for each movement target area and information of a next movement target area to proceed to. According to the present invention, it is possible to provide a tour route creation device capable of creating an efficient tour route for a moving object to travel through a plurality of target areas. In particular, since the device is configured to have a plurality of types of tour route creation functions with different tour route creation methods and a selection means for selecting the creation of a tour route by one of the tour route creation functions, it is possible to select the tour route creation method according to the situation, and it is possible to efficiently create an appropriate tour route according to the tour route creation target. [Brief description of the drawings]
[0006] [Figure 1] FIG. 13 is an explanatory diagram of the process of creating a movement target area and an obstacle area (phase 1). [Diagram 2] An explanatory diagram of the obstacle grouping process (phase 2). [Diagram 3] An explanatory diagram of obstacle angle recognition processing (phase 3). [Figure 4] FIG. 13 is an explanatory diagram of the obstacle boundary line creation process (phase 4). [Diagram 5] FIG. 13 is an explanatory diagram of the division area classification process (phase 5). [Figure 6] FIG. 13 is an explanatory diagram of the division area classification process (phase 5). [Figure 7] FIG. 13 is an explanatory diagram of the divided region recognition process (phase 6). [Figure 8] FIG. 13 is an explanatory diagram of the divided region recognition process (phase 6). [Figure 9] FIG. 13 is an explanatory diagram of the equally spaced straight line path creation process (phase 7). [Figure 10] FIG. 13 is an explanatory diagram of the intersection coordinate extraction process (phase 8). [Figure 11] FIG. 13 is an explanatory diagram of the process of extracting intersection coordinates for each area (phase 9) and the process of creating a planned zigzag movement route within a divided area (phase 10). [Figure 12] FIG. 13 is an explanatory diagram of the process of creating a zigzag movement route within a divided area (phase 10) and the process of creating a movement route between divided areas (phase 11). [Figure 13]11 is a flowchart showing the procedure of a process (phase 1) for creating a movement target region and an obstacle region. [Figure 14] 11 is a flowchart showing the procedure of the obstacle grouping process (phase 2). [Figure 15] 13 is a flowchart showing the procedure of an obstacle angle recognition process (phase 3). [Figure 16] 13 is a flowchart showing the procedure of an obstacle boundary line creation process (phase 4). [Figure 17] 13 is a flowchart showing the procedure of a division area division process (phase 5). [Figure 18] 13 is a flowchart showing the procedure of a divided area recognition process (phase 6). [Figure 19] 13 is a flowchart showing the procedure of the equally spaced straight line path creation process (phase 7) and the intersection coordinate extraction process (phase 8). [Figure 20] 13 is a flowchart showing the procedure of the area-by-area intersection coordinate extraction process (phase 9). [Figure 21] 13 is a flowchart showing the steps of the process (phase 10) of creating a planned zigzag movement route within a divided area. [Figure 22] 11 is a flowchart showing the steps of the movement cost calculation process (phase 11). [Figure 23] 11 is a flowchart showing the procedure of another route creation processing (phases 12 to 16). [Figure 24] 13 is a flowchart showing the procedure of the route selection process (phase 17). [Diagram 25] 13 is a flowchart showing the steps of a process (phase 18) for creating a planned movement route between divided areas. [Figure 26] FIG. 13 is an explanatory diagram of the divided region recognition process (phase 6). [Figure 27] FIG. 13 is an explanatory diagram of the divided region recognition process (phase 6). [Figure 28] FIG. 13 is an explanatory diagram of the divided region recognition process (phase 6). [Figure 29] FIG. 13 is an explanatory diagram of the process of extracting intersection coordinates for each area (phase 9) and the process of creating a planned zigzag movement route within a divided area (phase 10). [Diagram 30] FIG. 13 is an explanatory diagram of the process of creating a zigzag movement route within a divided area (phase 10). [Diagram 31] FIG. 1 is a perspective view showing an example of a moving body. [Diagram 32] FIG. [Diagram 33] 13 is a schematic flowchart of SA processing. [Diagram 34] 13 is a flowchart showing an initial cyclic loop creation process. [Diagram 35] 11 is a flowchart showing an initial temperature setting process, a travel route cost calculation process, and an alteration acceptability determination process. [Diagram 36] 13 is a flowchart showing processing for modifying an inter-area route and processing for modifying a tour pattern. [Figure 37] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Figure 38] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Figure 39] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Diagram 40] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Diagram 41] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Diagram 42] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Diagram 43] A conceptual diagram of simulated annealing (SA). [Diagram 44] FIG. 13 is a diagram showing an initial cyclic information array and an initial cyclic loop. [Diagram 45] 13 shows an example of a cyclic information array. [Diagram 46] FIG. 13 is an explanatory diagram of the process of modifying an inter-area route. [Figure 47] Schematic flow chart of the genetic algorithm method (GA). [Figure 48] 13 is a flowchart showing an initial generation individual generation process. [Figure 49] 13 is a flowchart showing an individual evaluation process. [Figure 50] 13 is a flowchart showing a crossover process. [Figure 51]1 is a flowchart showing a mutation process. [Figure 52] An illustration of an individual carrying lethal genetic information. [Diagram 53] An illustration of an individual carrying lethal genetic information. [Figure 54] FIG. 1 is an explanatory diagram of basic crossover processing. [Figure 55] FIG. 13 is an explanatory diagram of exceptional crossover processing. [Figure 56] FIG. 13 is an explanatory diagram of exceptional crossover processing. [Figure 57] FIG. 13 is an explanatory diagram of exceptional crossover processing. [Figure 58] FIG. 13 is a diagram illustrating the center of gravity G for each area. [Figure 59] FIG. 13 is a diagram illustrating inter-centre routes connecting the centroids of each area. [Figure 60] FIG. 13 is a diagram illustrating examples of circular loop route candidates. [Figure 61] FIG. 11 is a diagram showing a procedure for determining a cyclic pattern. [Figure 62] 4 is a flowchart showing a process flow of a travel route generation device. [Figure 63] FIG. 13 is a diagram showing another example of a method for creating a path between centers of gravity. [Figure 64] FIG. 13 is a diagram showing another example of a method for creating a path between centers of gravity. [Figure 65] FIG. 13 is a diagram showing an example in which possible starting points and ending points of a plurality of tour patterns that can be set for each area are set for each area. [Figure 66] FIG. 13 is a diagram showing an example of setting straight-line paths between two points determined by all combinations of start points and end points. [Figure 67] FIG. 13 shows an example of extraction of straight line paths between two points with the top α% highest evaluation values. [Figure 68] A diagram showing an example of narrowing down departure routes to the top M for each area. [Figure 69] 4 is a flowchart showing a process flow of a travel route generation device. [Figure 70] FIG. 4 is a diagram showing a process selection screen set on the screen of a display unit. [Figure 71] FIG. 4 is a diagram showing details of a process selection screen set on the screen of a display unit. [Figure 72] 4 is a flowchart showing a method of using the travel route planning device. [Figure 73] FIG. [Figure 74] 11 is a flowchart showing the process performed when the “Create Partition” button 30 is clicked. [Figure 75] 13 is a flowchart showing a process performed when the “Generate cyclic pattern” button 31 is clicked. [Figure 76] 3 is a process flowchart when the “Advanced Settings” button 32 in [Create Block and Circulation Pattern] is clicked. [Figure 77] 13 is a flowchart showing the process performed when the “Restore to default” button 34 or the “Exit with reflection” button 35 is clicked. [Figure 78] This is the processing flowchart when the "Open new" button 1 in [Open map / route] is clicked. [Figure 79] This is a processing flowchart when the "Open a searched or currently searched map" button 2 in [Open map / patrol route] is clicked. [Figure 80] Processing flowchart when the "Save with new construction name" button 3 in [Save map / patrol route] is clicked. [Figure 81] This is a flowchart showing the process that occurs when the "Overwrite" button 4 in [Save Map / Route] is clicked. [Figure 82] 11 is a flowchart showing the process performed when the "Start searching for a patrol route using a short path" button 5 is clicked. [Figure 83] 13 is a flowchart showing the process when the "Stop Processing" button 7 is clicked in the short path. [Figure 84] Processing flowchart when the "Advanced Settings" button 6 is clicked in Short Path. [Figure 85] Processing flowchart when the "Start searching for a patrol route with Delaunay" button 8 is clicked. [Figure 86] 13 is a flowchart showing the process when the “Abort Processing” button 10 in Delaunay is clicked. [Figure 87] Processing flowchart when the “Advanced Settings” button 9 is clicked in Delaunay. [Figure 88] Processing flowchart when the “Start searching for a new route” button 11 in [Search for routes with GA] is clicked. [Figure 89] This is a flowchart of the process that occurs when the “Stop Processing” button 13 in GA is clicked. [Figure 90] This is a processing flowchart for when you click the "Advanced Settings" button 12, the "Restore Defaults" button 40, and the "Exit with Reflection" button 41 in GA. [Figure 91] 11 is a flowchart showing the process performed when the [Start searching for a patrol route with SA] button 14 is clicked. [Figure 92] 11 is a flowchart showing the process performed when the “Stop Processing” button 16 in SA is clicked. [Figure 93] 13 is a flowchart showing the process performed when the “Advanced Settings” button 15, the “Restore Defaults” button 42, and the “Exit with Reflection” button 43 are clicked in SA. [Figure 94] 11 is a process flowchart for manually setting a tour route when the "Undo" button 23-1 and the "Redo" button 23-2 are clicked. [Figure 95] 13 is a flowchart showing a process performed when any of buttons 23-3 to 23-10 is clicked. [Figure 96] 13A and 13B are flowcharts showing the processing performed when the "Set Tour Order" button 23-11, the "Delete Tour Order" button 23-12, the "Disable This Area" button 23-13, and the "Enable This Area" button 23-14 are clicked. [Figure 97] 13 is a process flowchart when any of the rows 24 in the cost log display section C is clicked while being highlighted. [Figure 98] 11 is a flowchart showing the process performed when the "Display current patrol route in animation" button 25 is clicked. [Figure 99] 13 is a flowchart showing the process performed when the “Recalculate patrol route to avoid obstacles” button 26 is clicked. [Figure 100] 11 is a flowchart showing a process performed when the end button 29 is clicked. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] Prerequisite technology First, before explaining an embodiment of the travel route creation device of the present invention, a travel planned route creation device, which is a prerequisite device (prerequisite technology) of the travel route creation device of the present invention, will be explained based on paragraphs 0007 to 0053 and Figures 1 to 31. The planned movement route creation device, which is the prerequisite device for the circular route creation device of the present invention, is a device that creates a planned movement route for a moving body to move while avoiding obstacles within a target movement area, i.e., an obstacle avoidance planned movement route for a moving body moving within the target movement area. The planned movement route creation device for a moving object includes a movement target area creation means, an obstacle area creation means, a movable area dividing means, an intra-divided area planned movement route creation means, and an inter-divided area planned movement route creation means. That is, the movement target area creation means is a means for creating a movement target area surrounded by a movement target area boundary line that divides the movement target area based on the XY coordinate information of the movement target area (i.e., the planar coordinate information of the movement target area) indicating the position of the movement target area. The obstacle area creation means is means for creating an obstacle area surrounded by obstacle area boundaries that partition obstacles present within the movement target area based on XY coordinate information indicating the position of the obstacle within the movement target area. The movable area dividing means is a means for dividing the movable area into a plurality of divided areas by using XY coordinate information indicating the position of the target area of movement and XY coordinate information indicating the positions of obstacles within the target area of movement, while avoiding obstacles. The intra-divided area planned movement route creation means is means for creating a planned movement route of the mobile object within each of the plurality of divided areas. The inter-divided area planned movement route creation means is a means for creating a planned movement route of a moving object between the divided areas.
[0008] The movable area dividing means includes a divided area creating means and a divided area recognizing means. The divided area creation means creates a first boundary line connecting obstacles to each other, a second boundary line connecting the obstacle to the movement target area boundary line, and a third boundary line connecting the obstacle to the first boundary line or the second boundary line, and divides the movement target area with these boundary lines, thereby creating a divided area surrounded by divided area boundary lines formed by these boundaries, the obstacle area boundary line, and the movement target area boundary line. The divided area recognition means is a means for recognizing each of the plurality of divided areas by providing identification information to each of the plurality of divided areas and each of the obstacle areas. In addition, the planned movement route creation means within the divided area includes a horizontal line creation means, a vertical line creation means, a first intersection recognition means, a second intersection recognition means, a first route creation means, a second route creation means, a first movement efficiency calculation means, and a route selection means. The horizontal line creating means is a means for creating a plurality of horizontal lines parallel to the X axis that divide the movement target area at equal intervals along the Y axis. The vertical line creating means is a means for creating a plurality of vertical lines parallel to the Y axis that divide the movement target area at equal intervals along the X axis. The first intersection recognition means is a means for recognizing an intersection between a divided area boundary line and a horizontal straight line. The second intersection recognition means is a means for recognizing an intersection between a divided area boundary line and a vertical line. The first route creation means is means for creating a zigzag first route for each divided area that proceeds along a Y axis formed by connecting intersections on the boundaries of each divided area with horizontal straight lines. The second route creation means is means for creating a zigzag second route for each divided area that proceeds along the X-axis formed by connecting the intersections on the boundaries of the divided areas with vertical straight lines. The first movement efficiency calculation means is means for calculating the movement efficiency when moving along the first route for each divided area. The second movement efficiency calculation means is means for calculating the movement efficiency when moving along the second route for each divided area. The route selection means is a means for comparing the travel efficiency when traveling along a first route and the travel efficiency when traveling along a second route within the same divided area, and selecting the route having the better travel efficiency from the first route and the second route as the planned travel route within the divided area. More specifically, the divided area creating means includes an obstacle grouping means for grouping a plurality of obstacles existing within the movement target area into groups of obstacles having similar X coordinate information and obstacles having similar Y coordinate information; an obstacle angle recognizing means for recognizing the corners of the obstacles by assigning identification information to a plurality of corners of each obstacle; a first connection line creating means for creating a first connection line connecting a corner of one obstacle grouped as having similar X coordinate information to a corner of another obstacle grouped as having similar Y coordinate information, and a first connection line connecting a corner of one obstacle grouped as having similar Y coordinate information to a corner of another obstacle grouped as having similar Y coordinate information; a second connection line creating means for creating a second connection line connecting a corner of the obstacle not connected to the first connection line to the movement target area boundary line; and a third connection line creating means for creating a third connection line connecting a corner of the obstacle not connected to the first connection line and the second connection line already created. In addition, more specifically, the inter-divided area planned movement route creation means is configured to include an inter-divided area straight line planned movement route creation means for creating a planned movement route between divided areas by connecting an end point of a planned movement route within one divided area and a start point of a planned movement route within the divided area of the other divided area with a straight line, and an inter-divided area detour planned movement route creation means for creating an inter-divided area detour planned movement route, which is a planned movement route between divided areas that does not come into contact with the movement target area boundary line or the obstacle area boundary line, when the straight line planned movement route between divided areas created by the inter-divided area straight line planned movement route creation means comes into contact with the movement target area boundary line or the obstacle area boundary line.
[0009] The travel target area creation means, obstacle area creation means, obstacle grouping means, obstacle angle recognition means, first connecting line creation means, second connecting line creation means, third connecting line creation means, divided area recognition means, horizontal line creation means, vertical line creation means, first intersection recognition means, second intersection recognition means, first route creation means, second route creation means, first travel efficiency calculation means, second travel efficiency calculation means, route selection means and inter-divided area planned travel route creation means, which constitute the travel target area creation device, which is the prerequisite device for the travel route creation device of the present invention, are realized by a control means, and the control means which executes each of the means is composed of a processing program which indicates the procedure of processing executed by each means, and hardware resources such as a computer which realizes information processing by the processing program. In other words, the planned movement route creation processing program of the premise device is a program that causes the computer to function as the above-mentioned movement target area creation means, obstacle area creation means, obstacle grouping means, obstacle angle recognition means, first connecting line creation means, second connecting line creation means, third connecting line creation means, divided area recognition means, horizontal line creation means, vertical line creation means, first intersection recognition means, second intersection recognition means, first route creation means, second route creation means, first movement efficiency calculation means, second movement efficiency calculation means, route selection means, and inter-divided area planned movement route creation means.
[0010] The movement target area creating means and the obstacle area creating means described above execute the process (phase 1) of creating the movement target area and the obstacle area shown in FIG. 1 and FIG. The obstacle grouping means executes the obstacle grouping process (phase 2) shown in FIG. 2 and FIG. The obstacle angle recognition means executes the obstacle angle recognition process (phase 3) shown in FIG. 3 and FIG. The first connection line creating means executes the obstacle boundary line creating process (phase 4) shown in FIG. 4 and FIG. The second connection line creating means and the third connection line creating means execute the divided area division process (phase 5) shown in FIGS. The divided area recognition means executes the divided area recognition process (phase 6) shown in FIGS. Moreover, the horizontal straight line creating means executes the equally spaced straight line path creating process (phase 7) shown in FIG. 9 and FIG. The first intersection recognition means executes the intersection coordinate extraction process (phase 8) shown in Figs. 10 and 19, and the area-specific intersection coordinate extraction process (phase 9) shown in Figs. The first route creation means executes the process (phase 10) of creating a zigzag movement planned route within a divided area shown in FIG. 12, FIG. 21, FIG. 29, and FIG. The first movement efficiency calculation means executes the movement cost calculation process (phase 11) shown in FIG. 22 when moving along the first route for each divided area. The vertical straight line creation means executes phase 12 shown in step S230 of FIG. 23, which is a process replacing the equally spaced straight line path creation process (phase 7). The second intersection recognition means executes phase 13 shown in step S240 of FIG. 23, which is a process replacing the intersection coordinate extraction process (phase 8), and phase 14 shown in step S250 of FIG. 23, which is the same process as the intersection coordinate extraction process for each area (phase 9). The second route creation means executes phase 15 shown in step S260 in FIG. 23, which is a process replacing the process (phase 10) for creating a zigzag movement planned route within a divided area. The second movement efficiency calculation means executes phase 16 shown in step S270 of Fig. 23. That is, when moving along the second route for each divided area, the same movement cost calculation process as the movement cost calculation process (phase 11) shown in Fig. 22 is executed. The route selection means executes the route selection process (phase 17) shown in FIG. The inter-divided area planned travel route creating means executes the inter-divided area planned travel route creating process shown in FIG. 12 and FIG. In addition, the inter-divided area straight-line movement planned route creation means of the inter-divided area movement planned route creation means executes the inter-divided area straight-line movement planned route creation process (the part other than the route search algorithm part of Figure 25), and the inter-divided area detour movement planned route creation means of the inter-divided area movement planned route creation means executes the processing of the route search algorithm part of Figure 25 as the inter-divided area detour movement planned route creation process.
[0011] The moving body is a moving body 1 configured to be able to move on a target surface within a target movement area, for example, a floor surface, based on a planned movement route created by a planned movement route creating device (see FIG. 31). The control means is mounted on the moving body 1, for example, as shown in FIG. Therefore, in this case, the moving body 1 is provided with a control means 50 that creates a planned movement route for the moving body 1 and controls the movement of the moving body 1 based on the created planned movement route (movement plan information (XY coordinate information)). The control means for creating the planned movement route of the moving body 1 may be configured not by a computer mounted on the moving body 1, but by a computer such as a personal computer separate from the moving body 1, and the above-mentioned processing program processed by the computer. In this case, as described below, the computer is input with XY coordinate information of the target movement area in which the moving body 1 is to be moved and XY coordinate information of obstacles in the target movement area, and the target movement area and obstacles are recognized to create the planned movement route. Then, by inputting the created planned movement route to the control means of the moving body 1, the control means of the moving body 1 can move the moving body 1 within the movable area in the target movement area based on the planned movement route.
[0012] In the planned movement route creation process, first, XY coordinate information of a corner of a wall at a boundary position between a floor surface area and a wall as a target movement area A indoors, and XY coordinate information of a corner of a pillar (hereinafter referred to as pillar B) as an obstacle B existing in the floor surface area as the target movement area A are inputted in advance to a computer. Then, the computer converts the inputted XY coordinate information into XY coordinate information on a display screen D managed by the computer, and records the converted information in a storage means. That is, the XY coordinate information of the corner of the wall at the boundary position between the floor area and the wall is inputted into the computer in advance as the XY coordinate information of the target area A indicating the position of the target area A, and the XY coordinate information of the corner of pillar B is inputted as the XY coordinate information indicating the position of pillar (obstacle) B. Furthermore, the computer recognizes the target movement area A and the pillar (obstacle) B and displays them, for example, on a display screen D (see Figure 1), and finally recognizes the created planned movement route and displays it, for example, on a display screen D (see Figure 12).
[0013] The above-mentioned XY coordinate information is actual XY coordinate information in the movement target area A, and XY coordinate information managed on the display screen D by the computer controlling the display screen D based on the actual XY coordinate information. The minimum spacing in the X-axis direction and the minimum spacing in the Y-axis direction that the computer manages on the display screen D can be set to a constant spacing on the actual movement target area A based on the XY coordinate spacing setting program installed in the computer. For example, the minimum interval in the X-axis direction and the minimum interval in the Y-axis direction managed by the computer on the display screen D are set to correspond to an actual 10 cm. In this case, for example, a position a 10 cm away in the positive direction of the X-axis direction from a reference point O set outside the actual movement target area A, and a position b 10 cm away in the positive direction of the Y-axis direction from the position a are recorded and managed by the computer as XY coordinate values a=(1,0), b=(1,1) based on the reference point O on the display screen D. In addition, the XY coordinate information of the corners of the walls partitioning the actual target area A of movement and the XY coordinate information of each corner of each of the actual pillars B, B... are recorded in the memory means, for example, by inputting the measured values measured using a measuring means such as a range finder, such as the distance from a reference point O set outside the actual target area A of movement to the position of each corner of the wall, and the distance from the reference point O to the position of each corner of each of the pillars B, B..., or by inputting the measured values from a design drawing, etc. For example, as shown in FIG. 1, a case will be described in which the position diagonally downward to the left from the bottom left corner of the movement target area A is determined as the reference point O. In this case, the measured distance from the reference point O to each corner is input into a computer, and the computer records in a file an XY coordinate value converted into one scale on the XY coordinate axes of the display screen D, for example a distance of 10 cm, based on an XY coordinate interval setting program. For example, if an angle is located 100 cm away from the reference point O in the positive X-axis direction and 100 cm away from the reference point O in the positive Y-axis direction, the XY coordinate value of the angle is recorded as (10,10). Note that if an angle is located 94 cm away from the reference point O in the positive X-axis direction and 96 cm away from the origin in the positive Y-axis direction, the XY coordinate value of the angle is recorded as (9,10), for example, after rounding off.
[0014] First, in the process of creating a movement target area and an obstacle area (phase 1), the computer displays the movement target area A and multiple pillars B, B... within the movement target area A on a display screen D, for example as shown in Figure 1, in accordance with the procedures of the movement target area creation processing program and the obstacle area creation processing program. That is, as shown in Fig. 1, for example, the computer displays the movement target area A on a display screen D by creating a boundary line between the inside and outside of the movement target area A, i.e., a movement target area boundary line C, and also displays a number of pillars B, B... that exist within the movement target area A. In this case, the movement target area boundary line C is created, for example, by connecting XY coordinate information of a wall corner at the boundary position between the floor area as the movement target area A and the wall, and the boundary line of pillar B (obstacle area boundary line) is created, for example, by connecting XY coordinate information of the corner of pillar B. Specifically, the computer performs a process (phase 1) of creating a movement target area and an obstacle area as shown in the flowchart of FIG. 13, in accordance with the procedures of a movement target area creation process program and an obstacle area creation process program. First, data (XY coordinate values of the corners of the walls (boundaries)) is extracted from a file that records XY coordinate information indicating the position of the movement target area A, for example, the XY plane coordinates of the corners of the walls (boundaries) that separate the movement target area A, to create the movement target area boundary line C on the display screen D (step S1). That is, all corners of the walls (boundaries) that separate the movement target area A are displayed on the display screen D, and the movement target area boundary line C is displayed on the display screen D by connecting each corner with a straight line. Next, the pillar number control variable is initialized, that is, the pillar number control variable n is set to 1 (step S2). The pillar number control variable is a variable for specifying the pillar to be examined, and is successively recorded and managed in the storage means. Then, it is determined whether or not there exists a file recording XY coordinate information indicating the position of an obstacle, for example, pillar B, and the XY coordinates of the corner of the n-th pillar B (step S3). That is, in the process of creating the movement target area and obstacle area, the computer performs the process using storage means such as a wall angle coordinate recording file which records the XY coordinates of the corners of the movement target area A, for example the corners of the wall at the boundary position between the floor area which becomes the movement target area A and the wall, a pillar angle coordinate recording file which records the XY coordinates of the corners of each pillar B, B... existing within the floor area, and a pillar number management variable register. Next, in step S3, if it is determined that a file recording the XY coordinates of the corner of the nth pillar exists, data is extracted from the file recording the XY coordinates of the corner of the nth pillar and the nth pillar is displayed on the display screen D (step S4), after which the pillar number management variable n is updated to n+1 (step S5) and the process returns to step S3. If it is determined in step S3 that a file recording the XY coordinates of the corner of the nth pillar does not exist, it is recognized that all pillars B within the movement target area A are displayed on the display screen D, the movement target area and obstacle area creation process (phase 1) is terminated, and the obstacle grouping process (phase 2) is advanced to. By the above-mentioned process of creating the target area and obstacle area (phase 1), for example, as shown in FIG. 1, the display screen D displays the target area boundary line C that is the boundary of the target area A, and n pillars (intra-pillar areas (obstacle areas)) B, B... that exist within the target area A (for example, as shown in FIG. 1, pillars B(n)=B(1), B(2), B(3), B(4) are displayed). That is, a movement target area A and pillars (areas inside the pillars (obstacle areas)) B, B . . . recognized by the computer are created.
[0015] In the obstacle grouping process (phase 2), the computer, following the procedure of the obstacle grouping process program, groups pillars B with similar X coordinate values and pillars B with similar Y coordinate values, based on the central coordinate of pillar B, as shown in FIG. 2. The grouping is performed by assigning numbers. Therefore, each pillar B, B... is assigned a number in the X-axis direction and a number in the Y-axis direction. That is, the number of the leftmost pillar B(1) in FIG. 2 is 1-1, and the number of the rightmost pillar B(5) in FIG. 2 is 4-3. For example, the number 4-3 of the rightmost pillar B(5) in FIG. 2 means that the pillar B(5) belongs to the fourth group in the X-axis direction and the third group in the Y-axis direction.
[0016] That is, the computer performs the obstacle grouping process (phase 2) as shown in the flowchart of FIG. 14, in accordance with the procedure of the obstacle grouping process program. In the obstacle grouping process (phase 2), first, variable initialization process is performed. That is, the pillar number management variable n is set to 0, the comparison target management variable p is set to 0, and the group number variable gx is set to 1 (step S11). That is, in the obstacle grouping process, the computer performs the process using storage means such as the pillar number control variable register, the comparison object control variable register, the group number variable register, and the pillar group number recording file. Next, it is determined whether the value of the pillar number control variable n matches the number of pillars (step S12). If it is determined in step S12 that the value of n does not match the number of columns, it is recognized that there are columns that have not been grouped, and the column number management variable n is set to n+1 to update the columns to be grouped (step S13), and it is determined whether the nth column (e.g., the number in parentheses of column B in FIG. 2) has already been assigned the X-axis direction group number gx (step S14). For example, it is determined whether the n=1 (first) column (e.g., column B(1) in FIG. 2) has already been assigned the X-axis direction group number gx. In the case of FIG. 2, the number of columns is "5", and the maximum value of n is "5". In step S14, if it is determined that the n-th pillar has not been assigned the X-axis direction group number gx, the n-th pillar is assigned the X-axis direction group number gx (step S15). The group number is recorded in a pillar group number record file that records the group number of each pillar. Thereafter, it is determined whether the value of n+p matches the number of columns (step S16). The comparison target management variable p refers to the pillars to be compared. For example, the pillars to be compared with pillar B(1) in FIG. 2 are pillars B(2), B(3), B(4), and B(5) in FIG. 2. In this case, for example, the value of p for pillar B(2) in FIG. 2 is 1, the value of p for pillar B(3) is 2, the value of p for pillar B(4) is 3, and the value of p for pillar B(5) is 4. Therefore, in the case of FIG. 2, the maximum value of the number of pillars to be compared p for the first pillar B(1) is 4, the maximum value of the number of pillars to be compared p for the second pillar B(2) is 3, the maximum value of the number of pillars to be compared p for the third pillar B(3) is 2, and the maximum value of the number of pillars to be compared p for the fourth pillar B(4) is 1, so the maximum value of n+p and the number of pillars are the same. That is, in the case of FIG. 2, the number of pillars is "5", and the maximum value of n+p is also "5". If it is determined in step S16 that the value of n+p does not match the number of pillars, it is recognized that there are remaining pillars to be compared, and the pillars to be compared are updated by setting p to p+1 (step S17). After calculating the difference ex between the central coordinate of the nth pillar (hereinafter referred to as the "centre of gravity of the pillar") and the X-coordinate of the centre of gravity of the n+pth pillar (step S18), it is determined whether the absolute value of the difference ex is less than or equal to a reference value E (step S19). If it is determined in step S19 that the absolute value of the difference ex is equal to or less than the reference value E, it is determined whether or not the X-axis direction group number gx has already been assigned to the (n+p)th column (step S20). If it is determined in step S20 that the (n+p)th column has already been assigned the X-axis direction group number gx, the process returns to step S16 and a comparison process (steps S17 to S19) is performed between the nth column and the next comparison target, the (n+p)th column. If it is determined in step S20 that the (n+p)th column has not been assigned the X-axis direction group number gx, the (n+p)th column is assigned the X-axis direction group number gx (step S21), and then the process returns to step S16 to compare the nth column with the next comparison target, the (n+p)th column (steps S17 to S19). In other words, if the absolute value of the difference ex in the X-coordinate between the center of gravity of the nth column and the center of gravity of the n+pth column is less than or equal to the reference value E, the n+pth column is assigned the same X-axis group number gx as that assigned to the nth column. Furthermore, in step S19, if the absolute value of the difference ex is not equal to or less than the reference value E (No in step S19), the process returns to step S16 and performs a comparison process (steps S17 to S19) between the n-th column and the next comparison target, the n+p-th column. Furthermore, if it is determined in step S16 that the value of n+p matches the number of columns, gx is set to gx+1, and p is set to 0 (step S22), and the process returns to step S12. That is, the X-axis direction group number for the n+pth column to be compared is updated, and the process proceeds to comparison with the nth column. In addition, in step S19, if it is determined that the absolute value of the difference ex of the X-coordinate of the center of gravity is not less than the reference value E, the (n+p)th column will be assigned an X-axis direction group number via step S22 before the process of assigning the X-axis direction group number is completed. If it is determined in step S14 that the n-th column has already been assigned the X-axis direction group number gx, the process returns to step S12. Furthermore, if it is determined in step S12 that the value of n matches the number of pillars, it is recognized that the X-axis direction group number gx has been assigned to all pillars, and the same process as that for assigning the X-axis direction group number gx is performed for assigning the Y-axis direction group number gy (step S23), thereby terminating the obstacle grouping process (phase 2) and proceeding to the next process, which is the obstacle angle recognition process (phase 3).
[0017] In the obstacle angle recognition process (phase 3), the computer recognizes the corners of pillars B, such as pillar B1 with a square cross-section, pillar B2 with a rectangular cross-section, pillar B3 with a circular cross-section, and pillar B4 with an L-shaped cross-section, by assigning numbers to the corners of the pillars B in accordance with the procedures of the obstacle angle recognition process program, for example as shown in Figure 3. For example, as shown in FIG. 3, a number from 1 to 4 is assigned to each corner of each column B, B…. However, in the case of a column B3 (round column) with a circular cross section that has no corners, the four points on the outer periphery of the round column that intersect with a line parallel to the X-axis and passing through the center coordinates of the round column and a line parallel to the Y-axis and passing through the center coordinates of the round column are regarded as corners, and a number is assigned to each of the four corners.
[0018] That is, the computer performs the obstacle angle recognition process (phase 3) as shown in the flowchart of FIG. 15, in accordance with the procedure of the obstacle angle recognition process program. In the obstacle angle recognition process (phase 3), first, a pillar number management variable initialization process is performed. That is, the pillar number management variable n is set to 0 (step S31). Next, it is determined whether the value of n matches the number of columns (step S32). If it is determined in step S32 that the value of n does not match the number of columns, it is recognized that there are columns that have not yet been numbered, and n is updated to n+1 (step S33). After that, it is determined whether there are multiple corners of the nth column that have the largest Y-axis coordinate value (step S34). In step S34, if it is determined that there is only one corner with the highest Y-axis coordinate value among the corners of the n-th column (No in step S34), the corner with the highest Y-axis coordinate value for the n-th column is assigned corner number 1 (step S35, see for example columns B1 and B3 in FIG. 3), and then it is determined whether there are multiple corners with the highest X-axis coordinate value among the corners of the n-th column (step S37). The corner numbers are recorded in a column corner number record file that records the corner numbers of each column. That is, in the obstacle angle recognition process, the computer performs the process using storage means such as a pole number management variable register, a pole angle coordinate recording file, and a pole angle number recording file. In step S34, if it is determined that there are multiple corners with the largest Y-axis coordinate value among the corners of the nth column (Yes in step S34), the corners with the largest Y-axis coordinate values for the nth column are compared, and the corner with the smallest X-axis coordinate value is assigned corner number 1 (step S36; see columns B2 and B4 in FIG. 3 for example). In other words, the corner with the smallest X-axis coordinate value among the multiple corners with the largest Y-axis coordinate value is assigned corner number 1, and then the process proceeds to step S37. In step S37, if it is determined that there is one corner of the nth column that has the largest X-axis coordinate value (No in step S37), corner number 2 is assigned to the corner of the nth column that has the largest X-axis coordinate value (step S38, see for example columns B1 and B3 in Figure 3), and then it is determined whether there are multiple corners of the nth column that have the smallest Y-axis coordinate value (step S40). In step S37, if it is determined that there are multiple corners with the largest X-axis coordinate value among the corners of the nth column (Yes in step S37), the corners with the largest X-axis coordinate values for the nth column are compared, and the corner with the largest Y-axis coordinate value is assigned corner number 2 (step S39; see, for example, columns B2 and B4 in FIG. 3). In other words, the corner with the largest Y-axis coordinate value among the multiple corners with the largest X-axis coordinate value is assigned corner number 2, and then the process proceeds to step S40. In step S40, if it is determined that there is one corner of the nth column with the smallest Y-axis coordinate value (No in step S40), corner number 3 is assigned to the corner of the nth column with the smallest Y-axis coordinate value (step S41, see for example columns B1 and B3 in Figure 3), and then it is determined whether there are multiple corners of the nth column with the smallest X-axis coordinate values (step S43). In step S40, if it is determined that there are multiple corners with the smallest Y-axis coordinate value among the corners of the nth column (Yes in step S39), the corners with the smallest Y-axis coordinate values for the nth column are compared, and the corner with the largest X-axis coordinate value is assigned corner number 3 (step S42; see columns B2 and B4 in FIG. 3 for example). In other words, the corner with the largest X-axis coordinate value among the multiple corners with the smallest Y-axis coordinate value is assigned corner number 3, and then the process proceeds to step S43. In step S43, if it is determined that there is one corner of the nth column that has the smallest X-axis coordinate value (No in step S43), corner number 4 is assigned to the corner of the nth column that has the smallest X-axis coordinate value (step S44; see, for example, columns B1 and B3 in FIG. 3), and then the process returns to step S32. In step S43, if it is determined that there are multiple corners with the smallest X-axis coordinate value among the corners of the nth column (Yes in step S43), the corners with the smallest X-axis coordinate values for the nth column are compared, and the corner with the smallest Y-axis coordinate value is assigned corner number 4 (step S45; see, for example, columns B2 and B4 in FIG. 3). In other words, the corner with the smallest Y-axis coordinate value among the multiple corners with the smallest X-axis coordinate values is assigned corner number 4, and then the process returns to step S32. Then, in step S32, if it is determined that the value of n matches the number of pillars, it is recognized that numbers have been assigned to each corner of all pillars B, B..., and the obstacle angle recognition process (phase 3) is terminated, and the process proceeds to the obstacle boundary line creation process (phase 4).
[0019] In the obstacle boundary line creation process (phase 4) by the first connection line creation means, the computer creates a boundary line between pillars B, B, that is, an obstacle boundary line (obstacle boundary line (first boundary line)) as shown in FIG. 4, in accordance with the procedure of the obstacle boundary line creation process program. For example, an obstacle boundary line is created between pillars B, B that have the same group number and are closest to each other. That is, FIG. 4 shows an example in which pillar B(4) with number 3-1 and pillar B(3) with number 3-3, which are in the same 3 group in the X-axis direction, are connected by an obstacle boundary line M, pillar B(1) with number 1-1 and pillar B(4) with number 3-1, which are in the same 1 group in the Y-axis direction, are connected by an obstacle boundary line M, and pillar B(3) with number 3-3 and pillar B(5) with number 4-3, which are in the same 3 group in the Y-axis direction, are connected by an obstacle boundary line M. That is, for each pillar, the most suitable pillar for connecting the boundary line is selected, and the pillars are connected by the boundary line. In addition, in Figure 4, an example is shown in which a crank-shaped boundary line along the X-axis direction or a crank-shaped boundary line along the Y-axis direction is created as the inter-column boundary line M, but the inter-column boundary line M may also be a diagonal straight boundary line that intersects with the X-axis direction and the Y-axis direction, or a smoothly curved boundary line.
[0020] That is, the computer performs an obstacle boundary line creation process (phase 4) as shown in the flowchart of FIG. 16, in accordance with the procedure of the obstacle boundary line creation process program. First, a variable initialization process is performed: the column number management variable n is set to 0, and the comparison target management variable p is set to 0 (step S51). Next, it is determined whether the value of n matches the number of columns (step S52). In step S52, if the value of n does not match the number of columns (No in step S52), the connection candidate registration variable s is initialized, that is, s is set to Null (step S53). Furthermore, after setting n to n+1 (step S54), it is determined whether or not a boundary line is already connected to the nth column in the positive X-axis direction (step S55). That is, in the obstacle-to-obstacle boundary line creation process, the computer performs the process using storage means such as the above-mentioned pillar number management variable register, comparison target management variable register, connection candidate registration variable register, pillar corner coordinate recording file, and pillar corner number recording file. The connection candidate registration variable s is a variable for temporarily recording connection candidates. In step S55, if the n-th pillar does not have a boundary line connected in the positive X-axis direction (No in step S55), it is determined whether the value of n+p matches the number of pillars (step S56). In step S56, if the value of n+p does not match the number of columns (No in step S56), this means that there are still columns to compare, so p is updated to p+1 (step S57), and then it is determined whether the X-axis direction group number of the nth column is the same as the X-axis direction group number of the n+pth column (step S58). If it is determined in step S58 that the X-axis direction group number of the nth column and the X-axis direction group number of the n+pth column are the same, it is determined whether the center of gravity (central coordinates) of the n+pth column is in the positive X-axis direction as viewed from the nth column (step S59). If it is determined in step S58 that the X-axis direction group number of the nth column and the X-axis direction group number of the (n+p)th column are not the same, the process returns to step S56. If it is determined in step S59 that the center of gravity of the (n+p)th column is not in the positive X-axis direction as viewed from the nth column, the process returns to step S56. If it is determined in step S59 that the center of gravity of the (n+p)th column is in the positive X-axis direction as viewed from the nth column, it is determined whether or not s=Null (step S60). In step S60, if s=Null, the distance L* between the centers of gravity of the nth pillar and the (n+p)th pillar is calculated (step S61), and then n+p is substituted for the connection destination candidate variable s (step S62), and the process returns to step S56. In step S60, if s=Null is not satisfied, the distance L between the centers of gravity of the nth pillar and the (n+p)th pillar is calculated (step S63), and then it is determined whether L*>L is satisfied (step S64). In step S64, if L*>L, L is substituted for L* (step S65), n+p is substituted for the connection destination candidate variable s (step S66), and the process returns to step S56. If L*>L is not satisfied in step S64, the process returns to step S56. If it is determined in step S56 that the value of n+p matches the number of pillars, it is determined whether s=Null (step S67). If s=Null, the process returns to step S52. If s=Null, the process returns to step S52. If s=Null is not true, the process draws a boundary line M between the second corner of the nth pillar and the fourth corner of the sth pillar (for example, in FIG. 4, a boundary line M extends from the second corner of pillar B(1) to the right and connects to the fourth corner of pillar B(4)), and then the process returns to step S52. Then, in step S52, if it is determined that the value of n matches the number of columns, the connection process to the positive X-axis direction boundary line is terminated, and then the connection process to the negative X-axis direction boundary line, the connection process to the positive Y-axis direction boundary line, and the connection process to the negative Y-axis direction boundary line are each performed in the same manner as the connection process to the positive X-axis direction boundary line (however, the connection to the boundary line in the X-axis direction is made between corner number 2 and corner number 4, and the connection to the boundary line in the Y-axis direction is made between corner number 1 and corner number 3) (step S69). Then, when the process of connecting to the negative X-axis direction boundary line, the process of connecting to the positive Y-axis direction boundary line, and the process of connecting to the negative Y-axis direction boundary line are completed, the process proceeds to the next divided area division process (phase 5).
[0021] The obstacle boundary line creation process (phase 4) will be described in more detail below. 4 as an example, in step S58, since column B(1) as the n=1th column and column B(2) as the n+p=2nd column do not have the same X-axis direction group number, column B(1) is compared with column B(3) as the n+p=3rd column in step S58 through step S57. Columns B(1) and B(3) also do not have the same X-axis direction group number, and further, in step S57, column B(1) is compared with column B(4) as the n+p=4th column in step S58. Columns B(1) and B(4) have the same X-axis direction group number, and in step S60, the distance L* between the centers of gravity of columns B(1) and B(4) is calculated, and then the number of column B(4), n+p="4", is stored as the connection destination candidate variable s. After that, in step S57, column B(1) is compared with column B(5) which is the n+p=5th column in step S58. Since columns B(1) and B(5) do not have the same X-axis direction group number, the process returns to step S57, and in step S67, in step S68, the second corner of column B(1) and the fourth corner of column B(4) are connected with a boundary line. In the example of Fig. 4, there are no three or more columns with the same X-axis direction group number, but if there is a column B(6) outside the figure with the same X-axis direction group number as columns B(1) and B(4) in Fig. 4, the distance L between the centers of gravity of column B(1) and column B(6) is calculated in step S63. Then, in step S64, if the distance L between the centers of gravity of column B(1) and column B(6) is smaller than the distance L* between the centers of gravity of column B(1) and column B(4), the number of column B(6), n+p = "6", is stored as the connection destination candidate variable s, and after step S67, in step S68, the second corner of column B(1) and the fourth corner of column B(6) are connected by a boundary line.
[0022] In the divided area division process (phase 5) using the second connection line creation means and the third connection line creation means, the computer creates a boundary line N (second boundary line) connecting pillar B and the movement target area boundary line C, or a boundary line Q (third boundary line) connecting pillar B and the inter-pillar boundary line M (first boundary line) or boundary line N (second boundary line) as shown in Figure 5, in accordance with the procedures of the divided area division process program, and divides the movement target area A into a number of divided areas E, E... (see Figure 6) which are a number of movable areas partitioned by boundaries C, M, N, Q. In other words, in the obstacle-to-obstacle boundary creation process (phase 4), a boundary line N (second boundary line) is created that connects the corner of pillar B that is not connected by the inter-pillar boundary line M to the movement target area boundary line C, or a boundary line Q (third boundary line) is created that connects the corner of pillar B that is not connected by the inter-pillar boundary line M (first boundary line) to the inter-pillar boundary line M (first boundary line) or boundary line N (second boundary line). As a result, the movement target area A is divided into a plurality of divided areas E, E . . . (see FIG. 6) that are a plurality of movable areas partitioned by boundary lines C, M, N, and Q.
[0023] That is, the computer performs the divided area division process (phase 5) as shown in the flowchart of FIG. 17 in accordance with the procedure of the divided area division process program. In the division area division process (phase 5), first, a variable initialization process is performed. That is, the column number management variable n is set to 0 (step S71). Next, it is determined whether the value of n matches the number of columns (step S72). In step S72, if the value of n does not match the number of columns, it means that there are still columns to compare, so the column corner number management variable is initialized, i.e., the column corner number management variable c is set to 1 (step S73), and further, the column number management variable n is updated to n+1 (step S74), and it is determined whether or not the boundary line is already connected for the corner of the nth column with corner number c (step S75). That is, in the division area division process, the computer performs the process using storage means such as a column number management variable register, a column corner number management variable register, a column corner coordinate recording file, and a column corner number recording file. In step S75, if no boundary line is connected to the corner with corner number c of the n-th pillar, it is determined whether c=1 (step S76). If it is not true in step S76 that c=1, it is determined whether or not c=2 (step S77). If c=2 is not satisfied in step S77, it is determined whether c=3 is satisfied (step S78). In step S78, if c=3 is not satisfied, the boundary line N is extended in the negative X-axis direction from corner number 4 until it touches either a wall, a pillar, or a boundary line (step S79, see, for example, pillar B(1), pillar B(2), and pillar B(3) in FIG. 5). After that, the pillar corner number management variable c is updated to c+1 (step S80), and it is determined whether c=5 is satisfied (step S81). In step S76, if c=1, extend boundary line N in the positive Y-axis direction from corner number 1 until it touches either a wall, a pillar, or a boundary line (step S82, see, for example, pillar B(1), pillar B(2), and pillar B(3) in FIG. 5). Then, proceed to step S80. Also, in step S77, if c=2, the boundary line N is extended in the positive X-axis direction from corner number 2 until it touches either a wall, a pillar, or a boundary line (step S83, see, for example, pillar B(2) and pillar B(4) in FIG. 5). Then, the process proceeds to step S80. Also, in step S78, if c=3, the boundary line N is extended in the negative Y-axis direction from corner number 3 until it touches either a wall, a pillar, or a boundary line (step S84, see, for example, pillar B(1), pillar B(2), and pillar B(4) in FIG. 5). Then, the process proceeds to step S80. That is, after the process of extending the boundary line from each corner number is completed (steps S82, S83, S84, S79), the column corner number management variable c is updated to c+1 (step S80), and it is determined whether c=5 (step S81). If c=5 in step S81, the process returns to step S72 and moves to the process for the next column to be compared. If c=5 is not satisfied in step S81, the process returns to step S75, and the processes from step S75 to step S84 are repeated. Then, in step S72, if the value of n matches the number of columns, the divided area division process (phase 5) is terminated, and the process proceeds to the divided area recognition process (phase 6).
[0024] In the divided area recognition process (phase 6), the computer recognizes each of the multiple divided areas E, E... by assigning numbers as identification information in a predetermined order to each of the multiple areas separated by lines in the movement target area A (the area outside the wall (the area outside the movement target area A), the area inside pillar B (obstacle area), and all of the divided areas) in accordance with the procedures of the divided area recognition process program. The divided area recognition process (phase 6) is a process in which areas are extracted by a filling process, for example as shown in Figures 8, 23 to 25, an individual area number is assigned to each extracted area, and then each divided area E, E... is recognized.
[0025] The computer performs the divided area recognition process (phase 6) as shown in the flowchart of FIG. 18 in accordance with the procedure of the divided area recognition process program. In the divided area recognition process, the computer uses storage means such as a fill judgment and area number recording array file, an X-axis direction search management variable register, a Y-axis direction search management variable register, an area number management variable register, an X-axis direction fill management variable register, a Y-axis direction fill management variable register, a fill management file, and a fill management variable temporary hold register, and performs the process while referring to the values stored in these storage means. First, variables are initialized. That is, the fill judgment and area number recording array Stack[Xmax][Ymax] is set to [0,0,0,...], the X-axis direction search management variable i is set to 0, the Y-axis direction search management variable j is set to 0, and the area number management variable a is set to 1 (step S91). That is, the X-axis direction search management variable register is set to 0, the Y-axis direction search management variable register is set to 0, and all values of each XY coordinate position in the fill judgment and area number recording array file are maintained at 0, and the area number management variable register is set to 1, and the process begins with filling the area outside the movement target area A with "1". First, it is determined whether i>Xmax holds (step S92), and if i>Xmax does not hold, it is determined whether Stack[i][j]=0 holds (step S93). In step S93, if Stack[i][j]=0, Stack[i][j] is set to -1 (step S94), resulting in the state shown in, for example, Figures 8(b), (f), 23(b), (d), 24(b), (d), (f), and 25(b). Thereafter, the filling control variables are initialized, that is, the X-axis direction filling control variable fi is set to i, and the Y-axis direction filling control variable fj is set to j (step S95). Fill management refers to the management of the values of each XY coordinate position in a fill management file separate from the fill judgment and area number record array file in order to avoid filling areas that already have area numbers when filling each area. That is, the values of each XY coordinate position in the fill judgment and area number record array file, Stack[i][j], are replaced with the values of each XY coordinate position in the fill management file, Stack[fi][fj], (see Fig. 23(d) for example), thereby making it possible to speed up the fill processing by not searching for the values of each XY coordinate position in areas that already have area numbers. Next, it is determined whether fi>Xmax (step S97). If fi>Xmax is not true in step S97, it is determined whether Stack[fi][fj]=-1 (step S98). In step S98, if Stack[fi][fj]=-1 (YES in step S98), proceed to step S98A, and in the fill management variable temporary holding register, set mi to fi, set mj to fj, and then set Stack[fi][fj] to a (step S99). Then, it is determined whether or not the coordinate (fi+1,fj) exists, there is no wall, pillar, or boundary between the coordinate (fi,fj) and the coordinate, and Stack[fi+1][fj] is 0 (step S100). In other words, if there is no wall, pillar, or boundary between the coordinate [fi][fj] set to a (initially "1") and the coordinate (fi+1,fj) on the positive side of the X-axis direction of the coordinate [fi][fj], and the coordinate (fi+1,fj) is 0 (Yes in step S100), Stack[fi+1][fj] is set to -1 (step S104). Then, proceed to step S101. If the answer is No in step S100, that is, if a wall, a pillar, or a boundary line passes between (fi,fj) and (fi+1,fj), the process proceeds to step S101, where it is determined whether or not the coordinate (fi-1,fj) exists, there is no wall, pillar, or boundary line between the coordinate (fi,fj) and the coordinate (fi-1,fj), and Stack[fi-1][fj] is 0. In other words, if there is no wall, pillar, or boundary line between the coordinate [fi][fj] set to a (initially "1") and the coordinate (fi-1,fj) on the negative side of the X-axis direction of the coordinate [fi][fj], and the coordinate (fi-1,fj) is 0 (if the answer is Yes in step S101), Stack[fi-1][fj] is set to -1 (step S105). Thereafter, the process proceeds to step S105A, where mi is set to fi-1 (except when fi=0), and then the process proceeds to step S102. If the answer is No in step S101, that is, if a wall, a pillar, or a boundary line passes between (fi,fj) and (fi-1,fj), the process proceeds to step S102, where it is determined whether or not the coordinate (fi,fj+1) exists, there is no wall, pillar, or boundary line between the coordinate (fi,fj) and the coordinate (fi,fj+1), and Stack[fi][fj+1] is 0. In other words, if there is no wall, pillar, or boundary line between the coordinate [fi][fj] set to a (initially "1") and the coordinate (fi,fj+1) on the Y-axis + side of the coordinate [fi][fj], and the coordinate (fi,fj+1) is 0 (if the answer is Yes in step S102), Stack[fi][fj+1] is set to -1 (step S106). Then, the process proceeds to step S103. If the answer is No in step S102, that is, if a wall, a pillar, or a boundary line passes between (fi,fj) and (fi,fj+1), the process proceeds to step S103, where it is determined whether or not the coordinate (fi,fj-1) exists, there is no wall, pillar, or boundary line between the coordinate (fi,fj) and the coordinate (fi,fj-1), and Stack[fi][fj-1] is 0. In other words, if there is no wall, pillar, or boundary line between the coordinate [fi][fj] set to a (initially "1") and the coordinate (fi,fj-1) on the negative side of the Y-axis direction of the coordinate [fi][fj], and the coordinate (fi,fj-1) is 0 (if the answer is Yes in step S103), Stack[fi][fj-1] is set to -1 (step S107). Thereafter, the process proceeds to step S107A, where mj is set to fj-1 (except when fi=0), and then the process proceeds to step S103A, where fi is set to mi and fj is set to mj. If the answer is No in step S103, that is, if there is a wall, pillar, or boundary line between (fi, fj) and (fi, fj-1), the process also proceeds to step S103A, where fi is set to mi and fj is set to mj. After the processing of step S103A, the process returns to step S97. If it is not determined in step S98 that Stack[fi][fj]=-1, fi is set to fi+1 (step S108), and the process returns to step S97. In step S97, if fi>Xmax, the process proceeds to step S109, where fi is set to 0 and fj is set to fj+1, and then it is determined whether fj>Ymax (step S110). In step S110, if fj>Ymax is not satisfied, the process proceeds to step S98, and if fj>Ymax is satisfied, the process proceeds to step S111. As a result of the above, for example, the states shown in Figs. 8(c) to (f) and Figs. 23(c) and (d) are obtained. In step S111, it is determined whether a=1 or not, and if a=1 is not true, the process proceeds to step S112 to determine whether the a-th section is in contact with pillars (whose coordinates are known) on all four sides and whether the numbers n of the pillars in contact are all the same. In step S111, if a=1, the a=1st section is determined to be outside the wall (step S115), and then the process proceeds to step S112. If the result of step S112 is No, a is set to a+1 (step S113), i is set to i+1 (step S114), and the process returns to step S92. If the answer is Yes in step S112, it is determined that the a-th section is inside a pillar (step S116), and then the process proceeds to step S113. That is, if the computer determines that the four sides of the boundary of an area (top, bottom, left, and right in FIG. 6) match the boundary of column B, and that the boundary of column B is the boundary of column B with the same number, and thus satisfies the column-inside-area condition, then the area is determined to be a column-inside-area. In other words, an area where a=1 is not satisfied and does not satisfy the column-inside-area condition is recognized as a divided area. In other words, if it is determined in step S110 that fj>Ymax, the filling process for one area is completed, and if the answer is No in steps S111 and S112, the filled area is a divided area, and the divided area is assigned the number a and recognized. Also, in step S93, if Stack[i][j]=0 is not true, i is set to i+1 (step S114), and the process returns to step S92. Also, in step S92, if i>Xmax, set i to 0 and j to j+1 (step S117), and then determine whether j>Ymax (step S118). If j>Ymax is not true, return to step S93; if j>Ymax is true, end the divided area recognition process (phase 6). With the above, the division process (phase 1 to phase 6) of the movement target area A is completed, and the process then proceeds to the creation process of the movement route (phase 7 to phase 11).
[0026] The divided region recognition process (phase 6) will be described with reference to the above-mentioned step S and FIGS. In addition, FIG. 8 shows an example in which two areas are extracted by painting processing, and each extracted area is assigned an individual number. 26 to 28 show examples in which a plurality of areas are extracted by painting processing, and each extracted area is assigned an individual number in ascending order. First, in step S91, as shown in Figures 8(a) and 26(a), the values of the fill-in judgment and area number recording array file, i.e., the XY coordinate matrix Stack[Xmax][Ymax] which indicates each XY coordinate position of the entire area including the entire area A to be moved and its periphery, are all set to 0. Then, through steps S92, S93, S94, and S95, the state shown in FIG. 8(b) and FIG. 26(b) is reached. Then, through steps S97 to S107A, the processes shown in Figs. 8(c) to (f) and Fig. 26(c) are carried out. In addition, steps S105A and S107A are processes for returning the coordinate position and searching when there is a recess as shown in Fig. 8(e)(f). That is, in this case, in order to perform processing by returning the coordinate in the negative direction in the X direction or the negative direction in the Y direction, the returned coordinate position is temporarily stored as variables mi and mj in the filling management variable temporary storage register and then processed. Then, after the number a is assigned to all coordinates of any area (if YES in step S110), a determination is made as to whether the area is an outside-wall area (area outside the movement target area A) or an inside-pillar area, which is a divided area (steps S111, 112), and then the number of the next area is updated (step S113), and the process proceeds to fill in the next area (see Figures 8(f), (g), Figure 26(d), Figures 27(a)-(f), and Figures 28(a)-(d)). In step S113, a number is assigned to each area in ascending order. Note that Fig. 26 to Fig. 28 show an example in which area a is assigned number 1, area b is assigned number 2, area c is assigned number 3, area d is assigned number 4, area e is assigned number 5, and area f is assigned number 6. That is, an example in which areas are assigned numbers in ascending order is shown.
[0027] Next, in the movement route creation process (phase 7 to phase 11), first, an equally-spaced straight line route creation process (phase 7) is performed. In the equally spaced straight line path creation process (phase 7), the computer sets multiple horizontal straight lines S, S... with equal intervals along the Y-axis direction within the movement target area A according to the procedure of the equally spaced straight line path creation process program, and creates an equally spaced straight line path that will be the basis of the zigzag movement planned route within the divided area described later. Figure 9 shows an example in which multiple horizontal straight lines S, S... with equal intervals along the Y-axis direction are set within the movement target area A. That is, the means for executing the equally spaced straight line path creation process (phase 7) functions as a horizontal straight line creation means for creating a plurality of horizontal straight lines S, S . . . parallel to the X axis that divide the movement target area A at equal intervals along the Y axis.
[0028] Next, in the intersection coordinate extraction process (phase 8), the computer follows the procedures of the intersection coordinate extraction process program to extract the intersection coordinates G, G... between the boundary lines C, M, N, Q and the boundary line of pillar B (obstacle area boundary line) that divide each area (the area outside the wall (the area outside the target area A), the area inside the pillar, and all of the divided areas) and multiple straight lines S, S..., as shown in Figure 10.
[0029] That is, the computer performs the equally-spaced straight-line path creation processing (phase 7) and the intersection coordinate extraction processing (phase 8) as shown in the flowchart of FIG. 19, in accordance with the procedures of the equally-spaced straight-line path creation processing program and the intersection coordinate extraction processing program. First, the boundary line number control variable is initialized, that is, the boundary line number control variable m is set to 0 (step S121). Next, the smallest y coordinate value in the search range (the y coordinate of the lowest end of the exterior wall) is identified, and this value is set as y (step S122). Then, a straight line S that is parallel to the X-axis and has an intercept of y is defined (step S123). Next, it is determined whether or not the m-th boundary line (including the periphery of the wall and the pillar) has an intersection with the line S (step S124). If it is determined in step S124 that the mth boundary line has an intersection with the line S, the coordinates of the intersection are recorded in an intersection coordinate recording file (step S125), and then m is set to m+1 (step S126), and it is determined whether the value of m matches the total number of boundary lines (step S127). If it is determined in step S124 that the m-th boundary line does not have an intersection with the line S, the process proceeds to step S126. In step S127, if the value of m does not match the total number of boundary lines, the processes in steps S124 to S126 are repeated until the value of m matches the total number of boundary lines. In step S127, if the value of m matches the total number of boundary lines, y is set to y+the distance between the lanes (step S128), and it is determined whether the value of y exceeds the upper limit of the search range (step S129). In step S129, if the value of y does not exceed the upper limit of the search range, the processes in steps S123 to S128 are repeated until the value of y exceeds the upper limit of the search range. In step S129, if the value of y exceeds the upper limit of the search range, the intersection extraction process is terminated, and the process proceeds to the intersection coordinate extraction process for each area (phase 9). That is, in the equally spaced straight line path creation process and the intersection coordinate extraction process, the computer performs the process while using storage means such as a boundary line number management variable register, a y coordinate recording file for each straight line S, and an intersection coordinate recording file.
[0030] In step S122, the "search range" of y←search range . . . refers to the movement target area A surrounded by C. Moreover, "define straight line S" in step S123 refers to, for example, the straight line S shown in Fig. 9. Therefore, in the process of creating a candidate line of a planned movement route in Fig. 19, a process is repeated in which straight lines S are drawn one by one in order from bottom to top in Fig. 9, and the coordinates of the intersections between the straight line S and each boundary line are recorded each time a straight line S is drawn. Note that straight lines S are also set on the horizontal lines at the bottom and top end positions of the movement target area boundary line C. In addition, the "distance between lanes" in step S128 refers to the distance between adjacent straight lines S, S in the vertical direction (Y-axis direction), and the value (length) of this "distance between lanes" is determined in advance to an appropriate length (for example, 10 cm). Therefore, the coordinates of the intersections between each of the straight lines S, S . . . that form the basis of the planned zigzag movement route within the divided area and all of the boundary lines are all recorded in the intersection coordinate recording file. In this case, for example, in the intersection coordinate recording file, the intersections are numbered in ascending order of X and Y coordinates, and the X and Y coordinates of each intersection are recorded (see the circled numbers indicating the intersection X and Y coordinates in FIG. 12).
[0031] In the area-by-area intersection coordinate extraction process (phase 9), the computer extracts, for each area, the intersection coordinates G, G... on the boundary lines C, M, N, Q, and the boundary line of pillar B (obstacle area boundary line) that divide each area, in accordance with the procedures of the area-by-area intersection coordinate extraction process program. FIG. 11 shows an example in which intersection coordinates G, G . . . on boundaries C, N that divide a divided area E to which area number 6 has been assigned are extracted.
[0032] The computer performs an area-by-area intersection coordinate extraction process (phase 9) as shown in the flowchart of FIG. 20, in accordance with the procedure of the area-by-area intersection coordinate extraction process program. First, variables are initialized: the intersection number management variable k is set to 0, and the area number management variable a is set to 1 (step S131). Next, it is determined whether or not the value of k exceeds the number of intersections recorded in the intersection coordinate recording file in the intersection coordinate extraction process (step S132). If it is determined in step S132 that the value of k does not exceed the number of intersections recorded in the intersection coordinate recording file, it is determined whether the value of a of area a exceeds the number of areas (step S133). In step S133, if the value of a does not exceed the number of areas, it is determined whether or not the k-th intersection is adjacent to area a (step S134). If it is determined in step S134 that the kth intersection is adjacent to area a, it is determined whether or not the exact same coordinates as the kth intersection have already been assigned to the intersection coordinate recording file for the ath area (step S135). If it is determined in step S134 that the k-th intersection is not adjacent to area a, k is set to k+1 (step S137), and then the process returns to step S132. If it is determined in step S135 that the intersection coordinate recording file for the a-th area already has the same coordinates as the k-th intersection recorded therein, the process proceeds to step S137. If it is determined in step S135 that the coordinates identical to the kth intersection are not recorded in the intersection coordinate recording file for the ath area, the coordinates of the kth intersection are recorded in the intersection coordinate recording file for the ath area (step S136), and then the process proceeds to step S137. If it is determined in step S132 that the value of k exceeds the number of intersections, k is set to 0 and a is set to a+1 (step S138), and then the process proceeds to step S133. If it is determined in step S133 that the value of a exceeds the number of areas, the process of extracting intersection coordinates for each area (phase 9) is terminated, and the process proceeds to the process of creating a zigzag movement planned route within the divided area (phase 10). That is, in the area-by-area intersection coordinate extraction process, the computer performs the process while using storage means such as the intersection number management variable register, the area number management variable register, the intersection coordinate recording file, and the intersection coordinate recording file for each area.
[0033] In the area-by-area intersection coordinate extraction process (phase 9), for example, by determining which area each intersection is adjacent to, starting from the intersection with the smallest XY coordinate value, the intersection number and the XY coordinate of the intersection are recorded in the intersection coordinate recording file for each area. In other words, the intersection coordinates are extracted for each area and recorded in the intersection coordinate recording file for each area (see FIG. 29(a)). First, in step S131, the intersection number management variable k is set to 0 and the area number management variable a is set to 1, so that area a=1, i.e., the intersections that intersect with the boundary line C surrounding the movement target area A, are recorded in a predetermined order (for example, the intersection with the smallest XY coordinate is set to k=1, and the value of k is incremented by 1 in order from the intersection with the smallest X coordinate and Y coordinate). Then, for each area, it is checked whether the coordinates of the intersections recorded in the intersection coordinate recording file in the intersection coordinate extraction process are adjacent to each area (steps S132 to S134), and an intersection coordinate recording file for each area is created (step S136). That is, in the area-by-area intersection coordinate extraction process (phase 9), correspondence is established between each area and each intersection (step S136). That is, the coordinates of the intersection between the line dividing each area and the straight line S are extracted and recorded as the coordinates of the intersection for each area. As described above, the means for executing the intersection coordinate extraction process (phase 8) and the intersection coordinate extraction process for each area (phase 9) functions as a first intersection recognition means for recognizing the intersections between the boundaries C, M, N, Q, and pillar B that divide each area (movement target area boundary, boundary, obstacle area boundary) and each horizontal straight line S, S.... In other words, it functions as a first intersection recognition means for recognizing the intersections between the divided area boundary and the horizontal straight line.
[0034] In the process of creating a planned zigzag movement route within a divided area (phase 10), the computer follows the procedures of the process of creating a planned zigzag movement route within a divided area program to create a zigzag planned zigzag movement route H within each divided area E, E... by connecting adjacent coordinates G, G on a straight line S along the X-axis for each divided area E, E..., as shown in Figure 12, and connecting intersection coordinates G, G between adjacent straight lines S, S along the Y-axis. The zigzag planned movement route H in the divided area is a route that repeats a route that moves in one direction in the X-axis direction and then turns back in the other direction opposite to the one direction in the X-axis direction. Note that, in the equally spaced straight line route creation process, when a plurality of vertical straight lines with equal intervals along the X-axis direction are set, a zigzag planned movement route in the divided area is created that repeats a route that moves in one direction in the Y-axis direction and then turns back in the other direction opposite to the one direction in the Y-axis direction. In addition, the intersections recorded in the intersection coordinate recording file for each area are recorded with the intersection numbers being discontinuous. For example, in FIG. 12, when the intersection numbers are assigned in order from the intersection with the smallest XY coordinate value and it is determined which area each intersection is adjacent to, the intersection numbers are assigned as the numbers in the circles in FIG. 12. For example, in the intersection coordinate recording file of the area (divided area) assigned the number 2 in FIG. 12, the intersections with the intersection numbers 1, 2, 6, 7, 11, 12, 16, 17, and 18 are recorded in order as shown in FIG. 26(a). However, if the intersections are traced in the recording order in FIG. 26(a), for example, a sawtooth route will result. Therefore, in the process of creating a zigzag movement route within a divided area (phase 10), as shown in FIG. 26(b), the order of recording of each intersection is rearranged so that the XY coordinates of each intersection are arranged in order from the start point to the end point of the route that forms a zigzag route in the sorted intersection coordinate recording file for each area. For example, as shown in FIG. 29(b), in the sorted intersection coordinate recording file for the area (divided area) given the number 2 in FIG. 12, each intersection is recorded in the order of intersection numbers 16, 18, 12, 11, 6, 7, 2, 1. Therefore, in the divided area, a zigzag movement route within a divided area is created that follows the intersection coordinates in the order recorded in the sorted intersection coordinate recording file for each area (divided area).
[0035] The computer performs a process (phase 10) of creating a planned zigzag movement route within a divided area as shown in the flowchart of FIG. 21, in accordance with the procedure of a program for creating a planned zigzag movement route within a divided area. First, variables are initialized: an area number management variable a is set to 1, a sort management variable i is set to 1, and a sort criterion change variable j is set to 1 (step S141). In addition, the sort control variable i is a variable that manages where in the array the numbers whose order has been rearranged by sorting are to be placed, and the sort criterion change variable j is a control variable that is used when changing the sorting criteria so that the root becomes a zigzag rectangular wave root rather than a sawtooth root. In the process of creating a planned zigzag movement route within a divided area, the computer performs the process using storage means such as an area number management variable register, a sorting management variable register, a sorting criterion change variable register, an intersection coordinate recording file for each area, and a post-sort intersection coordinate recording file for each area. Next, it is determined whether the value of a exceeds the upper limit of the number of areas (step S142). If it is determined in step S142 that the value of a does not exceed the upper limit of the number of areas, it is determined whether the a-th area is a valid area, that is, whether it is not outside a wall or inside a pillar (step S143). If it is determined in step S143 that the a-th area is a valid area, the intersection coordinates with the largest Y coordinate are searched for in the intersection coordinate recording file for this a-th area (step S144). Then, in step S145, it is determined whether there are multiple intersection coordinates with the largest Y coordinate. If it is determined in step S145 that there is only one intersection coordinate with the largest Y coordinate, the coordinate data searched in step S144 is moved to the i-th position of the sorted intersection coordinate recording file for the a-th area (step S146). That is, if i is "1", the intersection number and the XY coordinate values of the intersection with the largest Y coordinate are recorded in the first recording area of the sorted intersection coordinate recording file for the a-th area. That is, the intersection with the largest Y coordinate is recorded first. In addition, in step S146, the i-th data recorded in the intersection coordinate recording file for the a-th area is moved to the i-th data in the sorted intersection coordinate recording file for the a-th area, and this i-th data is deleted from the intersection coordinate recording file for the a-th area. Therefore, in the next step S144, the coordinate with the largest Y coordinate is searched for among the data in the intersection coordinate recording file for the a-th area from which the i-th data has been removed. It is also possible to carry out processing using a processing record file which is a copy of the area intersection coordinate record file, without deleting the data from the area intersection coordinate record file, and then delete the data from the processing record file. In addition, in step S145, intersection coordinates that are candidates for the start position of movement in each divided area are extracted, and in the subsequent step, the intersection coordinate recorded first in the intersection coordinate recording file after sorting is determined to be the intersection coordinate that will be the start position of movement in each divided area, and a zigzag route is created in each divided area by tracing a straight line S from the intersection coordinate that is the start position of movement to the intersection coordinate that is the end position of movement, and changing course at the intersection coordinate position. If it is determined in step S145 that there are two coordinates with the largest Y coordinate, it is determined whether the value of the sorting criterion change variable j is odd (step S150), and if it is determined that the value of j is odd, the coordinate with the largest Y coordinate and the smallest X coordinate is searched for (step S151), and then j is set to j+1 (step S152).Then, the process proceeds to a process of transferring the searched coordinate data to the i-th position of the sorted intersection coordinate recording file for the a-th area (step S146). Also, if it is determined in step S150 that the value of j is an even number, the coordinate with the largest Y coordinate and the largest X coordinate is searched for (step S153), and then j is set to j+1 (step S152), and the process proceeds to step S146. If it is determined in step S145 that there are three or more coordinates with the largest Y coordinate, the coordinate with the largest Y coordinate and the smallest X coordinate and the coordinate with the largest Y coordinate and the smallest X coordinate (intermediate intersection coordinates) are deleted (step S154). After that, the same process as when it is determined in step S145 that there are two coordinates with the largest Y coordinate is performed, and the process proceeds to step S146. Here, for example, in area 2 in Fig. 12, first in step S144, the Y coordinates of intersections numbered 16, 17, and 18 are found to be the largest coordinates, and then through steps S145 and S154, intersection number 17 is deleted. Then, since j=1, the process proceeds to step S151, where the X and Y coordinates of intersection numbered 16 are found. After that, j is set to j+1 (step S152), and intersection number 16 and its X and Y coordinates are recorded in the first recording area of the intersection coordinate recording file after sorting for area 2 (divided area) (see Fig. 29(b)). Then, in step S144, the intersection coordinates of number 11 and number 12 are searched for as having the largest Y coordinates, and if it is determined in step S145 that there are two coordinates with the largest Y coordinate, then in this case j=2, the process proceeds to step S153, where the intersection coordinates of number 12, which have the largest Y coordinate and the largest X coordinate, are searched for, and intersection number 12 and the X and Y coordinates of the intersection are recorded in the third recording area of the intersection coordinate recording file after sorting of area 2 (divided area) (see Figure 29(b)). In other words, when there are multiple coordinates with the largest Y coordinate, the criteria for searching for the coordinate with the smallest X coordinate or the coordinate with the largest X coordinate is switched based on the value of j, so that the route becomes a zigzag rectangular wave route rather than a sawtooth route. After step S146, it is determined whether a straight line connecting the (i-1)th coordinate to the i-th coordinate in the sorted intersection coordinate recording file for area contacts an exterior wall or a pillar (step S147). If there is no contact, i is updated to i+1 (step S147E), and it is determined whether coordinate data remains in the intersection coordinate recording file for the a-th area (step S148). If it is determined in step S147 that the straight line contacts an exterior wall or a pillar, the i-th coordinate data in the sorted intersection coordinate recording file for area is moved to the i+1th coordinate data, and then the i+1th X coordinate and the i+1th Y coordinate are written in the i-th region (step S147A). Then, i is updated to i+2 (step S147B), and the process proceeds to step S148. That is, in steps S147A and S147B, when the route comes into contact with an exterior wall or a pillar as shown in FIG. 30(a), the route is corrected so as not to come into contact with the exterior wall or the pillar as shown in FIG. 30(b). Next, in step S148, if it is determined that coordinate data remains in the intersection coordinate recording file for the a-th area, the process returns to step S144. If it is determined in step S148 that no coordinate data remains in the intersection coordinate recording file for the a-th area, the process proceeds to step S147C to determine whether the first and second Y coordinate values in the sorted intersection coordinate recording file for the a-th area are the same. If it is determined in step S147C that the first and second Y coordinate values are not the same, the first recorded coordinate information is erased, and the i-th coordinate information is moved to the (i-1)th coordinate information (step S147D). That is, as shown in FIG. 12, for example, in areas 3 and 11, the first Y coordinate and the second Y coordinate in the sorted intersection coordinate recording file are not the same, so the second intersection coordinate position (intersection 3s, 11s) is used as the starting point, and the recording order of the intersection coordinates from the third onwards in the sorted intersection coordinate recording file is moved up by one. That is, in steps S147C and S147D, the process determines the intersection coordinates that will be the start position of movement in each divided area so that the route (path) connecting the intersection coordinates that are the start position of movement in each divided area to the next intersection coordinates is a route parallel to the X-axis. If it is determined in step S147C that the first and second Y coordinate values are the same, the process proceeds to step S149, where a is set to a+1, i to 1, and j to 1, and the process returns to S142. That is, the sorting process of the currently processed area a ends, and the process moves to the sorting process of the next area. If it is determined in step S143 that the a-th area is not a valid area, the process proceeds to step S149, where a is set to a+1, i is set to 1, and j is set to 1, and the process returns to step S142. That is, the process proceeds to sorting the next area. If it is determined in step S142 that the value of a exceeds the upper limit of the number of areas, the process of creating a zigzag movement planned route within the divided area (phase 10) is terminated, and the process proceeds to the movement cost calculation process (phase 11). In other words, a route that follows the intersection coordinates recorded in the sorted intersection coordinate recording file for area a in the recorded order is created as the planned zigzag movement route within the divided area (see planned zigzag movement route H within the divided area shown by a dotted line in area 2 of Figure 26(b) and Figure 12). That is, in the process of creating a zigzag movement route within the divided area (phase 10), for example, as shown in Fig. 12, a zigzag movement route H is created within the divided area that connects the planned movement start point (coordinate) 2s and the planned movement end point (coordinate) 2e in the area 2. In addition, the planned movement start point (coordinate) Ns and the planned movement end point (coordinate) Ne (N is an integer excluding 7, 10, 12, 16, and 18 from 2 to 19) of each area (area excluding pillar areas 7, 10, 12, 16, and 18 from 2 to 19) are determined, and a zigzag movement route (first route for each divided area) H is created within the divided area that connects the planned movement start point (coordinate) Ns and the planned movement end point (coordinate) Ne. As described above, the means for executing the process of creating a zigzag movement planned route within a divided area (phase 10) functions as a first route creation means for creating a first zigzag route for each divided area that proceeds along the Y axis formed by connecting the intersections on the boundary lines of each divided area with horizontal straight lines.
[0036] In the movement cost calculation process (phase 11), the computer calculates the movement cost of each of the zigzag movement planned routes (first routes) H, H... in each divided area created in phase 10 according to the procedure of the movement cost calculation process program. In other words, the movement cost is calculated for each of the zigzag movement planned routes H, H... in each divided area, taking into account the total straight distance, the total turning angle, and the number of turns.
[0037] The computer performs a movement cost calculation process (phase 11) as shown in the flowchart of FIG. 22, in accordance with the procedure of the movement cost calculation process program. First, the area (division area) number and the total cost array file are initialized. That is, the area number management variable a is set to 1, and the total cost array CtHorizontal[amax] of the total cost array file for each area is set to [0,0,0,...] (step S201). In addition, the post-sort intersection coordinate management variable i is set to 1 (step S202). In the movement cost calculation process, the computer performs the process while using storage means such as an area number management variable register, a sorted intersection coordinate recording file for each area, and a total cost array file for each area. The total cost array file is a file that stores the cost of the travel route in each area, and the total cost array CtHorizontal is the total cost (travel efficiency evaluation value) of the first route for each area. Also, the sorted intersection coordinate management variable is a variable that manages the number of the corner (intersection) on the travel route in the area. Next, the distance L between the i-th coordinate and the (i+1)-th coordinate in the sorted intersection coordinate recording file for the a-th area is calculated (step S203). Then, the distance L is multiplied by the straight-line movement cost conversion constant Ks to calculate the cost Cs of straight-line movement (step S204), and the cost Cs of straight-line movement is added to the total cost array CtHorizontal[a] (step S205). After that, i is set to i+1 (step S206), and it is determined whether the i-th coordinate data is present in the sorted intersection coordinate recording file for the a-th area (step S207). If the answer is Yes in step S207, the cost required for stopping, Cstop (constant), is added to the total cost array CtHorizontal[a] (step S208). In other words, a temporary stop is required to move on to a turning action. The stopping time is considered to be constant regardless of the angle of turning. Therefore, a constant cost is added here. The specific value depends on the stopping performance (acceleration performance) of the moving object 1. Next, an angle θ between a vector extending from the (i-1)th coordinate to the i-th coordinate in the post-sort coordinate recording area for the a-th area and a vector extending from the i-th coordinate to the (i+1)th coordinate is calculated (step S209). Then, θ and a turning movement cost conversion constant Kc are multiplied to calculate the linear movement cost Cc (step S210), and the linear movement cost Cc is added to the total cost array CtHorizontal[a] (step S211), after which the process returns to step S203. If the result of step S207 is No, set a to a+1 (step S212), and then It is determined whether the value of a exceeds the upper limit amax of the number of areas (step S213). If the answer is No in step S213, the process returns to step S202, and if the answer is Yes in step S213, the movement cost calculation process (phase 11) is terminated and the process proceeds to the alternative route creation process (phases 12 to 16). The straight line movement cost conversion constant Ks and the turning movement cost conversion constant Kc are constants for making the units of length and angle obtained from the XY coordinate information dimensionless. In addition, the straight-line performance and cornering performance will differ depending on the individual moving object 1, such as the distance between the left and right tires of the moving object 1 and the upper limit of centrifugal force that can be applied. Therefore, the straight movement cost conversion constant Ks and the turning movement cost conversion constant Kc are set according to the difference in units obtained from the XY coordinate information, the individual differences (differences in performance) of the moving body 1, and the like.
[0038] The computer performs the alternative route creation process (phase 12 to phase 16) as shown in the flowchart of FIG. 23 in accordance with the procedure of the alternative route creation process program. First, the straight lines S, S... parallel to the X-axis defined in the equally spaced straight line path creation process (phase 7) are replaced with straight lines perpendicular to the X-axis, i.e., parallel to the Y-axis, and this is called phase 12 (step S230). That is, phase 12 is a process in which a vertical line creating means creates a plurality of vertical lines parallel to the Y axis that divide the movement target area at equal intervals along the X axis. Next, in the intersection coordinate extraction process (phase 8), the movement direction of the straight line is set perpendicular to the X-axis, and this is set as phase 13 (step S240). Furthermore, the intersection coordinate extraction process for each area (phase 9) is executed as is, and this is set as phase 14 (step S250). That is, phases 13 and 14 are processes in which the second intersection recognition means recognizes the intersections between the divided area boundary lines and the vertical straight lines. Next, in the process of creating a zigzag movement route within the divided area (phase 10), the X-axis coordinates of the processing part of the conditional branch are replaced with Y-axis coordinates, and the Y-axis coordinates are replaced with X-axis coordinates. At this time, the results are saved in a record file different from that in phase 10. The above is called phase 15 (step S260). That is, phase 15 is a process in which the second route creation means creates a zigzag second route for each divided area that proceeds along the X-axis formed by connecting the intersections on the boundaries of each divided area with vertical lines. Finally, the total cost array CtHorizontal in the movement cost calculation process (phase 11) is replaced with the total cost array CtVertical and the process is executed. At this time, the result is saved in a record file different from that in phase 11. The above is called phase 16 (step S270). That is, phase 16 is a process in which the second movement efficiency calculation means calculates the movement efficiency when moving along the second route for each divided area. Then, the process proceeds to route selection processing (phase 17).
[0039] In the route selection process (phase 17), the computer, following the procedures of the route selection process program, compares the travel efficiency when traveling along a first route within the same divided area with the travel efficiency when traveling along a second route, and selects the route with the better travel efficiency from the first route and the second route as the planned travel route within the divided area.
[0040] The computer performs a route selection process (phase 17) as shown in the flowchart of FIG. 24, in accordance with the procedure of the route selection process program. First, variables are initialized, that is, the area number management variable a is set to 1 (step S281). In the route selection process, the computer performs the process using storage means such as an area number management variable register, a file that records the total cost CtHorizontal[a] of the first route for each area, and a file that records the total cost CtVertical[a] of the second route for each area. Next, the total cost CtHorizontal[a] during horizontal movement (when the first route is selected) in area a is compared with the total cost CtVertical[a] during vertical movement (when the second route is selected) (step S282). In step S282, if it is determined that the total cost CtHorizontal[a] is lower, the sorted intersection coordinate record file for area number a created in phase 10 is made active (step S283). That is, in the area (divided area) a, the first route is selected as the planned travel route within the area (divided area) a. In step S282, if it is determined that the total cost CtVertical[a] is lower, or that the total cost CtVertical[a] and the total cost CtHorizontal[a] are equal, the sorted intersection coordinate record file for area number a created in phase 15 is activated (step S286). That is, in the area (divided area) a, the second route is selected as the planned travel route within the area (divided area) a. After step S283 or step S286, a is set to a+1 (step S284), and it is determined whether the value of a has exceeded the upper limit amax of the number of areas (step S284). If the answer is No in step S284, the process returns to step S282, whereas if the answer is Yes in step S284, the route selection process is terminated and the process proceeds to the inter-divided area planned movement route creation process (phase 18).
[0041] In the inter-divided area planned movement route creation process (phase 18), the computer generates an inter-divided area planned movement route, which is a planned movement route from the nth divided area E to the n+1th divided area E, according to the procedure of the intra-divided area zigzag movement planned route creation process program, as shown in Fig. 12. First, by the inter-divided area straight line movement planned route creation process, an inter-divided area straight line movement planned route I is created that connects in a straight line the planned movement end point (coordinate) 2e of the previous divided area (area) and the planned movement start point (coordinate) 2s of the subsequent divided area (area). In other words, a planned straight-line movement route I between divided areas is created, which connects in a straight line the coordinate position of the intersection recorded at the end of the sorted intersection coordinate recording file for each nth divided area and the coordinate position of the intersection recorded at the beginning of the sorted intersection coordinate recording file for each n+1th divided area. However, if connecting the planned end point (coordinate) 2e and the planned start point (coordinate) 2s of the movement in a straight line would result in contact (collision) with pillar B, a detour route is generated by a process for creating a detour route between divided areas using an arbitrary route search algorithm.
[0042] The computer performs the inter-divided area planned travel route creation process (phase 18) as shown in the flowchart of FIG. 25, in accordance with the procedure of the inter-divided area planned travel route creation process program. First, variables are initialized: the area number management variable a is set to 1, and the destination area management variable i is set to 1 (step S161). In the process of creating a planned route for movement between divided areas, the computer performs the process using storage means such as an area number management variable register, a destination area management variable register, a sorted intersection coordinate recording file for each area, a route search cost calculation array file, and a route recording file for each area. Next, it is determined whether the value of a exceeds the upper limit of the number of areas (step S162), and if the upper limit is not exceeded, it is determined whether the a-th area is a valid area (step S163), and if the a-th area is a valid area, it is determined whether the (a+i)th area is a valid area (step S164). If it is determined in step S164 that the a+i-th area is a valid area, it is determined whether a straight line connecting the last coordinate in the sorted intersection coordinate recording file for the a-th area and the first coordinate in the sorted intersection coordinate recording file for the a+i-th area will contact an exterior wall or a pillar (step S165). That is, it is determined whether a straight line connecting the planned movement end point e of the smaller numbered area and the planned movement start point s of the larger numbered area will contact an exterior wall or a pillar. If the answer is Yes in step S165 (if it is determined that the straight line comes into contact with an exterior wall or a pillar), the process proceeds to path search algorithm processing. In the route search algorithm processing, first, the last coordinate in the sorted intersection coordinate recording file for the a-th area, i.e., the intersection coordinate position that is the planned end point e of movement of the a-th divided area (the starting point in the route search algorithm), is set as the current position (step S166). Next, the cost calculation arrays of the path search algorithm are initialized, that is, cost C1[Xmax][Ymax]←[0,0,0,...] and cost C2[Xmax][Ymax]←[0,0,0,...] (step S167). First, calculate the distance between the starting point and the eight surrounding directions (up, down, left, right, etc.) from the current position. For example, look up C1 around the position for which you want to find the cost, and add +1 to the smallest C1 (however, ignore C1 that has not changed since initialization). The calculated cost is assigned to C1 of the array number corresponding to that position (step S168A). Next, the estimated distance from the current position to the first intersection coordinate (the goal point in the path search algorithm) in the sorted intersection coordinate record file for the a+ith area is calculated from the eight surrounding directions (up, down, left, right, etc.). For example, the straight-line distance between the position for which the cost is to be calculated and the goal is calculated, and the calculated cost is substituted for C2 of the array number corresponding to that position (step S168B). A calculation completion flag is set for each of the eight directions surrounding the current position, up, down, left, right, and so on (step S169). It is determined whether or not there is a location (coordinate) that has no exterior walls or pillars and has the lowest total cost (C1[*][**]+C2[*][**]) among the coordinates for which the cost calculation completion flag is set (step S170). If no corresponding coordinates are found in step S170, an error is determined and the process ends. In step S170, if there is only one corresponding coordinate, the process moves to that coordinate position and sets an arrival flag for that coordinate (step S171). Also, in step S170, if there are multiple corresponding coordinates, one of the coordinates with the same value is determined according to a predetermined priority, and then the process proceeds to step S174. The predetermined priority is set to the shortest estimated distance to the goal > the longest distance from the start > the closest to the origin coordinates (step S174). Then, the process proceeds to step S171. Then, it is determined whether or not the first coordinate of the sorted intersection coordinate recording file for the a+i-th area has been reached (step S172). If it is determined that the first coordinate in the sorted intersection coordinate record file for the a+ith area has been reached (YES in step S172), it is determined whether or not there is a location with an reached flag and the highest cost among the eight surrounding directions (up, down, left, right, and so on) from the current position (step S173). That is, in step S173, a process is performed to return to the start point, and the history of the movement trajectory is searched. If no corresponding coordinates are found in step S173, it is determined that an error has occurred and the process ends. In step S173, if there is only one corresponding coordinate, the process moves to the one with the highest cost, and a route confirmation flag is set for the destination coordinate (step S173A). Then, it is determined whether or not the last coordinate of the a-th sorted intersection coordinate recording file has been reached (step S174). Also, in step S173, if there are multiple corresponding coordinates, the robot moves to the one with the closest physical distance (Euclidean distance) to the start among the coordinates with the same value, and at this time, a route confirmation flag is set for the destination coordinates (step S173B). Then, the process proceeds to step S174. In step S174, if it is determined that the last coordinate in the sorted intersection coordinate recording file for the a-th area has been reached (YES in step S174), the recorded right movement trajectory is reversed and this is registered in the route recording file as the route of movement after the a-th area search (planned inter-divided area movement route I) (step S175).Then, proceed to step S176. If the result in step S165 is No (if it is determined that the straight line does not come into contact with an exterior wall or a pillar), a straight line connecting the last coordinate in the sorted intersection coordinate recording file for the a-th area to the first coordinate in the sorted intersection coordinate recording file for the (a+i)th area is registered in the route recording file as the route for movement after searching the a-th area (step S178), and then the process proceeds to step S176, where a is updated to a+i and i to 1, and the process returns to step S162. If it is determined in step S163 that the a-th area is not a valid area, the process proceeds to step S176, where a is updated to a+i and i to 1, and the process returns to step S162. If it is determined in step S164 that the a+i-th area is not a valid area, i is set to i+1 (step S179), and then it is determined whether the value of a+i exceeds the upper limit of the number of areas (step S180). If it is determined in step S180 that the value of a+i does not exceed the upper limit of the number of areas, the process returns to step S164, and if it is determined in step S180 that the value of a+i exceeds the upper limit of the number of areas, the process of creating a planned route between divided areas (phase 11) is terminated. If it is determined in step S162 that the value of a exceeds the upper limit of the number of areas, the process of creating a planned inter-divided area travel route (phase 11) is terminated.
[0043] According to the process of creating a planned movement route between divided areas (phase 18), a planned movement route between divided areas as shown in FIG. 12, for example, is created. That is, for example, the end intersection coordinates of the a-th divided area and the start intersection coordinates of the a+i-th divided area are connected to generate a planned movement route I between the divided areas a and a+i. In Figure 12, arrow line 23 (I) is a planned inter-divided area movement route connecting the planned end point (intersection coordinate) 2e of movement in divided area 2 and the planned start point (intersection coordinate) 3s of movement in divided area 3, arrow line 34 (I) is a planned inter-divided area movement route connecting the planned end point 3e of movement in divided area 3 and the planned start point 4s of movement in divided area 4, arrow line 45 (I) is a planned inter-divided area movement route connecting the planned end point 4e of movement in divided area 4 and the planned start point 5s of movement in divided area 5, and arrow line 56 (I) is a planned inter-divided area movement route connecting the planned end point 5e of movement in divided area 5 and the planned start point 6s of movement in divided area 6. In addition, the straight arrow line 68 (I) is a planned inter-divided area movement route connecting the planned end point 6e of movement in divided area 6 and the planned start point 8s of movement in divided area 8, the straight arrow line 89 (I) is a planned inter-divided area movement route connecting the planned end point 8e of movement in divided area 8 and the planned start point 9s of movement in divided area 9, the straight arrow line 911 (I) is a planned inter-divided area movement route connecting the planned end point 9e of movement in divided area 9 and the planned start point 11s of movement in area 11, and the straight line 1113 (I) that bypasses the pillar 12 is a planned inter-divided area movement route connecting the planned end point 11e of movement in divided area 11 and the planned start point 12s of movement in divided area 13, and these are planned inter-divided area movement routes searched for by the route search algorithm processing. In addition, arrow line 1314 (I) is a planned inter-divided area movement route connecting planned end point 13e of movement in divided area 13 and planned start point 14s of movement in divided area 14, arrow line 1415 (I) is a planned inter-divided area movement route connecting planned end point 14e of movement in divided area 14 and planned start point 15s of movement in divided area 15, arrow line 1517 (I) is a planned inter-divided area movement route connecting planned end point 15e of movement in divided area 15 and planned start point 17s of movement in divided area 17, and arrow line 1719 (I) is a planned inter-divided area movement route connecting planned end point 17e of movement in divided area 17 and planned start point 19s of movement in divided area 19. In the example of Fig. 12, all the planned routes between divided areas are the planned straight-line movement route I between divided areas determined in step S178, and there is no planned detour movement route between divided areas determined in the process of creating a detour movement route between divided areas. However, in an example in which it is determined that the planned straight-line movement route I between divided areas determined in step S178 comes into contact with an exterior wall or a pillar, a planned detour movement route between divided areas is created based on the process of creating a detour movement route between divided areas instead of the planned straight-line movement route I between divided areas. For example, if the pillar 16 in Fig. 12 is a larger pillar, there is a possibility that the arrow line 1415(I) comes into contact with the pillar 16. In this case, a planned detour movement route between divided areas that bypasses the pillar 16 is created based on the route search algorithm process.
[0044] Therefore, the moving object 1 can move between the divided areas by following the optimal planned movement route between the divided areas that has been created in advance, and the moving object can move between the divided areas efficiently.
[0045] According to the above-mentioned planned movement route creation device and planned movement route creation processing program, the route with the better movement efficiency is selected from the first route and the second route, so that it is possible to accurately create an efficient planned movement route for moving the moving body while avoiding obstacles within the target movement area according to the shape of each divided area.
[0046] Then, based on the planned movement route (planned movement information) created by the above-mentioned moving body planned movement route creation device, the moving body 1 can efficiently move independently within the target movement area A while avoiding pillars (obstacles) B within the target movement area A.
[0047] That is, as shown in FIG. 31, a control means 50 of the moving body 1 controls the movement of the moving body 1 based on a planned movement route (planned movement information), and a movement control system for the moving body 1 can be constructed in which the movement of the moving body 1 is controlled using actual movement information of the moving body 1 (sequential position information of the moving body) and the planned movement route (planned movement information) acquired by, for example, an automatic tracking total station (hereinafter referred to as TS) as a movement information acquisition means. As a method for controlling the movement of the moving body 1, for example, the movement control method disclosed in Patent Document 1 (JP Patent Publication No. 2020-154400), an invention by the present applicant, may be adopted.
[0048] A description will be given of an example of the moving body 1. In the following description, the directions of front, back, up, down, left, and right are defined as those shown in FIG. As shown in Figure 31, the moving body 1 comprises a base 10, a moving means 20 provided on the underside of the base 10, a target T2 such as a prism that serves as a collimator for the TS provided on the front side of the base 10, a lifting device 40 provided on the base 10 for raising and lowering the front side of the moving body 1, a control means 50, and an imaging means (camera) not shown for photographing the floor surface. Furthermore, the imaging means is provided, for example, on the underside of the base 10 (the underside facing the floor surface) so as to extend across the left and right width of the moving body 1, and is configured to be able to capture an image of the floor surface facing the left and right width of the underside of the moving body 1 when the moving body 1 moves over the floor surface.
[0049] The moving means 20 includes, for example, left and right front wheels 21L, 21R provided on the front lower part of the base 10, left and right rear wheels 22L, 22R provided on the rear lower part of the base 10, motors 23L, 23R as drive sources for the rear wheels 22L, 22R, and a drive control circuit not shown. Encoders 25L, 25R are attached to the motor shafts of the motors 23L, 23R, respectively, as movement amount detection means for detecting the movement distance (movement amount) of the moving body 1 based on the rotation amount of the rear wheels 22L, 22R.
[0050] The target T2 is configured with a reflecting prism that reflects the light emitted from the TS, etc. The target T2 is installed, for example, at a central position between the left and right on the front side of the upper surface of the base 10.
[0051] When changing the movement direction (travel direction) of the movable body 1, the control means 50 extends the rod of the linear actuator (not shown) of the lifting device 40 from a retracted state and presses the rolling body (not shown) against the floor surface, thereby moving the front side of the base body 10 upward and lifting the front wheels 21L, 21R of the movable body 1 off the floor surface, and then controls the motors 23L, 23R of the left and right rear wheels 22L, 22R to rotate the left and right rear wheels 22L, 22R in contact with the floor surface in opposite directions to each other. In this case, by rotating one rear wheel in a direction that moves the moving body 1 forward and rotating the other rear wheel in a direction that moves the moving body 1 backward, the left and right rear wheels 22L, 22R and the rolling body roll on the floor surface with the rotation center line of the moving body 1 as the center of rotation, so that the moving body 1 smoothly rotates leftward or rightward on the floor surface with the rotation center line as the center of rotation. Therefore, the horizontal direction of the moving body 1 is smoothly changed.
[0052] In addition, as the moving body 1, a moving body equipped with an imaging means (camera) that captures images of the floor surface has been exemplified, but the moving body may be a moving body equipped with a specific processing function, such as a moving body equipped with a vacuum cleaner that cleans the floor surface, or a moving body that does not have a specific processing function.
[0053] In addition, in the above-mentioned premise device, the area outside the movement target area A, i.e., the outside-wall area, is set to area 1, so in the variable initialization of step S131 of the intersection coordinate extraction process for each area (phase 9) in Figure 20, the variable initialization of step S141 of the zigzag movement planned route creation process within the divided area (phase 10) in Figure 21, the variable initialization of step S201 of the movement cost processing (phase 11) in Figure 22, the variable initialization of step S281 of the route selection processing (phase 17) in Figure 24, and the variable initialization of step S161 of the movement route creation process between divided areas (phase 18) in Figure 25, examples have been shown in which the area number management variable a is set to 1 and processing is started; however, since area 1 is not a divided area, in the variable initialization of each of these processes, the area number management variable a may be set to 2 and processing may be started from area 2.
[0054] The above-mentioned planned movement route creation device, which is a prerequisite device for the tour route creation device according to the present invention, assigns an area number to each divided area (each target area of movement) according to a predetermined rule, and creates a planned movement route by connecting the divided areas (target area of movement) in ascending order from the smallest numbered divided area with a planned movement route between the divided areas. In other words, a tour route that goes around each divided area is created. However, this planned movement route creation device simply connects two divided areas with the closest numbers, starting from the divided area with the smallest number, with a planned movement route between divided areas, and does not evaluate whether the route that goes around each divided area is an efficient route. In other words, it is not clear whether the tour route created using the above-mentioned base technology is an efficient tour route. The problem of finding an efficient route for the mobile unit 1 to visit each of these multiple areas (each target area) is known as the traveling salesman problem. The traveling salesman problem belongs to a class of problems called NP-hard, and it is considered difficult to find an optimal solution without using a brute force method. For example, if the number of areas is "N" and the number of patterns of tour patterns within an area is "8" as shown in FIG. 32, the total number of tour route patterns is the combination number of inter-area movement orders (N!) × the combination number of tour patterns within an area (8 N ) For this reason, it is not realistic from the viewpoint of calculation time to search for the optimal tour route (optimum solution) by exhaustively calculating all patterns of tour route patterns. Therefore, in the present invention, as described below, a travel route creation device has been realized that is capable of shortening the time required to create an efficient travel route for a mobile object 1 to travel through multiple target travel areas.
[0055] Embodiment A tour route creation device according to an embodiment of the present invention is a tour route creation device for creating a tour route for a mobile body to tour the multiple target areas by recognizing position information of a plurality of target areas for movement, and is configured to include a tour pattern setting means for setting a tour pattern within each target area for movement, and a tour order setting means for setting a tour order between each target area for movement in order to create a tour route that tours each target area. That is, the circulation pattern setting means sets a circulation pattern within each movement target area for each movement target area. In addition, the route between the moving target areas (hereinafter referred to as the inter-area route) connecting the moving target areas before and after the moving route is set by the patrol order setting means to a route connecting the end point (exit) of the patrol pattern within the moving target area of the previous moving target area and the start point (entrance) of the patrol pattern within the moving target area of the next moving target area.
[0056] The circulation pattern setting means and the circulation order setting means are constituted by a processing program indicating the procedure of the processing executed by each means, and hardware resources such as a computer for realizing information processing according to the processing program. In other words, the tour route creation processing program for implementing the processing of the tour route creation device is a program that causes a computer to function as the tour pattern setting means and tour order setting means described above. The route planning device is configured by installing the above-mentioned route planning processing program in a computer such as a personal computer having a display screen and display control means.
[0057] In the present invention, the multiple target regions to be moved are multiple independent target regions to be moved, or multiple divided regions as described above, and in the following description, the "target regions to be moved" will be referred to as "areas".
[0058] As described above, an area is a region partitioned based on XY coordinate information. Furthermore, the predetermined circulation pattern within the area is, for example, an X-direction circulation pattern that proceeds in a zigzag manner along the X-axis, or a Y-direction circulation pattern that proceeds in a zigzag manner along the Y-axis. As shown in FIG. 32, the predetermined plurality of patrol patterns within an area are, for example, a Z pattern (first pattern) in which the start position (start end (entrance)) of movement is the position of the minimum X coordinate and the maximum Y coordinate, a Z' pattern (second pattern) in which the start position of movement is the position of the minimum X coordinate and the minimum Y coordinate, an S pattern (third pattern) in which the start position of movement is the position of the maximum X coordinate and the maximum Y coordinate, and an S' pattern (fourth pattern) in which the start position of movement is the position of the maximum X coordinate and the minimum Y coordinate. In addition, the Y-direction cyclic pattern includes a W pattern (fifth pattern) in which the start position of movement is the position of the minimum X coordinate and the maximum Y coordinate, a W' pattern (sixth pattern) in which the start position of movement is the position of the maximum X coordinate and the maximum Y coordinate, an M pattern (seventh pattern) in which the start position of movement is the position of the minimum X coordinate and the minimum Y coordinate, and an M' pattern (eighth pattern) in which the start position of movement is the position of the maximum X coordinate and the minimum Y coordinate. Incidentally, the tour patterns that can be set in each area may be two or more tour patterns selected from the above-mentioned eight patterns, or a tour pattern other than the above-mentioned eight patterns. In addition, when each pattern of the plurality of patrol patterns is set in each area, the travel cost of moving a mobile object along each pattern is calculated in advance by a travel cost calculation means, for example, and recorded in a database.
[0059] The circuit route creation device according to the embodiment has an automatic creation function (circuit route automatic creation function) in which a computer creates a circuit route by setting a circuit pattern and a circuit order, and a manual creation function (circuit route manual creation function) in which a computer creates a circuit route by setting a circuit pattern and a circuit order based on human instructions, and is configured to allow the user to select which of the automatic and manual creation functions to use to create the circuit route.
[0060] The automatic creation functions include a tour route creation function that uses a simulated annealing algorithm (hereinafter abbreviated as "SA (Simulated Annealing)"), a tour route creation function that uses a genetic algorithm (hereinafter abbreviated as "GA (genetic algorithm)"), a tour route creation function that uses inter-center-of-gravity paths connecting the centers of gravity of multiple areas (hereinafter abbreviated as "Dlaus"), and a tour route creation function that uses an evaluation value (an evaluation value that indicates the ease of movement between two points when moving between the end point of a tour pattern set in one area and the start point of a tour pattern set in the other area between two arbitrary areas) (hereinafter abbreviated as "short path"). Below, we first explain SA, GA, Delaunay, and short path.
[0061] First, SA will be described. In the SA, the circular pattern setting means and the circular order setting means include, for example, a circular loop creating means for creating a circular loop that goes around each area, a movement cost calculating means for calculating the movement cost when a mobile body moves along the route of the created circular loop, and a circular route creating means for creating a circular route that goes around each area by deleting the inter-area route with the highest movement cost from among the inter-area routes that form the created circular loop, and setting the area that connected the end of the deleted inter-area route as the start area of the circular route and the area that connected the beginning of the deleted inter-area route as the goal area of the circular route. The travel cost calculation means calculates the travel cost of moving a moving object along the circulatory loop created by the circulatory loop creation means, the travel cost of moving a moving object along an inter-area route connecting areas before and after the circulatory loop created by the circulatory loop creation means, and the travel cost of moving a moving object along the circulatory route created by the circulatory route creation means. That is, the travel cost calculation means is a means for calculating the travel cost of the route of the circulatory loop, such as the circulatory loop, the inter-area route connecting areas before and after the circulatory loop, and the circulatory loop obtained by subtracting the travel cost of the inter-area route with the highest travel cost from the travel cost of the circulatory loop. The travel cost is a travel cost that takes into account the total straight distance, the total turning angle, and the number of turns, as described in the above-mentioned premise device. The cyclic loop creating means, when creating a cyclic loop by setting cyclic information for each area, includes initial cyclic loop creating means for creating an initial cyclic loop based on the cyclic information, and cyclic loop updating means for creating a cyclic loop with changed cyclic information of the initial cyclic loop. That is, the cyclic loop creating means is a means for creating a cyclic loop by setting cyclic information for each area, and is configured to repeat the process of creating a cyclic loop by setting cyclic information for each area and creating a cyclic loop with changed cyclic information of the created cyclic loop. The circuit route creation means includes a determination means for determining which circuit route to keep between a current circuit route created based on a current circuit loop (a current circuit loop with changed circuit information of the circuit loop) created by the circuit loop update means, and a previous circuit route created based on a previous circuit loop (a previous circuit loop before the change of the circuit information of the circuit loop) created by the circuit loop update means. The determination means is configured to execute a process of retaining the current circular route if the travel cost of the current circular route is smaller than the travel cost of the previous circular route, retaining the current circular route if the travel cost of the current circular route is larger than the travel cost of the previous circular route and retaining the previous circular route if a predetermined condition is met, and retaining the previous circular route if the predetermined condition is not met. The tour information is, for example, as shown in FIG. 45, combination information made up of information on the tour pattern within each area set for each area and information on the area to proceed to next. 45, the patrol information for area 1 is "2-M," where "M" is the information on the patrol pattern within area 1 (self), and "2" is the information on the next area to proceed to. That is, the patrol pattern within area 1 is set to M pattern (seventh pattern) based on the patrol information for area 1, and the area to proceed to after area 1 is 2, so a route connecting the end point (exit) of the M pattern, which is the patrol pattern for area 1, and the start point (entrance) of the Z pattern, which is the patrol pattern for area 2, is set as the inter-area route. That is, the circular loop is created based on the circular information, the inter-area route of the circular loop that has the highest travel cost is deleted to create the circular route, and the determination means determines whether or not to leave the circular route.
[0062] An outline of the processing flow by SA is shown in FIG. That is, the SA executes an initial circulation loop creation process (step S301), an initial temperature setting process (step S302), a circulation route cost calculation process (step S303), an alteration acceptance determination process (step S304), and an alteration process (steps S305, S306, S307, S308, and S309). That is, in the SA, the above-mentioned circulating pattern setting means and circulating order setting means perform an initial circulating loop creation process, an initial temperature setting process, a circulating route cost calculation process, an alteration acceptability determination process, and an alteration process. That is, each of these processes (initial circulating loop creation process, initial temperature setting process, circulating route cost calculation process, alteration acceptability determination process, and alteration process) is executed by a processing program indicating the procedure of each of these processes, and a computer that realizes information processing by the processing program. That is, the above-mentioned initial circular loop creation means executes an initial circular loop creation process and an initial temperature setting process, the circular loop update means executes a modification process, the travel cost calculation means executes a circular route cost calculation process, and the judgment means executes a modification acceptance judgment process.
[0063] The flow of processing by the SA can be briefly explained as follows based on the flowchart in FIG. First, an initial loop (first loop) is created by an initial loop creation process (step S301). An initial temperature (for example, 1500° C.) is set in an initial temperature setting process (step S302). In the first step S303, a travel cost of an initial loop route created based on the initial loop is calculated and recorded in a recording means. Thereafter, the processes of steps S304 to S306 are not performed, and the process of step S307 is performed, and a loop in which the initial loop is updated is created. Then, a tour route is created based on the updated tour loop, and the travel cost of the tour route is calculated in a tour route cost calculation process (step S303) and recorded in a recording means. Thereafter, the processes of steps S304, S305, S306, S307, and S303, or steps S304, S305, S306, S308, S309, and S303 are performed. That is, the circular loop creating means and the circular route creating means sequentially update the circular loop and update the circular route, and each time the circular route is updated, the travel cost of the circular route is calculated and recorded in the recording means, and a process for determining whether or not to accept the change determines which of the current circular route and the previous circular route should be retained. The modification acceptance determination process executed by the above-mentioned determination means is a process that, for example, is based on a simulated annealing algorithm, and by comparing the travel costs of the current and previous tour routes calculated by the travel cost calculation means as a solution, if the travel cost of the current tour route is smaller than the travel cost of the previous tour route, the current tour route is recorded, and if the travel cost of the current tour route is greater than the travel cost of the previous tour route, if a predetermined condition equation, for example, R≦exp(-ΔC / T) is satisfied, the current tour route is recorded, and if R≦exp(-ΔC / T) is not satisfied, the previous tour route is recorded. Here, ΔC = |the travel cost of the current tour route - the travel cost of the previous tour route|, T = temperature, and R = a random number. After the modification acceptance determination process (step S304) is completed, the process proceeds to step S305, where a temperature determination process is performed. That is, it is determined whether the temperature T is 0° C. If the temperature is not 0° C., it is determined whether the previous modification was a switch of routes between areas (step S306). If the previous modification was not an exchange of inter-area routes (No in step S306), a modification process is performed (step S307) in which two randomly selected inter-area routes are exchanged. If the previous modification was a switch in the route between areas (Yes in step S306), the temperature is lowered (step S308), and then a modification process (step S309) is performed to randomly change the patrol pattern within a randomly selected area. The above process is repeated until the temperature is determined to be 0°C in step S305, and finally, the traveling route with the smallest travel cost recorded in the recording means (i.e., the traveling route based on the optimal traveling information array Gbest[1~amax][1~2]) is determined to be the traveling route searched by SA. The initial circulation loop creation process, the initial temperature setting process, the circulation route cost calculation process, the modification acceptance determination process, and the modification process will be described in detail below.
[0064] First, the computer performs an initial cyclic loop creation process (phase 1) as shown in the flowchart of FIG. 34, in accordance with the procedure of an initial cyclic loop creation process program. First, the area number management variable a is initialized and the area number information amax is acquired (step S311). That is, the area number management variable a is set to 1, and the area number information amax is set to the number of areas (for example, in the case of the above-mentioned base technology (the case of multiple divided areas in FIG. 12), the number information amax is set to "14", and in the case of FIG. 44(b) described later, the area number information amax is set to "6"). Then, the cycle information array G[1 to amax][1 to 2] is initialized to be empty (step S312). Next, G[a][1] is set to a+1 (step S313), a Z pattern is set to G[a][2] (step S314), a is set to a+1 (step S315), and then it is determined whether the value of a is equal to amax (step S316). If the answer is No in step S316, the process returns to step S313. If the result of step S326 is Yes, the process proceeds to step S318, where G[amax][1] is set to "1," and the process proceeds to step S319, where G[amax][2] is set to "Z." That is, the area to proceed to next after the last area is set to 1 (step S318), and further the Z pattern is set as the cyclic pattern for the last area (step S319).
[0065] In the cyclic information array G[1~amax][1~2], [1~amax] is the number of each area, G[a][1] is the address of the memory area where information on the next area from area a is recorded, and G[a][2] is the address of the memory area where information on the cyclic pattern within area a is recorded. That is, [a] records information indicating the area number, G[a][1] records information (cyclic information) of the number of the next area to proceed to from area [a], and G[a][2] records information (cyclic information) of the cyclic pattern within area [a]. Therefore, hereinafter, G[a][1] means information on the number of the next area to proceed to from area [a], and G[a][2] means information on the cyclic pattern within area [a]. In other words, the cyclic information array G[1~amax][1~2] is a group of information recorded at the address G[1~amax][1~2], i.e., a combination of cyclic information as shown in Figures 44(a) and 45, and this cyclic information array forms a cyclic loop. For example, when the number of areas is six, the tour information array based on the tour information array G set in phase 1 becomes an initial tour information array as shown in FIG. That is, the initial cyclic information array G[1 to amax][1 to 2] shown in FIG. Area number 2 is recorded in address [1][1], which records the number of the next area to proceed from area [1], and the Z pattern is recorded in address [1][2], which records the cyclic pattern information within area [1]. In other words, "2-Z" is set as the cyclic information for area number 1. In addition, area number 3 is recorded in address [2][1], which records the information on the number of the next area to proceed from area [2], and the Z pattern is recorded in address [2][2], which records the information on the cyclic pattern within area [2]. In other words, "3-Z" is set as the cyclic information for area number 2. In addition, area number 4 is recorded in address [3][1], which records the number of the next area to proceed from area [3], and the Z pattern is recorded in address [3][2], which records the cyclic pattern information within area [3]. In other words, "4-Z" is set as the cyclic information for area number 3. In addition, the area number 5 is recorded in address [4][1], which records the information on the number of the next area to proceed from area [4], and the Z pattern is recorded in address [4][2], which records the information on the cyclic pattern within area [4]. In other words, "5-Z" is set as the cyclic information for area number 4. In addition, the area number 6 is recorded in address [5][1], which records the information on the number of the next area to proceed from area [5], and the Z pattern is recorded in address [5][2], which records the information on the cyclic pattern within area [5]. In other words, "6-Z" is set as the cyclic information for area number 5. In addition, the area number 1 is recorded in address [6][1], which records the information on the number of the next area to proceed from area [6], and the Z pattern is recorded in address [6][2], which records the information on the cyclic pattern within area [6]. In other words, "1-Z" is set as the cyclic information for area number 6. The initial cyclic loop created based on the initial cyclic information array is an initial cyclic loop as shown in FIG. In FIG. 44(b), p is a tour pattern, and r is an inter-area route.
[0066] Next, the computer performs initial temperature setting processing, travel route cost calculation processing, and modification acceptance / non-acceptance determination processing (phase 2) as shown in the flowchart of Figure 35, in accordance with the procedures of the initial temperature setting processing program, the travel route cost calculation processing program, and the modification acceptance / non-acceptance determination processing program. First, an initialization process is performed (steps S320 and S321). That is, in step S320, the comparative cost variable C2 is set to "0", the optimal cost storage variable Cbest is set to "0", and the initial temperature T is set to "1500° C." as the initial temperature setting process. Also, initialize the tour information copy array, i.e., set Gcopy[1~amax][1~2] to [0,0,0,...]. Also, initialize the optimal tour information array, i.e., set Gbest[1~amax][1~2] to [0,0,0,...]. Also, initialize the travel start area number recording variable, i.e., set S to 0. Next, in step S321, the cost variable C1 is set to "0", the area number management variable a is set to "1", the area round search completion flag f is set to "0", and the maximum inter-area movement cost storage variable Cmax is set to "0". Next, it is determined whether or not the area search completion flag is set (f=1) (step S322). If the area full search complete flag is not set (No in step S322), the process proceeds to step S323, where the movement cost for the G[a][2] pattern in the a-th area is downloaded from the database and added to the cost variable C1. The movement cost for each tour pattern (eight types of tour patterns) in each area is calculated in advance and stored in the database. Then, the process proceeds to step S324, where it is determined whether the tour information array G[a][1] indicates the first area. Here, if the tour information array G[a][1] indicating the next area is "1" (i.e., the area number where processing began), this means that the search area has been toured once. Therefore, if the answer is Yes in step S324, the process proceeds to step S325, where the area full search complete flag is set (f=1). Next, the process proceeds to step S326, where it is determined whether or not the robot can move in a straight line from the a-th area (current area) to the first area without coming into contact with an obstacle. If the answer is No in step S324, the process proceeds to step S327 to determine whether or not the robot can move in a straight line from the a-th area (current area) to the G[a][1]-th area (next area) without coming into contact with an obstacle. If the answer to step S327 is Yes, the travel cost Ctravel for traveling in a straight line from the finish point of the ath area to the start point of the G[a][1]th area is calculated (step S329), and then the process proceeds to step S330 to determine whether Ctravel>Cmax (maximum inter-area travel cost storage variable). If the answer is Yes in step S326, the process proceeds to step S329 to calculate the travel cost Ctravel, and then the process proceeds to step S330. Also, if the answer is No in step S326 or No in step S327, i.e., if straight-line movement is not possible, proceed to step S328, where a route (inter-area route) from the finish point of the ath area to the start point of the G[a][1]th area is searched for using a route search algorithm (such as the A* algorithm described above), and the travel cost Ctravel of the searched route (inter-area route) is calculated, after which proceed to step S330. If the answer is No in step S330, the travel cost Ctravel from the goal point of the a-th area to the start point of the G[a][1]-th area is added to the cost variable C1 (step S332). If the answer is Yes in step S330, that is, if Ctravel is greater than Cmax, then Ctravel is set as the new Cmax (step S331), and thereafter the process proceeds to step S332, where the current travel cost Ctravel is added to the cost variable C1. After step S332, the process proceeds to step S333, where a is set to the area number of G[a][1] (the number of the next area to proceed to), and the process returns to step S322. If it is determined in step S322 that the area round search completed flag is set (Yes in step S322), it is confirmed that a circular loop has been created, in which case the process proceeds to step S334, where C1-Cmax is set as the cost C1. That is, the cost excluding the highest travel cost between each area is set as the cost C1. That is, the total travel cost C1 of the circular route created based on the current circular information array (circular loop) is calculated. As described above, the travel route cost calculation process is performed, and then the process proceeds to the modification acceptance process. That is, in step S322, it is determined whether or not a circular loop has been created, and if a circular loop has been created, in step S334, the inter-area route of the circular loop that has the highest travel cost is deleted, and a circular route is created. Incidentally, "C1" on the right side in step S334 is the travel cost of the circular loop, and "C1" on the left side in step S334 is the travel cost of the circular route. That is, in the SA processing in FIG. 34, first one cyclic information array (information on a cyclic loop) as shown in FIG. 44 is determined, and in the GA processing in FIG. 48 described below, first multiple (e.g., 20) cyclic information arrays (information on a cyclic loop) as shown in FIG. 44 are determined, and these processing steps do not yet determine information on the cyclic route. Then, in SA, the information of the tour route (tour route) is sequentially obtained by the process of Fig. 35. That is, the tour route is determined by the information obtained by the process of Fig. 35, that is, the optimal tour information array Gbest[1-amax][1-2], the maximum inter-area travel cost Cmax, and the travel start area number S, and the tour route can be displayed on the map on the screen. Also, the cost Cbest of the tour route can be displayed on the screen. Then, at step S343 in FIG. 35, the temperature T becomes 0° C., and at step S344, the information of the final tour route obtained by SA, that is, the route information recorded in the optimal tour information array Gbest[1~amax][1~2], the trajectory information of the inter-area route when moving based on this route information, and the travel start area number recorded in S are saved in a file. The content saved in this file is the final tour route obtained by SA, and by displaying the information of this tour route and the travel cost Cbest of the tour route on the display screen D, the user can confirm the final tour route obtained by SA.
[0067] In the modification acceptance determination process, first, it is determined whether the optimal cost storage variable Cbest is in the initialization state or whether C1 < Cbest (step S335). If the answer is Yes in step S335, it means that the current cost C1 is the minimum cost at present. So, proceed to step S336, set the current cost C1 to Cbest, and set the tour route created based on the current tour information array G[1~amax][1~2] to the optimal cost storage variable Cbest[1~amax][1~2]. Then, proceed to step S337 and determine whether the comparison cost variable C2 is not in the initialization state "0" and whether C1 > C2. If the answer is No in step S335, it means that the current Cbest, which is not in the initialization state at present, is the minimum cost. So, proceed to step S337. Step S337 is the first determination step for whether to accept the modification. In step S337, when determining the initial tour route, since the comparison cost variable C2 is in the initialization state, proceed to step S340, accept the modification, and set the cost of the comparison cost variable C2 to the cost of the cost C1. If the answer to step S337 is Yes except when determining the initial route, it means that the current cost C1 is greater than the comparison cost variable C2 (i.e., the cost C1 at the time of the previous modification), and therefore accepting the current cost C1 would result in a deterioration. However, if the deterioration satisfies certain conditions, the process of accepting it (steps S338, 339, 340) is performed. That is, if the answer is Yes in step S337, the process proceeds to step S338, where a random number R is generated and the cost difference ΔC, that is, C1-C2, is calculated. Then, the process proceeds to step S339, where it is determined whether R≦exp(-ΔC / T). That is, step S339 is a second determination step for determining whether or not the deterioration is to be accepted as an alteration in the case of deterioration. That is, if the answer is Yes in step S339, the process proceeds to step S340 and the deterioration is accepted as an alteration, but if the answer is No in step S339, the process proceeds to step S341 and the deterioration is not accepted as an alteration, and the previous cyclic information copy array Gcopy[1~amax][1~2] is set as the cyclic information array G[1~amax][1~2]. In step S339, the higher the temperature T of the simulated annealing method is, or the smaller ΔC is (the smaller the degree of deterioration), the larger the value of the right-hand side exp(-ΔC / T) becomes, and the higher the probability that step S339 will result in No, and therefore the higher the probability that the deterioration will be accepted as a modification. If the answer is No in step S337, C1≦C2 and the modification is an improvement, so the process proceeds to step S340 and the modification is accepted. After step S340, the process proceeds to step S342 to copy the current state, that is, the current cyclic information array G[1 to amax][1 to 2] is copied to the cyclic information copy array Gcopy[1 to amax][1 to 2]. In other words, if the travel cost of the current tour route is greater than the travel cost of the previous tour route, and R≦exp(−ΔC / T) is satisfied, the current tour route is recorded (step S342), and if R≦exp(−ΔC / T) is not satisfied, the previous tour route is recorded (step S341). Thereafter, the process proceeds to step S343 to determine whether the temperature T=0 or not. If the temperature T is not 0, the process proceeds to step S345 to determine whether the most recent (previous) change was made to the inter-area route or the tour pattern. If it is determined in step S345 that the most recent modification was made to an inter-area route, the process proceeds to step S346, where the temperature T is lowered, for example, by 1°C, i.e., the temperature T is set to T-1 (i.e., the temperature is lowered by 1°C), and then the process proceeds to modify the circulation pattern (phase 3-2). In the judgment of step S345, if it is judged that the most recent change was made to the circulation pattern, or if it is judged that this is the first processing, the process proceeds to the processing for modifying the inter-area route (phase 3-1). As described above, the modification acceptance determination process is performed, and then the process moves to modification process (phase 3 (phase 3-1, phase 3-2)).
[0068] If it is determined in step S343 that the temperature T=0, the process proceeds to step S344, where the information on the tour route for which Cbest is recorded, i.e., the route information recorded in Gbest, the trajectory information of the route between areas when moving based on this information, and the travel start area number recorded in S are saved in a file. In other words, the tour route having Cbest is determined as the final result, i.e., the optimal tour route determined by the processing by the SA. That is, when the temperature T becomes 0, the traveling route having the last remaining Cbest is determined as the traveling route obtained in the SA.
[0069] Next, we will outline the simulated annealing (SA) method used in the modification acceptance judgment process. For example, suppose we want to find the maximum value of a graph as shown in Figure 43(a). First, a candidate solution is randomly selected. Next, the neighborhood of the candidate solution is randomly searched. In this case, searching to the right on the horizontal axis improves the solution. Therefore, as shown in Figure 43(b), it is permissible for the candidate solution to move to the right. On the other hand, searching to the left will make the solution worse. Therefore, moving to the left is not permitted in principle. However, in this case, the solution will remain at the local solution shown in Figure 43(a), and the optimal solution cannot be reached. Therefore, simulated annealing is a method that accepts the result with a certain probability even if it is worsened. The probability of accepting a worsened solution is determined by the temperature T set in the algorithm. In other words, if the temperature T is high, there is a high probability that a worsened solution will be accepted, and conversely, if the temperature is low, the worsened solution will be less likely to be accepted (see Figure 43(c)). In other words, if the temperature is high, there is a high possibility that a solution can be searched for globally without remaining in a local solution. The relationship between the temperature and the probability that a worsened solution will be accepted is often determined by the above-mentioned formula, exp(-ΔC / T). The temperature is set high in the initial state, and is gradually lowered as the search progresses. The initial temperature and the pace at which the temperature is lowered are determined according to the problem. In this way, SA is a method that introduces the concept of temperature to avoid falling into a local solution.
[0070] Next, the computer performs modification processing (phase 3) as shown in the flowchart of FIG. 36, in accordance with the procedure of the modification processing program. First, the inter-area route modification process (phase 3-1) shown in the flowchart of FIG. 36(a) will be described. If it is determined in the above-mentioned step S345 that the most recent modification was made to the cyclic pattern, the cyclic information array G[1 to amax][1 to 2] in step S342 is carried over (step S350). Next, a value is randomly selected from area numbers 1 to amax and assigned to P1 (step S351), and a value is randomly selected from area numbers 1 to amax and assigned to P2 (step S352). Thereafter, the process proceeds to step S353, where it is determined whether P1 and P2 are the same, whether G[P2][1] and P1 are the same, and whether G[P1][1] and P2 are the same. Here, G[P2][1] and G[P1][1] will be described. In step S350, for example, the cyclic information array shown in FIG. 45 is assumed to be inherited. In this case, a cyclic loop as shown in FIG. 37(a) is created based on the cyclic information array. Then, in step S351, area number 2 is selected as P1. In this case, the next area number G[P1][1] determined by selecting P1 is 5, and the circulation pattern for area number 2 is "Z." That is, P1 and P2 are variables that hold the area number where the swapping process will be performed, G[P1][1] and G[P2][1] are variables (arrays) that hold the number of the next area to move to from the P1 or P2 area, and G[P1][2] and G[P2][2] are variables (arrays) that hold the cyclic pattern of the P1 or P2 area. Additionally, Ptmp is a variable that holds the value to be used at the end of the swapping process, and m is a flag to escape the processing loop and a temporary variable that holds the area number. If the answer is Yes in step S353, then either the randomly selected area numbers are the same or the randomly selected area number is the same as the next area number from that area number, so the process returns to step S352 and P2 is selected again. If the answer is No in step S353, the process proceeds to step S354, where Ptmp is set to G[P2][1]. Next, the process proceeds to step S355, where an area number a such that G[1~amax][1]=P2 is searched for, and it is determined whether or not such an area number a has been found. In other words, it is determined whether or not there is still an area remaining in the tour information that has the area number P2 set as the next area to proceed to. If the answer is No in step S355, m is set to -1 (step S356). If the answer is Yes in step S355, m is set to a (step S357). In other words, if there is another area whose next destination is the area assigned to P2, the number a of that other area is assigned to m. After step S356 or after step S357, the process proceeds to step S358, where G[P1][1] is set to P2. Then, the process proceeds to step S359, and it is determined whether or not the process of the immediately preceding step S358 has been performed for the first time (first time) (step S359). If the answer is Yes in step S359, that is, if this is the first time the process of S358 is performed, the process proceeds to step S361, where it is determined whether m=-1 or not. If the answer is No in step S359, that is, if this is not the first time that the process of S358 is performed, the cyclic pattern set in G[P2][1] is reversed (step S360), and then the process proceeds to step S361. If NO in step S361, the process proceeds to step S362, where P1 is set to P2 and P2 is set to m, and then the process returns to step S355. If the answer is Yes in step S361, proceed to step S363 to set G[P2][1] to Ptmp, then proceed to step S364 to reverse the cyclic pattern set in G[P2][2], and then proceed to step S380 in phase 2.
[0071] Next, the cyclic pattern modification process (phase 3-2) shown in the flowchart of FIG. 36(b) will be described. If it is determined in step S345 that the temperature T is not 0, the cyclic information array G[1 to amax][1 to 2] in step S342 is carried over (step S370). Next, a value is randomly selected from area numbers 1 to amax and substituted for P (step S371), and any cyclic pattern other than the existing cyclic patterns is randomly substituted for G[P][2] (step S370), and then the process proceeds to step S380 of phase 2. In other words, if a cyclic pattern that is the same as a cyclic pattern already set in G[P][2] is selected at random, it is reselected at random until a different cyclic pattern is found.
[0072] In other words, the cyclic loop creation means includes a cyclic pattern modification processing means that executes a cyclic pattern modification process that modifies the cyclic pattern within an area of the cyclic loop, and the cyclic pattern modification processing means is means for randomly selecting one area from each area of the cyclic loop and modifying the information of the cyclic pattern, which is the cyclic information of that area.
[0073] Then, after the inter-area route modification process or the tour pattern modification process, that is, after step S364 or step S372, the process proceeds to step S380 in phase 2. In step S380 of phase 2, the cycle information array G[1 to amax][1 to 2] is taken over from phase 3. After that, the process proceeds to step S321.
[0074] Next, the inter-area route modification process (phase 3-1) shown in FIG. 36(a) will be described in more detail with reference to FIGS. 37 to 42. FIG. For example, it is assumed that a tour route as shown in FIG. 37(a) is created as the previous tour route based on the tour information array shown in FIG. 45 and is carried over (step S350). In step S351, assume that "2" is selected as the area number for which the switching process is to be performed and assigned to P1. In this case, as shown in Fig. 37(a), the state of the variables is "5" for G[P1][1] (the area to proceed to next from area 2) and "Z" for G[P1][2] (the cyclic pattern within area 2) (see Fig. 45). Next, in step S352, "3" is selected as the area number for which the switching process is to be performed and assigned to P2. In this case, as shown in Fig. 37(b), the state of the variables is "6" for G[P2][1] (the area to proceed to next from area 3) and "S" for G[P2][2] (the cyclic pattern within area 3) (see Fig. 45). Next, in step S354, 6 is set in Ptmp as the destination area G[P2][1] of area 3, which is P2. That is, Ptmp is set to "6" (see FIG. 37(c)). Then, in step S355, a search is performed to see if there is an area that has the area indicated by variable P2 as the destination. If there is, the area number is entered into m (step S357). In this case, area 4 exists as an area that has area 3 indicated by variable P2 as the destination (see FIG. 45), so m is set to "4" (see FIG. 38(a)). Next, in step S358, the destination area G[P1][1] of P1 "area 2" is set to P2. In this case, as shown in Fig. 38(b), G[P1][1] is set to "3". In this case, since P1 is "2" and G[P1][1] is "3", the inter-area route connecting area 2 and area 5 is cancelled, and instead, the end point of area 2 and the start point of area 3 are connected by an inter-area route (see Fig. 38(b)). Next, the process proceeds to step S359, and since this is the first time that the process of step S358 has been performed, the process proceeds to step S361. In this case, m=4, not -1, so the process proceeds to step S362 (see FIG. 38(c)). In step S362, P1 is set to P2, and P2 is also set to m. In this case, as shown in Fig. 39(a), P1 is set to "3" and P2 is set to "4". Then, the process returns to step S355 to search for an area that has the area indicated by variable P2 as the destination. If an area exists, the area number is entered into m (step S357). In this case, area 5 exists as an area that has area 4 indicated by variable P2 as the destination (see FIG. 45), so m is set to "5" (see FIG. 39(b)). Then, the process proceeds to step S358, and the destination area G[P1][1] of P1 "area 2" is set to P2. In this case, as shown in FIG. 39(c), G[P1][1] is set to "4." In this case, since P1 is "3" and G[P1][1] is "4," the inter-area route connecting area 3 and area 5 is released, and instead, the end point of area 3 and the start point of area 4 are connected by an inter-area route (see FIG. 39(c)). Then, the process proceeds to step S359, and since the process of step S358 is not the first time, the process proceeds to step S360. In this case, the circulating pattern of area 3, which is P1, is inverted. That is, as shown in FIG. 40(a), the circulating pattern of area 3 is converted from the "S" pattern (see FIG. 39(c)) to the "S'" pattern (see FIG. 40(a)). In this case, since P1 is "3" and G[P1][1] is "4", the end point of area 3, whose circulating pattern has been changed, and the start point of area 4 are reconnected by an inter-area route. Also, since P2 is "4" and G[P2][1] is "3", the end point of area 4 and the start point of area 3, whose circulating pattern has been changed, are reconnected by an inter-area route. Also, the start point of area 3, whose circulating pattern has been changed, and the end point of area 2 are reconnected by an inter-area route. Then, the process proceeds to step S361. In this case, m=5, and the process proceeds to step S362. In step S362, P1 is set to P2, and P2 is also set to m. In this case, as shown in Fig. 40(b), P1 is set to "4" and P2 is set to "5". Then, the process returns to step S355 to search for an area with the area indicated by variable P2 as the destination. If an area exists, the area number is entered into m (step S357). In this case, as shown in FIG 40(c), there is no area with area 5 indicated by variable P2 as the destination (the inter-area route between area 2 and area 5, which was the destination of area 2 in FIG 38(b), has already been released), so the process proceeds to step S356 and m is set to -1. Then, the process proceeds to step S358, and the destination area G[P1][1] of P1 "area 4" is set to P2. In this case, as shown in FIG. 41(a), G[P1][1] is set to "5." In this case, since P1 is "4" and G[P1][1] is "5," the inter-area route connecting area 4 and area 3 is released, and instead, the end point of area 4 and the start point of area 5 are connected by an inter-area route (see FIG. 41(a)). Then, the process proceeds to step S359, and since the process of step S358 is not the first time, the process proceeds to step S360. In this case, the circulating pattern of area 4, which is P1, is inverted. That is, as shown in FIG. 41(b), the circulating pattern of area 4 is converted from the "M" pattern (see FIG. 41(a)) to the "M'" pattern (see FIG. 41(b)). In this case, since P1 is "4" and G[P1][1] is "5", the end point of area 4, whose circulating pattern has been changed, and the start point of area 5 are reconnected by an inter-area route. Also, since P2 is "5" and G[P2][1] is "4", the end point of area 5 and the start point of area 4, whose circulating pattern has been changed, are reconnected by an inter-area route. Also, the end point of area 3 and the start point of area 4 are reconnected by an inter-area route. Then, the process proceeds to step S361. In this case, m=-1, and the process proceeds to step S363. In step S363, G[P2][1] is set to Ptmp. In this case, as shown in Fig. 41(c), G[P2][1] is set to 6, and since P2=5, the destination of area 5 is changed to area 6, and the end point of area 5 and the start point of area 6 are connected by an inter-area route. Then, finally, the process proceeds to step S364, where the cyclic pattern of G[P2][2] is reversed. In this case, as shown in FIG. 42, G[P2][2] (= the cyclic pattern of area 5) is converted from the "Z" pattern (see FIG. 41(c)) to the "Z'" pattern. In this case, since P1 is "4" and G[P1][1] is "5", the end point of area 4 and the start point of area 5, whose cyclic pattern has been changed, are connected by an inter-area route. Also, since P2 is "5" and G[P2][1] is "6", the end point of area 5, whose cyclic pattern has been changed, and the start point of area 6 are connected by an inter-area route. As a result of the above, a cyclic loop that loops through all areas is created, as shown in FIG. Then, the process proceeds to step S380 in phase 2, and in step S334 a tour route is created from which the inter-area route with the highest travel cost has been deleted.
[0075] The contents of the modification process (phase 3) can be summarized as follows based on Figure 46. As shown in FIG. 46(a), assume that the area selected at random the first time (area set as P1) is 2, and the area selected at random the second time (area set as P2) is 3. In this case, the inter-area routes to be swapped are the inter-area routes from each area to the next area. That is, the inter-area route from area 2 to area 5, and the inter-area route from area 3 to area 6. Then, as shown in Figure 46(b), the destination of Area 2 selected the first time is changed to Area 3 selected the second time. In other words, the destination of Area 2 is changed from Area 5 to Area 3. As a result, Area 2 and Area 3 are connected by an inter-area route, and the inter-area route connecting Area 2 and Area 5 disappears. Next, as shown in Figure 46(c), the visiting pattern and inter-area route of areas 5, 4, and 3 on the way from area 5, which was the original destination of area 2 selected the first time, to area 3 selected the second time, are reversed. At this time, since only one destination area can be specified for one area, the original inter-area route from area 3 selected the second time to the next area 6 disappears. Finally, as shown in FIG. 46(d), a route is set from the original destination area 5 of area 2 selected the first time to the original destination area 6 of area 3 selected the second time, and the process ends.
[0076] That is, to summarize the contents of the inter-area route modification process (phase 3-1), the process includes a processing step of setting the inter-area route from the area selected the first time (the area set to P1) to the next area and the inter-area route from the area selected the second time (the area set to P2) to the next area as the inter-area routes to be replaced, a processing step of changing the destination of the area selected the first time to the area selected the second time and eliminating the inter-area route connecting the area selected the first time and the area that was the original destination of the area, a processing step of reversing the tour pattern and inter-area route of the areas on the way from the area that was the original destination of the area selected the first time to the area selected the second time and eliminating the inter-area route connecting the area selected the second time and the area that was the original destination of the area, and a processing step of setting a route from the original destination area of the area selected the first time to the original destination area of the area selected the second time. In other words, the cyclic loop creation means includes an inter-area route modification processing means for executing an inter-area route modification process (phase 3-1) for modifying the inter-area route of the cyclic loop, and the inter-area route modification processing means includes a first step (steps S351 and S352) of arbitrarily selecting a first area P1 and a second area P2 that are different from each other among the areas of the cyclic loop, a second step (step S354) of recording information on the next area to be traveled set as the cyclic information of the second area P2 as reserved information Ptmp, a third step (step S355) of searching for an area that has the information on the next area to be traveled set as the cyclic information of the second area P2 as cyclic information and determining whether or not the area exists, and a fourth step (step S358) of setting the second area P2 as the information on the next area to be traveled set in the cyclic information of the first area P1, and If not (not the first time), a fifth step (step S360) is executed to reverse the cyclic pattern set in the cyclic information of the second area P2; if the judgment result in the third step is yes (m=a) (No in step S361), after the fourth step or after the fifth step, the first area P1 is changed to the second area P2, the second area is changed to the area searched in the third step, and the process returns to the third step (step S362); and if the judgment result in the third step is no (m=-1) (Yes in step S361), after the fourth step or after the fifth step, the pending information Ptmp is set as the next area to proceed in the cyclic information of the second area P2, and the cyclic pattern set in the cyclic information of the second area P2 is reversed (steps S363, S364).
[0077] As described above, according to SA, the tour route is updated using the tour information, so that an efficient tour route for a mobile object to tour a plurality of areas can be created. In addition, by performing modification processing on the circular loop using the inter-area route modification processing means, it is possible to add variety to the modified (updated) circular loop, making it possible to create an efficient circular route. Furthermore, by performing modification processing on the cyclic loop by the cyclic pattern modification processing means, it is possible to provide diversity to the modified (updated) cyclic loop, and it is possible to create an efficient cyclic route. In addition, since the modification process by the inter-area route modification processing means and the modification process by the circular pattern modification processing means are performed alternately on the circular loop, it is possible to provide more diversity to the modified (updated) circular loop, and it is possible to create a more efficient circular route.
[0078] Next, the GA will be explained. Like the automatic creation function by SA described above, the GA's circular pattern setting means and circular order setting means include, for example, a circular loop creation means for creating a circular loop that goes around each area, a movement cost calculation means for calculating the movement cost when a mobile body moves along the route of the created circular loop, and a circular route creation means for deleting the inter-area route with the highest movement cost from among the inter-area routes that form the created circular loop, and creating a circular route that goes around each area with the area that was connected to the end of the deleted inter-area route as the start area of the circular route and the area that was connected to the beginning of the deleted inter-area route as the goal area of the circular route. The movement cost calculation means is the same as that explained in SA. The cyclic loop creating means includes an initial generation cyclic loop creating means for creating a cyclic loop by setting cyclic information for each area, and a later generation cyclic loop creating means. The tour route creating means includes an initial generation tour route creating means and a later generation tour route creating means. The initial generation cyclic loop creating means creates a plurality of cyclic loops. The initial generation circuit route creating means changes the circuit information for each area for each of the initial generation circuit loops created by the initial generation circuit loop creating means, and creates a plurality of initial generation circuit routes. The later generation circular loop creating means extracts some early generation circular routes having small travel costs from among a plurality of early generation circular routes, and creates a later generation circular loop using the circular information of the extracted early generation circular routes. The next-generation circular route creating means changes the circular information for each area for each next-generation circular loop created by the next-generation circular loop creating means, and creates a next-generation circular route. The above-mentioned cyclic information is also used in the GA, but in the GA, the cyclic information will be appropriately interpreted as genetic information for the explanation. In the embodiment, the number of the subsequent generations is a plurality of generations, and the number of the subsequent generations is arbitrarily determined in advance. In the embodiment, the number of generations is, for example, 100 or more. The current next-generation circuit route creation means changes the circuit information for each area for each previous next-generation circuit loop created by the previous next-generation circuit loop creation means to create the current next-generation circuit route, and the final generation next-generation circuit route creation means determines the circuit route with the smallest travel cost as the circuit route among the multiple circuits created as the final generation. In other words, the final circuit route becomes the circuit route found by the GA.
[0079] An outline of the processing flow by GA is shown in FIG. That is, the GA executes an initial generation individual creation process (step S401) for creating multiple individuals of the initial generation, an individual evaluation process (step S402), a generation confirmation process (step S403), a parent selection process (step S404) for selecting multiple individuals with excellent genetic information as parents, and a subsequent generation individual creation process (step S404) for creating subsequent generation individuals using the genetic information of the parents. The process flow of the GA can be briefly explained as follows based on FIG. First, a plurality of individuals, i.e., a plurality of cyclic loops, are created by the initial generation individual creation process (step S401). In this case, the cyclic pattern setting means and the cyclic order setting means randomly set combination information, i.e., genetic information (cyclic information), consisting of information on the cyclic pattern in each area and information on the next area to be moved to, as shown in Fig. 45, for each area, to create individuals (initial cyclic information sequence) that will become cyclic loops. In the individual evaluation process (step S402), each tour route of each individual is evaluated. That is, a tour route is created by deleting the maximum inter-area route with the highest travel cost in the tour loop, and the travel cost of the tour route is calculated. In the generation confirmation process (step S403), it is confirmed whether or not the current generation has reached a predetermined number of generations. If the current generation has not reached a predetermined number of generations (e.g., 100 or more) (No in step S403), multiple individuals (e.g., four individuals) with excellent movement costs are selected as parents from the individuals of the current generation (initial generation or subsequent generation) (step S404). An excellent individual selected from the individuals of the current generation is used as a parent to create an individual of the next generation using the genetic information of the parent (step S405). Thereafter, steps 402 to 405 are repeated, and if the determination in step S403 is Yes, the processing by the GA is terminated.
[0080] That is, in the GA, the above-mentioned cyclic pattern setting means and cyclic order setting means perform the initial generation individual creation process, the individual evaluation process, the generation confirmation process, the parent selection process, and the subsequent generation individual creation process. That is, each of these processes is executed by a processing program showing the procedure of each of these processes and a computer that realizes information processing by the processing program. The initial generation individual creation process, individual evaluation process, generation confirmation process, parent selection process, and subsequent generation individual creation process will be described in detail below. That is, in the GA, the above-mentioned cyclic pattern setting means and cyclic order setting means perform the initial generation individual creation process, the generation confirmation process, the subsequent generation individual creation process, the individual evaluation process, and the excellent individual extraction process. That is, each of these processes (initial generation individual creation process, generation confirmation process, subsequent generation individual creation process, individual evaluation process, and excellent individual extraction process) is executed by a processing program showing the procedure of each process and a computer that realizes information processing by the processing program.
[0081] First, the computer performs an initial-generation individual creation process (phase 1) as shown in the flowchart of FIG. 48, in accordance with the procedure of the initial-generation individual creation process program. In addition, in GA, an "individual" refers to a cyclic loop or a cyclic route. First, an individual identification variable p is initialized and area number information amax is acquired (step S411). That is, the area number management variable a is set to 1, and the area number information amax is set to the number of areas (for example, in the case of the above-mentioned base technology (the case of multiple divided areas in FIG. 12), the number information amax is set to "16", and in the case of FIG. 44(a), the number information amax is set to "6"). Then, the genetic information array G[1 to 20][1 to amax][1 to 2] is initialized to be empty (step S412). Next, a loop for generating initial generation individuals is entered (step S413). For example, 20 initial generation individuals are generated. That is, p<=20 (i.e., p≦20). First, the area number management variable a is initialized, that is, the area number management variable a is set to 1 (step S414). Then, a value between areas 2 to amax and not yet included in the genetic information array G[p][1 to amax][1] is randomly assigned to the genetic information array G[p][a][1] (step S415), and a number representing the cyclic pattern is randomly assigned to the genetic information array G[p][a][2] (step S416). Then, a is set to G[p][a][1] (step S417). Then, it is determined whether or not two or more empty elements remain in the genetic information array G[p][1~amax][1] (step S418). That is, if there are two or more areas in which the information of the next area to proceed remains in the genetic information (cyclic information) in the genetic information array constituting one individual (Yes in step S418), steps S415 to S417 are repeated, and if there is one area in which the information of the next area to proceed remains in the genetic information in the genetic information array constituting one individual (No in step S418), the genetic information array G[p][a][1] of that area is set to 1 (step S419), and a numerical value representing the cyclic pattern is randomly substituted into the genetic information array G[p][a][2] of that area (step S420). That is, the area number of the area to proceed to the end of that area is set to 1, and the cyclic pattern of that area is randomly set. Then, p is set to p+1 (step S421). That is, steps S413 to S421 are repeated a number of times to generate a number of individuals (for example, 20 individuals) of the initial generation. That is, the "initial generation individual creation loop" shown in FIG. 48 is executed.
[0082] The genetic information sequence G[1-20][1-amax][1-2] will be explained. [1-20] are variables for identifying individuals to be created in the initial generation individual creation process, and [1-amax] are variables for identifying areas. Information on the area to which the a-th area of the p-th individual of the initial generation will move next is set in G[p][a][1]. Information on the intra-area movement route pattern (circulation pattern) of the a-th area of the p-th individual of the initial generation is set in G[p][a][2]. That is, a recording area in which circulatory information (genetic information) for each area constituting the individual (circulatory loop) to be created is set is constructed, and multiple circulatory information sequences forming multiple individuals are recorded in the recording area in the form of a genetic information sequence G[1-pmax][1-amax][1-2]. For example, if the number of individuals in the initial generation is 20, the 20 circulatory information sequences forming the 20 individuals are recorded in the form of a genetic information sequence G[1-20][1-amax][1-2].
[0083] In other words, SA generates only one initial cyclic loop specified by the cyclic information sequence and performs a modification process, whereas GA generates multiple initial cyclic loops (initial individuals) specified by the cyclic information sequence as initial generation individuals, and performs crossover and mutation processes to generate multiple individuals for each subsequent generation. Roughly speaking, SA generates one initial cyclic loop, performs modification processing, sequentially creates one cyclic loop, and repeats the process of evaluating it, whereas GA generates multiple initial cyclic loops, i.e., initial generation individuals, and when generating individuals of the next generation, excellent parent individuals are selected from the initial generation individuals, and crossover processing and mutation processing are performed using the parent individuals to generate individuals of the next generation. Similarly, thereafter, when generating individuals of the current successive generation, excellent parent individuals are selected from individuals of the previous successive generation, and crossover processing and mutation processing are performed using the parent individuals to generate individuals of the current generation, and this process is repeated for a predetermined number of generations. In other words, the initial generation individual creation process is a process of creating multiple, for example 20, initial cyclic information arrays G[1~amax][1~2] shown in Figure 44(a) described above, and storing them as genetic information arrays G[1~20][1~amax][1~2], that is, a process of repeating the processes of steps S413 to S421 in Figure 48 20 times to generate (create) 20 initial generation individuals. In addition, when the processing for a predetermined number of generations is completed, a circulating route is obtained based on a circulating loop using the optimal genetic information storing sequence Gbest[1~amax][1~2] that remains at the end. The crossover process and the mutation process will be described later.
[0084] Next, the computer performs individual evaluation processing (including generation confirmation processing) (phase 2) as shown in the flowchart of FIG. 49, in accordance with the procedure of the individual evaluation processing program (including the generation confirmation processing program). After the processing of phase 1, the optimal cost variable and the optimal genetic information storage array are initialized (step S430). That is, the optimal cost variable Cbest is set to 0, and the optimal genetic information storage array Gbest[1 to amax][1 to 2] is made empty. Next, it is determined which generation the individual to be evaluated is from (step S431). That is, a generation confirmation process is performed. If the individual to be evaluated is an individual of the first generation (initial generation), initialization processing of the individual variable and the cost management array is performed (step S432). That is, the individual variable p is set to 1, and the cost management array C[1 to amax] is set to 0. Then, the process enters into an individual evaluation loop (step S433), for example, in which 20 individuals that are initial generation individuals are evaluated. First, the area number management variable a, the area full search completion flag f, and the area movement maximum cost management variable Cmax are initialized (step S434). That is, the area number management variable a is set to 1, the area full search completion flag f is set to 0, and the area movement maximum cost management variable Cmax is set to 0. Next, it is determined whether or not the area full search completion flag is set (step S435). That is, it is determined whether or not the area full search completion flag f is 1. If the area full search completion flag f is not 1 (No in step S435), the travel cost for traveling around the a-th area in the travel pattern specified by the genetic information array G[p][a][2] is downloaded from the database and added to the travel cost C[p] (step S436). Next, it is determined whether or not the genetic information sequence G[p][a][2] indicates the first area where processing has started (step S437). Thereafter, the process proceeds to the inter-area route creation process and the travel cost calculation process. If the answer is No in step S437, the process then proceeds to step S440 to create an inter-area route and calculate a travel cost. That is, if the answer is Yes in step S437, that is, if the value of G[p][a][2] (the number of the next area to proceed to) is the area number from which processing began, then the search region (each area) has been traveled once, so after setting the area travel completion flag f to 1, it is determined whether it is possible to move in a straight line from the ath area to the first area (step S439), and processing proceeds to the creation of an inter-area route and the calculation of travel costs.
[0085] If the answer is No in step S437, it is determined whether or not it is possible to move in a straight line from the a-th area to the area set in the genetic information array [p][a][2] (step S440). If it is possible to move in a straight line (Yes in step S440), the travel cost Ctravel for moving in a straight line from the goal point of the a-th area to the start point of the genetic information array G[i][a][1] is calculated (step S441). Furthermore, if it is not possible to move in a straight line (No in step S440), a route from the finish point in the ath area to the start point in the genetic information array G[p][a][1]th area is calculated using a route search algorithm (for example, the A* algorithm described in the base technology), and the travel cost Ctravel of that route is calculated based on that route (step S442). After step S441 or step S442, it is determined whether Ctravel>Cmax (step S443). If Ctravel>Cmax is not met (No in step S443), the travel cost from the goal point of the ath area to the start point of the G[p][a][1]th area is added to the travel cost C[p] (step S444), and then G[p][a][1] is set to a (step S446). If Ctravel>Cmax (Yes in step S443), Cmax is set to Ctravel, and the area number set in G[p][a][1] is set as the travel start area number S (step S445), and then the process proceeds to step S444. That is, the inter-area route having a travel cost remaining in Cmax after the determination in step S443 becomes the maximum inter-area route of the individual (circulating loop). If the determination in step S439 is Yes, the process proceeds to step S442, and if the determination in step S439 is No, the process proceeds to step S441. After the inter-area route creation process and the travel cost calculation process have been performed as described above, the process returns to step S435.
[0086] If the area full search completion flag f is 1 (Yes in step S435), C[i] is set to C[i]-Cmax (step S447), and then it is determined whether Cbest is in the initial state or whether the optimal travel cost Cbest>C[i] (step S448). Note that the right side C[i] in step S447 is the travel cost of the circular loop, and the left side C[i] in step S447 is the travel cost of the circular route. If Cbest is in the initial state or if the optimal cost variable Cbest>C[i] (Yes in step S448), the travel cost C[i] of the travel route is set to the optimal cost variable Cbest, and the optimal genetic information storage array Gbest[1~amax][1~2] is set to G[p][1~amax][1~2], and then p is set to p+1 (step S450). That is, in steps S447 to S449, C[i] is the travel cost of the tour route created based on each created individual (tour loop). If the travel cost C[i] of the newly created circular route is smaller than the optimal travel cost Cbest of the previously created circular routes, in step S449, the travel cost C[i] is rewritten to the optimal travel cost Cbest, and the genetic information storage array G[p][1~amax][1~2] of the circular loop (individual) that was the source of the circular route with the travel cost C[i] is rewritten to the optimal genetic information storage array Gbest[1~amax][1~2]. That is, in step S449, the circular loop (individual) that is the source of the optimal circular loop (circular loop with the smallest travel cost) for each generation is recorded. If Cbest is not in the initial state, or the optimal cost variable Cbest>C[i] is not satisfied (No in step S448), the process proceeds to step S450 to move on to the evaluation of the next individual p. The processes from step S433 to step S450 are repeated, and when the process of creating inter-area routes and calculating movement costs for all individuals in a generation, for example, 20 individuals per generation, is completed, it is determined whether the generation is the final generation (step S451). If it is not the final generation (No in step S451), for example, the four individuals are sorted in ascending order of cost from among the movement costs C[1-20] of the 20 individuals (cyclic loops) created for each generation, and the information of the individuals is transferred to the movement costs C[1-4] and genetic information arrays G[1-4][1-2] (step S452). That is, the four individuals with the lowest costs are selected as parents for creating individuals of the next generation, and the movement costs C[1-4] and genetic information arrays G[1-4][1-2] of the parents are recorded. If it is the final generation (Yes in step S451), the GA is terminated. At this end, the traveling route having a travel cost obtained by subtracting Cmax from the travel cost of the traveling loop based on the genetic information (travel information) recorded in the optimal genetic information storage array Gbest[1-amax][1-2] is the traveling route created by the search result by the GA. That is, in step S453, the information of the traveling loop in which Gbest is recorded, that is, the route information recorded in the optimal traveling information array Gbest[1-amax][1-2], the trajectory information of the route between areas when traveling based on this route information, and the travel start area number recorded in S are saved in a file. The content saved in this file is the final traveling route found by the GA, and the information of this traveling route and the travel cost Cbest of the traveling route are displayed on the display screen D, so that the user can confirm the final traveling route found by the GA.
[0087] The computer performs crossover processing (phase 3-1) as a process for generating successive generation individuals, as shown in the flowchart of FIG. 50, in accordance with the procedure of the crossover processing program. First, the individual identification variable is initialized, that is, the individual identification variable p is set to 5 (step S460). The genetic information sequence G[1 to 20][1 to amax][1 to 2] is inherited from phase 2 (step S461). The genetic information array G[5~20][1~amax][1~2] is initialized and made empty (step S462). That is, among, for example, 20 individuals inherited from phase 2, information on, for example, 16 individuals with high migration costs is deleted (the 16 individuals of the previous generation are killed). Next, a loop is entered in which, for example, 12 children are created by crossover processing, where p<=16 (i.e., p≦16) (step S463). In addition, the number of child individuals in the next generation is, for example, 16 (total number of next generation individuals: 20 - parent individuals: 4), but in the crossover process, 12 child individuals are created, and in the mutation process (phase 3-2) described below, 4 child individuals are created.
[0088] Two individuals are selected from the four parent individuals. The selection is performed according to a predetermined procedure (step S464). Two individuals may be selected randomly from the four parent individuals, but there is a possibility that the same parent individual may be selected, making it difficult to achieve diversity. Therefore, for example, combinations are found in which two individuals are selected from the four parent individuals, and one of these combinations is selected as a combination of any of the parent individuals. Here, 12 combinations of parent individuals are found in order to create 12 child individuals. The genetic information of one of the selected parent individuals is copied to array P1[1~amax][1~2], and the genetic information of the other parent individual is copied to array P2[1~amax][1~2] (step S465). Then, the area number management variable is initialized, that is, the area number management variable a is set to 1 (step S466). Also, the flag for determining whether or not inheritance from the parent P1 is initialized, that is, flag f1 is set to 0, and the flag for determining whether or not inheritance from the parent P2 is initialized, that is, flag f2 is set to 0 (step S467). This completes the pre-processing for moving on to the crossover process, and then the process proceeds to step S468 to determine whether a=1 and the crossover process of the genetic information of the pth individual has been performed at least once. In other words, it is determined whether the genetic information of the pth individual has completed a loop around the area and can return, that is, whether the pth cyclic loop that loops around each area has been created based on the genetic information. If the determination in step S468 is No, the process proceeds to the crossover process. In addition, the crossover process refers to the process of inheriting the cyclic information of a parent individual when creating a child individual (subsequent generation cyclic loop) (process B2 described below), or the process of randomly setting the cyclic information when the cyclic information of the parent individual cannot be inherited (processes B4 and B3 described below).
[0089] In the crossover process, the process first proceeds to process block B1, which prevents the inheritance of lethal genetic information. In the processing block B1, first, it is determined whether or not two or more empty elements remain in the genetic information sequence G[p][1 to amax][1 to 2] (step S469). If the determination in step S469 is Yes, it is determined whether P1[a][1]=1 or whether the same value as P1[a][1] is already recorded in G[p][1~amax][1] (destination area information, which is genetic information set for each area) to be created (step S470). If the determination in step S470 is No, it is determined whether P2[a][1]=1 or whether the same value as P2[a][1] is already recorded in G[p][1~amax][2] (information on the cyclic pattern, which is genetic information set in each area) to be created (step S471). If the determination in step S471 is No, the process proceeds to basic crossover processing block B2. If the determination in step S470 is Yes, in order to avoid setting the same information as the genetic information, it is determined that inheritance from the parent P1 is not possible, flag f1 is set to 1, and the process proceeds to step S471. If the determination in step S471 is Yes, in order to avoid the same information being set as genetic information, it is determined that inheritance from parent P2 is not possible, flag f2 is set to 1, and then the process proceeds to step S472 in basic crossover processing block B2. That is, steps S480, S483, and S484 are performed to prevent the inheritance of lethal genetic information that leads to appendicitis or multiple loops. In other words, the crossover process ensures that a genetic information sequence that always forms one loop is created.
[0090] In the basic crossover processing block B2, first, in step S472, it is determined whether or not flag f1 = 0 and flag f2 = 0. In other words, it is determined whether or not inheritance is possible from both parents. If the determination in step S472 is No, it is determined whether flag f1 = 1 and flag f2 = 0. That is, it is determined whether only parent P1 is inheritable or not (step S473). If the determination in step S473 is No, it is determined whether flag f1 = 0 and flag f2 = 1. That is, it is determined whether only parent P2 is inheritable or not (step S474). In the basic crossover processing block B2, if the determination in step S472 is Yes, numerical values from 1 to 100 are prepared, one is extracted from the numerical values, and it is determined whether the numerical value is 51 or greater (step S485). Note that the numerical values 1 and 0 may be prepared, and it may be determined whether the extracted numerical value is 1. That is, if the determination in step S472 is Yes, the gene can be inherited from either parent P1 or parent P2, and therefore the parent from which the gene is to be inherited is selected at random in step S485. If the determination in step S485 is Yes, genetic information is inherited from parent P1. That is, G[p][a][1] is replaced with P1[a][1], and G[p][a][2] is replaced with P1[a][2] (step S486). Then, a is replaced with G[p][a][1] (step S478), and the process returns to step S467. If the determination in step S485 is No, genetic information is inherited from parent P2. That is, G[p][a][1] is replaced with P2[a][1], and G[p][a][2] is replaced with P2[a][3] (step S487). Then, a is replaced with G[p][a][1] (step S478), and the process returns to step S467.
[0091] If the determination in step S469 is No, that is, if there is only one empty element remaining in the genetic information array G[p][1~amax][1~2], the destination area G[p][a][1] of that one empty area is set to 1 (step S480) to avoid a dead end or multiple loops, and a genetic information array G[p][1~amax][1~2] that forms one loop is created, and the cyclic pattern G[p][a][2] of that one empty area is inherited from parent P1 or parent P2 (process B3). Also, if the judgment in step S474 is No, flag f1 = 1 and flag f2 = 1, and inheritance is not possible from either parent P1 or parent P2, so the destination area G[p][a][1] of the area currently undergoing crossover processing is randomly set to an area other than the areas already set (process B4). That is, if the judgment in step S474 is No, the process proceeds to step S475, where a value other than the value already existing in G[p][1~amax][1] is randomly selected from area 2~amax and assigned to G[p][a][1] (step S475), and then the process proceeds to step S476 in processing block B3, where the cyclic pattern G[p][a][2] of the area currently undergoing crossover processing is inherited from parent P1 or parent P2 (process B3).
[0092] When moving from processing block B4 (step S475) to exceptional crossover processing block B3, first proceed to step S476, prepare values from 1 to 100, extract one from the values, and determine whether the extracted value is equal to or greater than 51. Alternatively, the values 1 and 0 may be prepared, and determine whether the extracted value is 1. If the determination in step S476 is No, the genetic information of the cyclic pattern is inherited from the parent P1. That is, G[p][a][2] is replaced with P1[a][2] (step S477). Then, a is replaced with G[p][a][1] (step S478), and the process returns to step S467. If the determination in step S476 is Yes, the genetic information of the cyclic pattern is inherited from the parent P2. That is, G[p][a][2] is replaced with P2[a][2] (step S479). Then, a is replaced with G[p][a][1] (step S478), and the process returns to step S467.
[0093] When moving from processing block B1 to exceptional crossover processing block B3 via step S480, first proceed to step S481 to determine whether P1[a][1]=1 and P2[a][1]=1, or P1[a][1]≠1 and P2[a][1]≠1. That is, if the destination area of area a of parent P1 is 1 and the destination area of area a of parent P2 is 1, that is, if the destination areas of area a of parents P1 and P2 are both 1, or if the destination areas of area a of parent P1 are not both 1, the tour pattern G[p][a][1] of the child area a is set to the tour pattern of area a of parent P1 or the tour pattern of area a of parent P2. Which tour pattern to use is decided randomly in step S476. If the determination in step S481 is No, it is determined whether P1[a][1]=1 or not (step S482), and if P1[a][1]=1, proceed to step S477, and if P1[a][1]=1 is not, proceed to step S479. If the determination in step S481 is Yes, the process proceeds to step S476. If the determination in step S468 is Yes, p is set to p+1, and the process proceeds to Phase 3-2.
[0094] The flow of the crossover process in FIG. 50 will now be described. In creating a child individual, first, the process proceeds to steps S468, S469, S470, S471, and S472. If step S472 results in Yes, the genetic information of area 1 of the child individual (circulation pattern of area 1, next destination area from area 1) is inherited from parent P1 or parent P2 via step S485 (basic crossover (step S486 or step S487)). Then, the area number management variable a is set to the next destination area G[p][a][1], which is the genetic information of area 1 of the child individual (step S478). Also, if the answer is Yes in step S469 and the process proceeds to step S474, and genetic information cannot be inherited from either parent P1 or parent P2 (No in step S474), an area that has not yet been set as a destination area is randomly selected from areas 2 to amax (amax=10 in FIG. 54) and set as the next destination area G[p][a][1] (step S475 (exceptional crossover)), and the process proceeds to step S476, where the patrol pattern [p][a][2] of area a is inherited from parent P1 or parent P2 (step S477 or step S479 (exceptional crossover)). Also, if the determination in step S469 is No, that is, if only one empty element remains in the genetic information array G[p][1~amax][1~2], G[p][a][1] is set to 1 (step S480) to prevent the occurrence of fatal genetic information that would result in multiple loops. After that, the area tour pattern G[p][a][2] with the child's destination area set to 1 is inherited from parent P1 or parent P2 (processing block B3). Furthermore, the processes in steps S470, S483, S471, and S484 are performed to prevent the generation of lethal genetic information that would lead to a cecal line. That is, the new generation circuit route creating means sets circuit information when creating a circuit loop so that the circuit loop does not form multiple loops or so that the circuit loop does not form a dead end line. In other words, the current next-generation circular route creation means defines one or more of the circular routes with the smallest travel costs from among the multiple previous next-generation circular loops created by the previous next-generation circular loop creation means as parents, and creates the current next-generation circular route by inheriting the circular information of the parent circular route (see processes B1 to B4 in Figure 50). Furthermore, when, at the stage of creating the current next generation tour route, there remain two or more areas for which tour information has not yet been set and the information of the next area to be set for the areas for which tour information has not yet been set cannot be inherited from the parent, the current next generation tour route creation means arbitrarily selects the next area to be set for the areas for which tour information has not yet been set from among the areas for which tour information has not yet been set (see process B4 (step S475) of Figure 50). In addition, the above-mentioned cases where the information of the next area, which is the patrol information to be set for an area for which no patrol information has yet been set, cannot be inherited from the parent are when the information of the next area, which is the parent patrol information to be inherited by an area for which no patrol information has yet been set, is the area for which patrol information was first set when creating the current next-generation patrol route, and when the information of the next area, which is the parent patrol information to be inherited by an area for which no patrol information has yet been set, has already been used in creating the current next-generation patrol route (see steps S470, S483, S471, S484 of processing B1 in Figure 50). In addition, when the current next-generation circular route creation means determines that there is only one area remaining for which no circular information has yet been set at the stage of creating the current next-generation circular route, it sets the circular information for the one remaining area, which is the next area to proceed to, as the area for which circular information was first set when creating the current generation circular route (see steps S469 and S480 of processing B1 in Figure 50).
[0095] The computer performs the mutation process (phase 3-2) according to the procedure of the mutation process program, as shown in the flowchart of Fig. 51. The mutation process (phase 3-2) is basically the same as the modification process (phase 3-1) of the inter-area route in the SA shown in the flowchart of Fig. 36(a). First, the individual identification variable is initialized, that is, the individual identification variable p is set to 17 (step S500). Then, the genetic information sequence G[1 to 20][1 to amax][1 to 2] is inherited from phase3-1 (step S501). Next, a loop is entered in which four mutations are generated, where p<=20 (step S502). First, make a copy of the individual that was determined to have a low movement cost in phase 2. That is, replace G[p][1~amax][1~2] with G[p-16][1~amax][1~2] (step S503). That is, when p=20, make copies (clones) of four individuals. Next, numerical values from 1 to 100 are prepared, one is extracted from the numerical values, and it is determined whether the extracted numerical value is 51 or greater (step S504). It is also possible to prepare the numerical values 1 and 0, and determine whether the extracted numerical value is 1.
[0096] If the determination in step S504 is No, the same process as the inter-area route modification process in the SA described above (phase 3-1) is performed (see FIG. 36(a)). Moreover, if the determination in step S504 is Yes, the same process as the above-mentioned process of modifying the cyclic pattern in the SA (phase 3-2) is performed (see FIG. 36(b)). The mutation process shown in FIG. 51 is a process performed to prevent the loss of diversity, and is similar to the modification process in SA (see FIG. 36).
[0097] Here, we will explain G[p][P2][1] and G[p][P1][1]. In step S501, it is assumed that genetic information sequences G[p-16][1~amax][1~2] (i.e., G[1~4][1~amax][1~2]) of four individuals are inherited from the genetic information sequences G[1~20][1~amax][1~2] constituting a plurality of individuals. If the cyclic information sequence of one of the four genetic information sequences G[p-16][1~amax][1~2] is, for example, the cyclic information sequence shown in FIG. 44(a), a cyclic loop as shown in FIG. 44(b) is created by the cyclic information sequence, and a mutation process is performed on the cyclic information sequence.
[0098] That is, if the determination in step S504 is No, one value is randomly selected from area numbers 1 to amax and assigned to P1 (step S505), and one value is randomly selected from area numbers 1 to amax and assigned to P2 (step S506). Thereafter, the process proceeds to step S507, where it is determined whether P1 and P2 are the same, whether G[p][P2][1] and P1 are the same, or whether G[p][P1][1] and P2 are the same. If the answer is Yes in step S507, the process returns to step S506 and P2 is selected again. If the answer is No in step S507, the process proceeds to step S508, where Ptmp is set to G[p][P2][1]. Next, the process proceeds to step S509, where a search is made for area number a such that G[p][1-amax][1]=P2, and it is determined whether or not such area number a has been found. If the answer is No in step S509, m is set to -1 (step S510). If the answer is Yes in step S509, m is set to a (step S511). In other words, if there is another area whose next destination is the area assigned to P2, the number a of that other area is assigned to m. After step S510 or after step S511, the process proceeds to step S512, where G[p][P1][1] is set to P2. Then, it is determined whether or not this processing block is taken for the first time (step S513). If Yes in step S513, the process proceeds to step S514, where it is determined whether m=-1. If the answer is No in step S513, the cyclic pattern set in G[p][P2][1] is inverted (step S515), and then the process proceeds to step S514. If NO in step S514, the process proceeds to step S516, where P1 is set to P2 and P2 is set to m, and then the process returns to step S509. If the answer is Yes in step S514, proceed to step S517, set G[p][P2][1] to Ptmp, then proceed to step S518, invert the cyclic pattern set in G[p][P2][2], then set p to p+1 (step S519), and if P=20 is cleared, proceed to step S431 in phase 2. That is, if the determination in step S504 is No, a process of modifying the inter-area route in the GA is performed. That is, the current next-generation circular route creation means includes an inter-area route modification processing means for extracting a circular route with a small travel cost from among the previous multiple next-generation circular routes created by the previous next-generation circular route creation means, and modifying the route between the areas of the circular loop that was the basis for creating the extracted circular route, and the inter-area route modification processing means includes a first step (steps S505 and S506) of arbitrarily selecting a first area and a second area from among the areas of the above-mentioned circular loop, a second step (step S508) of recording information of the next area to be traveled that is set as the circular information of the second area as reserved information, a third step (step S509) of searching for an area that has information of the next area to be traveled that is set as the circular information of the second area as circular information, and determining whether or not said area exists, and a third step (step S509) of selecting the second area as the information of the next area to be traveled that is set as the circular information of the first area. The method includes a fourth step (step S512) of setting an area, a fifth step (step S515) of inverting the patrol pattern set in the patrol information of the second area if the processing of the fourth step is not the first time, a sixth step (step S516) of changing the first area to the second area and changing the second area to the area searched in the third step after the fourth step or the fifth step if the judgment result in the third step is yes (No in step S514), and then returning to the processing of the third step, and a seventh step (steps S517, S518) of setting the pending information as the next area to proceed in the patrol information of the second area and inverting the patrol pattern set in the patrol information of the second area if the judgment result in the third step is no (Yes in step S514) after the fourth step or the fifth step.
[0099] Next, a process for modifying the cyclic pattern when the determination in step S504 is Yes will be described. If the answer is Yes in step S504, a value is randomly selected from area numbers 1 to amax and assigned to P1 (step S520), and any cyclic pattern other than the existing cyclic pattern is randomly assigned to G[p][P][2] (step S521). In other words, if a cyclic pattern that is the same as the cyclic pattern already set in G[p][P][2] is randomly selected, it is reselected at random until a different cyclic pattern is found. After that, in step S519, p is set to p+1, and the process proceeds to step S431 in phase 2. That is, the current next-generation circular route creation means is equipped with a circular pattern modification processing means which extracts a circular route with a low travel cost from among the previous multiple next-generation circular routes created by the previous next-generation circular route creation means, and modifies the circular pattern within the area of the circular loop from which the extracted circular route was created, and the circular pattern modification processing means is configured to randomly select one area from each area of the above-mentioned circular loop, and modify the information of the circular pattern, which is the circular information of that area.
[0100] Then, in step S431, it is determined which generation the processing is for. If it is determined in step S431 that the data is "first generation (initial generation)", the process proceeds to step S432. Furthermore, if the determination in step S431 is that it is "another generation (other than the 1st generation)," then in step S453, the individual identification variable is initialized, i.e., p is set to, for example, 5, the cost management array is initialized, i.e., C[1~amax][1~2] is set to 0, and the genetic information array G[5~20][1~amax][1~2] is inherited from phase 3, and then the process proceeds to step S433.
[0101] A supplementary explanation will be given for the processing block B1. Lethal genetic information refers to genetic information (circulating information) that results in the formation of individuals that cannot complete a full loop around the entire area, such as individuals with multiple loops or individuals with appendicitis.
[0102] For example, the individual shown in Figure 52 has two loops: 1-3-6-1 and 2-10-5-4-9-8-7. An individual with such genetic information cannot achieve the original goal of visiting each area once. The individual shown in Figure 53 has two pieces of genetic information (7-Z, 7-Z') that specify the next area to go to as 7. In addition, there is no genetic information that specifies the next area to go to as 7. In other words, the individual returns to 6-4-9-8-7-2-10-5-1-3-7, and the route from the 7-2-10-5-1-3 loop to the 7-8-9-4-6 route becomes a dead end. Even an individual with such genetic information cannot achieve the original goal of going around each area.
[0103] The basic crossover processing block B2 will now be explained in more detail. In basic crossover processing, the next crossover operation is performed in the area (area number) specified in the "next area" in the adopted genetic information. Figure 54 shows an example where the genetic information gi of the child's area 1 is inherited from the genetic information 3-Z of the parent 1. In this case, since the adopted genetic information is (3-Z), the operation area for the next crossover is area 3. Figure 54 also shows an example where the genetic information gi of the child's area 3 is inherited from the genetic information 4-Z' of the parent 2. That is, in processing block B2 of Figure 50, when genetic information is inherited from either parent 1 or parent 2, area a for the next crossover operation is set to G[p][P][1], which is the "next area" in the inherited genetic information (step S478). And if genetic information cannot be inherited from either parent 1 or parent 2, The area G[p][P][1] for performing the next crossover operation is set randomly (step S475, processing block B4).
[0104] The exceptional crossover processing blocks B3 and B4 will now be explained in more detail. In cases where normal crossover may result in lethal genetic information, in order to avoid this, processing is carried out according to the following rules.
[0105] Pattern A Regarding the genetic information of the destination area number of either parent, if the genetic information of that area number of the parent itself has already been determined, obtaining genetic information from that parent is prohibited (steps S470, S483, S471, S484). In FIG. 55, when crossing the genetic information of the child's area 8, if the genetic information of the parent 2's area 8 is taken, the destination area of the genetic information, "9", has already been determined as the destination area in the genetic information of the child's area 4 (step S471). Therefore, the genetic information of the area 8, which is the crossover target area ca, is prohibited from being taken from the genetic information of the parent 2 (step S484). If the genetic information of the area 8, which is the crossover target area ca, is taken from the parent 2, the child will become an individual with lethal genetic information that brings about multiple loops. Therefore, in this case, the genetic information of the child's area 8 is inherited as the genetic information 7-Z' from the parent 1 (steps S474 and S486).
[0106] Pattern B For both parents, if the genetic information for the destination area number has already been determined, the genetic information for the next area number is prohibited from being inherited from the parents (No in step S474), and an area number is randomly selected from the free area numbers (step S475). The genetic information for the cyclic pattern is inherited randomly from either parent. In Figure 56, the genetic information of the child itself has already been determined for the corresponding locations in both area 2 and area 8. Therefore, the destination area for area 7, which is the crossover target area ca, is selected randomly from among the numbers of areas where the genetic information of the next area number is in an empty state ea (in this example, only 3 applies, so 3 is determined). The rotation pattern is chosen randomly from the genetic information in this region held by the parents (Z or S in this example). In other words, in this situation, the child will have genetic information of 3-Z or 3-S in area 7, which is the crossover target area ca.
[0107] Pattern C In the crossover target area ca, if both parents have already determined the genetic information for the destination area number of their own area number and there is no free space, inheritance from the parents is prohibited and 1 is selected. The genetic information for the cyclic pattern is inherited randomly from one of the parents. In FIG. 57, the genetic information of the corresponding locations of area 4 and area 7 of this child itself has already been determined. In addition, there are no vacant areas. In this situation, the genetic information of the next area number to proceed to is set to "1" in area 6, which is the crossover target area ca. Also, the patrol pattern is selected randomly from the genetic information of this area held by the parent (in this example, it is determined to be S'). In other words, in this situation, the genetic information of 1-S' is set in area 6, which is the crossover target area ca of this child.
[0108] As described above, according to the tour route creation device having an automatic creation function using GA in the embodiment, the tour route is updated using genetic information (tour information), so that it is possible to create an efficient tour route for a mobile object to tour multiple areas. In addition, by performing crossover and mutation processes on the cyclic loops, it is possible to add diversity to the cyclic loops created in future generations, making it possible to create efficient cyclic routes.
[0109] As an automatic route creation function, the route creation device may be provided with the following automatic route creation function. That is, a circular route creation device for recognizing position information of a plurality of areas and creating a circular route for a mobile body to travel around the plurality of areas, the circular route creation device comprising: a circular loop creation means for creating a circular loop that travels around each of the areas; a travel cost calculation means for calculating the travel cost when a mobile body travels along the route of the created circular loop; and a circular route creation means for deleting an inter-area route with the highest travel cost from among the inter-area routes that form the created circular loop, and creating a circular route that travels around each of the areas with the area that was connected to the end of the deleted inter-area route as the start area of the circular route and the area that was connected to the beginning of the deleted inter-area route as the goal area of the circular route. In the creation device, the circular loop creation means may be configured to include an initial circular loop creation means for creating an initial circular loop by setting circular information for each area, and a circular loop update means for creating a circular loop with changed circular information of the initial circular loop, and the circular route creation means may be configured to include a determination means for comparing the travel cost of a current circular route created based on a current circular loop (a current circular loop with changed circular information of the circular loop) created by the circular loop update means with the travel cost of a previous circular route created based on a previous circular loop (a previous circular loop before the circular information of the circular loop was changed) created by the circular loop update means, and for keeping the circular route with the smaller travel cost. According to the route creation device, the route information described above is used to update the route loop, and routes with lower travel costs are successively retained, making it possible to create efficient routes for a mobile object to travel through multiple areas.
[0110] Next, the Delaunay method will be described. Delaunay has made it possible to efficiently create circular loop routes by creating inter-center-of-gravity routes that connect the centers of gravity of each of a number of areas, and then creating the shortest circular loop route among the circular loop routes that go around each area by following the inter-center-of-gravity routes. Then, after determining the combination of patrol patterns in each area that results in the lowest travel cost, the inter-area route that has the highest travel cost is deleted from among the inter-area routes connecting the end point of the patrol pattern in one area and the start point of the patrol pattern in the other area, and a patrol route is created in which the area that was the end point of the deleted inter-area route is set as the patrol start area and the area that was the start point of the deleted inter-area route is set as the patrol end area, thereby making it possible to efficiently create an efficient patrol route.
[0111] The method of creating a tour route using Delaunay will now be described. (1) First, the position information of a plurality of areas divided based on XY coordinate information (two-dimensional coordinate information) is recognized by a computer. That is, for example, a map in which an indoor area is divided into a plurality of areas is read into the computer, the position information of the plurality of areas is recognized by the computer, and the map is displayed on the display screen. For example, a map is displayed in which an indoor movement target area A is divided into a plurality of areas A1, A2, A3, A4, A5, and A6 (see FIG. 58). (2) Next, the center of gravity G of each of the recognized areas A1, A2, A3, A4, A5, and A6 is found (see FIG. 58), and paths r, r... between the centers of gravity of each of the areas are created (see FIG. 59). The paths between the centers of gravity may be created, for example, by a Delaunay triangulation process in which the centers of gravity of each of the areas are regarded as Delaunay points, and the lines connecting the centers of gravity of each of the areas are regarded as Delaunay sides (Dlaunay boundaries). In addition, a Delaunay triangulation is a process in which all points (Delaunay points) are connected so that there is no point inside the circumscribing circle of any triangle. Through this process, the centroids of each area are connected by Delaunay edges that form the paths between the centroids. (3) Next, all candidates for circular loop routes are created that go around each area by tracing the lines (Delaunay edges) connecting the centers of gravity (Delaunay points) of each area, and then, from all the candidates for circular loop routes created, the one that has the shortest distance when following the route of the candidate circular loop route is extracted. (4) Then, create a circular loop. That is, when the mobile object 1 moves between the areas along the extracted traveling loop route, a traveling loop is created that is a combination of traveling patterns within each area that minimizes the movement cost. (5) Next, create a tour route. That is, the route between areas in the created circular loop that has the longest travel distance is deleted, and a circular route is created in which the area that was the end point of the deleted route is set as the travel start area and the area that was the start point of the deleted route is set as the travel end area. In this way, it is possible to efficiently create efficient tour routes with low travel costs.
[0112] Next, a tour route generating device for implementing the Delaunay tour route generating method described above will be described with reference to FIGS. The circuit route creation device includes an image recognition means, an inter-center-of-gravity route creation means, a circuit loop route creation means, a circuit pattern setting means, a circuit pattern determination means, and a circuit route creation means. Each of the above-mentioned means constituting the travel route generation device is constituted by a processing program indicating the procedure of the processing executed by each of the means, and hardware resources such as a computer that realizes information processing according to the processing program. In other words, the route planning processing program that realizes the processing of the route planning device is a program that causes a computer to function as each of the above-mentioned means. That is, the tour route planning device is configured by installing the tour route planning processing program described above in a computer such as a personal computer having a display screen and display control means.
[0113] The image recognition means causes the computer to recognize the position information of the multiple areas divided based on the XY coordinate information (two-dimensional coordinate information). That is, for example, a map in which an area before division is divided into multiple areas indoors is read into the computer, and the computer recognizes the position information of the multiple areas and displays them on the display screen. For example, as shown in FIG. 58, a map in which multiple areas A1, A2, A3, A4, A5, and A6 are set within the original area A before division, such as an indoor room where obstacles such as pillars B and B exist, is displayed.
[0114] The inter-center path creation means determines the center of gravity G, G... for each of the plurality of areas A1, A2, A3, A4, A5, A6, and creates inter-center paths r, r... connecting the centers of gravity of the plurality of areas (see Figs. 58 and 59). Note that since an area is recognized by graphic information such as a rectangle, the center of gravity of an area is found based on a well-known formula for finding the center of gravity of a graphic form that forms the area. The inter-center path creation means is, for example, configured by a Delaunay triangulation processing means in which the center of gravity of each area is defined as a Delaunay point and the lines connecting the centers of gravity of each area are defined as Delaunay edges, and the Delaunay edges created by this Delaunay triangulation processing means become the inter-center path. For example, the center of gravity is determined for each of areas A1, A2, A3, A4, A5, and A6 displayed on the display screen as shown in Fig. 58. In Fig. 58 to Fig. 61, the position of the circle in each of areas A1, A2, A3, A4, A5, and A6 is the position of the center of gravity G. These centroids G, G . . . are connected with Delaunay edges that form paths between the centroids, and Delaunay triangulation processing is performed as shown in FIG.
[0115] The circular loop route creation means creates a circular loop route that has the shortest distance among the circular loop routes that travel around each area by tracing the route between the centers of gravity. The circular loop route creation means includes a circular loop route candidate creation means and a circular loop route determination means. The circular loop route candidate generating means generates one or more candidates for a circular loop route that travels around each area by tracing the route between the centers of gravity. In other words, it generates all candidates for a circular loop route that travels around each of the areas A1, A2, A3, A4, A5, and A6 by tracing the Delaunay edges that are the routes between the centers of gravity. The circular loop route determining means determines, from among all the generated circular loop route candidates, the circular loop route candidate with the shortest distance as the circular loop route. When the Delaunay triangulation process is performed as shown in Figure 59, the cyclic loop route candidate created by the cyclic loop route candidate creation means is three as indicated by the arrow routes in Figures 60(a), (b), and (c), and the cyclic loop route determination means determines the cyclic loop route candidate with the shortest distance as the cyclic loop route from among the three cyclic loop route candidates R1, R2, and R3. In this case, the circular loop route candidate with the shortest distance is the circular loop route candidate R1 shown in FIG. 60(a), and this circular loop route candidate R1 is determined as the circular loop route R as shown in FIG.
[0116] The circulation pattern setting means is means capable of setting a plurality of circulation patterns within each area. The plurality of circulation patterns that can be set in each area by the circulation pattern setting means are, for example, the circulation patterns described with reference to FIG.
[0117] The tour pattern determining means determines a combination of tour patterns in each area that minimizes the travel cost when moving through each area based on the created tour loop route. The tour pattern determination means determines, for example, a starting area for going around each area in the created tour loop route, and then determines a combination of tour patterns within each area that minimizes the travel cost.
[0118] For example, a case will be described in which the determined circular loop route is the circular loop route R shown in FIG. 61(a), and the starting area for going around each area is determined to be A1. In other words, this shows an example in which a starting area for touring each area on a circular loop route is determined in advance, and then a circular loop is created that is a combination of circular patterns P, P... within each of areas A1, A2, A3, A4, A5, and A6 that results in the lowest travel cost. In addition, the movement cost refers to a cost calculated by taking into consideration, for example, the total distance of the patrol pattern P, the total turning angle of the moving body 1 required when the moving body 1 moves in the patrol pattern P, and the total number of turns of the moving body 1 required when the moving body 1 moves in the patrol pattern P.
[0119] For example, in the circular loop route R shown in Figure 61(a), the starting area for touring each area is determined to be A1, and the order of movement through each area is determined to be Area A1 → Area A2 → Area A3 → Area A6 → Area A5 → Area A4 → Area A1 (i.e., the order of the numbers marked with circles in Figure 61), and then a circular loop is created that is a combination of circular patterns P, P... within each area that results in the smallest movement cost.
[0120] In this case, first, the optimal traveling patterns P, P in the area A1 and the area A2 are determined as shown in Fig. 61(a). That is, all of the above-mentioned eight combinations of traveling patterns are set in the area A1 and the area A2, and the travel cost of the moving body 1 is calculated for each combination of traveling patterns. In this case, the number of combinations of the traveling patterns in the area A1 and the traveling patterns in the area A2 is 64, and from these 64 combinations, the combination of the traveling patterns P, P in the area A1 and the area A2 that has the smallest travel cost is found, and this is determined as the optimal traveling pattern P, P in the area A1 and the area A2.
[0121] Next, as shown in Fig. 61(b), the optimum traveling pattern P in area A3 is determined. In this case, since the optimum traveling patterns P, P in areas A1 and A2 have already been determined, the optimum traveling pattern P in area A3 is selected from the above-mentioned eight traveling patterns. That is, a combination of the optimal pat- tern for areas A1 and A2 and eight pat- terns for area A3 is set, and from among these combinations, the combination of pat- terns with the smallest travel cost is determined, and the pat- tern for area A3 among this combination is determined as the optimal pat- tern for area A3.
[0122] Similarly, the optimum circulating pattern P for area A6, area A5, and area A4 is determined, and a circulating loop is created in which the optimum circulating patterns P, P . . . for all areas are determined, as shown in FIG. 61(c).
[0123] After determining the combination of tour patterns within each area, the tour route creation means deletes the inter-area route with the highest travel cost from among the inter-area routes connecting the end point of the tour pattern of one area to the start point of the tour pattern of the other area, and creates a tour route in which the area that was the end point of the deleted inter-area route is set as the tour start area and the area that was the start point of the deleted inter-area route is set as the tour end area.
[0124] For example, when the combination of circular patterns P, P... in each area is determined as shown in Figure 61 (c), the travel cost of the inter-area route between the end point of the circular pattern in area A5 and the start point of the circular pattern in area A4 is the highest, so this inter-area route is deleted and a circular route is created with area A4 as the circular start area and area A5 as the circular end area. In other words, an efficient circular route is created in which the robot moves through area A4 in a Z' pattern (second pattern), then moves to area A1, moves through area A1 in an S' pattern (fourth pattern), then moves to area A2, moves through area A2 in a Z pattern (first pattern), then moves to area A3, moves through area A3 in a Z pattern (first pattern), then moves to area A6, moves through area A6 in an S pattern (third pattern), then moves to area A5, and moves through area A5 in a Z' pattern (second pattern). As described above, an efficient tour route with low travel costs can be created efficiently.
[0125] The Delaunay flow will be explained with reference to FIG. The tour route generation device recognizes the position information of a plurality of areas, and first executes an inter-centre route generation process (step S1). In the process of creating paths between centroids (step S1), specifically, Delaunay edges created by the Delaunay triangulation process are used as paths between centroids. Next, a circular loop route creation process (step S2) is executed. Specifically, in the circular loop route creation process (step S2), one or more candidates for a circular loop route that follows the route between the centers of gravity and goes around each area are created, and the circular loop route candidate with the shortest distance is determined as the circular route from among all the created circular loop route candidates. Next, a cyclic pattern determination process (step S3) is executed. In the tour pattern determination process (step S3), after determining the starting area for going around each area in the created tour loop route, a combination of tour patterns within each area that minimizes the travel cost is determined. Finally, a tour route creation process (step S4) is executed. In the tour route creation process (step S4), after the combination of tour patterns in each area is determined, the inter-area route with the highest travel cost is deleted from among the inter-area routes connecting the end point of the tour pattern in one area and the start point of the tour pattern in the other area, and a tour route is created in which the area that was the end point of the deleted inter-area route is set as the tour start area and the area that was the start point of the deleted inter-area route is set as the tour end area.
[0126] According to Delaunay, a circular loop route is created that travels around each of a number of areas by following inter-center routes that connect the centers of gravity of each of the areas, and when it is assumed that one travels around each area based on the circular loop route, a combination of circular patterns within each area that results in the lowest travel cost is created. Finally, the inter-area route with the highest travel cost is deleted to create a circular route. This shortens the calculation processing time required to create a circular route, and makes it possible to efficiently create an efficient circular route for a mobile body 1 to travel around a number of areas. In other words, by performing the inter-center-of-gravity path creation process, which has a small calculation load, it is possible to shorten the calculation processing time required for the route creation process, and the route can be created efficiently.
[0127] In addition, the tour pattern determination means may create an optimal combination of tour patterns within each area that results in the lowest travel cost for each different starting area and order of travel for each area when going around each travel target area in the created tour loop route, and determine the combination of tour patterns that results in the lowest travel cost among the optimal combinations of tour patterns for each different starting area and order of travel for each area as the combination of tour patterns.
[0128] That is, in the above-mentioned example, the circulation pattern determination means determines in advance the starting area and the order of movement when going around each area in the created circulation loop route, and then determines the combination of circulation patterns within each area that minimizes the movement cost, but in the extracted circulation loop route, the starting area when going around each area can be freely determined, and the order of movement when going around each area can also be determined in reverse order. Therefore, in the extracted circular loop route, even when the starting area when going around each area is changed or the order of movement when going around each area is reversed, an optimal combination of circular patterns within each area is created.
[0129] For example, in the circular loop route R shown in FIG. 61, by changing the starting area when going around each area to an area other than area A1, or by changing the order of movement when going around each area to the reverse order (for example, changing the order of movement to area A1 → area A4 → area A5 → area A6 → area A3 → area A2 → area A1), it becomes possible to perform the circular pattern determination process under various conditions. Therefore, by performing the tour pattern determination process under such various conditions, the variety of tour pattern combinations within each area will increase, increasing the possibility of determining a more optimal tour pattern combination, and potentially making it possible to determine a more optimal tour route.
[0130] In the above example, only one circular loop route with a short distance is extracted from all the created circular loop route candidates. However, it is also possible to extract multiple circular loop routes with short distances from all the created circular loop route candidates, and when creating the circular loop, create a circular loop for each extracted circular loop route, and select the one with the smallest travel cost from the multiple created circular loops as the circular loop. In this way, it is more likely that a more optimal traveling loop can be obtained, and it is possible to find a more optimal traveling route.
[0131] In the above example, the inter-centre paths connecting the centroids of the multiple areas are created by Delaunay triangulation processing, but the inter-centre paths r may be created by other methods. For example, a circle of a specified radius may be created with the center of gravity of a reference area as its center, and a center-to-center path may be created by connecting the center of gravity of the reference area to the center of gravity of each area within the circle. For example, as shown in FIG. 63, inter-center routes r, r, r are created that respectively connect the center G of area A1 to the center G of area A2, the center G of area A5, and the center G of area A4, which are located within a circle C at a radial distance D from the center G of the reference area A1. Similarly, inter-center-of-gravity routes r, r... are created that connect the center of gravity of the area located within a circle of a radius distance D from the center of gravity G of area A2 to the center of gravity G of area A2. Similarly, inter-center-of-gravity routes r, r... are created that connect the center of gravity of the area located within a circle of a radius distance D from the center of gravity G of area A3 to the center of gravity G of area A3. Furthermore, inter-center-of-gravity routes r, r... are created that connect the center of gravity of the area located within a circle of a radius distance D from the center of gravity G of area A4 to the center of gravity G of area A4. Furthermore, inter-center-of-gravity routes r, r... are created that connect the center of gravity of the area located within a circle of a radius distance D from the center of gravity G of area A5 to the center of gravity G of area A5. Furthermore, inter-center-of-gravity routes r, r... are created that connect the center of gravity of the area located within a circle of a radius distance D from the center of gravity G of area A6 to the center of gravity G of area A6. Then, after creating as many candidates for a circular loop route that goes around each of the above-mentioned areas by tracing the inter-center routes connecting the centers of gravity G, G... of each of the above-mentioned areas A1, A2, A3, A4, A5, A6, the circular loop route candidate with the shortest distance among the multiple created candidates may be determined as the circular loop route, and a circular loop may be created as described above based on that circular loop route.
[0132] In addition, the number of areas to be connected to the center of gravity of a reference area may be determined to be M, and only M areas that are close to the center of gravity of the reference area may be searched for, and center-to-center paths may be created that connect the center of gravity of the reference area to the center of gravity of each of the M areas searched. For example, if M is three, as shown in Figure 64, the three areas A2, A5, and A4 that are close to the center of gravity G of the reference area A1 are searched for, and inter-center paths are created that connect the center of gravity G of area A2, the center of gravity G of area A5, and the center of gravity G of area A4 to the center of gravity G of the reference area A1, respectively. Similarly, three areas close to the center of gravity G of the reference area A2 are searched for, and center-of-gravity paths r, r... are created that connect the centers of gravity of these three areas to the center of gravity G of area A2. Three areas close to the center of gravity G of the reference area A3 are searched for, and center-of-gravity paths r, r... are created that connect the centers of gravity of these three areas to the center of gravity G of area A3. Three areas close to the center of gravity G of the reference area A4 are searched for, and center-of-gravity paths r, r... are created that connect the centers of gravity of these three areas to the center of gravity G of area A4. The method creates center-of-gravity paths r, r... connecting the centers of gravity of the areas A1 and A2 with the center of gravity G of area A4, searches for three areas close to the center of gravity G of the reference area A5, and creates center-of-gravity paths r, r... connecting the centers of gravity of these three areas and the center of gravity G of area A5, searches for three areas close to the center of gravity G of the reference area A6, and creates center-of-gravity paths r, r... connecting the centers of gravity of these three areas and the center of gravity G of area A6. Then, after creating as many candidates for a circular loop route that goes around each of the above-mentioned areas by tracing the inter-center routes connecting the centers of gravity G, G... of each of the above-mentioned areas A1, A2, A3, A4, A5, A6, the circular loop route candidate with the shortest distance among the multiple created candidates may be determined as the circular loop route, and a circular loop may be created as described above based on that circular loop route.
[0133] Next, the short path will be described. Short Path sets up points that can be considered as the starting and ending points of multiple patrol patterns that can be set in each area, and creates an evaluation value for each of the two points determined by all combinations of starting and ending points, which indicates the ease of travel between two points when traveling between two arbitrary areas from the end point of a patrol pattern assumed in one area to the starting point of a patrol pattern assumed in the other area. This makes it possible to efficiently select a route between two points that is preferable as a travel route from among the routes between each of the two points determined by all combinations of starting and ending points.
[0134] The evaluation value indicating the ease of movement between two points as described above can be easily calculated, for example, by calculating the straight-line distance of a straight-line path connecting the two points, as described below. This makes it possible to easily and quickly set the distance between each pair of points determined by all combinations of starting points and ending points, and to create the evaluation value between each pair of points. Therefore, it becomes possible to efficiently select a pair of points that is preferable as a travel route from among all pairs of points determined by combinations of start points and end points, and it becomes possible to shorten the time required to create an efficient tour route using the route between these selected two points. In other words, the present invention makes it possible to efficiently create an efficient tour route.
[0135] A method for creating a tour route using a short path will now be described. (1) First, the position information of multiple areas partitioned based on XY coordinate information (two-dimensional coordinate information) is recognized by a computer. That is, for example, a map in which an indoor movement target area is divided into multiple areas is read into the computer, the position information of the multiple areas is recognized by the computer, and the map is displayed on the display screen. For example, as shown in FIG. 65, a map is displayed in which an indoor movement target region A is divided into a plurality of areas A1, A2, A3, A4, A5, and A6. (2) Next, for each area, possible starting and ending points of a plurality of possible patrol patterns that can be set for each area are set, and an evaluation value indicating the ease of movement between two points when moving between two arbitrary areas from the end point of the patrol pattern assumed in one area to the starting point of the patrol pattern assumed in the other area is created for each pair of points determined by all combinations of the starting and ending points. (3) Next, the route between two points with high evaluation values is adopted, and a circular loop that goes around each area is created using the route between the two points with high evaluation values. (4) Then, the route with the highest travel cost among the routes between the areas that make up the created circular loop is deleted, and a circular route is created that determines the order of visiting areas, with the area that was the end point of the deleted route as the start area of the tour and the area that was the start point of the deleted route as the end area of the tour. (5) Finally, after the order of tours has been determined, a tour pattern connecting the start point and end point of each area is determined for each area, and a tour route is created that is formed by the tour pattern determined within each area and the routes between each area.
[0136] Next, a route planning device for implementing the above-mentioned route planning method will be described with reference to FIGS. The tour route creation device includes an image recognition means, a tour pattern setting means, and an evaluation value creation means. The device includes a circulation loop creating means, a circulation order determining means, and a circulation route creating means. Each of the above-mentioned means constituting the travel route generation device is constituted by a processing program indicating the procedure of the processing executed by each of the means, and hardware resources such as a computer that realizes information processing according to the processing program. In other words, the route planning processing program that realizes the processing of the route planning device is a program that causes a computer to function as each of the above-mentioned means. The route planning device is configured by installing the above-mentioned route planning processing program in a computer such as a personal computer having a display screen and display control means.
[0137] The image recognition means causes the computer to recognize the position information of the multiple areas divided based on the XY coordinate information (two-dimensional coordinate information). That is, for example, a map in which an indoor movement target area before division is divided into multiple areas is read into the computer, and the computer recognizes the position information of the multiple areas and displays them on the display screen. For example, as shown in FIG. 65, a map in which multiple areas A1, A2, A3, A4, A5, and A6 are set within the original movement target area A before division, such as an indoor room where obstacles such as pillars B and B exist, is displayed.
[0138] The circuit pattern setting means is the same as that described in Delaunay. That is, the circuit patterns that can be set in each area by the circuit pattern setting means are, for example, the circuit patterns described in FIG.
[0139] The evaluation value creation means sets possible points as starting points and ending points of a plurality of patrol patterns (e.g., the eight patrol patterns shown in FIG. 32) that can be set in each of the areas A1, A2, A3, A4, A5, A6 in order to patrol within the areas A1, A2, A3, A4, A5, A6, and creates an evaluation value indicating the ease of movement between two points when moving between two arbitrary areas from the end point of the patrol pattern assumed in one area to the starting point of the patrol pattern assumed in the other area, for each of the two points determined by all combinations of the starting points and ending points. In other words, for example, when any one of the above-mentioned preset patterns 1 to 8 is set for each of the areas A1, A2, A3, A4, A5, and A6, all combinations of pat- terns to be set for each of the areas A1, A2, A3, A4, A5, and A6 are set, and for each combination of start points (movement start positions) and end points (movement start positions) determined in all these combinations, an evaluation value indicating the ease of movement between the start point and end point is created.
[0140] In the embodiment, the evaluation value creation means creates straight-line paths between each pair of points determined by the combinations of all the start points and end points described above, and creates the straight-line distances of all the created straight-line paths as evaluation values. That is, the evaluation value creation means first sets possible starting points and ending points of a plurality of tour patterns that can be set in each of the areas A1, A2, A3, A4, A5, and A6. Specifically, possible starting and ending points of a plurality of tour patterns that can be set in each of the areas A1, A2, A3, A4, A5, and A6 are set, for example, as shown by ● marks in FIG. In other words, when the multiple circulation patterns that can be set within an area are the eight patterns as described above, the points that can be assumed as the starting points and ending points of the circulation patterns that can be set within each of the areas A1, A2, A3, A4, A5, and A6 will be points near the corners of each of the areas A1, A2, A3, A4, A5, and A6, as shown in, for example, FIG. Then, as shown in FIG. 66, straight line paths L, L . . . between each pair of points determined by all combinations of the start points and end points are created. If the number of areas is "N" and the number of types of circuit patterns is the above-mentioned 8 patterns, the total number of straight line paths L, L... between each two points determined by all combinations of start points and end points is 8N x 8 (N-1). For example, as shown in Figure 65, if the number of areas is "6", the total number of straight line paths L created between each two points determined by all combinations of start points and end points is 48 x 40 = 1,920.
[0141] The above-mentioned straight line path L is created by connecting two points (the end point and the starting point) with a straight line, and even if the straight line crosses an obstacle such as a pillar B, it is created as a straight line that crosses the obstacle such as a pillar B as it is. Therefore, the time required for the process of creating the straight line path L between the two points and the process of calculating the straight line distance of this straight line path L is short.
[0142] The circular loop creating means creates a circular loop that goes around each of the areas A1, A2, A3, A4, A5, and A6 using a route with a high evaluation value. The circular loop creating means includes, for example, an extracting means, a determining means, a movement cost calculating means, a circular loop candidate creating means, and a circular loop determining means.
[0143] The extraction means extracts straight-line paths L, L . . . between two points having high evaluation values from among all straight-line paths between two points generated by the evaluation value generation means. The extraction means extracts, for example, the top α% of straight-line routes L, L... with shortest distances from the distances of all straight-line routes L, L... calculated by the evaluation value creation means, that is, the straight-line routes L, L... between two points with the top α% of high evaluation values, as shown in Figure 67. The top α% may be set freely, but from the viewpoint of shortening the processing time, it may be considered to set it to, for example, about 30 to 50.
[0144] The determining means determines whether the straight-line paths L, L . . . extracted by the extracting means are straight-line paths that do not cross the pillar B, or straight-line paths that cross the pillar B.
[0145] When the determination means determines that the straight-line path L is a straight-line path that does not cross pillar B, the movement cost calculation means determines the straight-line distance of the straight-line path L as the movement cost, and when the determination means determines that the straight-line path L is a straight-line path that crosses pillar B, the movement cost calculation means creates a detour route that bypasses pillar B and calculates the movement cost of the detour route. In other words, when the movement cost calculation means determines that the extracted straight-line path is straight-line path L that crosses pillar B, it creates a detour path around the straight-line path and calculates the accurate movement cost of traveling between the two ends of the detour path. In other words, if the determination means determines that the route is a straight line that crosses pillar B (obstacle), a detour route between the two points that goes around pillar B is created in place of the straight line route, and the travel cost of the detour route is calculated as the travel cost between the two points. Here, the detour route refers to a route that is created between two points while avoiding obstacles such as pillar B. In addition, the travel cost of the detour route is a cost calculated taking into consideration the total distance of the detour route, the total turning angle of the moving body 1 required when the moving body 1 travels along the detour route, and the total number of turns of the moving body 1 required when the moving body 1 travels along the detour route. In addition, when the judgment means judges that the extracted straight-line route is a straight-line route that does not cross pillar B (obstacle), the straight-line distance of the straight-line route calculated as the evaluation value is regarded as the travel cost between the two points.
[0146] In this way, of all straight-line routes L, L... created by the evaluation value creation means, the top α% of straight-line routes L, L... with the highest evaluation values are extracted, and only if there is a route among the extracted straight-line routes L, L... that crosses pillar B (obstacle), a detour route is created and the travel cost of the detour route that avoids pillar B, i.e., the accurate travel cost of the inter-area route that takes pillar B into account, is calculated. This reduces processing time compared to creating all detour routes and calculating the travel costs of all detour routes.
[0147] The circular loop candidate creation means creates one or more candidates for a circular loop that goes around each of the areas A1, A2, A3, A4, A5, and A6 by using a straight line route or a detour route with a low travel cost as a route between two points on the straight line routes L, L... extracted by the extraction means. The circular loop candidate creation means extracts routes with low travel costs that start from the end point of an area from among straight routes or detour routes with low travel costs for each of the areas A1, A2, A3, A4, A5, and A6. For example, routes with low travel costs that start from the end point of any area to the start point of the next area to be traveled to (hereinafter referred to as "start routes") are narrowed down to the top M routes for each area (M is any natural number) as shown in FIG. 68. The number M can be freely set. Then, one or more candidate circular loops that go around all of the areas A1, A2, A3, A4, A5, and A6 are created using the departure routes narrowed down to the top M.
[0148] If no cyclic loop candidate is generated by the cyclic loop candidate generating means, an error occurs, and the parameters (α, M) are reset and the process is repeated.
[0149] The circular loop determining means determines, as the circular loop, the circular loop candidate having the smallest travel cost among the circular loop candidates. At the stage where the tour loop is determined in this manner, the order in which the areas will be toured (hereinafter referred to as the "area tour order") and the tour pattern within each of the areas A1, A2, A3, A4, A5, and A6 have not yet been determined. This means the route is not yet complete.
[0150] The tour order determination means deletes the route with the highest travel cost among the routes between areas constituting the circular loop determined by the circular loop determination means, and determines an area tour order in which the area that was the end point of the deleted route is set as the tour start area and the area that was the start point of the deleted route is set as the tour end area.
[0151] After the area visiting order is determined by the visiting order determination means, the tour route creation means determines a tour pattern for each area connecting the start point and end point of each area, and creates a tour route formed by the tour pattern for each area and the route between each area.
[0152] That is, at the stage when the area visiting order is determined by the visiting order determination means, the visiting pattern within each of the areas A1, A2, A3, A4, A5, A6 has not yet been determined. However, since the start point and end point for each of the areas A1, A2, A3, A4, A5, A6 have been determined, the visiting pattern within each of the areas A1, A2, A3, A4, A5, A6 is determined by selecting and setting, for each of the areas A1, A2, A3, A4, A5, A6, a visiting pattern that can set a start point and end point that match the start point and end point. Furthermore, once the patrol loop has been determined, the routes between areas are also determined. Therefore, once the tour patterns within each of the areas A1, A2, A3, A4, A5, and A6 have been determined, and the routes between the areas have also been determined, a tour route is created by connecting the tour patterns for each of the areas A1, A2, A3, A4, A5, and A6 and the routes between the areas.
[0153] The flow of a short pass will be explained with reference to FIG. The travel route generation device recognizes the position information of a plurality of areas, and first executes an evaluation value generation process (step S1) by the evaluation value generation means. Specifically, in the evaluation value creation process (step S1), straight-line paths between each pair of points determined by all combinations of start points and end points are created, and the straight-line distances of all the created straight-line paths are calculated as evaluation values. Next, a cyclic loop candidate generating process (step S2) is executed. Specifically, in the process of creating candidate circular loops (step S2), the system extracts only the top α% of straight-line routes between two points with the highest evaluation values, i.e., the top α% of straight-line routes with shortest straight-line distances, and if the extracted straight-line route crosses an obstacle, a detour route that goes around the obstacle is created and the travel cost of the detour route is calculated. If the extracted straight-line route does not cross an obstacle, the straight-line distance of the straight-line route calculated in the evaluation value creation process is used as the travel cost. Then, among the routes between two points in the top α% with the highest evaluation values, the departure routes with the lowest travel costs are narrowed down to the top M routes for each area, and one or more circular loop candidates that travel around all areas are created using the departure routes narrowed down to the top M routes. In the cyclic loop candidate generating process (step S2), when a cyclic loop candidate is generated (YES in step S3), the process proceeds to a cyclic loop determining process (step S4). In the circular loop determination process (step S4), the circular loop candidate with the smallest travel cost is determined as the circular loop. Next, an area visiting order determination process (step S5) is executed. In the area visiting order determination process (step S5), the route with the highest travel cost among the routes between areas that make up the determined circular loop is deleted, and the area that was the end point of the deleted route is set as the visiting start area, and the area that was the start point of the deleted route is set as the visiting end area, to determine the area visiting order. Finally, a tour route creation process (step S6) is executed. In the circular route creation process (step S6), after the order of visiting areas is determined, a circular pattern connecting the start point and end point of each area is determined for each area, and a circular route is created that is formed by the circular pattern for each area and the route between each area that has already been determined by the circular loop determination process. In the cyclic loop candidate creation process (step S2), if a cyclic loop candidate is not created (NO in step S3), an error is reported (step S7). If an error is reported, the parameters (α, M) are reset and the process is repeated from the evaluation value creation process (step S1) until a cyclic loop candidate is created.
[0154] According to Short Path, first, a straight line route between each pair of points is created, and the straight line distance of each created straight line route is calculated as an evaluation value. The route with the highest evaluation value is then adopted to create a tour route. This shortens the calculation process, and makes it possible to efficiently create an efficient tour route for moving body 1 to tour multiple areas. In other words, first, the straight-line distance of a straight-line route connecting two points is calculated as an evaluation value indicating the ease of travel between the two points, which has a low computational load, and routes that are deemed inefficient are eliminated. This makes it possible to shorten the calculation processing time required for creating a circular route, and enables the circular route to be created efficiently.
[0155] Furthermore, in the case of a short path, if there are no obstacles such as pillars B in the original target area A for movement, there is no need to create a detour route, so the route (starting route) with the shortest straight-line distance as an evaluation value can be extracted for each area from the straight-line routes created in the evaluation value creation step to create a candidate circular loop.
[0156] In addition, in the short path, in the evaluation value creation step, a straight line path connecting two points from the end point of a patrol pattern assumed in one of two arbitrary movement target areas to the start point of a patrol pattern assumed in the other movement target area is created between each of the two points determined by the combination of all the start points and end points, and the straight line distance of each created straight line path is created as an evaluation value, but the evaluation value may be any information that indicates the ease of movement between two points. In other words, the evaluation value may be any information for determining whether or not the accurate movement cost of the path between each of the two points should be calculated. For example, if one area that is the assumed end point of the two points is adjacent to the other area that is the assumed starting point of the two points, the evaluation value indicating the ease of movement between these two points can be set to "1," and if one area that is the assumed end point of the two points is not adjacent to the other area that is the assumed starting point of the two points, the evaluation value indicating the ease of movement between these two points can be set to "2." Only the exact movement cost of the route between the two points with the high evaluation value of "1" can be calculated, and this route with the high evaluation value can be used to create a circular loop candidate that goes around each of the target movement areas.
[0157] In other words, according to Short Path, an evaluation value creation process is first performed to calculate an evaluation value with a low computational load as an evaluation value indicating the ease of movement between the two points mentioned above, and thereby routes between the two points that are deemed to be inefficient are excluded from the movement route. This makes it possible to shorten the processing time required to create a circular loop, and enables the efficient creation of a circular route.
[0158] Next, the manual route creation function will be described. That is, a route planning device equipped with a route manual planning function includes a display control means for displaying images of a plurality of target areas in a map drawing field E on a display screen D based on the position information of the plurality of areas. Then, the display control means displays a setting guide field RG that serves as a guide for setting the tour order among the areas displayed in the map drawing field E and the tour pattern for each area. The tour order setting means is configured to have a function of setting the tour order between areas to the designated tour order when a worker or other person specifies the tour order between areas via the setting guide field RG. In addition, the circuit pattern setting means is configured to have a function of setting a specified circuit pattern as a circuit pattern within a specified area when a worker or other person specifies a circuit pattern for a specified area via the setting guide field RG.
[0159] The display control means of the route creation device according to the embodiment, as shown in FIG. 70, displays a map drawing column E and a setting guide column RG on a display screen D of a display means managed by a computer, as well as an operation selection column U and a route creation function selection column X, which will be described later, and also displays a cost log display column C and a processing content log display column V. That is, the display control means displays a map for which a travel route is to be created in the map drawing field E, and also displays the setting guide field RG, and displays the travel order between each area and the travel pattern within each area that are set via the setting guide field RG. The operation selection field U is a field for selecting an operation such as "Open map and tour route", "Save map and tour route", or "Generate area and tour pattern". Moreover, the travel cost of the mobile object 1 when the mobile object 1 travels along the created travel route is displayed in a cost log display field C, and the processing content for verification is displayed in a processing content log display field V.
[0160] That is, the route creation device of the embodiment has the above-mentioned Delaunay (first route creation function), the above-mentioned Short Path (second route creation function), the above-mentioned SA (third route creation function), and the above-mentioned GA (fourth route creation function) as route creation functions that automatically create route, as well as a route manual creation function, and further has a selection means for selecting the creation of a route by one of the four route creation func...
Claims
1. A travel route creation device for creating a travel route for a mobile object to travel around the plurality of travel target areas by recognizing position information of the plurality of travel target areas partitioned based on XY coordinate information, the device comprising: A function to create multiple types of tour routes with different ways of creating tour routes, A selection means for selecting one of the tour route creation functions; A tour route creation device comprising:
2. One of the plurality of types of route creation functions is a route creation function, a center-of-gravity path creating means for creating a center-of-gravity path connecting the centers of gravity of each of a plurality of movement target regions; a circular loop route creation means for creating a circular loop route having the shortest distance among circular loop routes that travel around each of the movement target areas by tracing a route between the centers of gravity; a travel pattern setting means for setting a plurality of travel patterns within each of the movement target areas; a travel pattern determination means for determining a combination of travel patterns within each travel target area that minimizes the travel cost when travelling through each travel target area based on the created travel loop route; a travel route creation means for, after a combination of patrol patterns within each of the moving target areas has been determined, deleting a route between moving target areas that has the highest travel cost among routes between moving target areas that connect an end point of the patrol pattern of one of the moving target areas to a start point of the patrol pattern of the other moving target area, and creating a patrol route in which the moving target area that was the end point of the deleted route between moving target areas is set as a patrol start area and the moving target area that was the start point of the deleted route between moving target areas is set as a patrol end area; 2. The device according to claim 1, further comprising:
3. One of the plurality of types of route creation functions is a route creation function, a travel pattern setting means for setting a plurality of travel patterns within each of the movement target areas; an evaluation value creation means for setting possible points as start points and end points of a plurality of cyclic patterns that can be set in each movement target area by the cyclic pattern setting means for each movement target area, and creating an evaluation value indicating the ease of movement between two points when moving between two points from the end point of the cyclic pattern assumed in one movement target area to the start point of the cyclic pattern assumed in the other movement target area, for each of the two points determined by combinations of all the start points and end points; a loop creating means for creating a loop that goes around each of the movement target areas by adopting a route between two points with high evaluation values; a travel order determination means for determining a travel order of the movement target areas by deleting a route with the highest travel cost among routes between the movement target areas constituting the patrol loop, and setting the movement target area that was the end point of the deleted route as a travel start area and setting the movement target area that was the start point of the deleted route as a travel end area; a travel route creation means for creating a travel route that is formed by the determined travel pattern and a route between each of the movement target areas, the determined travel pattern being connected to the end point of each of the movement target areas after the travel order has been determined; 2. The device according to claim 1, further comprising:
4. One of the plurality of types of route creation functions is a route creation function, a cyclic loop creating means for creating a cyclic loop that goes around each of the movement target areas; a movement cost calculation means for calculating a movement cost when a moving object moves along the route of the created circular loop; a route creation means for creating a route that goes around each of the movement target areas by deleting the route between the movement target areas that has the highest movement cost from among the routes between the movement target areas that form the created circulation loop, and setting the movement target area to which the route end of the deleted route between the movement target areas is connected as the start area of the circulation route, and setting the movement target area to which the route start end of the deleted route between the movement target areas is connected as the goal area of the circulation route, The means for creating a circular loop is as follows: a first cyclic loop creating means for creating a first cyclic loop by setting cyclic information for each movement target area; a cyclic loop update means for creating a cyclic loop in which cyclic information of an initial cyclic loop is changed; The means of creating a tour route are a determination means for determining which of a current circular route to keep, a current circular route created based on a current circular loop created by the circular loop update means, and a previous circular route created based on a previous circular loop created by the circular loop update means, The travel route creation device according to claim 1, characterized in that the patrol information is combined information consisting of information on a patrol pattern within one's own target travel area, which is set for each target travel area, and information on the next target travel area to proceed to.
5. One of the plurality of types of route creation functions is a route creation function, a cyclic loop creating means for creating a cyclic loop that goes around each of the movement target areas; a movement cost calculation means for calculating a movement cost when a moving object moves along the route of the created circular loop; a route creation means for creating a route that goes around each of the movement target areas by deleting the route between the movement target areas that has the highest movement cost from among the routes between the movement target areas that form the created circulation loop, and setting the movement target area to which the route end of the deleted route between the movement target areas is connected as a start area of the circulation route, and setting the movement target area to which the route start end of the deleted route between the movement target areas is connected as a goal area of the circulation route, the cyclic loop creating means includes an initial generation cyclic loop creating means for creating a cyclic loop by setting cyclic information for each movement target area, and a subsequent generation cyclic loop creating means; The tour route creation means includes an initial generation tour route creation means and a later generation tour route creation means, The initial generation cyclic loop creating means creates a plurality of cyclic loops; the initial generation circulatory route creation means changes the circulatory information for each movement target area for each of the initial generation circulatory loops created by the initial generation circulatory loop creation means to create a plurality of initial generation circulatory routes; the later-generation tour loop creation means extracts some initial-generation tour routes having a small travel cost from among the plurality of initial-generation tour routes, and creates a later-generation tour loop using tour information of the extracted initial-generation tour routes; the next-generation circular route creation means changes the circular information for each movement target area for each next-generation circular loop created by the next-generation circular loop creation means to create a next-generation circular route; The travel route creation device according to claim 1, characterized in that the patrol information is combined information consisting of information on a patrol pattern within one's own target travel area, which is set for each target travel area, and information on the next target travel area to proceed to.
Citation Information
Patent Citations
Method and device for producing path of carrying system
JP1999141135A
Flight route-creating device and its method
JP1999295098A
Information processing apparatus, flight vehicle, transportation network generation method, transportation method, program and recording medium
JP2019020770A
Patrol route generating device, patrol route generation method, and program
JP2019096100A
Automatic work vehicle driving system and driving route management device
JP2022028836A
