JP2607694B2 - CAD system - Google Patents

CAD system

Info

Publication number
JP2607694B2
JP2607694B2 JP1224607A JP22460789A JP2607694B2 JP 2607694 B2 JP2607694 B2 JP 2607694B2 JP 1224607 A JP1224607 A JP 1224607A JP 22460789 A JP22460789 A JP 22460789A JP 2607694 B2 JP2607694 B2 JP 2607694B2
Authority
JP
Japan
Prior art keywords
route
obstacle
point
coordinate
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1224607A
Other languages
Japanese (ja)
Other versions
JPH0390965A (en
Inventor
博之 前坂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1224607A priority Critical patent/JP2607694B2/en
Publication of JPH0390965A publication Critical patent/JPH0390965A/en
Application granted granted Critical
Publication of JP2607694B2 publication Critical patent/JP2607694B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Design And Manufacture Of Integrated Circuits (AREA)

Description

【発明の詳細な説明】 〔概 要〕 CADシステムにおけるプリント基板上の配線経路の最
短ルートを決定するCADシステムに関し、 出発点から目的点迄の最短ルートの探索を高速化する
ことを目的とし、 本発明によれば、現在位置と目的位置とを結ぶルート
を求めるCADシステムであって、現在位置の座標と目的
位置の座標に基づいて、進むべき方向の優先順位を求め
る方向算出手段と、現在位置の回りの座標点の中から、
前記優先順位に基づいて、障害物のない座標点を次の現
在位置の座標とする座標点移動手段とを具備する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] A CAD system for determining the shortest route of a wiring route on a printed circuit board in a CAD system, which aims to speed up the search for the shortest route from a starting point to a destination point. According to the present invention, there is provided a CAD system for obtaining a route connecting a current position and a target position, the direction calculating means for obtaining a priority order of a direction to be advanced based on the coordinates of the current position and the coordinates of the target position, From the coordinate points around the position,
A coordinate point moving unit that sets a coordinate point having no obstacle based on the priority order as a coordinate of a next current position.

〔産業上の利用分野〕[Industrial applications]

本発明は、CADシステムにおけるプリント基板上の配
線経路の最短ルートを探索し決定するCADシステムに関
する。
The present invention relates to a CAD system for searching for and determining the shortest route of a wiring path on a printed circuit board in a CAD system.

近年、半導体デバイスが高密度化、大規模化するにつ
れて、これを用いた回路設計も複雑になっている。そこ
で、設計の途中過程をコンピュータ・シミュレーション
により確認しながら設計作業を進めるCAD(computer ai
ded design)システムが進展している。
In recent years, as semiconductor devices have become higher in density and larger in scale, circuit design using the same has become more complicated. Therefore, CAD (computer ai) that performs the design work while confirming the process of the design by computer simulation
ded design) system is evolving.

CADシステムで重要な点はプリント基板上の配線経路
の決定である。即ち、素子間を接続する配線経路を所定
の規則に従って処理するが、配線区間の決定と配線経路
の決定が重要な過程であり、このため、配線経路の決定
には種々の配線アルゴリズムが提案されている。代表的
な配線アルゴリズムは後述する“Lee"のアルゴリズムで
ある。
An important point in CAD systems is the determination of wiring routes on printed circuit boards. That is, the wiring paths connecting the elements are processed in accordance with a predetermined rule. However, the determination of the wiring section and the determination of the wiring path are important processes. For this reason, various wiring algorithms have been proposed for determining the wiring path. ing. A typical wiring algorithm is the “Lee” algorithm described later.

〔従来の技術〕[Conventional technology]

第8図は“Lee"のアルゴリズムによる配線経路の決定
方法である。
FIG. 8 shows a method of determining a wiring route by the "Lee" algorithm.

図中、Sは出発点、Tは目的点、斜線部分は障害物で
ある。この方法では配線経路の探索は次のように行う。
即ち、出発点Sに隣接する格子で「空」の格子すべてに
「1」を記入する。次に、「1」に隣接する「空」の格
子すべてに「2」を書き込む。このようにして、順次、
「3」,「4」,「5」・・・と埋め、目的点Tに到達
すればS−T間に経路を見出すことができる。そして、
記入された数字を逆にたどればS−T間の最短ルートを
決定することができる。
In the figure, S is a starting point, T is a destination point, and hatched portions are obstacles. In this method, the search for the wiring route is performed as follows.
That is, "1" is written in all the "sky" grids adjacent to the starting point S. Next, “2” is written to all “sky” grids adjacent to “1”. In this way,
When the destination point T is reached, a route can be found between ST and ST. And
The shortest route between S and T can be determined by reversing the entered numbers.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

第9,10図は従来の問題点を説明する図である。上述の
方法では隣接するすべての「空」の格子に数字を埋めて
行くため、目的点とは全く逆の方向の格子にも数字を記
入することになる。また、数字を記入できる「空」の格
子がなくなった段階でしか最終結果の判断ができない。
FIGS. 9 and 10 are diagrams for explaining a conventional problem. In the above-described method, the numbers are filled in all the adjacent “empty” grids, and thus the numbers are also written in the grids in the direction completely opposite to the destination point. Also, the final result can be determined only when there is no “empty” grid in which numbers can be entered.

