TWM565327U - Robot arm control device - Google Patents

Robot arm control device Download PDF

Info

Publication number
TWM565327U
TWM565327U TW107204811U TW107204811U TWM565327U TW M565327 U TWM565327 U TW M565327U TW 107204811 U TW107204811 U TW 107204811U TW 107204811 U TW107204811 U TW 107204811U TW M565327 U TWM565327 U TW M565327U
Authority
TW
Taiwan
Prior art keywords
image
robot arm
controller
control device
working
Prior art date
Application number
TW107204811U
Other languages
Chinese (zh)
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 TW107204811U priority Critical patent/TWM565327U/en
Publication of TWM565327U publication Critical patent/TWM565327U/en

Links

Landscapes

  • Manipulator (AREA)

Abstract

一種機械手臂控制裝置,用於控制機械手臂,其中機械手臂包含基座及工作頭。機械手臂控制裝置包含攝影機、影像處理器及控制器,其中影像處理器連接於攝影器及控制器。攝影機拍攝機械手臂的工作空間以產生第一影像及第二影像。影像處理器設定第一影像為背景影像,依據背景影像對第二影像執行影像處理流程以取得位於工作空間的障礙物的位置資訊。控制器依據障礙物的位置資訊、基座的位置資訊及工作頭的工作起點與工作終點,計算出預定移動路徑,且控制器更用於連接於機械手臂,以依據預定移動路徑控制工作頭移動。A mechanical arm control device for controlling a robot arm, wherein the robot arm includes a base and a working head. The robot control device includes a camera, an image processor and a controller, wherein the image processor is connected to the camera and the controller. The camera captures the workspace of the robot arm to produce a first image and a second image. The image processor sets the first image as a background image, and performs an image processing process on the second image according to the background image to obtain position information of the obstacle located in the workspace. The controller calculates a predetermined moving path according to the position information of the obstacle, the position information of the base, and the working starting point and the working end point of the working head, and the controller is further used for connecting to the robot arm to control the working head movement according to the predetermined moving path. .

Description

機械手臂控制裝置Robot arm control device

本創作係關於一種控制裝置,特別關於一種機械手臂的控制裝置。This creation relates to a control device, and more particularly to a control device for a robotic arm.

現今機械手臂仍然不斷地更新改進,但依然有些物流任務是自動化機器無法突破的,例如:跑車內部裝潢皮革之作業,需仰賴人工之處理,好比皮革厚度判別以及紋路編排需依靠人類經驗的累積來達成精緻化客製裝潢。如同上述所言,無法用標準機械流程取代的艱難任務,是需要作業人與自動化機器共同工作下運作完成,而這些項目大部分為客製化內容。Nowadays, the robot arm is still constantly updated and improved, but there are still some logistics tasks that cannot be broken by the automation machine. For example, the operation of the interior leather of the sports car depends on the manual treatment. It is like the thickness judgment of the leather and the arrangement of the lines need to rely on the accumulation of human experience. Achieve refined and custom decoration. As mentioned above, the difficult task of not being able to replace it with standard mechanical processes requires the operator to work with the automation machine, and most of these projects are customized.

人機協同之概念,作業員與機械手臂一同工作情況下,為了顧慮到人員安全,會在機械手臂上加裝安全防護的控制機制,常見的有雷射測距儀感測器、加速規感測器、電流感測器等,能使機械手臂停止或減速運作。目前的人機協同安全的控制裝置大部分是使用接觸形式的感測器,也就是作業員已經撞擊到機台才會啟動安全機制,在此情況下人員已經受到傷害。或者作業員跨入安全保護區內時,將會觸碰到防護措施,啟動安全相關機制,但對於正在運作的機器而言,是並不完全影響其作業流程,然而卻因安全機制的啟動,機械手臂將減緩其作業速度,進而暫停運作或強制停止,反而影響物流工廠流程運作效率。The concept of man-machine coordination, when the operator works with the robot arm, in order to worry about the safety of the personnel, a safety control mechanism is added to the robot arm. Commonly, the laser range finder sensor and the acceleration gauge are added. The detector, current sensor, etc. can stop or decelerate the robot arm. Most of the current human-machine collaborative safety control devices use sensors in the form of contacts, that is, the operator has already hit the machine to start the safety mechanism, in which case the person has been injured. Or when the operator enters the safety protection zone, he will touch the protective measures and start the safety-related mechanism. However, for the working machine, it does not completely affect the operation process, but due to the start of the safety mechanism, The robotic arm will slow down its operation and suspend operation or force stop, which will affect the efficiency of the logistics plant process.

為了解決上述問題,本創作提供一種機械手臂控制裝置,將視覺技術應用在人員安全防護上,使機械手臂的運作在保護作業員安全的情況下,能達到最高效率。In order to solve the above problems, the present invention provides a mechanical arm control device that applies visual technology to personnel safety protection, so that the operation of the robot arm can achieve the highest efficiency while protecting the safety of the operator.

