Traveling route creation device, traveling route creation device, and traveling route creation processing program
The tour route creation device optimizes movement between multiple target areas by evaluating ease of movement and using cyclic loops and detours to navigate obstacles, ensuring efficient route planning.
Patent Information
- Application Number
- JP2023034274
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-03-07
AI Technical Summary
Existing methods do not effectively create efficient tour routes for mobile objects to visit multiple movement target areas, particularly in environments with obstacles.
A tour route creation device that recognizes position information of multiple movement target areas, sets circuit patterns, evaluates movement ease, and determines optimal routes using cyclic loops and detours to efficiently navigate between areas while avoiding obstacles.
The device efficiently creates tour routes that allow mobile objects to visit multiple areas with minimal travel cost and obstacle avoidance, optimizing movement patterns.
Smart Images

Figure 2024126104000001
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 for the development of a circuit route creation device or the like for creating such a circuit route. In view of the above-mentioned problems, the present invention provides a travel route creation device and the like capable of efficiently creating an efficient travel route for a mobile object to travel through a plurality of travel target areas. [Means for solving the problem]
[0005] A travel route creation device according to the present invention is a travel route creation device for recognizing position information of a plurality of movement target areas partitioned based on XY coordinate information and creating a travel route for a mobile body to travel around the plurality of movement target areas, the travel route creation device comprising: a travel pattern setting means capable of setting a plurality of travel patterns within each movement target area; a travel pattern setting means for setting points that can be assumed as start points and end points of a plurality of travel patterns that can be set for each movement target area by the travel pattern setting means for each movement target area; and a travel route creation device for creating a travel route for a mobile body to travel around the plurality of movement target areas by the travel pattern setting means, the travel route creation device setting an evaluation value indicating the ease of movement between two points when moving between two points from the end point of the travel pattern assumed in one movement target area to the start point of the travel pattern assumed in the other movement target area, based on each evaluation value determined by a combination of all the start points and end points. The system is characterized by comprising: an evaluation value creation means for creating an evaluation value between two points; a circular loop creation means for creating a circular loop that goes around each of the movement target areas by adopting the two points with high evaluation values as a route; a circulating order determination means for determining the order of circulating the movement target areas by deleting the route with the highest movement cost among the routes between the movement target areas that make up the circulating loop, and setting the movement target area that was the end point of the deleted route as the circulating start area and the movement target area that was the starting point of the deleted route as the circulating end area; and a circulating route creation means for determining, after the circulating order has been determined, a circulating pattern connecting the start point and end point of each movement target area for each movement target area, and creating a circulating route formed by the circulating pattern determined respectively within each movement target area and the route between each movement target area. The evaluation value creation means is further characterized in that it creates straight-line paths connecting two points, from an end point of a cyclic pattern assumed in one of the two target areas to a start point of a cyclic pattern assumed in the other target area, between each of the two points determined by all combinations of the start points and the end points, and creates the straight-line distance of each of the created straight-line paths as an evaluation value. The circular loop creation means further comprises: an extraction means for extracting a straight-line route between two points with a high evaluation value from all straight-line routes between two points created by the evaluation value creation means; a determination means for determining whether the straight-line route extracted by the extraction means is a straight-line route that does not cross any obstacles or a straight-line route that crosses any obstacle; a movement cost calculation means for determining, when it is determined that the straight-line route is a straight-line route that does not cross any obstacles, the straight-line distance of the straight-line route as a movement cost, and, when it is determined that the straight-line route is a straight-line route that crosses any obstacle, creating a detour route that detours around the obstacle and calculating the movement cost of the detour route; a circular loop candidate creation means for creating one or more candidates for a circular loop that circumnavigates each movement target area using the straight-line route or detour route with a low movement cost as a route; and a circular loop determination means for determining, from among the circular loop candidates, the circular loop candidate with the lowest movement cost as the circular loop. The cyclic pattern within the movement target area that can be set by the cyclic pattern setting means is an X-direction cyclic pattern that proceeds in a zigzag manner along the X-axis, or a Y-direction cyclic pattern that proceeds in a zigzag manner along the Y-axis, and the X-direction cyclic pattern is a pattern in which the movement start position is a position of the minimum X-coordinate and the maximum Y-coordinate value, a pattern in which the movement start position is a position of the minimum X-coordinate and the minimum Y-coordinate value, a pattern in which the movement start position is a position of the maximum X-coordinate and the maximum Y-coordinate value, or a pattern in which the movement start position is a position of the maximum X-coordinate and the maximum Y-coordinate value, and the Y-direction cyclic pattern is a pattern in which the movement start position is a position of the minimum X-coordinate and the maximum Y-coordinate value, a pattern in which the movement start position is a position of the maximum X-coordinate and the maximum Y-coordinate value, a pattern in which the movement start position is a position of the minimum X-coordinate and the maximum Y-coordinate value, or a pattern in which the movement start position is a position of the minimum X-coordinate and the minimum Y-coordinate value. The method for creating a tour route according to the present invention is a method for creating a tour route for a mobile body to tour the multiple target areas by recognizing position information of multiple target areas for movement that are partitioned based on XY coordinate information, and includes the steps of: setting possible starting points and ending points of multiple tour patterns that can be set for each target area for the target area for movement; and creating an evaluation value indicating the ease of movement between two points between any two target areas, when moving between two points from the ending point of the tour pattern assumed in one target area to the starting point of the tour pattern assumed in the other target area, for each of the two points determined by all combinations of the starting points and ending points; and calculating an evaluation value indicating the ease of movement between the two points with the highest evaluation value. a circulating loop creating step of creating a circulating loop that goes around each of the movement target areas by adopting the paths between the movement target areas as a route, a circulating order determining step of determining an order of circulating the movement target areas by deleting the path with the highest travel cost among the paths between the movement target areas that make up the circulating loop, and setting the movement target area that was the end point of the deleted path as the circulating start area and the movement target area that was the start point of the deleted path as the circulating end area, and a circulating route creating step of determining, after the circulating order has been determined, a circulating pattern that connects the start point and end point of each of the movement target areas for each of the movement target areas, and creating a circulating route formed by the circulating pattern respectively determined within each of the movement target areas and the route between each of the movement target areas. A travel route creation processing program according to the present invention is a travel route creation processing program for recognizing position information of a plurality of movement target areas partitioned based on XY coordinate information and creating a travel route for a mobile body to travel around the plurality of movement target areas, the program comprising: a computer; a travel pattern setting means capable of setting a plurality of travel patterns within each movement target area; a travel pattern setting means for setting points that can be assumed as start points and end points of a plurality of travel patterns that can be set in each movement target area by the travel pattern setting means for each movement target area; and a calculation means for calculating an evaluation value indicating the ease of movement between two arbitrary movement target areas when moving between two points from the end point of the travel pattern assumed in one movement target area to the start point of the travel pattern assumed in the other movement target area for all combinations of start points and end points. the route between the two points with the highest evaluation values being used as a route to create a circular loop that goes around each of the movement target areas; a circulating order determination means that deletes the route with the highest movement cost among the routes between the movement target areas that make up the circulating loop, and determines the order of circulating the movement target areas, with the movement target area that was the end point of the deleted route as the circulating start area and the movement target area that was the starting point of the deleted route as the circulating end area; and a circulating route creation means that, after the circulating order has been determined, determines a circulating pattern that connects the start point and end point of each movement target area for each movement target area, and creates a circulating route formed by the circulating pattern determined within each of the movement target areas and the route between each of the movement target areas. According to the present invention, it is possible to provide a travel route creation device and the like that can efficiently create an efficient travel route for a mobile object to travel through a plurality of travel target areas. [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] 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. [Diagram 34] 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. [Diagram 35] FIG. 13 shows an example of extraction of straight line paths between two points with the top α% highest evaluation values. [Diagram 36] A diagram showing an example of narrowing down departure routes to the top M for each area. [Figure 37] 4 is a flowchart showing a process flow of a travel route generation device. 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 determined 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 or not the value 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, for example, as shown in FIG. 12, 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 tours within an area is "8", the total number of tour route patterns is the combination number of the order of movement between areas (N!) x 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. 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, the "target regions to be moved" will be referred to as "areas".
[0055] In the present invention, possible points that can be used as the starting point and ending point of a plurality of patrol patterns that can be set in each area are set for each area, and an evaluation value indicating 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 is created for each of the two points determined by all combinations of the starting points and ending points, thereby making 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 the starting points and ending points.
[0056] 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.
[0057] A method for creating a tour route according to the present invention 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. 33, 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.
[0058] 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.
[0059] 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. 33, 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.
[0060] The circulation pattern setting means is configured to be able to set a plurality of circulation patterns within each of the areas A1, A2, A3, A4, A5, and A6. The multiple patrol patterns that can be set in each of the areas A1, A2, A3, A4, A5, and A6 by the patrol pattern setting means refer to the pattern of the zigzag movement planned route H within the divided area shown in FIG. 12 in the explanation of the premise device, and are, for example, an X-direction patrol pattern that moves zigzag along the X-axis, or a Y-direction patrol pattern that moves zigzag along the Y-axis. The plurality of predetermined cyclic patterns that can be set by the cyclic pattern setting means are, for example, as shown in FIG. 32, a Z pattern (first pattern) in which the movement start position (starting end (entrance)) is the position of the minimum X coordinate and the maximum Y coordinate, a Z' pattern (second pattern) in which the movement start position is the position of the minimum X coordinate and the minimum Y coordinate, an S pattern (third pattern) in which the movement start position is the position of the maximum X coordinate and the maximum Y coordinate, and an S' pattern (fourth pattern) in which the movement start position 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. In addition, when each pattern of the multiple patrol patterns is set in each area, the travel cost of moving the mobile body 1 along each pattern is, for example, calculated in advance by a travel cost calculation means and recorded in a database.
[0061] 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.
[0062] 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 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 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, Figure 33. Then, as shown in FIG. 34, 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 eight 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 Fig. 33, 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.
[0063] 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.
[0064] 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.
[0065] 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 paths L, L... with shortest distances from the distances of all straight-line paths L, L... calculated by the evaluation value creation means, that is, the straight-line paths L, L... between two points with the top α% of high evaluation values, as shown in Figure 35. 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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. 36. 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.
[0070] 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.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] The flow of a procedure for creating a tour route according to the embodiment will be described 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.
[0076] According to the tour route creation device of the embodiment, first, a straight line route between each pair of points is created, and the straight line distance of each created straight line route is created as an evaluation value. The route with the highest evaluation value is then adopted to create the 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.
[0077] In addition, in an embodiment, if there are no obstacles such as pillars B in the original target area A, there is no need to create a detour route, so the route (starting route) with the shortest straight-line distance as an evaluation value from among the straight-line routes created in the evaluation value creation step can be extracted for each area to create a potential circular loop.
[0078] In the embodiment, in the evaluation value creation step, a straight line path connecting two points from the end point of a pattern assumed in one of the target areas to the start point of a pattern assumed in the other target area is created between each of the two points determined by the combination of all the start points and the 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 indicating the ease of movement between the 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.
[0079] That is, according to the circular route creation device of the present invention, 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, thereby shortening the processing time required to create a circular loop and enabling a circular route to be created efficiently.
[0080] 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.
[0081] A route creation processing program according to the present invention includes a computer, which includes: route pattern setting means for setting a plurality of route patterns in each area; evaluation value creation means for setting, for each area, possible starting points and ending points of a plurality of route patterns that can be set in each area by the route pattern setting means; and creating, for each of two points determined by combinations of the starting points and ending points, an evaluation value indicating the ease of movement between two points when moving between two points from the ending point of a route pattern assumed in one area to the starting point of a route pattern assumed in the other area; and The program functions as a circular loop creation means for creating a circular loop that goes around each area by adopting the route as a route; a circular order determination means for determining an area circular order by deleting the route with the highest travel cost among the routes between areas that make up the circular loop, and setting the area that was the end point of the deleted route as the circular start area and the area that was the start point of the deleted route as the circular end area; and a circular route creation means for determining, after the circular order has been determined, a circular pattern connecting the start point and end point of each area, and creating a circular route formed by the determined circular pattern within each area and the route between each area. [Explanation of symbols]
[0082] 1 moving object, A1, A2, A3, A4, A5, A6 areas (multiple moving target areas), B pillar (obstacle), L straight path.
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 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; A tour route creation device comprising:
2. The evaluation value creation means includes: The route creation device according to claim 1, characterized in that, between two arbitrary target areas of movement, a straight line path connecting two points from an end point of a route pattern assumed in one target area to a start point of a route pattern assumed in the other target area of movement is created between each of the two points determined by all combinations of start points and end points, and the straight line distance of each created straight line path is created as an evaluation value.
3. The means for creating a circular loop is as follows: an extraction means for extracting a straight line path between two points having a high evaluation value from among all straight line paths between two points generated by the evaluation value generation means; a determining means for determining whether the straight path extracted by the extracting means is a straight path that does not cross an obstacle or a straight path that crosses an obstacle; a movement cost calculation means for determining a straight-line distance of a straight-line route as a movement cost when it is determined that the straight-line route does not cross an obstacle, and for creating a detour route that detours around the obstacle and calculating a movement cost of the detour route when it is determined that the straight-line route crosses an obstacle; a circular loop candidate generating means for generating one or more candidates for a circular loop that travels around each of the movement target areas using a straight line route or a detour route having a low movement cost as a route; a circular loop determining means for determining, from among the circular loop candidates, a circular loop candidate having the smallest travel cost as the circular loop; 3. The device for generating a tour route according to claim 2, further comprising:
4. The cyclic pattern within the movement target area that can be set by the cyclic pattern setting means is an X-direction cyclic pattern that moves in a zigzag manner along the X-axis, or a Y-direction cyclic pattern that moves in a zigzag manner along the Y-axis, The X-direction cyclic pattern is a pattern in which the movement start position is a position of the minimum X coordinate and the maximum Y coordinate, a pattern in which the movement start position is a position of the minimum X coordinate and the minimum Y coordinate, a pattern in which the movement start position is a position of the maximum X coordinate and the maximum Y coordinate, and a pattern in which the movement start position is a position of the maximum X coordinate and the minimum Y coordinate, 4. The device for creating a circular route according to claim 1, wherein the Y-direction circular pattern is a pattern in which the start position of movement is a position of a minimum X-coordinate and a maximum Y-coordinate, a pattern in which the start position of movement is a position of a maximum X-coordinate and a maximum Y-coordinate, a pattern in which the start position of movement is a position of a minimum X-coordinate and a minimum Y-coordinate, or a pattern in which the start position of movement is a position of a maximum X-coordinate and a minimum Y-coordinate.
5. 1. A method for creating a travel route for a moving object to travel around a plurality of target areas by recognizing position information of the target areas based on XY coordinate information, the method comprising the steps of: an evaluation value creation step of setting possible points as start points and end points of a plurality of patrol patterns that can be set in each target area for each target area, and creating an evaluation value indicating the ease of movement between two points when moving between two arbitrary target areas from the end point of the patrol pattern assumed in one target area to the start point of the patrol pattern assumed in the other target area for each of the two points determined by all combinations of the start points and end points; a cyclic loop creation step of creating a cyclic loop that goes around each movement target area by adopting a path between two points with high evaluation values; a travel order determination step of determining a travel order of the movement target areas by deleting the route with the highest travel cost among the routes between the movement target areas constituting the traveling 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 step of determining, for each of the movement target areas after the order of the tours has been determined, a tour pattern connecting a start point and an end point of each of the movement target areas, and creating a tour route formed by the determined tour pattern within each of the movement target areas and a route between each of the movement target areas; A method for creating a tour route, comprising:
6. A travel route creation processing program for creating a travel route for a moving 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 program comprising: Computer, 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, for each of the movement target areas, points that can be assumed as start points and end points of a plurality of cyclic patterns that can be set in each of the movement target areas by the cyclic pattern setting means, and creating, for each of the two points determined by all combinations of the start points and end points, an evaluation value that indicates the ease of movement between two points when moving between two arbitrary movement target areas from the end point of the cyclic pattern assumed in one of the movement target areas to the start point of the cyclic pattern assumed in the other movement target area; 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 travel target areas by deleting the route with the highest travel cost among the routes between the travel target areas constituting the travel loop, and setting the travel target area that was the end point of the deleted route as a travel start area and setting the travel target area that was the start point of the deleted route as a travel end area; a travel route creation means for determining, for each of the movement target areas after the order of travel has been determined, a travel pattern connecting a start point and an end point of each of the movement target areas, and creating a travel route formed by the determined travel pattern within each of the movement target areas and a route between each of the movement target areas; A travel route creation processing program that functions as a travel route creation processing program.
Citation Information
Patent Citations
Route decision device
JP1997258982A
Patrol route selecting method
JP2001091284A
Device and method for determining travel order for delivery and collection
JP2002145417A
Autonomous mobile device, autonomous mobile system, autonomous mobile method and program
JP2016149090A
Movement control method of moving body and movement control system of moving body
JP2020154400A
Cited By
Tour route creation device
JP2024142775A