従って、第9図のように、明らかに経路が分かってい
る場合でも出発点Sから目的点Tに向かって一直線とは
いかず、図示のように出発点から順次、「空」の格子に
埋め、目的点に隣接する「空」の格子に数字が記入され
るまで、全く逆方向の格子にまで数字を埋めなければな
らない。
Therefore, as shown in FIG. 9, even when the route is clearly known, the route does not go straight from the starting point S toward the destination point T. Until the numbers are entered in the "empty" grid adjacent to the destination point, the numbers must be filled into the grid in the exact opposite direction.

また、第10図のように、配線経路の無い場合でも全て
の「空」の格子に数字を記入しないと判断できない。
Further, as shown in FIG. 10, even when there is no wiring route, it cannot be determined that the numbers are not entered in all the “empty” grids.

このように、従来方法では配線経路の決定の処理に膨
大な時間を要する。
As described above, the conventional method requires an enormous amount of time for the process of determining the wiring route.

本発明の目的は、出発点から目的点迄の最短ルートの
探索および決定を高速化することが可能なCADシステム
を提供することにある。
An object of the present invention is to provide a CAD system capable of speeding up the search and determination of the shortest route from a starting point to a destination point.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理構成図である。 FIG. 1 is a diagram illustrating the principle of the present invention.

本発明によれば、現在位置と目的位置とを結ぶルート
を求めるCADシステムであって、現在位置の座標と目的
位置の座標に基づいて、進むべき方向の優先順位を求め
る方向算出手段と、現在位置の回りの座標点の中から、
前記優先順位に基づいて、障害物のない座標点を次の現
在位置の座標とする座標点移動手段とを具備する。
According to the present invention, there is provided a CAD system for obtaining a route connecting a current position and a target position, the direction calculating means for obtaining a priority order of a direction to be advanced based on the coordinates of the current position and the coordinates of the target position, From the coordinate points around the position,
A coordinate point moving unit that sets a coordinate point having no obstacle based on the priority order as a coordinate of a next current position.

〔作 用〕(Operation)

本発明では、最初に出発点と目的点との間に障害物が
あるか否かを判定せずに、当該2点を結ぶルートを求
め、当該ルート上に障害物がある場合には、現在位置か
ら目的点に近づく方向に優先順位を設け、当該優先順位
に従い、障害物の無い点を目的点に向かうように現在位
置を逐次移動させることにより、出発点と目的点を結ぶ
ルートを決定する。
In the present invention, a route connecting the two points is determined without first determining whether there is an obstacle between the starting point and the destination point, and if there is an obstacle on the route, the current A priority order is set in a direction from the position to the destination point, and a route connecting the starting point and the destination point is determined by sequentially moving the current position so that a point without an obstacle is directed to the destination point according to the priority order. .