本創作之一實施例所揭露之機械手臂控制裝置,用於控制機械手臂,其中機械手臂包含基座及工作頭。機械手臂控制裝置包含攝影機、影像處理器及控制器,其中影像處理器連接於攝影器及控制器。攝影機拍攝機械手臂的工作空間以產生第一影像及第二影像。影像處理器設定第一影像為背景影像,依據背景影像對第二影像執行影像處理流程以取得位於工作空間的障礙物的位置資訊。控制器依據障礙物的位置資訊、基座的位置資訊及工作頭的工作起點與工作終點,計算出預定移動路徑,且控制器更用於連接於機械手臂,以依據預定移動路徑控制工作頭移動。The robot arm control device disclosed in one embodiment of the present invention is for controlling a robot arm, wherein the robot arm includes a base and a working head. The robot control device includes a camera, an image processor and a controller, wherein the image processor is connected to the camera and the controller. The camera captures the workspace of the robot arm to produce a first image and a second image. The image processor sets the first image as a background image, and performs an image processing process on the second image according to the background image to obtain position information of the obstacle located in the workspace. The controller calculates a predetermined moving path according to the position information of the obstacle, the position information of the base, and the working starting point and the working end point of the working head, and the controller is further used for connecting to the robot arm to control the working head movement according to the predetermined moving path. .

本創作之一實施例所揭露之機械手臂控制裝置,其中控制器依據障礙物的位置資訊產生圓形範圍,圓形範圍圍繞障礙物且圓形範圍的圓周與障礙物之間的最小距離大於預設距離。The robot arm control device disclosed in one embodiment of the present invention, wherein the controller generates a circular range according to the position information of the obstacle, the circular range surrounds the obstacle and the minimum distance between the circumference of the circular range and the obstacle is greater than the pre- Set the distance.

本創作之一實施例所揭露之機械手臂控制裝置,其中控制器取得工作頭的工作起點與圓形範圍的切線及工作頭的工作終點與圓形範圍的另一切線,取得二切線的交點,並依序連線工作起點、交點及工作終點以作為預定移動路徑,其中二切線位於圓形範圍及基座之間。The robot arm control device disclosed in one embodiment of the present invention, wherein the controller obtains a tangent line of the work head and a tangent line of the circular range and a working end point of the working head and another tangent line of the circular range, and obtains an intersection of the two tangent lines, The working starting point, the intersection point and the working end point are sequentially connected as a predetermined moving path, wherein the two tangent lines are located between the circular range and the base.

本創作之一實施例所揭露之機械手臂控制裝置,其中控制器依據預定移動路徑的坐標資訊執行逆運動學計算,以產生基座與工作頭之間的一連接臂的預定開闔角度,藉此控制工作頭移動。The robot arm control device disclosed in one embodiment of the present invention, wherein the controller performs inverse kinematic calculation according to coordinate information of the predetermined movement path to generate a predetermined opening angle of a connecting arm between the base and the working head, This control work head moves.

本創作之一實施例所揭露之機械手臂控制裝置,其中控制器在判斷障礙物的位置資訊與工作頭的位置資訊之間的距離小於預設閾值時,控制工作頭使距離大於預設閾值。The robot arm control device disclosed in one embodiment of the present invention, wherein the controller controls the working head to make the distance greater than a preset threshold when determining that the distance between the position information of the obstacle and the position information of the work head is less than a preset threshold.

本創作之一實施例所揭露之機械手臂控制裝置,其中控制器每間隔預設時間執行預定移動路徑的計算。The robot arm control device disclosed in one embodiment of the present invention, wherein the controller performs the calculation of the predetermined movement path every predetermined time interval.

本創作之一實施例所揭露之機械手臂控制裝置,其中影像處理流程包含以背景影像對第二影像執行背景相減,再執行二值化處理、侵蝕處理及膨脹處理,以取得障礙物的輪廓,且依據輪廓產生位置資訊。The robot arm control device disclosed in one embodiment of the present invention, wherein the image processing flow includes performing background subtraction on the second image with the background image, and performing binarization processing, erosion processing, and expansion processing to obtain an outline of the obstacle. And generate position information according to the contour.

本創作之一實施例所揭露之機械手臂控制裝置,其中控制器包含主控制器及可編程邏輯控制器,彼此透過網際網路協定套組連接。主控制器計算出預定移動路徑以產生控制指令,可編程邏輯控制器用於依據控制指令控制工作頭移動。The robot arm control device disclosed in one embodiment of the present invention, wherein the controller comprises a main controller and a programmable logic controller, and is connected to each other through an internet protocol kit. The main controller calculates a predetermined movement path to generate a control command, and the programmable logic controller controls the movement of the work head according to the control instruction.

