TWI708130B - Path tracing system - Google Patents

Path tracing system Download PDF

Info

Publication number
TWI708130B
TWI708130B TW108140803A TW108140803A TWI708130B TW I708130 B TWI708130 B TW I708130B TW 108140803 A TW108140803 A TW 108140803A TW 108140803 A TW108140803 A TW 108140803A TW I708130 B TWI708130 B TW I708130B
Authority
TW
Taiwan
Prior art keywords
path
vector
module
trajectory tracking
points
Prior art date
Application number
TW108140803A
Other languages
Chinese (zh)
Other versions
TW202119154A (en
Inventor
林家仁
林詠翔
張家喜
賴俊吉
Original Assignee
東元電機股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 東元電機股份有限公司 filed Critical 東元電機股份有限公司
Priority to TW108140803A priority Critical patent/TWI708130B/en
Application granted granted Critical
Publication of TWI708130B publication Critical patent/TWI708130B/en
Publication of TW202119154A publication Critical patent/TW202119154A/en

Links

Images

Abstract

A path tracing system is disclosed in the present invention. The path tracing system includes a positioning module, a path segmentation module, a position vector operation module, a path vector operation module, a path reconstruction module, a tracing vector operation module, and a controlling module. The positioning module is utilized to position a current position. The path segmentation module is utilized to divide a path into a plurality of segments by a plurality of path points. The position vector operation module is utilized to operate a plurality of position vectors. The path vector operation module is utilized to operate a plurality of path vectors. The path reconstruction module is utilized to delete at least one path points by position vectors and path vectors, and reconstruct a remaining path. The controlling module is utilized to control a mobile platform to trace back to the remaining path with moving a shortest distance.

Description

路徑軌跡追蹤系統Path tracking system

本發明係有關於一種系統,尤其是指一種路徑軌跡追蹤系統。The present invention relates to a system, in particular to a path tracking system.

隨著科技的發展,自動導引車、機器人等移動平台技術已經逐漸應用於各個領域。一般來說移動平台皆會遵循一規劃路徑抵達至一目的地。在移動平台脫離規劃路徑的時候,大部分會先旋轉重新定位,並依照重新定位後的位置重新運算規劃一個新的規劃路徑以抵達上述目的地。然而,重新運算規劃路徑會占用移動平台的運算資源,而且,移動平台在原本的規劃路徑上可能有其他待執行的指令動作。With the development of science and technology, mobile platform technologies such as automated guided vehicles and robots have gradually been applied in various fields. Generally speaking, mobile platforms will follow a planned path to reach a destination. When the mobile platform leaves the planned path, most of them will first rotate and reposition, and recalculate and plan a new planned path according to the repositioned position to reach the above destination. However, recalculating the planned path will occupy the computing resources of the mobile platform, and the mobile platform may have other commands to be executed on the original planned path.

有鑒於在先前技術中,移動平台重新運算規劃新的規劃路徑,會占用運算資源,而且可能會使得原來的規劃路徑上待執行的指令動作無法執行。本發明之一主要目的係提供一種路徑軌跡追蹤系統,用以解決先前技術中的至少一個問題。In view of the fact that in the prior art, the mobile platform recalculates and plans a new planning path, which will occupy computing resources and may make it impossible to execute the instructions to be executed on the original planning path. One of the main objectives of the present invention is to provide a path tracking system to solve at least one of the problems in the prior art.

本發明為解決先前技術之問題,所採用之必要技術手段為提供一種路徑軌跡追蹤系統,係設置於一移動平台,包含一定位模組、一路徑分段模組、一位置向量運算模組、一路徑向量運算模組、一路徑重建模組、一軌跡追蹤向量運算模組與一控制模組。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to provide a path trajectory tracking system, which is set on a mobile platform and includes a positioning module, a path segmentation module, a position vector operation module, A path vector operation module, a path reconstruction module, a trajectory tracking vector operation module and a control module.

定位模組,係用以定位移動平台而獲得一目前座標。路徑分段模組,係用以利用複數個路徑點將移動平台所應遵行之一規劃路徑劃分成複數個路段,且每一路徑點具有一路徑點座標。位置向量運算模組,係電性連接定位模組與路徑分段模組,用以接收目前座標與路徑點之路徑點座標,並利用目前座標分別與每一路徑點之路徑點座標運算出一位置向量,藉以運算出複數個上述之位置向量。路徑向量運算模組,係電性連接路徑分段模組,用以利用路徑點中之一者與次一相鄰者定義出一與位置向量相對應之路徑向量。The positioning module is used to position the mobile platform to obtain a current coordinate. The path segmentation module is used to divide a planned path that the mobile platform should follow into a plurality of road sections by using a plurality of path points, and each path point has a path point coordinate. The position vector calculation module is electrically connected to the positioning module and the path segmentation module to receive the current coordinates and the path point coordinates of the path point, and use the current coordinates to calculate a path point coordinate of each path point. The position vector is used to calculate a plurality of the above-mentioned position vectors. The path vector calculation module is electrically connected to the path segmentation module, and is used to define a path vector corresponding to the position vector by using one of the path points and the next neighbor.

路徑重建模組,係電性連接位置向量運算模組與路徑向量運算模組,藉以利用位置向量與路徑向量中之彼此對應者計算出一向量夾角,將向量夾角大於270度與小於90度所對應之路徑點刪除,以將規劃路徑剩餘之部分重建成一殘餘路徑。軌跡追蹤向量運算模組,係電性連接路徑重建模組與定位模組,用以運算出目前座標與殘餘路徑之間的最短距離,據以產生一軌跡追蹤向量。控制模組,係電性連接軌跡追蹤向量運算模組,藉以依據軌跡追蹤向量產生一控制命令,並利用控制命令控制移動平台沿軌跡追蹤向量移動並追跡至殘餘路徑。The path reconstruction module is electrically connected to the position vector operation module and the path vector operation module, so as to calculate a vector included angle by using the position vector and the path vector corresponding to each other, and the vector included angle is greater than 270 degrees and less than 90 degrees. The corresponding path point is deleted to reconstruct the remaining part of the planned path into a residual path. The trajectory tracking vector calculation module is electrically connected to the path reconstruction module and the positioning module to calculate the shortest distance between the current coordinates and the residual path, and thereby generate a trajectory tracking vector. The control module is electrically connected to the trajectory tracking vector calculation module to generate a control command according to the trajectory tracking vector, and use the control command to control the mobile platform to move along the trajectory tracking vector and trace to the residual path.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使路徑軌跡追蹤系統,更包含一路徑產生模組,且路徑產生模組係電性連接路徑分段模組,用以產生規劃路徑。On the basis of the above-mentioned necessary technical means, a subsidiary technical means derived from the present invention is to make the path tracing system further include a path generation module, and the path generation module is electrically connected to the path segmentation module for Generate a planned path.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使路徑軌跡追蹤系統中之位置向量運算模組,包含一位置向量運算單元,且位置向量運算單元係將目前座標分別減去每一路徑點之路徑點座標以運算出位置向量。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the position vector operation module in the path tracking system include a position vector operation unit, and the position vector operation unit reduces the current coordinates respectively Go to the path point coordinates of each path point to calculate the position vector.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使路徑軌跡追蹤系統中之路徑向量運算模組,包含一路徑向量運算單元,且路徑向量運算單元係將上述路徑點中之次一相鄰者減去路徑點中之該者以定義出路徑向量。On the basis of the above-mentioned necessary technical means, one of the subsidiary technical means derived from the present invention is to make the path vector operation module in the path trajectory tracking system include a path vector operation unit, and the path vector operation unit integrates the above path points Next, a neighbor subtracts that one of the path points to define the path vector.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使路徑軌跡追蹤系統中之路徑重建模組,包含一長度運算單元、一餘弦運算單元與一判斷單元。長度運算單元,係用以運算出每一位置向量與每一路徑向量之長度。餘弦運算單元,係電性連接長度運算單元,並利用位置向量與路徑向量中之彼此對應者及其長度計算出向量夾角之一餘弦值。判斷單元,係電性連接餘弦運算單元,用以接收餘弦值,並在確認餘弦值大於0時,判斷出向量夾角係大於270度或小於90度。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the path reconstruction module in the path trajectory tracking system, including a length calculation unit, a cosine calculation unit and a judgment unit. The length calculation unit is used to calculate the length of each position vector and each path vector. The cosine calculation unit is electrically connected to the length calculation unit, and uses the corresponding one of the position vector and the path vector and the length thereof to calculate a cosine value of the vector included angle. The judging unit is electrically connected to the cosine operation unit to receive the cosine value, and when it is confirmed that the cosine value is greater than 0, it is determined that the vector angle is greater than 270 degrees or less than 90 degrees.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使路徑軌跡追蹤系統中之軌跡追蹤向量運算模組,包含一向量運算單元與一距離運算單元。向量運算單元,係利用被刪除之路徑點之最後一者所對應之位置向量與路徑向量運算出一面積值。距離運算單元,係電性連接向量運算單元,並利用面積值與上述路徑向量之長度運算出最短距離。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the trajectory tracking vector calculation module in the path tracking system include a vector calculation unit and a distance calculation unit. The vector calculation unit uses the position vector and the path vector corresponding to the last one of the deleted path points to calculate an area value. The distance calculation unit is electrically connected to the vector calculation unit, and uses the area value and the length of the path vector to calculate the shortest distance.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使路徑軌跡追蹤系統中之軌跡追蹤向量運算模組,更包含一方向判斷單元與一向量產生單元。方向判斷單元,係判斷出一自目標位置朝向殘餘路徑之追跡方向。向量產生單元,係利用最短距離與追跡方向產生軌跡追蹤向量。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to enable the trajectory tracking vector calculation module in the path trajectory tracking system to further include a direction determination unit and a vector generation unit. The direction judging unit judges a tracking direction from the target position to the residual path. The vector generation unit uses the shortest distance and the tracking direction to generate the trajectory tracking vector.

承上所述,本發明所提供之路徑軌跡追蹤系統,利用定位模組、路徑分段模組、位置向量運算模組與路徑向量運算模組運算出位置向量與路徑向量,並利用路徑重建模組刪除部分路徑點,並將規劃路徑剩餘的部分重建成殘餘路徑,再控制移動平台以最短距離追跡至殘餘路徑。因此,本發明可以使移動平台不必重新定位並且重新運算新的規劃路徑,而是直接將舊有的規劃路徑中的部分路徑點刪除,並以最短距離追跡至殘餘路徑,使移動平台不必重新定位重新運算新的規畫路徑並且也可以執行舊有的規劃路徑上的待執行的指令動作。As mentioned above, the path trajectory tracking system provided by the present invention utilizes positioning module, path segmentation module, position vector operation module and path vector operation module to calculate position vector and path vector, and uses path remodeling The group deletes part of the path points and reconstructs the remaining part of the planned path into a residual path, and then controls the mobile platform to trace to the residual path in the shortest distance. Therefore, the present invention can eliminate the need for the mobile platform to relocate and recalculate the new planned path, but directly delete part of the path points in the old planned path, and trace to the residual path with the shortest distance, so that the mobile platform does not need to be repositioned The new planning path is recalculated and the instructions to be executed on the old planning path can also be executed.

下面將結合示意圖對本發明的具體實施方式進行更詳細的描述。根據下列描述和申請專利範圍,本發明的優點和特徵將更清楚。需說明的是,圖式均採用非常簡化的形式且均使用非精準的比例,僅用以方便、明晰地輔助說明本發明實施例的目的。The specific embodiments of the present invention will be described in more detail below with reference to the schematic diagram. According to the following description and the scope of patent application, the advantages and features of the present invention will be more clear. It should be noted that the drawings all adopt very simplified forms and all use imprecise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

請一併參閱第一圖與第二圖,其中,第一圖係顯示本發明較佳實施例所提供之路徑軌跡追蹤系統之方塊圖;以及,第二圖係顯示本發明較佳實施例所提供之路徑軌跡追蹤系統設置於移動平台之立體示意圖。如圖所示,一種路徑軌跡追蹤系統1設置於一移動平台2。移動平台2則是位於一移動空間S。在本實施例中,移動平台2繪製一機器人示意,但不以此為限,也可為自動導引車、移動載具。Please refer to the first and second figures together, in which, the first figure is a block diagram showing the path tracking system provided by the preferred embodiment of the present invention; and the second figure is the block diagram showing the preferred embodiment of the present invention The three-dimensional schematic diagram of the path tracking system provided on the mobile platform. As shown in the figure, a path tracking system 1 is installed on a mobile platform 2. The mobile platform 2 is located in a mobile space S. In this embodiment, the mobile platform 2 draws a robot schematic, but it is not limited to this, and can also be an automatic guided vehicle or a mobile vehicle.

路徑軌跡追蹤系統1包含一定位模組11、一路徑分段模組12、一位置向量運算模組13、一路徑向量運算模組14、一路徑重建模組15、一軌跡追蹤向量運算模組16、一控制模組17與一路徑產生模組18。其中,位置向量運算模組13包含一位置向量運算單元131;路徑向量運算模組14包含一路徑向量運算單元141;路徑重建模組15包含一長度運算單元151、一餘弦運算單元152與一判斷單元153;軌跡追蹤向量運算模組16則是包含一向量運算單元161、一距離運算單元162、一方向判斷單元163與一向量產生單元164。The path tracking system 1 includes a positioning module 11, a path segmentation module 12, a position vector calculation module 13, a path vector calculation module 14, a path reconstruction module 15, and a path tracking vector calculation module 16. A control module 17 and a path generation module 18. Among them, the position vector operation module 13 includes a position vector operation unit 131; the path vector operation module 14 includes a path vector operation unit 141; the path reconstruction module 15 includes a length operation unit 151, a cosine operation unit 152 and a judgment Unit 153; the trajectory tracking vector operation module 16 includes a vector operation unit 161, a distance operation unit 162, a direction determination unit 163 and a vector generation unit 164.

接著,請一併參閱第一圖至第七圖,其中,第三圖係顯示本發明較佳實施例所提供之路徑分段模組劃分規劃路徑之示意圖;第四圖係顯示本發明較佳實施例所提供之位置向量運算模組、路徑向量運算模組與路徑重建模組運算向量與向量夾角之示意圖;第五圖係顯示本發明較佳實施例所提供之路徑重建模組重建殘餘路徑之示意圖;第六圖係顯示本發明較佳實施例所提供之軌跡追蹤向量運算模組產生軌跡追蹤向量之示意圖;以及,第七圖係顯示本發明較佳實施例所提供之控制模組控制移動平台追跡之示意圖。如圖所示,移動平台2所在的移動空間S對應到一地圖M。Next, please refer to Figures 1 to 7 together. Figure 3 is a schematic diagram showing the path segmentation module provided by the preferred embodiment of the present invention for dividing planned paths; Figure 4 shows the preferred embodiment of the present invention. The position vector calculation module, the path vector calculation module, and the path reconstruction module provided by the embodiment are schematic diagrams of the calculation vector and the angle between the vector; the fifth figure shows the path reconstruction module provided by the preferred embodiment of the present invention to reconstruct the residual path The sixth diagram is a schematic diagram showing the trajectory tracking vector generated by the trajectory tracking vector calculation module provided by the preferred embodiment of the present invention; and the seventh diagram shows the control module control provided by the preferred embodiment of the present invention Schematic diagram of mobile platform tracking. As shown in the figure, the mobile space S where the mobile platform 2 is located corresponds to a map M.

移動平台2應沿著一規劃路徑P移動,但是目前移動平台2並不在規劃路徑P上。另外,需說明的是,將規劃路徑P繪製於實際的移動空間S上僅是為了明確說明本發明的技術內容。規劃路徑P並不會實際存在於實際的移動空間S上,而是存在於虛擬的地圖M裡。The mobile platform 2 should move along a planned path P, but the mobile platform 2 is not currently on the planned path P. In addition, it should be noted that drawing the planned path P on the actual moving space S is only to clearly illustrate the technical content of the present invention. The planned path P does not actually exist in the actual moving space S, but in the virtual map M.

定位模組11會定位移動空間S中的移動平台2,而在地圖M上獲得一相對應的目前座標LC。定位模組11可為GPS定位裝置、藍芽定位裝置等具有定位功能的裝置或器件。The positioning module 11 will locate the mobile platform 2 in the mobile space S, and obtain a corresponding current coordinate LC on the map M. The positioning module 11 may be a device or device with a positioning function, such as a GPS positioning device and a Bluetooth positioning device.

路徑分段模組12利用複數個路徑點(在此繪製五個路徑點P1、P2、P3、P4、P5示意)將規劃路徑P劃分成複數個路段(在此繪製四個路段PP1、PP2、PP3、PP4示意),如第三圖所示。其中,路徑點P1、P2、P3、P4、P5各具有一路徑點座標,且路徑點P1、P2、P3、P4、P5為移動平台2應遵循移動的順序,也可以將路徑點P1視為起點,路徑點P5視為終點。The path segmentation module 12 uses a plurality of path points (drawing five path points P1, P2, P3, P4, P5 here) to divide the planned path P into a plurality of road sections (drawing four road sections PP1, PP2, PP3 and PP4), as shown in the third figure. Among them, the way points P1, P2, P3, P4, P5 each have a path point coordinate, and the way points P1, P2, P3, P4, P5 are the mobile platform 2 should follow the order of movement, or the way point P1 can be regarded as Starting point, the way point P5 is regarded as the end point.

在本實施例中,路徑分段模組12是利用規劃路徑P的轉折點與頭尾設定路徑點P1、P2、P3、P4、P5,但不以此為限。路徑分段模組12也可以利用等距離設定路徑點P1、P2、P3、P4、P5,也可以利用等時間間間距設定路徑點P1、P2、P3、P4、P5,也可以利用規劃路徑P的曲率去設定路徑點P1、P2、P3、P4、P5。實務上,路徑點P1、P2、P3、P4、P5的座標資訊為笛卡爾座標系。In this embodiment, the path segmentation module 12 uses the turning points and the beginning and the end of the planned path P to set path points P1, P2, P3, P4, and P5, but it is not limited thereto. The path segmentation module 12 can also use equal distances to set path points P1, P2, P3, P4, P5, or use equal time intervals to set path points P1, P2, P3, P4, P5, or use planning path P To set the path points P1, P2, P3, P4, P5. In practice, the coordinate information of the path points P1, P2, P3, P4, and P5 is the Cartesian coordinate system.

位置向量運算模組13電性連接定位模組11與路徑分段模組12,接收目前座標LC與路徑點P1、P2、P3、P4、P5的路徑點座標。位置向量運算單元131便將目前座標LC分別減去路徑點P1、P2、P3、P4、P5的路徑點座標,以分別形成五個位置向量VL1、VL2、VL3、VL4、VL5。The position vector calculation module 13 is electrically connected to the positioning module 11 and the path segmentation module 12, and receives the current coordinates LC and the path point coordinates of the path points P1, P2, P3, P4, and P5. The position vector calculation unit 131 subtracts the path point coordinates of the path points P1, P2, P3, P4, and P5 from the current coordinates LC to form five position vectors VL1, VL2, VL3, VL4, and VL5, respectively.

路徑向量運算模組14電性連接路徑分段模組12,接收路徑點P1、P2、P3、P4、P5的路徑點座標。路徑向量運算單元141利用路徑點P1、P2、P3、P4、P5的路徑點座標中的一者與次一相鄰者定義出一對應位置向量的路徑向量。位置向量運算模組13與路徑向量運算模組14可為處理器、運算器、運算晶片或是其他具有運算功能的裝置。The path vector calculation module 14 is electrically connected to the path segmentation module 12, and receives path point coordinates of the path points P1, P2, P3, P4, and P5. The path vector calculation unit 141 uses one of the path point coordinates of the path points P1, P2, P3, P4, and P5 to define a path vector corresponding to the position vector. The position vector calculation module 13 and the path vector calculation module 14 can be processors, arithmetic units, arithmetic chips, or other devices with arithmetic functions.

更詳細的說明,路徑向量運算單元141將路徑點P2的路徑點座標減去路徑點P1的路徑點座標以形成路徑向量VR1。路徑點P1的路徑點座標為上述路徑點座標中的一者,路徑點P2的路徑點座標則為上述路徑點座標中的次一相鄰者。以此類推,路徑向量運算單元141總共會運算出四個路徑向量VR1、VR2、VR3、VR4。因為路徑點P5後方並無其他路徑點,故僅會運算出上述四個路徑向量。In more detail, the path vector calculation unit 141 subtracts the path point coordinates of the path point P1 from the path point coordinates of the path point P2 to form the path vector VR1. The path point coordinates of the path point P1 are one of the aforementioned path point coordinates, and the path point coordinates of the path point P2 are the next adjacent ones of the aforementioned path point coordinates. By analogy, the path vector calculation unit 141 will calculate a total of four path vectors VR1, VR2, VR3, VR4. Because there are no other path points behind the path point P5, only the above four path vectors will be calculated.

路徑重建模組15電性連接位置向量運算模組13與路徑向量運算模組14,並利用位置向量與路徑向量中之彼此對應者計算出一向量夾角。舉例來說,路徑重建模組15會利用位置向量VL1與路徑向量VR1,計算出位置向量VL1與路徑向量VR1所形成的向量夾角A1。同理,路徑重建模組15還會運算出向量夾角A2、A3、A4。上述位置向量運算模組13、路徑向量運算模組14與路徑重建模組15的作動行為,即為第四圖所示。The path reconstruction module 15 is electrically connected to the position vector operation module 13 and the path vector operation module 14, and uses the corresponding one of the position vector and the path vector to calculate a vector angle. For example, the path reconstruction module 15 uses the position vector VL1 and the path vector VR1 to calculate the vector angle A1 formed by the position vector VL1 and the path vector VR1. Similarly, the path reconstruction module 15 also calculates the vector angles A2, A3, and A4. The actions of the position vector calculation module 13, the path vector calculation module 14, and the path reconstruction module 15 are as shown in the fourth figure.

接著,路徑重建模組15會判斷向量夾角A1、A2、A3、A4,並將向量夾角A1、A2、A3、A4大於270度與小於90度所對應到的路徑點刪除,藉以將規劃路徑P剩餘的部分重建成一殘餘路徑PR。Next, the path reconstruction module 15 will determine the vector angles A1, A2, A3, A4, and delete the path points corresponding to the vector angles A1, A2, A3, A4 greater than 270 degrees and less than 90 degrees, so as to delete the planned path P The remaining part is reconstructed into a residual path PR.

在本實施例中,長度運算單元151會運算出每個向量的長度,包含位置向量VL1、VL2、VL3、VL4、VL5與路徑向量VR1、VR2、VR3、VR4。餘弦運算單元152,係電性連接長度運算單元151,並利用位置向量VL1、VL2、VL3、VL4、VL5、路徑向量VR1、VR2、VR3、VR4以及各自的長度,去計算出向量夾角A1、A2、A3、A4的餘弦值。向量夾角的餘弦值為形成向量夾角的兩向量的內積去除以兩向量長度的乘積。接著,判斷單元153,係電性連接餘弦運算單元152,用以接收上述餘弦值,並在確認餘弦值大於0時,判斷出向量夾角係大於270度與小於90度。在本發明其他實施例中,也可以直接利用角度判斷向量夾角是否大於270度與小於90度。In this embodiment, the length calculation unit 151 calculates the length of each vector, including position vectors VL1, VL2, VL3, VL4, VL5 and path vectors VR1, VR2, VR3, VR4. The cosine calculation unit 152 is electrically connected to the length calculation unit 151, and uses the position vectors VL1, VL2, VL3, VL4, VL5, path vectors VR1, VR2, VR3, VR4 and their respective lengths to calculate the vector angles A1, A2 , A3, A4 cosine value. The cosine of the vector angle is the inner product of the two vectors forming the vector angle divided by the product of the length of the two vectors. Next, the judging unit 153 is electrically connected to the cosine calculation unit 152 to receive the cosine value, and when it is confirmed that the cosine value is greater than 0, it is determined that the vector angle is greater than 270 degrees and less than 90 degrees. In other embodiments of the present invention, the angle may also be directly used to determine whether the vector included angle is greater than 270 degrees and less than 90 degrees.

在本實施例中,大於270度與小於90度的有向量夾角A1、A2。因此,路徑重建模組15會將向量夾角A1、A2所對應到的路徑點P1、P2刪除,並將規劃路徑P剩餘的部分重建成殘餘路徑PR。將路徑點P1、P2刪除的用意在於可以避免移動平台2往路徑點P1、P2移動,也就是避免移動平台2浪費時間往起點的方向走。此時,可以將路徑點P3暫時視為是殘餘路徑PR的起始點。In this embodiment, there are vectored angles A1 and A2 that are greater than 270 degrees and less than 90 degrees. Therefore, the path reconstruction module 15 deletes the path points P1 and P2 corresponding to the vector angles A1 and A2, and reconstructs the remaining part of the planned path P into a residual path PR. The purpose of deleting the waypoints P1 and P2 is to prevent the mobile platform 2 from moving to the waypoints P1 and P2, that is, to prevent the mobile platform 2 from wasting time to go toward the starting point. At this time, the path point P3 can be temporarily regarded as the starting point of the residual path PR.

軌跡追蹤向量運算模組16電性連接路徑重建模組15與定位模組11,並運算目前座標LC與殘餘路徑PR之間的最短距離Hm,藉以產生一軌跡追蹤向量DT。也就是說,雖然可以將路徑點P3暫時視為是殘餘路徑PR的起始點,但是為了使移動平台2可以盡快追蹤至殘餘路徑PR,軌跡追蹤向量運算模組16便會去計算目前座標LC與殘餘路徑PR之間的最短距離Hm,藉以使移動平台2以最短距離Hm,也就是最短時間追蹤至殘餘路徑PR。The trajectory tracking vector calculation module 16 is electrically connected to the path reconstruction module 15 and the positioning module 11, and calculates the shortest distance Hm between the current coordinate LC and the residual path PR to generate a trajectory tracking vector DT. In other words, although the path point P3 can be temporarily regarded as the starting point of the residual path PR, in order to enable the mobile platform 2 to track the residual path PR as soon as possible, the trajectory tracking vector calculation module 16 will calculate the current coordinate LC The shortest distance Hm from the residual path PR, so that the mobile platform 2 can track the residual path PR with the shortest distance Hm, that is, the shortest time.

在本實施例中,向量運算單元161會利用被刪除的路徑點的最後一者所對應的位置向量與路徑向量進行運算,在此為路徑點P2所對應的位置向量VL2與路徑向量VR2。向量運算單元161會計算位置向量VL2與路徑向量VR2的外積再加上絕對值以運算出一面積值。以幾何學觀點來看,即是位置向量VL2與路徑向量VR2所圍成的平行四邊形的面積值。接著,距離運算單元162會利用面積值除以路徑向量VR2的長度,以計算出最短距離Hm,也就是平行四邊形以路徑向量VR2為底的高。平行四邊形的高與底互相垂直,故算出來的高即為最短距離Hm。In this embodiment, the vector operation unit 161 uses the position vector and the path vector corresponding to the last one of the deleted path points to perform operations, here are the position vector VL2 and the path vector VR2 corresponding to the path point P2. The vector calculation unit 161 calculates the outer product of the position vector VL2 and the path vector VR2 and adds the absolute value to calculate an area value. From a geometric point of view, it is the area value of the parallelogram enclosed by the position vector VL2 and the path vector VR2. Next, the distance calculation unit 162 divides the area value by the length of the path vector VR2 to calculate the shortest distance Hm, that is, the height of the parallelogram with the path vector VR2 as the base. The height and base of the parallelogram are perpendicular to each other, so the calculated height is the shortest distance Hm.

方向判斷單元163則會去判斷出一個自目前座標LC朝向路徑向量VR2的追跡方向D。最後,向量產生單元164會利用追跡方向D與最短距離Hm產生軌跡追蹤向量DT,如第五圖與第六圖所示。The direction determining unit 163 determines a tracking direction D from the current coordinate LC toward the path vector VR2. Finally, the vector generating unit 164 uses the tracking direction D and the shortest distance Hm to generate a trajectory tracking vector DT, as shown in the fifth and sixth figures.

控制模組17電性連接軌跡追蹤向量運算模組16,並依據軌跡追蹤向量DT產生一控制命令。接著,再利用控制命令控制移動平台2沿軌跡追蹤向量DT以最短距離Hm追跡至規劃路徑P的殘餘路徑PR。在第七圖中有繪製虛線方框用以示意移動前的移動平台,並標記為移動平台2’。控制模組17可為控制器、微控制器等具有控制功能的裝置或器件。The control module 17 is electrically connected to the trajectory tracking vector calculation module 16, and generates a control command according to the trajectory tracking vector DT. Then, control commands are used to control the mobile platform 2 to track the residual path PR of the planned path P along the trajectory tracking vector DT with the shortest distance Hm. In the seventh figure, a dashed box is drawn to indicate the mobile platform before movement, and it is marked as mobile platform 2'. The control module 17 may be a device or device with a control function, such as a controller or a microcontroller.

在此需說明的是,目前座標LC與規劃路徑P之間具有另一最短距離Hm1,即目前座標LC與路段PP1之間的距離。其中,最短距離Hm1的值會小於最短距離Hm。但是本發明並不是直接控制移動平台2沿最短距離Hm1移動。It should be noted that there is another shortest distance Hm1 between the current coordinate LC and the planned path P, that is, the distance between the current coordinate LC and the road section PP1. Among them, the value of the shortest distance Hm1 will be smaller than the shortest distance Hm. However, the present invention does not directly control the movement of the mobile platform 2 along the shortest distance Hm1.

本發明先刪除不必要的路徑點P1、P2,再運算出目前座標LC與殘餘路徑PR之間的最短距離Hm。一來可以避免移動平台2往回走,二來可以確定移動平台2沿最短距離Hm追跡至殘餘路徑PR。從第五圖可以明顯看出,若直接控制移動平台2沿最短距離Hm1移動,還需要多走部分的路段PP1與部分的路段PP2。The present invention deletes unnecessary path points P1 and P2 first, and then calculates the shortest distance Hm between the current coordinate LC and the residual path PR. First, it can prevent the mobile platform 2 from going back, and second, it can be determined that the mobile platform 2 traces to the residual path PR along the shortest distance Hm. It can be clearly seen from the fifth figure that if the mobile platform 2 is directly controlled to move along the shortest distance Hm1, part of the road section PP1 and part of the road section PP2 need to be traveled more.

綜上所述,本發明所提供的路徑軌跡追蹤系統,可以在移動平台脫離規劃路徑時,刪除不必要的路徑點以避免移動平台往起點方向走,且重建殘餘路徑並使移動平台以最短距離追跡至殘餘路徑。相較於先前技術,移動平台需要旋轉重新定位,並重新規劃新的規劃路徑,本發明不須重新定位,不須重新規劃新的路徑,而是刪除規劃路徑中偏向起點的路徑點,並以最短路徑追跡至刪除路徑點後的殘餘路徑,可以達到更快追跡至殘餘路徑的功效。此外,若原來的規劃路徑上還有其他待執行的指令動作,在本發明控制移動平台追跡回殘餘路徑後,移動平台也可繼續執行上述待執行的指令動作。In summary, the path trajectory tracking system provided by the present invention can delete unnecessary path points when the mobile platform departs from the planned path to prevent the mobile platform from walking toward the starting point, and reconstruct the residual path and make the mobile platform take the shortest distance Trace to the residual path. Compared with the prior art, the mobile platform needs to be rotated and repositioned, and a new planned path needs to be re-planned. The present invention does not need to be re-positioned or re-planned a new path. Instead, the path points in the planned path that are biased toward the starting point are deleted, and Tracing the shortest path to the residual path after deleting the path point can achieve the effect of tracing to the residual path faster. In addition, if there are other command actions to be executed on the original planned path, after the present invention controls the mobile platform to trace back to the residual path, the mobile platform can also continue to execute the aforementioned command actions to be executed.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the detailed description of the preferred embodiments above, it is hoped that the characteristics and spirit of the present invention can be described more clearly, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, its purpose is to cover various changes and equivalent arrangements within the scope of the patent application for the present invention.

1:路徑軌跡追蹤系統1: Path tracking system

11:定位模組11: Positioning module

12:路徑分段模組12: Path segmentation module

13:位置向量運算模組13: Position vector operation module

131:位置向量運算單元131: Position vector operation unit

14:路徑向量運算模組14: Path vector operation module

141:路徑向量運算單元141: Path Vector Operation Unit

15:路徑重建模組15: Path reconstruction module

151:長度運算單元151: Length calculation unit

152:餘弦運算單元152: Cosine Operation Unit

153:判斷單元153: Judgment Unit

16:軌跡追蹤向量運算模組16: trajectory tracking vector operation module

161:向量運算單元161: Vector operation unit

162:距離運算單元162: Distance calculation unit

163:方向判斷單元163: Direction Judgment Unit

164:向量產生單元164: Vector generation unit

17:控制模組17: Control module

18:路徑產生模組18: Path generation module

2、2’:移動平台2, 2’: mobile platform

A1、A2、A3、A4:向量夾角A1, A2, A3, A4: vector angle

D:追跡方向D: Tracking direction

DT:軌跡追蹤向量DT: Trajectory tracking vector

Hm、Hm1:最短距離Hm, Hm1: shortest distance

LC:目前座標LC: current coordinates

M:地圖M: Map

P:規劃路徑P: planning path

PP1、PP2、PP3、PP4:路段PP1, PP2, PP3, PP4: road section

PR:殘餘路徑PR: Residual path

P1、P2、P3、P4、P5:路徑點P1, P2, P3, P4, P5: waypoint

S:移動空間S: mobile space

VL1、VL2、VL3、VL4、VL5:位置向量VL1, VL2, VL3, VL4, VL5: position vector

VR1、VR2、VR3、VR4:路徑向量VR1, VR2, VR3, VR4: path vector

第一圖係顯示本發明較佳實施例所提供之路徑軌跡追蹤系統之方塊圖; 第二圖係顯示本發明較佳實施例所提供之路徑軌跡追蹤系統設置於移動平台之立體示意圖; 第三圖係顯示本發明較佳實施例所提供之路徑分段模組劃分規劃路徑之示意圖; 第四圖係顯示本發明較佳實施例所提供之位置向量運算模組、路徑向量運算模組與路徑重建模組運算向量與向量夾角之示意圖; 第五圖係顯示本發明較佳實施例所提供之路徑重建模組重建殘餘路徑之示意圖; 第六圖係顯示本發明較佳實施例所提供之軌跡追蹤向量運算模組產生軌跡追蹤向量之示意圖;以及 第七圖係顯示本發明較佳實施例所提供之控制模組控制移動平台追跡之示意圖。 The first figure shows a block diagram of the path tracking system provided by the preferred embodiment of the present invention; The second figure is a three-dimensional schematic diagram showing the path tracking system provided by the preferred embodiment of the present invention installed on a mobile platform; The third figure is a schematic diagram showing the division of planned paths by the path segmentation module provided by the preferred embodiment of the present invention; The fourth figure is a schematic diagram showing the position vector calculation module, the path vector calculation module, and the path reconstruction module provided by the preferred embodiment of the present invention; The fifth figure is a schematic diagram showing the reconstruction of the residual path by the path reconstruction module provided by the preferred embodiment of the present invention; The sixth figure is a schematic diagram showing the trajectory tracking vector generated by the trajectory tracking vector calculation module provided by the preferred embodiment of the present invention; and The seventh figure is a schematic diagram showing the control module provided by the preferred embodiment of the present invention to control the tracking of the mobile platform.

1:路徑軌跡追蹤系統 1: Path tracking system

11:定位模組 11: Positioning module

12:路徑分段模組 12: Path segmentation module

13:位置向量運算模組 13: Position vector operation module

131:位置向量運算單元 131: Position vector operation unit

14:路徑向量運算模組 14: Path vector operation module

141:路徑向量運算單元 141: Path Vector Operation Unit

15:路徑重建模組 15: Path reconstruction module

151:長度運算單元 151: Length calculation unit

152:餘弦運算單元 152: Cosine Operation Unit

153:判斷單元 153: Judgment Unit

16:軌跡追蹤向量運算模組 16: trajectory tracking vector operation module

161:向量運算單元 161: Vector operation unit

162:距離運算單元 162: Distance calculation unit

163:方向判斷單元 163: Direction Judgment Unit

164:向量產生單元 164: Vector generation unit

17:控制模組 17: Control module

18:路徑產生模組 18: Path generation module

Claims (7)

一種路徑軌跡追蹤系統,係設置於一移動平台,包含:一定位模組,係用以定位該移動平台而獲得一目前座標;一路徑分段模組,係用以利用複數個路徑點將該移動平台所應遵行之一規劃路徑劃分成複數個路段,且每一該些路徑點具有一路徑點座標;一位置向量運算模組,係電性連接該定位模組與該路徑分段模組,用以接收該目前座標與該些路徑點之路徑點座標,並利用該目前座標分別與每一該些路徑點之路徑點座標運算出一位置向量,藉以運算出複數個上述之位置向量;一路徑向量運算模組,係電性連接該路徑分段模組,用以利用該些路徑點中之一者與次一相鄰者定義出一與該位置向量相對應之路徑向量,藉以定義出複數個上述之路徑向量;一路徑重建模組,係電性連接該位置向量運算模組與該路徑向量運算模組,藉以利用每一該些位置向量與該些路徑向量中所對應之一者計算出一向量夾角,藉以計算出複數個上述之向量夾角,將該些向量夾角大於270度與小於90度所對應之路徑點刪除,以將該規劃路徑剩餘之部分重建成一殘餘路徑;一軌跡追蹤向量運算模組,係電性連接該路徑重建模組與該定位模組,用以運算出該目前座標與該殘餘路徑 之間的一最短距離,據以產生一軌跡追蹤向量;以及一控制模組,係電性連接該軌跡追蹤向量運算模組,藉以依據該軌跡追蹤向量產生一控制命令,並利用該控制命令控制該移動平台沿該軌跡追蹤向量移動並追跡至該殘餘路徑。 A path trajectory tracking system is set on a mobile platform and includes: a positioning module for positioning the mobile platform to obtain a current coordinate; a path segmentation module for moving the mobile platform using a plurality of path points A planned path that the platform should follow is divided into a plurality of road sections, and each of the path points has a path point coordinate; a position vector operation module is electrically connected to the positioning module and the path segmentation module, For receiving the current coordinates and the path point coordinates of the path points, and using the current coordinates to calculate a position vector with the path point coordinates of each of the path points, thereby calculating a plurality of the above-mentioned position vectors; The path vector calculation module is electrically connected to the path segmentation module to use one of the path points and the next neighbor to define a path vector corresponding to the position vector, thereby defining A plurality of the above-mentioned path vectors; a path reconstruction module that electrically connects the position vector operation module and the path vector operation module, so as to use each of the position vectors and the corresponding one of the path vectors Calculate a vector included angle to calculate a plurality of the above-mentioned vector included angles, delete the path points corresponding to the vector included angles greater than 270 degrees and less than 90 degrees, to reconstruct the remaining part of the planned path into a residual path; The tracking vector calculation module is electrically connected to the path reconstruction module and the positioning module to calculate the current coordinates and the residual path A shortest distance between them is used to generate a trajectory tracking vector; and a control module is electrically connected to the trajectory tracking vector calculation module, so as to generate a control command based on the trajectory tracking vector, and use the control command to control The mobile platform moves along the trajectory tracking vector and traces to the residual path. 如申請專利範圍第1項所述之路徑軌跡追蹤系統,更包含一路徑產生模組,且該路徑產生模組係電性連接該路徑分段模組,用以產生該規劃路徑。 For example, the path trajectory tracking system described in claim 1 further includes a path generation module, and the path generation module is electrically connected to the path segmentation module to generate the planned path. 如申請專利範圍第1項所述之路徑軌跡追蹤系統,其中,該位置向量運算模組包含一位置向量運算單元,且該位置向量運算單元係將該目前座標分別減去每一該些路徑點之路徑點座標以運算出該些位置向量。 For example, the path trajectory tracking system described in item 1 of the scope of patent application, wherein the position vector operation module includes a position vector operation unit, and the position vector operation unit subtracts each of the path points from the current coordinates. The coordinates of the path points are used to calculate the position vectors. 如申請專利範圍第1項所述之路徑軌跡追蹤系統,其中,該路徑向量運算模組包含一路徑向量運算單元,且該路徑向量運算單元係將上述該些路徑點中之次一相鄰者減去該些路徑點中之該者以定義出該路徑向量。 The path trajectory tracking system described in claim 1, wherein the path vector operation module includes a path vector operation unit, and the path vector operation unit calculates the next neighbor among the path points Subtract the one of the path points to define the path vector. 如申請專利範圍第1項所述之路徑軌跡追蹤系統,其中,該路徑重建模組包含:一長度運算單元,係用以運算出每一該些位置向量與每一該些路徑向量之長度; 一餘弦運算單元,係電性連接該長度運算單元,並利用該些位置向量與該些路徑向量中之彼此對應者及其長度計算出該向量夾角之一餘弦值;以及一判斷單元,係電性連接該餘弦運算單元,用以接收該餘弦值,並在確認該餘弦值大於0時,判斷出該向量夾角係大於270度或小於90度。 For the path trajectory tracking system described in claim 1, wherein the path reconstruction module includes: a length calculation unit for calculating the length of each of the position vectors and each of the path vectors; A cosine arithmetic unit is electrically connected to the length arithmetic unit, and calculates a cosine value of the angle between the position vectors and the path vectors and their lengths; and a judgment unit, The cosine arithmetic unit is connected linearly to receive the cosine value, and when it is confirmed that the cosine value is greater than 0, it is determined that the vector angle is greater than 270 degrees or less than 90 degrees. 如申請專利範圍第5項所述之路徑軌跡追蹤系統,其中,該軌跡追蹤向量運算模組包含:一向量運算單元,係利用被刪除之路徑點之最後一者所對應之位置向量與路徑向量運算出一面積值;以及一距離運算單元,係電性連接該向量運算單元,並利用該面積值與上述路徑向量之長度運算出該最短距離。 The path trajectory tracking system described in item 5 of the scope of patent application, wherein the trajectory tracking vector operation module includes: a vector operation unit that uses the position vector and path vector corresponding to the last of the deleted path point An area value is calculated; and a distance calculation unit is electrically connected to the vector calculation unit, and calculates the shortest distance by using the area value and the length of the path vector. 如申請專利範圍第6項所述之路徑軌跡追蹤系統,其中,該軌跡追蹤向量運算模組更包含:一方向判斷單元,係判斷出一自該目標位置朝向該殘餘路徑之追跡方向;以及一向量產生單元,係利用該最短距離與該追跡方向產生該軌跡追蹤向量。 For example, the path trajectory tracking system described in item 6 of the scope of patent application, wherein the trajectory tracking vector calculation module further includes: a direction determining unit that determines a tracking direction from the target position to the residual path; and a The vector generating unit uses the shortest distance and the tracking direction to generate the trajectory tracking vector.
TW108140803A 2019-11-11 2019-11-11 Path tracing system TWI708130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108140803A TWI708130B (en) 2019-11-11 2019-11-11 Path tracing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108140803A TWI708130B (en) 2019-11-11 2019-11-11 Path tracing system

Publications (2)

Publication Number Publication Date
TWI708130B true TWI708130B (en) 2020-10-21
TW202119154A TW202119154A (en) 2021-05-16

Family

ID=74091835

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108140803A TWI708130B (en) 2019-11-11 2019-11-11 Path tracing system

Country Status (1)

Country Link
TW (1) TWI708130B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI808734B (en) * 2022-04-25 2023-07-11 財團法人工業技術研究院 Method and system for remote sharing three dimensional space annotation trajectory

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200707147A (en) * 2005-03-23 2007-02-16 Hurco Co Inc Method of tolerance-based trajectory planning and control
US7587260B2 (en) * 2006-07-05 2009-09-08 Battelle Energy Alliance, Llc Autonomous navigation system and method
TW201127067A (en) * 2009-05-14 2011-08-01 Qualcomm Inc Motion vector processing
US8706298B2 (en) * 2010-03-17 2014-04-22 Raytheon Company Temporal tracking robot control system
JP2017531423A (en) * 2014-10-10 2017-10-26 アイロボット コーポレイション Robotic mowing boundary line determination
WO2019204296A1 (en) * 2018-04-16 2019-10-24 Ohio University Obstacle avoidance guidance for ground vehicles

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200707147A (en) * 2005-03-23 2007-02-16 Hurco Co Inc Method of tolerance-based trajectory planning and control
US7587260B2 (en) * 2006-07-05 2009-09-08 Battelle Energy Alliance, Llc Autonomous navigation system and method
TW201127067A (en) * 2009-05-14 2011-08-01 Qualcomm Inc Motion vector processing
US8706298B2 (en) * 2010-03-17 2014-04-22 Raytheon Company Temporal tracking robot control system
JP2017531423A (en) * 2014-10-10 2017-10-26 アイロボット コーポレイション Robotic mowing boundary line determination
WO2019204296A1 (en) * 2018-04-16 2019-10-24 Ohio University Obstacle avoidance guidance for ground vehicles

Also Published As

Publication number Publication date
TW202119154A (en) 2021-05-16

Similar Documents

Publication Publication Date Title
CN110260867B (en) Method, equipment and device for determining and correcting neutral position in robot navigation
CN106598055B (en) A kind of intelligent vehicle local paths planning method and its device, vehicle
CN110119140B (en) System and method for accelerating curvilinear projection
CN107585163B (en) Travel route generation device and travel route generation method
CN113190010B (en) Edge obstacle detouring path planning method, chip and robot
JPH0324606A (en) Method for specifying route of moving robot
CN110162029A (en) A kind of motion control method and device, robot based on planning path
TWI708130B (en) Path tracing system
JP2014026516A (en) Target route generation device and target route generation method
CN109374005B (en) Ship internal path planning method based on ship VR model
US20200208993A1 (en) Path planning within a traversed area
KR20180040787A (en) Method and device for autonomous driving based on route adaptation
JP2023508794A (en) Trajectory planning method and device, equipment, storage medium and program product
JP2007249631A (en) Polygonal line following mobile robot, and control method for polygonal line following mobile robot
CN113593238B (en) Intersection virtual lane modeling method for automatic driving navigation
CN112815952A (en) Path trajectory tracking system
CN106292654B (en) Method and device for drawing regional map
CN111998858B (en) Unmanned aerial vehicle route planning method based on improved A-algorithm
JPH09319433A (en) Optimum route searching method
WO2022209465A1 (en) System, method, and work vehicle
CN110069066A (en) A kind of method and terminal that unmanned vehicle tracks
JP7445984B2 (en) Automatic travel control device, automatic travel control method, and automatic travel control program
JPH08123547A (en) Method and device for generating track
KR102324099B1 (en) Method for path planning of indoor moving robot and recording medium storing program for executing the same, and computer program stored in recording medium for executing the same
KR102239699B1 (en) Guidance system and method for continuous curvature path following