また、最初に出発点と目的点との間に障害物があるか
否かを判定せずに、当該2点を結ぶルートを求め、当該
ルート上に障害物がある場合には、障害物のある点を求
め、出発点に隣接し、かつ障害物の無い格子に番号を付
し、次に当該番号を付した格子に隣接し、かつ障害物の
無い格子にその続き番号を付し、目的点に番号が付され
ると、目的点から出発点に向かって、格子に付された番
号を順次に辿ることにより(Leeのアルゴリズム)、出
発点と目的点を結ぶルートを決定する。
Also, without first determining whether there is an obstacle between the starting point and the destination point, a route connecting the two points is determined, and if there is an obstacle on the route, the route of the obstacle is determined. Find a point, number the grid adjacent to the starting point and clear of obstacles, and then number the grid adjacent to the numbered grid and clear of obstacles, When the points are numbered, a route connecting the starting point and the destination point is determined by sequentially following the numbers assigned to the grid from the destination point to the starting point (Lee's algorithm).

〔実施例〕〔Example〕

第2,3図は、本発明の基本的な配線経路の決定パター
ンである。これらの基本配線経路決定パターンで決定で
きる場合は最も単純な場合である。
2 and 3 are basic wiring route determination patterns according to the present invention. The simplest case can be determined by these basic wiring route determination patterns.

第2図は第1の配線経路決定パターンであり、出発点
Sに対し目的点Tが一直線で示される場合で、8方向が
存在し、2点で格子座標のX成分の小さいものを出発
点、大きいものを目的点とし、2点間のX方向の格子数
(ΔX)とY方向の格子数(ΔY)を求める。
FIG. 2 shows a first wiring route determination pattern, in which a destination point T is shown in a straight line with respect to a starting point S. There are eight directions, and two points having a small X component of grid coordinates are defined as starting points. The larger number is the target point, and the number of grids in the X direction (ΔX) and the number of grids in the Y direction (ΔY) between the two points are determined.

この場合、ΔX=0又はΔY=0又は |ΔX|=|ΔY| が本図のルートを使用する基本であり、ΔX=0又はΔ
Y=0であれば、第2図の上下左右方向を示し、|ΔX|
=|ΔY|であれば45度の斜め4方向を示すことになる。
途中に障害物が無いかぎり出発点から目的点まで1本線
となる。
In this case, ΔX = 0 or ΔY = 0 or | ΔX | = | ΔY | is the basis for using the route of this diagram, and ΔX = 0 or Δ
If Y = 0, it indicates the vertical and horizontal directions in FIG. 2, and | ΔX |
= | ΔY | indicates four oblique directions of 45 degrees.
As long as there are no obstacles on the way, there is a single line from the starting point to the destination point.

第3図は第2の配線経路決定パターンであり、縦方向
又は横方向+45度(ルート1)、若しくは45度+縦方向
又は横方向(ルート2)で示される場合である。
FIG. 3 shows a second wiring route determination pattern, which is indicated by a vertical or horizontal direction of +45 degrees (route 1), or a case of 45 degrees and a vertical or horizontal direction (route 2).

上述のような基本配線経路決定パターンでは決定でき
ないときは、以下の第4図を基本検索方向として、後述
する方向決定パターンで配線経路を決定することにな
る。
If the basic route determination pattern cannot be determined using the above-described basic wiring route determination pattern, the wiring route is determined using a direction determination pattern described later with the following FIG. 4 as the basic search direction.

第4図は方向検索の基本パターンであり、上記の第2,
3図では決定できない場合に、配線経路の検索方向を1
〜8の番号で表し、後述する方向決定パターンで方向を
決定する。即ち、上記の8つの方向を下記の基本パター
ンに適用する。
FIG. 4 shows the basic pattern of the direction search, and
3 If the direction cannot be determined in Fig.
The direction is determined by a direction determination pattern described later. That is, the above eight directions are applied to the following basic patterns.

出発点からの出発方向の決定パターン ΔX=0、ΔY>0の時、 2→4→3→1→5の順序で探索 ΔX=0、ΔY<0の時、 8→6→7→1→5の順序で探索 ΔY=0の時、 2→8→1→3→7の順序で探索 ΔX≧|ΔY|、ΔY>0の時、 2→3→1→8→4の順序で探索 ΔX≧|ΔY|、ΔY<0の時、 8→7→1→6→2の順序で探索 ΔX≦|ΔY|、ΔY>0の時、 2→1→3→8→4の順序で探索 ΔX≦|ΔY|、ΔY<0の時、 8→1→7→6→2の順序で探索 これらの7パターンを第1のテーブルに格納する。Determining pattern of departure direction from starting point When ΔX = 0, ΔY> 0, search in order of 2 → 4 → 3 → 1 → 5 When ΔX = 0, ΔY <0, 8 → 6 → 7 → 1 → Search in the order of 5 When ΔY = 0, search in the order of 2 → 8 → 1 → 3 → 7 ΔX ≧ | ΔY |, When ΔY> 0, search in the order of 2 → 3 → 1 → 8 → 4 ΔX When ≧ | ΔY |, ΔY <0, search in the order of 8 → 7 → 1 → 6 → 2. When ΔX ≦ | ΔY |, ΔY> 0, search in the order of 2 → 1 → 3 → 8 → 4 ΔX When ≦ | ΔY |, ΔY <0, search in the order of 8 → 1 → 7 → 6 → 2 These seven patterns are stored in the first table.

次に、出発後の方向変更を下記の基本パターンで行
う。
Next, the direction change after departure is performed according to the following basic pattern.

出発後の変更方向の決定パターン |ΔX|>|ΔY|、ΔX>0の時、 変更方向=1、 移動量=||ΔX|−|ΔY|| |ΔX|>|ΔY|、ΔX<0の時、 変更方向=5、 移動量=||ΔX|−|ΔY|| |ΔY|>|ΔX|、ΔY>0の時、 変更方向=3、 移動量=||ΔX|−|ΔY|| |ΔY|>|ΔX|、ΔY<0の時、 変更方向=7、 移動量=||ΔX|−|ΔY|| |ΔX|=|ΔY|、ΔX>0,ΔY>0の時、 変更方向=2、 移動量=|ΔX| |ΔX|=|ΔY|、ΔX>0,ΔY<0の時、 変更方向=8、 移動量=|ΔX| |ΔX|=|ΔY|、ΔX<0,ΔY<0の時、 変更方向=6、 移動量=|ΔX| |ΔX|=|ΔY|、ΔX<0,ΔY>0の時、 変更方向=4、 移動量=|ΔX| 上記の変更方向はこの点における優先方向を示し、移
動量はその方向に最大進める移動量を示している。
Determining pattern of change direction after departure | ΔX |> | ΔY |, ΔX> 0, change direction = 1, travel amount = || ΔX | − | ΔY || | ΔX |> | ΔY |, ΔX <0 , Change direction = 5, travel amount = || ΔX | − | ΔY ||| ΔX |, ΔY> 0, change direction = 3, travel amount = || ΔX | − | ΔY | | | ΔY |> | ΔX |, ΔY <0, change direction = 7, travel amount = || ΔX | − | ΔY || | ΔX | = | ΔY |, ΔX> 0, ΔY> 0, When the change direction = 2, the movement amount = | ΔX || ΔX | = | ΔY |, ΔX> 0, ΔY <0, the change direction = 8, the movement amount = | ΔX || ΔX | = | ΔY |, ΔX < 0, ΔY <0, change direction = 6, travel amount = | ΔX | | ΔX | = | ΔY |, and ΔX <0, ΔY> 0, change direction = 4, travel amount = | ΔX | The change direction indicates the priority direction at this point, and the movement amount indicates the movement amount to be advanced in that direction.

これらの8パターンを第2のテーブルに格納する。 These eight patterns are stored in the second table.

次に障害物に突き当たった場合の方向変更の基本パタ
ーンを示す。
Next, a basic pattern of a direction change when the vehicle collides with an obstacle will be described.

障害物に突き当たった場合の変更方向の決定パターン 方向=1、ΔY>0の時、 変更方向=現在方向+(1→2→−1)の順 方向=1、ΔY<0の時、 変更方向=現在方向+(−1→−2→1)の順 方向=2、|ΔX|≧|ΔY|の時、 変更方向=現在方向+(−1→−2→1)の順 方向=2、|ΔX|<|ΔY|の時、 変更方向=現在方向+(1→2→−1)の順 方向=3、ΔX≧0の時、 変更方向=現在方向+(−1→−2→1)の順 方向=3、ΔX<0の時、 変更方向=現在方向+(1→2→−1)の順 方向=4、|ΔX|≧|ΔY|の時、 変更方向=現在方向+(1→2→−1)の順 方向=4、|ΔX|<|ΔY|の時、 変更方向=現在方向+(−1→−2→1)の順 方向=5、ΔY≧0の時、 変更方向=現在方向+(−1→−2→1)の順 方向=5、ΔY<0の時、 変更方向=現在方向+(1→2→−1)の順 方向=6、|ΔX|≧|ΔY|の時、 変更方向=現在方向+(−1→−2→1)の順 方向=6、|ΔX|<|ΔY|の時、 変更方向=現在方向+(1→2→−1)の順 方向=7、ΔX≧0の時、 変更方向=現在方向+(1→2→−1)の順 方向=7、ΔX<0の時、 変更方向=現在方向+(−1→−2→1)の順 方向=8、|ΔX|≧|ΔY|の時、 変更方向=現在方向+(1→2→−1)の順 方向=8、|ΔX|<|ΔY|の時、 変更方向=現在方向+(−1→2→1)の順 但し、方向=0の時、方向=8 方向=−1の時、方向=7 方向=9の時、方向=1 方向=10の時、方向=2 そして、3方向全て移動できない場合は経路が無いと
判断する。
Determining pattern of change direction when hitting obstacle Obstruction = 1, ΔY> 0 Change direction = current direction + (1 → 2 → −1) forward direction = 1, ΔY <0 Change direction = Current direction + (-1 → -2 → 1) forward direction = 2, when | ΔX | ≧ | ΔY |, change direction = current direction + (-1 → -2 → 1) forward direction = 2, When | ΔX | <| ΔY |, change direction = current direction + (1 → 2 → −1) forward direction = 3, when ΔX ≧ 0, change direction = current direction + (− 1 → −2 → 1) ) Forward direction = 3, when ΔX <0, change direction = current direction + (1 → 2 → −1) forward direction = 4, when | ΔX | ≧ | ΔY |, change direction = current direction + ( 1 → 2 → −1) forward direction = 4, when | ΔX | <| ΔY |, change direction = current direction + (− 1 → −2 → 1) forward direction = 5, when ΔY ≧ 0, Change direction = current direction + (− 1 → −2 → 1) forward direction = 5, When ΔY <0, change direction = current direction + (1 → 2 → −1) forward direction = 6, when | ΔX | ≧ | ΔY |, change direction = current direction + (− 1 → −2 → 1) ) Forward direction = 6, when | ΔX | <| ΔY |, change direction = current direction + (1 → 2 → −1) forward direction = 7, when ΔX ≧ 0, change direction = current direction + ( 1 → 2 → −1) forward direction = 7, ΔX <0, change direction = current direction + (− 1 → −2 → 1) forward direction = 8, | ΔX | ≧ | ΔY | Change direction = current direction + forward direction of (1 → 2 → -1) Direction = 8, when | ΔX | <| ΔY |, change direction = current direction + (-1 → 2 → 1) order, where direction = 0, direction = 8, direction = -1, direction = 7, direction = 9, direction = 1, direction = 10, direction = 2. If all three directions cannot be moved, it is determined that there is no route. .