本創作之一實施例所揭露之機械手臂控制裝置,更包含另一攝影機連接於影像處理器。所述另一攝影機拍攝工作空間以產生第三影像及第四影像,其中影像處理器依據第三影像及第四影像取得障礙物的另一位置資訊,且控制器依據另一位置資訊調整預定移動路徑。The robot arm control device disclosed in one embodiment of the present invention further includes another camera connected to the image processor. The other camera captures the workspace to generate the third image and the fourth image, wherein the image processor obtains another location information of the obstacle according to the third image and the fourth image, and the controller adjusts the predetermined movement according to the other location information. path.

本創作之一實施例所揭露之機械手臂控制裝置,其中攝影機屬於深度攝影機。The robot arm control device disclosed in one embodiment of the present invention, wherein the camera belongs to a depth camera.

根據上述實施例之機械手臂控制裝置,透過接收影像來偵測作業員的位置,使機械手臂在允許安全範圍內,改變其原有路徑,藉由視覺判斷運算出新的最佳路徑規劃,同時機械手臂依然繼續進行相同的任務運作,達到確認作業員安全的情況下整體運作耗費最短時效。According to the robot arm control device of the above embodiment, the position of the operator is detected by receiving the image, so that the robot arm changes its original path within the allowable safety range, and a new optimal path plan is calculated by visual judgment. The robotic arm continues to perform the same task, and the overall operation takes the shortest time to ensure the safety of the operator.

以上關於本創作內容的說明及以下實施方式的說明係用以示範與解釋本創作的原理,並且提供本創作的專利申請範圍更進一步的解釋。The above description of the present invention and the following description of the embodiments are intended to demonstrate and explain the principles of the present invention, and to provide a further explanation of the scope of the patent application of the present invention.

以下在實施方式中詳細敘述本創作之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本創作之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本創作相關之目的及優點。以下之實施例係進一步詳細說明本創作之觀點,但非以任何觀點限制本創作之範疇。The detailed features and advantages of the present invention are described in detail below in the embodiments, which are sufficient to enable any skilled artisan to understand the technical contents of the present invention and implement it according to the contents, the scope of the patent application and the drawings. Anyone familiar with the relevant art can easily understand the purpose and advantages of this creation. The following examples are intended to further illustrate the scope of this creation, but do not limit the scope of the creation in any way.

請參考圖1,圖1 係依據本創作一實施例所繪示的機械手臂控制裝置1的功能方塊圖。如圖1所示,機械手臂控制裝置1用於控制機械手臂2,其中機械手臂2包含基座21以及工作頭22例如為鑽頭、夾具等,本創作並不限制機械手臂2的種類及機構設計。機械手臂控制裝置1包含攝影機11、影像處理器12以及控制器13,其中影像處理器12有線或無線地連接於攝影機11及控制器13。Please refer to FIG. 1. FIG. 1 is a functional block diagram of a robot arm control device 1 according to an embodiment of the present invention. As shown in FIG. 1, the robot arm control device 1 is used to control the robot arm 2, wherein the robot arm 2 includes a base 21 and the working head 22 is, for example, a drill bit, a jig, etc., and the creation does not limit the type and mechanism design of the robot arm 2. . The robot control device 1 includes a camera 11, an image processor 12, and a controller 13, wherein the image processor 12 is connected to the camera 11 and the controller 13 by wire or wirelessly.

攝影機11例如為深度相機,拍攝機械手臂2的工作空間以產生第一影像及第二影像。詳細來說,機械手臂2的基座21設置於工作機台,工作空間包含工作機台及工作頭22的可移動範圍,攝影機11則設置於機械手臂2上方,以朝向工作空間俯拍。於一實施例中,攝影機11會持續對工作空間進行拍攝。The camera 11 is, for example, a depth camera that photographs the workspace of the robot arm 2 to generate a first image and a second image. In detail, the base 21 of the robot arm 2 is disposed on the working machine, the working space includes the movable range of the working machine and the working head 22, and the camera 11 is disposed above the robot arm 2 to make a pan shot toward the working space. In one embodiment, the camera 11 continues to capture the workspace.

影像處理器12例如為中央處理器(Central processing unit,CPU)、微控制器(Microcontroller unit,MCU)、現場可程式化閘陣列(Field programmable gate array,FPGA)、特殊應用積體電路(Application specific integrated circuit,ASIC)或其他處理器。影像處理器12透過有線或無線的方式自攝影機11取得其所拍攝的影像。舉例來說,影像處理器12可以透過USB接頭與攝影機11連接。影像處理器12設定攝影機11所拍攝的第一影像為背景影像,再依據背景影像對攝影機11所拍攝的第二影像執行影像處理流程,以取得位於機械手臂2的工作空間中的障礙物的位置資訊,其中影像處理流程的詳細內容將於後描述。The image processor 12 is, for example, a central processing unit (CPU), a microcontroller (Microcontroller unit (MCU), a field programmable gate array (FPGA), and a special application integrated circuit (Application specific). Integrated circuit, ASIC) or other processor. The image processor 12 obtains the captured image from the camera 11 by wire or wirelessly. For example, the image processor 12 can be coupled to the camera 11 via a USB connector. The image processor 12 sets the first image captured by the camera 11 as a background image, and performs a video processing process on the second image captured by the camera 11 according to the background image to obtain the position of the obstacle located in the workspace of the robot arm 2. Information, in which the details of the image processing flow will be described later.