これらの16のパターンを第3のテーブルに格納する。 These 16 patterns are stored in the third table.

出発方向を決定後、格子上の現在位置と目的点間のΔ
X,ΔYから探索方向と移動量を求め探索方向の格子を調
べながら移動する。移動中に障害物に突き当たった場
合、最適な方向に方向変更し、方向変更後再びその地点
と目的点間のΔX,ΔYから探索方向と移動量を求める。
この処理を続けることにより目的点に到達することが可
能である。
After determining the departure direction, Δ between the current position on the grid and the destination point
The search direction and the amount of movement are obtained from X and ΔY, and the search direction is checked and the grid is moved. If the vehicle collides with an obstacle while moving, the direction is changed to an optimal direction, and after the direction is changed, the search direction and the moving amount are obtained again from ΔX and ΔY between the point and the target point.
By continuing this processing, it is possible to reach the target point.

第5図及び第6図は本発明の一実施例フローチャート
である。
FIGS. 5 and 6 are flowcharts of one embodiment of the present invention.

第5図は第2,3図の基本配線経路決定パターンに合致
する場合である。
FIG. 5 shows a case where the pattern matches the basic wiring route determination pattern shown in FIGS.

第5図において、先ず、出発点と目的点の格子座標を
求める(1)。出発点のX座標と目的点のX座標を比較
する(2)。ここでは処理の方向を左から右に向かって
進めるとする。出発点のX座標が目的点のX座標より大
きいときは出発点と目的点を入れ換えることになる
(3)。出発点のX座標が目的点のX座標より小さいと
きは、出発点のX座標と目的点のX座標の差(ΔX)と
出発点のY座標と目的点のY座標の差(ΔY)を求める
(4)。その結果、ΔX=0又はΔY=0又は|ΔX|=
|ΔY|か否かを判断する(5)。これらのいずれかを満
足する場合は、上下左右方向か斜め4方向を示し第2図
のパターンに合致することになり、出発点と目的点は1
本線で結ばれる(6)。
In FIG. 5, first, grid coordinates of a starting point and a destination point are obtained (1). The X coordinate of the starting point is compared with the X coordinate of the destination point (2). Here, it is assumed that the processing direction proceeds from left to right. When the X coordinate of the starting point is larger than the X coordinate of the destination point, the starting point and the destination point are exchanged (3). When the X coordinate of the starting point is smaller than the X coordinate of the destination point, the difference between the X coordinate of the starting point and the X coordinate of the destination point (ΔX) and the difference between the Y coordinate of the starting point and the Y coordinate of the destination point (ΔY) are calculated. Ask (4). As a result, ΔX = 0 or ΔY = 0 or | ΔX | =
It is determined whether or not | ΔY | (5). If any of these conditions is satisfied, it indicates the up / down / left / right direction or the diagonal four directions and matches the pattern of FIG. 2, and the starting point and the destination point are 1
They are connected by a main line (6).