控制器13自影像處理器12取得障礙物的位置資訊,依據此位置資訊、機械手臂2的基座21的位置資訊及工作頭22的工作起點與工作終點,計算出一條工作頭22的預定移動路徑。控制器13更用於連接於機械手臂2,以依據預定移動路徑控制工作頭22移動,其中詳細的控制方法將於後描述。The controller 13 obtains the position information of the obstacle from the image processor 12, and calculates a predetermined movement of the work head 22 based on the position information, the position information of the base 21 of the robot arm 2, and the working starting point and the working end point of the working head 22. path. The controller 13 is further used to be coupled to the robot arm 2 to control the movement of the working head 22 in accordance with a predetermined movement path, wherein a detailed control method will be described later.

請參考圖2,圖2係依據本創作另一實施例所繪示的機械手臂控制裝置1’的功能方塊圖。如圖2所示,機械手臂控制裝置1’包含攝影機11、影像處理器12及控制器13,其中攝影機11及影像處理器12的種類及運作皆如前一實施例所述,於此不再贅述。Please refer to FIG. 2. FIG. 2 is a functional block diagram of a robot arm control device 1' according to another embodiment of the present invention. As shown in FIG. 2, the robot control device 1' includes a camera 11, an image processor 12, and a controller 13. The types and operations of the camera 11 and the image processor 12 are as described in the previous embodiment. Narration.

於一實施例中,控制器13可以包含主控制器131及可編程邏輯控制器(Programmable Logic Controller,PLC)132,其中主控制器131及可編程邏輯控制器132可以透過網際網路協定套組(TCP/IP)彼此連接。主控制器131例如為電腦內建的控制器,執行預定移動路徑的計算以產生控制指令,而可編程邏輯控制器132例如為機械手臂2原廠配置的控制器,自主控制器131接收控制指令以控制工作頭22移動。於另一實施例中,主控制器131及可編程邏輯控制器132整合為一主機,以執行預設移動路徑的規劃以及工作頭22的移動控制。In an embodiment, the controller 13 can include a main controller 131 and a programmable logic controller (PLC) 132, wherein the main controller 131 and the programmable logic controller 132 can pass through an internet protocol suite. (TCP/IP) are connected to each other. The main controller 131 is, for example, a computer built-in controller that performs calculation of a predetermined movement path to generate a control command, and the programmable logic controller 132 is, for example, a controller configured for the robot arm 2, and the autonomous controller 131 receives the control command. To control the work head 22 to move. In another embodiment, the main controller 131 and the programmable logic controller 132 are integrated into a host to perform planning of the preset movement path and movement control of the work head 22.

如圖2所示,機械手臂控制裝置1’除了攝影機11、影像處理器12及控制器13更可以包含顯示裝置14。顯示裝置14以有線或無線的方式連接於控制器13,並呈現主控制器131所產生的工作頭22的預定移動路徑。舉例來說,顯示裝置14可以係投影機,將工作頭22的預定移動路徑投射於工作機台上,以供工作人員參考。As shown in Fig. 2, the robot control device 1' may include a display device 14 in addition to the camera 11, the image processor 12, and the controller 13. The display device 14 is connected to the controller 13 in a wired or wireless manner and presents a predetermined movement path of the work head 22 generated by the main controller 131. For example, the display device 14 can be a projector that projects a predetermined movement path of the work head 22 onto a work machine for reference by a worker.

此外,機械手臂控制裝置1’亦可包含另一台攝影機11b。類似於攝影機11,攝影機11b例如為深度相機,拍攝機械手臂2的工作空間以產生第三影像及第四影像。如前所述,影像處理器12依據攝影機11所拍攝的第一影像及第二影像取得位於工作空間中的障礙物的位置資訊,進一步地,影像處理器12可以同樣的方法依據攝影機11b所拍攝的第三影像及第四影像,取得障礙物的另一位置資訊,控制器13再依據此位置資訊調整工作頭22的預定移動路徑。於此實施例中,控制器13可以依據兩攝影機11及11b拍攝的影像所產生的障礙物的位置資訊以更精準地規劃預定移動路徑。Further, the robot control device 1' may also include another camera 11b. Similar to the camera 11, the camera 11b is, for example, a depth camera that photographs the workspace of the robot arm 2 to produce a third image and a fourth image. As described above, the image processor 12 obtains the position information of the obstacle located in the workspace according to the first image and the second image captured by the camera 11. Further, the image processor 12 can take the same method according to the camera 11b. The third image and the fourth image acquire another location information of the obstacle, and the controller 13 adjusts the predetermined moving path of the working head 22 according to the position information. In this embodiment, the controller 13 can plan the predetermined movement path more accurately according to the position information of the obstacle generated by the images captured by the two cameras 11 and 11b.

特別要說明的是,上述攝影機11產生的第一影像對應於攝影機11b產生的第三影像,且攝影機11的第二影像對應於攝影機11b的第四影像,第一與第三影像僅為區別性的命名,並非用於限制影像的產生順序,第二與第四影像同理。Specifically, the first image generated by the camera 11 corresponds to the third image generated by the camera 11b, and the second image of the camera 11 corresponds to the fourth image of the camera 11b, and the first and third images are only distinctive. The naming is not used to limit the order in which images are generated. The second and fourth images are similar.

接下來請一併參考圖1及3以說明影像處理流程的詳細步驟,其中圖3係依據本創作一實施例所繪示的機械手臂控制裝置1執行影像處理的流程圖。於步驟S1中,攝影機11拍攝機械手臂2的工作空間的影像。詳細來說,攝影機11會持續地以預設頻率執行影像拍攝。於步驟S2~S3中,影像處理器12自攝影機11擷取影像,並判斷此影像是否為第一次擷取的影像。於步驟S4中,當影像處理器12判斷擷取的影像為第一次擷取的影像時,便將擷取的影像(即前述的第一影像)設定為背景影像,作為後續影像處理的基準圖,並再次執行步驟S2以自攝影機11擷取另一影像。Next, please refer to FIG. 1 and FIG. 3 to explain the detailed steps of the image processing flow. FIG. 3 is a flowchart of performing image processing by the robot arm control device 1 according to an embodiment of the present invention. In step S1, the camera 11 captures an image of the workspace of the robot arm 2. In detail, the camera 11 continuously performs image capturing at a preset frequency. In steps S2 to S3, the image processor 12 captures an image from the camera 11 and determines whether the image is the first captured image. In step S4, when the image processor 12 determines that the captured image is the first captured image, the captured image (ie, the first image described above) is set as the background image as a reference for subsequent image processing. Figure, and step S2 is performed again to capture another image from the camera 11.

於步驟S5中,當影像處理器12判斷擷取的影像非第一次擷取的影像時,便以背景影像對擷取的影像(即前述的第二影像)執行背景相減(Background Subtraction)。接著於步驟S6中對經背景相減的影像執行二值化處理(Thresholding),以產生二值影像(Morphological)。再來於步驟S7~S8中,對二值影像執行侵蝕處理(Eroding)及膨脹處理(Dilating)以完成影像處理流程。影像處理器12在對擷取的影像執行完影像處理流程後,會再次執行步驟S2以自攝影機11擷取另一影像。經影像處理流程的影像中包含多個點的坐標,透過辨識障礙物的輪廓,可以產生障礙物的位置資訊。也就是說,障礙物的位置資訊可以包含其輪廓上的多個坐標。In step S5, when the image processor 12 determines that the captured image is not the first captured image, the background subtraction (Background Subtraction) is performed on the captured image (ie, the second image described above) with the background image. . Next, in step S6, a binarization process is performed on the image subtracted image to generate a binary image (Morphological). Then, in steps S7 to S8, Eroding and Dilating are performed on the binary image to complete the image processing flow. After performing the image processing flow on the captured image, the image processor 12 performs step S2 again to capture another image from the camera 11. The image processed by the image processing process contains coordinates of a plurality of points, and by identifying the contour of the obstacle, the position information of the obstacle can be generated. That is to say, the position information of the obstacle can contain a plurality of coordinates on its outline.

請再一併參考圖1及圖4A~4C以說明機械手臂2的工作頭22的預定移動路徑的規劃方式,其中圖4A~4C係依據本創作一實施例所繪示的機械手臂控制裝置1執行預設移動路線規劃的示意圖。Please refer to FIG. 1 and FIG. 4A to FIG. 4C together to explain the planning manner of the predetermined moving path of the working head 22 of the robot arm 2, wherein FIGS. 4A to 4C are the robot arm control device 1 according to an embodiment of the present invention. A schematic diagram of performing a preset movement route plan.