これらのいずれにも合致しない場合は、つぎに第3図
のパターンに合致するか否かであり、先ず、ルート1の
ケースとして縦又は横+斜めの2本線で結べるか否か判
断し(7)、そうでなければ斜め+縦又は横の2本線で
結べるか否か判断する(8)。上述のステップ6,7,8で
ない場合は次の第6図のフローチャートに移る。そして
ステップ6,7,8にて1本線で結べる場合、2本線で結べ
る場合は第2,3図で探索できることになり(9)、探索
を行う。
If none of these matches, it is next determined whether or not the pattern of FIG. 3 is matched. First, it is determined whether or not the route 1 can be connected by two vertical or horizontal + diagonal lines (7). ), Otherwise, it is determined whether or not the two lines can be connected diagonally + vertically or horizontally (8). If it is not the above-mentioned steps 6, 7, and 8, the process proceeds to the flowchart of FIG. In Steps 6, 7, and 8, when the connection can be made by one line, and when the connection can be made by two lines, the search can be performed in FIGS. 2 and 3 (9), and the search is performed.

第2,3図では探索できない場合に第1,2,3のテーブルを
参照して配線経路を決定する処理フローチャートであ
る。第7図は第6図の処理の一例である。
2 and 3 are processing flowcharts for determining a wiring route by referring to the first, second, and third tables when a search cannot be performed. FIG. 7 is an example of the processing of FIG.

先ず、出発方向を決定する第1のテーブルを参照し
て、既に求めた、ΔX,ΔYから出発方向を決定する
(1)。次に決定した方向に「1」(1格子)進む
(2)。現在位置と目的点との座標差(ΔX,ΔY)を用
いて、第2のテーブルを参照し、進むべき方向である変
更方向とその方向に進むことが可能な最大移動量を算出
し、進むべき方向(変更方向)に最大移動量となるまで
一つづつ進める(5)。この移動を進め目的点に到達し
たか否か判断し(6)、到達していない場合には次に障
害物に突き当たったか否か判断し(7)、障害物に突き
当たった場合には、障害物に突き当たった場合の第3の
テーブルを参照し、障害物に突き当たる1つ前の位置と
目的点とのΔX,ΔYより方向変更を行う(8)。そし
て、方向変更できるか否か判断し(9)、できる場合に
は変更した方向に「1」進む(10)。
First, with reference to the first table for determining the departure direction, the departure direction is determined from the already obtained ΔX and ΔY (1). Next, it advances by "1" (one grid) in the determined direction (2). Using the coordinate difference (ΔX, ΔY) between the current position and the destination point, referring to the second table, calculate the change direction that is the direction to go and the maximum movement amount that can go in that direction, and go forward. It advances one by one until the maximum movement amount is reached in the power direction (change direction) (5). By proceeding this movement, it is determined whether the vehicle has reached the target point (6). If it has not arrived, it is next determined whether it has hit an obstacle (7). Referring to the third table when the object collides, the direction is changed from ΔX and ΔY between the position immediately before the object collides with the obstacle and the target point (8). Then, it is determined whether or not the direction can be changed (9), and if it can be changed, the process proceeds by "1" in the changed direction (10).

以下、ステップ3からこの手順を繰り返して行い目的
点までの配線経路を決定する。尚、ステップ6にて目的
点に到達した場合は探索が終了するが(11)、ステップ
1,4,9にて出発方向が決定できない場合、方向変更出来
ない場合等は探索できず(12)、終了する。
Hereinafter, this procedure is repeated from step 3 to determine the wiring route to the target point. Note that the search is terminated when the target point is reached in step 6 (11).
If the departure direction cannot be determined or the direction cannot be changed in steps 1, 4, and 9, search cannot be performed (12), and the process ends.

第7図は配線経路の決定の一例である。図示のように
(a)図から出発し(d)図で配線経路が決定する。図
中、Sは出発点、Tは目的点、斜線部分は障害物、散点
部分は別の障害物である。
FIG. 7 is an example of determining a wiring route. As shown in the figure, starting from the diagram (a), the wiring route is determined in the diagram (d). In the figure, S is a starting point, T is a destination point, a hatched portion is an obstacle, and a scattered portion is another obstacle.

(a)において、 ΔX=5(目的点のX座標7−出発点のX座標2)、
ΔY=4(目的点のY座標5−出発点のY座標1)よ
り、第1テーブルのを参照して出発方向は2→3→1
→8→4となる。第4図を参照して、座標(3,2)の方
向2は障害物が有るため進めない。座標(2,2)の方向
3は障害物が有るためやはり進めない。座標(3,1)の
方向1は障害物がないため進めることができ、この方向
に出発方向が決定する。
In (a), ΔX = 5 (X coordinate 7 of destination point−X coordinate 2 of starting point),
From ΔY = 4 (Y coordinate of destination point−Y coordinate 1 of starting point), the departure direction is 2 → 3 → 1 with reference to the first table.
→ 8 → 4. Referring to FIG. 4, the direction 2 of the coordinates (3, 2) cannot be advanced because there is an obstacle. The direction 3 of the coordinates (2, 2) cannot be advanced because there is an obstacle. The direction 1 of the coordinates (3,1) can proceed because there is no obstacle, and the departure direction is determined in this direction.

現在位置は上記であり、この座標はΔX=4、ΔY
=4であるから変更方向を格納する第2のテーブルの
を参照して、方向は2、移動量はΔX(=4)となる。
しかし、第4図の「2」の方向の座標(4,2)は障害物
があるため進めず、障害物のある場合の方向変更を第3
のテーブルにより行う。
The current position is described above, and the coordinates are ΔX = 4, ΔY
Since = 4, the direction is 2 and the moving amount is ΔX (= 4) with reference to the second table storing the change direction.
However, the coordinates (4, 2) in the direction of “2” in FIG. 4 cannot be advanced because there is an obstacle, and the direction change when there is an obstacle is performed in the third direction.
This is performed using the table.

現在方向は2、ΔX=4、ΔY=4より変更方向は、
第3のテーブルのを参照して現在方向+(−1又は−
2又は1)の順で探索する。方向2−1は障害物がない
から変換方向が決定され座標(4,1)となる。
The current direction is 2, ΔX = 4, ΔY = 4, and the change direction is
Referring to the third table, the current direction + (-1 or-
Search in the order of 2 or 1). Since the direction 2-1 has no obstacle, the conversion direction is determined and becomes the coordinate (4, 1).

(b)において、 現在位置ではΔX=3、ΔY=4であるから、第2
のテーブルのから進む方向は3であり、移動量はΔY
−|ΔX|より1となる。しかし、座標(4,2)には障害
物があるため進めず、方向変更を行う。
In (b), ΔX = 3 and ΔY = 4 at the current position.
Is 3 and the moving amount is ΔY
− | ΔX | However, since there is an obstacle at the coordinates (4, 2), the direction is changed without proceeding.