如圖4A所示,當工作空間中未存在障礙物時,控制器13設定工作頭22的預定移動路徑P0自其工作起點O1至工作終點O2為一直線。如圖4B所示,當障礙物3進入工作空間時,控制器13會依據障礙物3的位置資訊產生圓形範圍R1。詳細來說,圓形範圍R1圍繞著障礙物3且其圓周與障礙物3之間的最小距離大於預設距離,其中預設距離可以依據實際需求設計,本創作不予限制。控制器13取得工作頭22的工作起點O1與圓形範圍R1的切線及工作頭22的工作終點O2與圓形範圍R1的切線,取得二切線的交點N1,並依序連線工作起點O1、交點N1及工作終點O2以作為預定移動路徑P1,其中二切線位於圓形範圍R1及機械手臂2的基座21之間。也就是說,預定移動路徑P1位於圓形範圍R1及基座21之間。As shown in FIG. 4A, when there is no obstacle in the work space, the controller 13 sets the predetermined movement path P0 of the work head 22 to be a straight line from its work start point O1 to the work end point O2. As shown in FIG. 4B, when the obstacle 3 enters the work space, the controller 13 generates a circular range R1 based on the position information of the obstacle 3. In detail, the circular range R1 surrounds the obstacle 3 and the minimum distance between the circumference and the obstacle 3 is greater than the preset distance, wherein the preset distance can be designed according to actual needs, and the creation is not limited. The controller 13 obtains the tangent of the working starting point O1 of the working head 22 and the circular range R1 and the tangent of the working end point O2 of the working head 22 and the circular range R1, obtains the intersection N1 of the two tangent lines, and sequentially connects the working starting point O1. The intersection point N1 and the work end point O2 serve as a predetermined movement path P1, wherein the two tangent lines are located between the circular range R1 and the base 21 of the robot arm 2. That is, the predetermined moving path P1 is located between the circular range R1 and the susceptor 21.

進一步來說,控制器13每間隔一預設時間便會執行預定移動路徑的計算,其中預設時間可以依據實際需求設計,本創作不予限制。如圖4C所示,當障礙物3移動時,控制器13會據以產生新的圓形範圍R2,取得工作起點O1與圓形範圍R2的切線及工作終點O2與圓形範圍R2的切線之間的交點N2以產生預定移動路徑P2。原先沿著預定移動路徑P1移動至位置M1的工作頭22,便會依據新的預定移動路徑P2即時地沿著路徑P3移動至位置M2,再繼續沿著新的預定移動路徑P2移動。Further, the controller 13 performs the calculation of the predetermined movement path every time a predetermined time interval, wherein the preset time can be designed according to actual needs, and the creation is not limited. As shown in FIG. 4C, when the obstacle 3 moves, the controller 13 generates a new circular range R2, and obtains a tangent to the working starting point O1 and the circular range R2 and a tangent to the working end point O2 and the circular range R2. The intersection point N2 is between to generate a predetermined movement path P2. The work head 22, which was originally moved to the position M1 along the predetermined movement path P1, moves to the position M2 immediately along the path P3 in accordance with the new predetermined movement path P2, and continues to move along the new predetermined movement path P2.

於一實施例中,控制器13在判斷障礙物3的位置資訊與工作頭22的位置資訊之間的距離小於預設閾值時,會控制工作頭22使其與障礙物3之間的距離大於預設閾值,其中預設閾值可以依據實際需求設計,本創作不予限制。進一步來說,上述各實施例中所產生的預定移動路徑P0~P2具有多個坐標資訊,控制器13可以係依據這些坐標資訊執行逆運動學計算,以產生基座21與工作頭22之間的連接臂的預定開闔角度,藉此控制工作頭22移動。In an embodiment, when the distance between the position information of the obstacle 3 and the position information of the work head 22 is less than a preset threshold, the controller 13 controls the working head 22 to have a greater distance from the obstacle 3 than The preset threshold, wherein the preset threshold can be designed according to actual needs, and the creation is not limited. Further, the predetermined movement paths P0-P2 generated in the above embodiments have a plurality of coordinate information, and the controller 13 may perform an inverse kinematic calculation based on the coordinate information to generate a relationship between the pedestal 21 and the work head 22. The predetermined opening angle of the connecting arm, thereby controlling the movement of the working head 22.

根據上述實施例之機械手臂控制裝置,透過接收影像來偵測作業員的位置,使機械手臂在允許安全範圍內,改變其原有路徑,藉由視覺判斷運算出新的最佳路徑規劃,同時機械手臂依然繼續進行相同的任務運作,達到確認作業員安全的情況下整體運作耗費最短時效。According to the robot arm control device of the above embodiment, the position of the operator is detected by receiving the image, so that the robot arm changes its original path within the allowable safety range, and a new optimal path plan is calculated by visual judgment. The robotic arm continues to perform the same task, and the overall operation takes the shortest time to ensure the safety of the operator.

雖然本創作以前述之較佳實施例揭露如上,然其並非用以限定本創作,任何熟習相像技藝者,在不脫離本創作之精神和範圍內,當可作些許之更動與潤飾,因此本創作之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。Although the present invention has been described above with reference to the preferred embodiments thereof, it is not intended to limit the present invention, and anyone skilled in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of patent protection of the creation shall be subject to the definition of the scope of the patent application attached to this specification.

1、1’‧‧‧機械手臂控制裝置
11、11b‧‧‧攝影機
12‧‧‧影像處理器
13‧‧‧控制器
2‧‧‧機械手臂
21‧‧‧基座
22‧‧‧工作頭
131‧‧‧主控制器
132‧‧‧可編程邏輯控制器
14‧‧‧顯示裝置
S1~S8‧‧‧步驟
O1‧‧‧工作起點
O2‧‧‧工作終點
P0~P2‧‧‧預定移動路徑
P3‧‧‧路徑
N1、N2‧‧‧交點
R1、R2‧‧‧圓形範圍
M1、M2‧‧‧位置
1, 1'‧‧‧ mechanical arm control device
11, 11b‧‧‧ camera
12‧‧‧Image Processor
13‧‧‧ Controller
2‧‧‧ Robotic arm
21‧‧‧Base
22‧‧‧Work head
131‧‧‧Master Controller
132‧‧‧Programmable Logic Controller
14‧‧‧Display device
S1 ~ S8‧‧‧ steps
O1‧‧‧ starting point of work
O2‧‧‧ work end point
P0~P2‧‧‧ scheduled moving path
P3‧‧‧ Path
N1, N2‧‧‧ intersection
R1, R2‧‧‧ round range
M1, M2‧‧‧ position

圖1 係依據本創作一實施例所繪示的機械手臂控制裝置的功能方塊圖。 圖2係依據本創作另一實施例所繪示的機械手臂控制裝置的功能方塊圖。 圖3係依據本創作一實施例所繪示的機械手臂控制裝置執行影像處理的流程圖。 圖4A~4C係依據本創作一實施例所繪示的機械手臂控制裝置執行預設移動路線規劃的示意圖。1 is a functional block diagram of a robot arm control device according to an embodiment of the present invention. 2 is a functional block diagram of a robot arm control device according to another embodiment of the present invention. FIG. 3 is a flow chart of performing image processing by a robot arm control device according to an embodiment of the present invention. 4A-4C are schematic diagrams showing the execution of a preset movement route plan by the robot arm control device according to an embodiment of the present invention.

Claims (10)

一種機械手臂控制裝置,用於控制一機械手臂,該機械手臂包含一基座及一工作頭,該機械手臂控制裝置包含:一攝影機,拍攝該機械手臂的一工作空間以產生一第一影像及一第二影像;一影像處理器,連接於該攝影機,設定該第一影像為一背景影像,依據該背景影像對該第二影像執行一影像處理流程以取得位於該工作空間的一障礙物的一位置資訊;以及一控制器,連接於該影像處理器,依據該障礙物的該位置資訊、該基座的一位置資訊及該工作頭的一工作起點與一工作終點,計算出一預定移動路徑,且該控制器更用於連接於該機械手臂,以依據該預定移動路徑控制該工作頭移動。A robot arm control device for controlling a robot arm, the robot arm comprising a base and a working head, the robot arm control device comprising: a camera, capturing a working space of the robot arm to generate a first image and a second image; an image processor connected to the camera, setting the first image as a background image, and performing an image processing process on the second image according to the background image to obtain an obstacle located in the workspace a location information; and a controller coupled to the image processor to calculate a predetermined movement based on the location information of the obstacle, a location information of the pedestal, and a working starting point and a working end of the working head a path, and the controller is further configured to be coupled to the robot arm to control the movement of the working head according to the predetermined movement path. 如請求項1所述的機械手臂控制裝置,其中該控制器依據該障礙物的該位置資訊產生一圓形範圍,該圓形範圍圍繞該障礙物且該圓形範圍的一圓周與該障礙物之間的最小距離大於一預設距離。The robot arm control device of claim 1, wherein the controller generates a circular range according to the position information of the obstacle, the circular range surrounding the obstacle and a circumference of the circular range and the obstacle The minimum distance between them is greater than a preset distance. 如請求項2所述的機械手臂控制裝置,其中該控制器取得該工作頭的該工作起點與該圓形範圍的一切線及該工作頭的該工作終點與該圓形範圍的另一切線,取得該二切線的一交點,並依序連線該工作起點、該交點及該工作終點以作為該預定移動路徑,其中該二切線位於該圓形範圍及該基座之間。The robot arm control device of claim 2, wherein the controller obtains the working starting point of the working head and the line of the circular range and the working end point of the working head and another tangent of the circular range, Obtaining an intersection of the two tangent lines, and sequentially connecting the working starting point, the intersection point, and the working end point as the predetermined moving path, wherein the two tangent lines are located between the circular range and the base. 如請求項1所述的機械手臂控制裝置,其中該控制器依據該預定移動路徑的坐標資訊執行逆運動學計算,以產生該基座與該工作頭之間的一連接臂的一預定開闔角度,藉此控制該工作頭移動。The robot arm control device of claim 1, wherein the controller performs inverse kinematic calculation according to coordinate information of the predetermined movement path to generate a predetermined opening of a connecting arm between the base and the working head. Angle, thereby controlling the movement of the work head. 如請求項1所述的機械手臂控制裝置,其中該控制器在判斷該障礙物的該位置資訊與該工作頭的位置資訊之間的距離小於一預設閾值時,控制該工作頭使該距離大於該預設閾值。The robot arm control device of claim 1, wherein the controller controls the working head to make the distance when determining that the distance between the position information of the obstacle and the position information of the working head is less than a predetermined threshold. Greater than the preset threshold. 如請求項1所述的機械手臂控制裝置,其中該控制器每間隔一預設時間執行該預定移動路徑的計算。The robot arm control device of claim 1, wherein the controller performs the calculation of the predetermined movement path every time a predetermined time interval. 如請求項1所述的機械手臂控制裝置,其中該影像處理流程包含以該背景影像對該第二影像執行背景相減,再執行二值化處理、侵蝕處理及膨脹處理,以取得該障礙物的輪廓,且依據該輪廓產生該位置資訊。The robot arm control device of claim 1, wherein the image processing flow includes performing background subtraction on the second image with the background image, and performing binarization processing, erosion processing, and expansion processing to obtain the obstacle. The contour, and the location information is generated according to the contour. 如請求項1所述的機械手臂控制裝置,其中該控制器包含:一主控制器,計算出該預定移動路徑以產生一控制指令;以及一可編程邏輯控制器,透過一網際網路協定套組連接於該主控制器,且用於依據該控制指令控制該工作頭。The robot arm control device of claim 1, wherein the controller comprises: a main controller that calculates the predetermined movement path to generate a control command; and a programmable logic controller that passes through an internet protocol suite The group is connected to the main controller and is configured to control the work head according to the control instruction. 如請求項1所述的機械手臂控制裝置,更包含另一攝影機,連接於該影像處理器,拍攝該工作空間以產生一第三影像及一第四影像,其中該影像處理器依據該第三影像及該第四影像取得該障礙物的另一位置資訊,且該控制器依據該另一位置資訊調整該預定移動路徑。The robot arm control device of claim 1, further comprising another camera coupled to the image processor to capture the workspace to generate a third image and a fourth image, wherein the image processor is configured according to the third The image and the fourth image acquire another location information of the obstacle, and the controller adjusts the predetermined movement path according to the another location information. 如請求項1所述的機械手臂控制裝置,其中該攝影機屬於一深度攝影機。The robot arm control device of claim 1, wherein the camera belongs to a depth camera.
TW107204811U 2018-04-13 2018-04-13 Robot arm control device TWM565327U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107204811U TWM565327U (en) 2018-04-13 2018-04-13 Robot arm control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107204811U TWM565327U (en) 2018-04-13 2018-04-13 Robot arm control device