現在方向は3、ΔX=3、ΔY=4より第3のテーブ
ルのより変更方向は現在方向+(−1又は−2又は
1)で探索する。そして、方向3−1は障害物があるた
め進めない。方向3−2は障害物がないため進めること
ができ変更方向は座標(5,1)に決定される。
Since the current direction is 3, ΔX = 3, and ΔY = 4, the change direction in the third table is searched in the current direction + (− 1 or −2 or 1). The direction 3-1 cannot be advanced because there is an obstacle. The direction 3-2 can be advanced because there is no obstacle, and the change direction is determined at the coordinates (5, 1).

現在位置ではΔX=2、ΔY=4より、第2のテー
ブルより方向は3、移動量は2、しかし座標(5,3)に
別の障害物があるため、移動量1だけ移動され座標(5,
2)になり、方向変更を行う。
At the current position, since ΔX = 2 and ΔY = 4, the direction is 3 from the second table, the movement amount is 2, but there is another obstacle at the coordinates (5, 3). Five,
2) and change direction.

(c)において、 現在方向は3であり、ΔX=2、ΔY=3であるか
ら、第3のテーブルのより変更方向は、現在方向+
(−1又は−2又は1)である。
In (c), since the current direction is 3, ΔX = 2, and ΔY = 3, the change direction of the third table is the current direction +
(-1 or -2 or 1).

方向3−1は障害物がないため変更方向を座標(6,
3)に決定する。
The direction 3-1 has no obstacles, so the change direction is represented by coordinates (6,
Decide in 3).

現在位置は座標(6,3)であるから、ΔX=1、Δ
Y=2より第2のテーブルのを参照して方向は3、移
動量は1、しかし、座標(6,4)に別の障害物があるた
め方向変更を行う。
Since the current position is at coordinates (6,3), ΔX = 1, Δ
Since Y = 2, referring to the second table, the direction is 3, the moving amount is 1, but the direction is changed because there is another obstacle at the coordinates (6, 4).