Publications (1)

Publication Number Publication Date
TWM565327U true TWM565327U (en) 2018-08-11

Family

ID=63961200

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107204811U TWM565327U (en) 2018-04-13 2018-04-13 Robot arm control device

Country Status (1)

Country Link
TW (1) TWM565327U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143618A (en) * 2019-08-21 2020-05-12 紫勋智能科技(北京)有限公司 Method for calculating object state in video and robot for calculating object state

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143618A (en) * 2019-08-21 2020-05-12 紫勋智能科技(北京)有限公司 Method for calculating object state in video and robot for calculating object state

Similar Documents

Publication Publication Date Title
US10737396B2 (en) Method and apparatus for robot path teaching
US11565427B2 (en) Robot system
JP6420229B2 (en) A robot system including a video display device that superimposes and displays an image of a virtual object on a video of a robot
US9519736B2 (en) Data generation device for vision sensor and detection simulation system
US11148299B2 (en) Teaching apparatus and teaching method for robots
US9352467B2 (en) Robot programming apparatus for creating robot program for capturing image of workpiece
US20080013825A1 (en) Simulation device of robot system
US10427298B2 (en) Robot system displaying information for teaching robot
JP2012517053A (en) Robot tool control method
KR20130086773A (en) Method for setting up work using vision camera
JP2016209991A (en) Robot control device, controlling method, and program
WO2021117479A1 (en) Information processing device, method, and program
JP2010094765A (en) Apparatus for returning robot to origin
US12023813B2 (en) Control system, control method, and control unit
JP7502003B2 (en) Apparatus and method for acquiring deviation of moving trajectory of moving machine
US12011827B2 (en) Robot teaching with scans in and out of robot workspace
TWM565327U (en) Robot arm control device
WO2023013740A1 (en) Robot control device, robot control system, and robot control method
Penttilä et al. Virtual reality enabled manufacturing of challenging workpieces
JP7509535B2 (en) IMAGE PROCESSING APPARATUS, ROBOT SYSTEM, AND IMAGE PROCESSING METHOD
TWI608894B (en) Intelligent anti-collision safety system and tool machine using the same
CN111522299B (en) mechanical control device
CN111522295B (en) Mechanical control device
JP2016078142A (en) Method for control of robot device, and robot device
JP2010149225A (en) Robot system, device and method for controlling robot system

Legal Events

Date Code Title Description
MM4K Annulment or lapse of a utility model due to non-payment of fees