現在方向は3、ΔX=1、ΔY=2より、第3のテー
ブルのを参照して変更方向は現在方向+(−1,−2,又
は1)。方向3−1は別の障害物があるため進めない。
そして方向3−2は障害物がないため、座標(7,3)に
移動する。(d)において、現在位置は座標(7,
3)であるから、ΔX=0,ΔY=2より、第2のテーブ
ルを参照して方向は3、移動量は2である。しかし、座
標(7,3)、(7,4)には別の共有格子があるため方向変
更を行う。
Since the current direction is 3, ΔX = 1, and ΔY = 2, the change direction is the current direction + (− 1, −2, or 1) with reference to the third table. The direction 3-1 does not proceed because there is another obstacle.
In the direction 3-2, since there is no obstacle, the direction 3-2 moves to the coordinates (7, 3). In (d), the current position is represented by coordinates (7,
Since ΔX = 0 and ΔY = 2, the direction is 3 and the moving amount is 2 with reference to the second table. However, since the coordinates (7, 3) and (7, 4) have different shared grids, the direction is changed.

現在方向は3であり、ΔX=0、ΔY=2より変更方
向は現在方向+(−1又は−2又は1)。方向3−1は
障害物がないため変更方向を座標(8,4)に決定する。
The current direction is 3, and the change direction is the current direction + (− 1 or −2 or 1) from ΔX = 0 and ΔY = 2. Since the direction 3-1 has no obstacle, the change direction is determined to the coordinates (8, 4).

そして、ΔX=−1、ΔY=1であるから、第2のテ
ーブルより方向は4、移動量は1となり目的点Tに到
達する。
Then, since ΔX = −1 and ΔY = 1, the direction is 4 and the moving amount is 1 from the second table, and the target point T is reached.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明ではチェックの対象とな
る格子は探索方向の格子のみであり、出発方向、変更方
向は予め出発点を持っているため判断が速く、変更でき
る方向がない時点で「経路がない」と判断するため処理
時間が大幅に削減できる。さらに、経路変更方向は常に
目的点までの距離を詰めるようになっているため最短ル
ートで探索できる。
As described above, in the present invention, the grid to be checked is only the grid in the search direction, and since the departure direction and the change direction have a starting point in advance, the determination is fast, and when there is no direction that can be changed, Since there is no path, the processing time can be greatly reduced. Further, since the distance to the destination point is always reduced in the route change direction, it is possible to search with the shortest route.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の原理構成図、 第2図は第1の配線経路決定パターン、 第3図は第2の配線経路決定パターン、 第4図は方向検索パターン、 第5図は第1及び第2の配線経路決定パターンに基づく
実施例フローチャート、 第6図は第1,2,3のテーブルに基づく配線経路決定の実
施例フローチャート、 第7図(a)〜(d)は第6図フローチャートに基づく
出発点から目的点までの手順の一例、 第8図は“Lee"のアルゴリズムの説明図、及び 第9,10図は従来の問題点の説明図である。 (符号の説明) 1……配線経路決定パターン、 2……検索テーブル、 3……第1のテーブル、 4……第2のテーブル、 5……第3のテーブル。
FIG. 1 is a diagram illustrating the principle of the present invention, FIG. 2 is a first wiring path determination pattern, FIG. 3 is a second wiring path determination pattern, FIG. 4 is a direction search pattern, FIG. FIG. 6 is a flowchart of an embodiment based on the second wiring route determination pattern, FIG. 6 is a flowchart of an embodiment of wiring route determination based on the first, second, and third tables, and FIGS. 7 (a) to (d) are flowcharts of FIG. An example of the procedure from the starting point to the destination based on the algorithm, FIG. 8 is an explanatory diagram of the "Lee" algorithm, and FIGS. 9 and 10 are explanatory diagrams of the conventional problems. (Explanation of reference numerals) 1... Wiring route determination pattern, 2... Search table, 3... 1st table, 4... 2nd table, 5.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】現在位置と目的位置とを結ぶルートを求め
るCADシステムにおいて、 現在位置と目的位置との座標差と予め規定されたパター
ンによって、現在位置と目的位置を結ぶルートを求める
ルート決定手段と、 前記ルート決定手段で決定したルート上に障害物がある
か否かを判定する判定手段と、 前記判定手段で決定したルート上に障害物があると判定
した場合に、現在位置の座標と目的位置の座標に基づい
て、進むべき方向の優先順位を求める方向算出手段と、 現在位置の回りの座標点の中から、前記優先順位に基づ
いて、障害物のない座標点を次の現在位置の座標とする
座標点移動手段と、 を具備することを特徴とするCADシステム。
1. A CAD system for obtaining a route connecting a current position and a target position, wherein the route determining means obtains a route connecting the current position and the target position based on a coordinate difference between the current position and the target position and a predetermined pattern. And determining means for determining whether there is an obstacle on the route determined by the route determining means; and determining that there is an obstacle on the route determined by the determining means, Direction calculating means for obtaining a priority order of a direction to be traveled based on the coordinates of the destination position; and, among coordinate points around the current position, a coordinate point having no obstacle based on the priority order. A CAD system comprising: a coordinate point moving unit that sets coordinates of (1) and (2).
JP1224607A 1989-09-01 1989-09-01 CAD system Expired - Fee Related JP2607694B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1224607A JP2607694B2 (en) 1989-09-01 1989-09-01 CAD system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1224607A JP2607694B2 (en) 1989-09-01 1989-09-01 CAD system

Publications (2)

Publication Number Publication Date
JPH0390965A JPH0390965A (en) 1991-04-16
JP2607694B2 true JP2607694B2 (en) 1997-05-07

Family

ID=16816379

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1224607A Expired - Fee Related JP2607694B2 (en) 1989-09-01 1989-09-01 CAD system

Country Status (1)

Country Link
JP (1) JP2607694B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6014192B1 (en) * 2015-03-27 2016-10-25 本田技研工業株式会社 Control equipment for unmanned work vehicles

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6232516A (en) * 1985-08-06 1987-02-12 Shinko Electric Co Ltd Optimum route searching method for moving robot
JPS63200207A (en) * 1987-02-14 1988-08-18 Fujitsu Ltd Method for searching moving route
JPH01144120A (en) * 1987-12-01 1989-06-06 Nippon Telegr & Teleph Corp <Ntt> Searching device for hierarchical network route

Also Published As

Publication number Publication date
JPH0390965A (en) 1991-04-16

Similar Documents

Publication Publication Date Title
JPH0550780B2 (en)
EP1335315A2 (en) Dual Dijkstra search for planning multiple paths
CN106679669A (en) Mobile robot path planning method and system
CN113189988B (en) Autonomous path planning method based on Harris algorithm and RRT algorithm composition
CN112731941B (en) Biped robot path planning method and device and biped robot
JP2607694B2 (en) CAD system
JP2003029833A (en) Method for generating autonomic traveling path of traveling object
JP2002007494A (en) System for automatic routing of piping
CN112509132B (en) Ship application-oriented three-dimensional path calculation method
JP3157732B2 (en) Interactive wiring pattern creation system
US5373628A (en) Automatic wiring method
CN116430906B (en) Unmanned aerial vehicle dynamic obstacle avoidance method, system, equipment and medium based on bump translation
JP2914025B2 (en) LSI automatic placement and routing processing method
CN115562296B (en) Robot scheduling method, system and device based on hybrid control strategy
JP3006156B2 (en) Automatic wiring method
JP3006244B2 (en) Automatic wiring method
JP3077383B2 (en) Automatic wiring mechanism for printed circuit board CAD
JPH0950454A (en) Cable laying route setting method
CHOUDHURY et al. Reliable Path Finding Technique for Mobile Robot.
JP2752530B2 (en) Automatic wiring method and device therefor
Burschka et al. Active controlled exploration of 3D environmental models based on a binocular stereo system
JPH0754532B2 (en) Multi-layer simultaneous wiring method
CN117852489A (en) Wiring method, device, equipment, storage medium and product of circuit layout
JPH03233605A (en) Method and device for generating path
CN115639817A (en) Path trajectory correction method, device, equipment and medium

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees