Movement route generating apparatus, movement route generating method, and computer program

The movement path generation device extracts and aligns surface data to generate tool paths that encompass the entire workpiece surface, addressing the limitation of existing systems that only consider edges or contours.

JP2024140686APending Publication Date: 2024-10-10BROTHER KOGYO KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023051972
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

Existing robot systems fail to extract features of a workpiece that are not on its edges or contours, limiting the generation of movement paths for tools.

Method used

A movement path generation device that extracts data from each point within a predetermined region on a workpiece surface, divides these points into groups, calculates the center of gravity of each group, and aligns the coordinate systems to generate a tool movement path reflecting the entire workpiece surface data.

Benefits of technology

The solution allows for the generation of tool movement paths that accurately reflect the entire workpiece surface, enabling precise tool movements beyond just edges or contours.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024140686000001_ABST
    Figure 2024140686000001_ABST
Patent Text Reader

Abstract

To provide a movement route generating apparatus, a movement route generating method, and a computer program which can reflect data of a work surface on a movement route of a tool without limiting the same to an edge or a contour.SOLUTION: A movement route generating apparatus according to the present invention has an extracting unit for extracting data at each of points in a predetermined region of a work surface of captured data of a work, and an acquiring unit for acquiring a teaching point in a movement route of a tool based on the data at each of the points extracted by the extracting unit.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technology relates to a movement path generating device, a movement path generating method, and a computer program that generate a movement path of a tool. [Background technology]

[0002] A robot system has been proposed that extracts data, for example regarding the edges or contours of a workpiece, from imaging data of the workpiece, generates a three-dimensional path along the workpiece, and moves a tool along the three-dimensional path (see Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 5981143 Summary of the Invention [Problem to be solved by the invention]

[0004] The above robotic systems do not extract features of the workpiece that are not manifested in edges or contours.

[0005] The present disclosure has been made in consideration of the above circumstances, and aims to provide a movement path generation device, a movement path generation method, and a computer program that can reflect data of the workpiece surface in the movement path of a tool, without being limited to edges or contours. [Means for solving the problem]

[0006] A movement path generation device according to one embodiment of the present disclosure includes an extraction unit that extracts data for each point within a specified area of ​​the workpiece surface in image data of the workpiece, and an acquisition unit that acquires teaching points in the movement path of a tool based on the data for each point extracted by the extraction unit.

[0007] In the present disclosure, data for each point within a specified area on the workpiece surface is extracted from the imaging data, and teaching points on the tool movement path are obtained based on the data for each point.

[0008] A travel path generation device according to one embodiment of the present disclosure includes a division unit that divides each point within the specified area extracted by the extraction unit into multiple point clouds, and a representative point extraction unit that extracts data of a representative point of each point cloud divided by the division unit, and the acquisition unit acquires the teaching point based on the data of the representative point of each point cloud.

[0009] In the present disclosure, the points within a predetermined region are divided into a plurality of point groups, data of representative points of each point group is extracted, and teaching points are obtained based on the data of each representative point.

[0010] In the travel path generation device according to one embodiment of the present disclosure, the division unit divides the specified area into a plurality of spaces, and a plurality of points in each space are organized into the point cloud.

[0011] In the present disclosure, a predetermined region is divided into a plurality of spaces, and a plurality of points in each space are organized into a point cloud.

[0012] In the travel path generation device according to an embodiment of the present disclosure, the division unit divides each point in the specified region into a plurality of point groups by clustering.

[0013] In the present disclosure, points within a predetermined region are divided into a plurality of point groups by clustering.

[0014] In a travel path generation device according to an embodiment of the present disclosure, the representative point is the center of gravity of the point cloud.

[0015] In this disclosure, the center of gravity of the point cloud is taken as the representative point.

[0016] In one embodiment of the present disclosure, the travel path generation device includes a data of representative points of each point cloud including a position based on a first coordinate system, the imaging data including index data obtained by imaging an index in a second coordinate system different from the first coordinate system, and a correction unit that corrects the position based on the first coordinate system based on the index data.

[0017] In the present disclosure, the data of the representative point includes a position based on a first coordinate system, the imaging data includes index data obtained by imaging an index in a second coordinate system, and the position based on the first coordinate system is corrected based on the index data.

[0018] In one embodiment of the movement path generation device of the present disclosure, the index includes the origin of the second coordinate system, and the correction unit includes an offset processing unit that aligns the origin of the first coordinate system with the origin of the second coordinate system, and a rotation processing unit that aligns each axis of the first coordinate system with each axis of the second coordinate system.

[0019] In the present disclosure, the index includes the origin of the second coordinate system, and when correcting a position based on the first coordinate system, the origin of the first coordinate system is aligned with the origin of the second coordinate system, and each axis of the first coordinate system is aligned with each axis of the second coordinate system.

[0020] In a movement path generation device according to one embodiment of the present disclosure, the extraction unit extracts data for each point within an area that is colored differently from the color of the workpiece.

[0021] In the present disclosure, data is extracted for each point within an area that is colored differently from the color of the workpiece.

[0022] In one embodiment of the travel path generation device of the present disclosure, the extraction unit determines whether the value of color information of each point in the imaging data is within a predetermined range, and extracts data for points whose color information values ​​are determined to be within the predetermined range.

[0023] In the present disclosure, it is determined whether or not the color information value of each point in the imaging data is within a predetermined range, and data for points whose color information values ​​are determined to be within the predetermined range is extracted.

[0024] In one embodiment of the movement path generation device of the present disclosure, the extraction unit extracts data for each point in a first area that is assigned a first color different from the color of the workpiece, and extracts data for each point in a second area that is assigned a second color different from the color of the workpiece and the first color, and the acquisition unit acquires teaching points on a first movement path of the tool based on the data for each point in the first area, and acquires teaching points on a second movement path of the tool based on the data for each point in the second area.

[0025] In the present disclosure, data is extracted for each point in a first area that is given a first color different from the color of the workpiece, data is extracted for each point in a second area that is given a second color different from the color of the workpiece and the first color, teaching points on a first movement path of the tool are obtained based on the data for each point in the first area, and teaching points on a second movement path of the tool are obtained based on the data for each point in the second area.

[0026] A movement path generation device according to one embodiment of the present disclosure includes a first angle calculation unit that calculates the angle of a holding part that holds a workpiece so that the angle between a first vector on a normal line perpendicular to a plane calculated from the point cloud and a second vector parallel to the axis of the tool is a right angle.

[0027] In the present disclosure, the angle of the holding part that holds the workpiece is calculated so that the angle between a first vector on a normal line perpendicular to the plane calculated from the point cloud and a second vector parallel to the axis of the tool is a right angle.

[0028] A movement path generating device according to one embodiment of the present disclosure is provided with a second angle calculation unit that calculates the angle of a holding part that holds a workpiece so that the specified area extends along the workpiece surface and a third vector extending in a width direction that intersects the longitudinal direction of the specified area is parallel to a fourth vector parallel to the axis of the tool.

[0029] In the present disclosure, the specified area extends along the workpiece surface, and the angle of the holding part that holds the workpiece is calculated so that a third vector extending in the width direction that intersects the longitudinal direction of the specified area and a fourth vector parallel to the axis of the tool are parallel.

[0030] A movement path generation device according to one embodiment of the present disclosure includes a determination unit that determines the order of the teaching points between a first position and a second position on the movement path based on the cutting direction of the tool and the rotation direction of the tool.

[0031] In the present disclosure, the order of teaching points between a first position and a second position on a movement path is determined based on the cutting direction of the tool and the rotation direction of the tool.

[0032] A movement path generation method according to one embodiment of the present disclosure images a workpiece to generate imaging data, extracts data for each point within a specified area of ​​the workpiece surface in the imaging data of the workpiece, and obtains teaching points in the movement path of a tool based on the extracted data for each point.

[0033] In the present disclosure, a workpiece is imaged to generate imaging data, data for each point within a specified area on the workpiece surface in the imaging data is extracted, and teaching points on the tool movement path are obtained based on the data for each point.

[0034] A movement path generation method according to one embodiment of the present disclosure captures an image of the workpiece using a depth camera.

[0035] In the present disclosure, the workpiece is imaged by a depth camera.

[0036] In a movement path generation method according to an embodiment of the present disclosure, the workpiece is imaged by an imaging unit including a distance sensor and a camera.

[0037] In the present disclosure, an image of a workpiece is captured by a distance sensor, a camera, or the like.

[0038] A movement path generation method according to one embodiment of the present disclosure images the workpiece from multiple positions including a first imaging position and a second imaging position so as to include at least two indexes in a predetermined coordinate system, the imaging data captured from the first imaging position includes at least one index data that is identical to the imaging data captured from the second imaging position, and data for each point extracted from the imaging data captured from the first imaging position and the second imaging position is corrected based on any one of the index data.

[0039] In the present disclosure, a workpiece is imaged from multiple positions including a first imaging position and a second imaging position so as to include at least two indexes of a predetermined coordinate system, the imaging data imaged from the first imaging position includes at least one index that is identical to the imaging data imaged from the second imaging position, and data for each point extracted from the imaging data imaged from the first imaging position and the second imaging position is corrected based on any one of the index data.

[0040] A computer program according to one embodiment of the present disclosure is a computer program executed by a movement path generation device that generates a movement path of a tool, and causes the movement path generation device to execute a process of extracting data for each point within a specified area of ​​the workpiece surface in image data of the workpiece, and obtaining teaching points in the movement path of the tool based on the extracted data for each point.

[0041] In the present disclosure, a movement path generating device extracts data for each point within a specified area of ​​the workpiece surface in the image data of the workpiece, and executes a process of obtaining teaching points in the movement path of the tool based on the data for each point. Effect of the Invention

[0042] In the movement path generation device, the movement path generation method, and the computer program according to the embodiment of the present disclosure, data of each point within a predetermined area on the workpiece surface is extracted from the imaging data, and teaching points on the movement path of the tool are obtained based on the data of each point. Therefore, data of the entire predetermined area on the workpiece surface is reflected in the teaching points. [Brief description of the drawings]

[0043] [Figure 1] 1 is a block diagram of a travel route generation device according to a first embodiment. [Diagram 2] FIG. 11 is an explanatory diagram for explaining imaging of a master work. [Diagram 3] FIG. 11 is an explanatory diagram illustrating a process of extracting representative points from a colored region. [Figure 4] FIG. 4 is an explanatory diagram for explaining a first vector. [Diagram 5] FIG. 11 is an explanatory diagram for explaining a correction process of center of gravity data. [Figure 6] FIG. 11 is an explanatory diagram for explaining calculation of an angle of a holding table. [Figure 7] 11 is a flowchart illustrating a travel route generation process performed by the travel route generation device. [Figure 8] 10 is an explanatory diagram for explaining calculation of an angle of a holding table according to the second embodiment. FIG. [Figure 9] FIG. 11 is an explanatory diagram for explaining imaging of a master work according to embodiment 3. [Figure 10] 13 is an explanatory diagram illustrating the relationship between the cutting direction and the rotation direction of a tool according to a fourth embodiment and the movement direction. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0044] (Embodiment 1) The present invention will be described below with reference to the drawings showing a travel route generation device, a travel route generation method, and a computer according to a first embodiment. FIG. 1 is a block diagram of a travel route generation device 1. The travel route generation device 1 includes a control unit 2, a main memory unit 3, and an auxiliary memory unit 4. The control unit 2 includes a processor or logic circuit. Examples of the processor include a CPU, an MPU, or a GPU. Examples of the logic circuit include an FPGA, an ASIC, or a CPLD.

[0045] The main memory 3 includes a volatile memory, such as a RAM. The auxiliary memory 4 includes a non-volatile memory or a hard disk. Examples of the non-volatile memory include an EEPROM, an EPRPM, and a flash memory. The auxiliary memory 4 stores a computer program (program product) for executing the movement path generation process. The control program may be pre-installed in the auxiliary memory 4, or may be installed in the auxiliary memory 4 from a control program stored in a storage medium 6, such as an optical disk. Examples of the optical disk include a CD-ROM and a DVD. The auxiliary memory 4 stores upper thresholds Ra, Ga, Ba, and lower thresholds Rb, Gb, Bb, which will be described later.

[0046] The travel route generation device 1 acquires imaging data from the imaging unit 5. The imaging data includes image data and position data indicating the position of each point constituting the image data. The imaging unit 5 is a device capable of generating at least image data and position data, and includes, for example, a depth camera. The imaging unit 5 may include a camera and a distance sensor instead of the depth camera. Examples of distance sensors include LIDAR, millimeter wave radar, optical sensors, and ultrasonic sensors. The travel route generation device 1 may acquire imaging data directly from the imaging unit 5 via a wired or wireless connection, or may transfer the imaging data from the imaging unit 5 to a portable storage medium, for example, a USB memory or a memory card, and then the travel route generation device 1 may acquire the imaging data from the storage medium.

[0047] The movement path generation process will be described. Fig. 2 is an explanatory diagram for explaining imaging of the master workpiece 11. The master workpiece 11 is a workpiece from which burrs have been removed. The movement path generation device 1 acquires teaching points based on the master workpiece 11 and generates a movement path for the tool 7. Deburring is performed by moving the tool 7 based on the movement path.

[0048] The imaging unit 5 captures an image of the master work 11. The master work 11 is placed on the top surface of a table 10. An index 10a is provided on the table 10. The index 10a has, for example, a square black and white pattern in a plan view, and a corner point of the square constitutes the origin O. The index 10a includes, for example, an AR marker or a two-dimensional barcode. The master work 11 is placed on the table 10 such that, for example, the corner of the master work 11 coincides with the origin O. The index 10a corresponds to an index of a second coordinate system. The second coordinate system has an X, Y, and Z orthogonal coordinate system.

[0049] A colored area 12 is formed on the surface of the master work 11. The colored area 12 has a color different from the color of the master work 11 itself. For example, the color of the master work 11 itself is silver, and the colored area 12 is red. Note that the color of the master work 11 itself is not limited to silver, and the colored area 12 may be a color other than red. For example, an operator colors at least a part of the surface of the master work 11 with a marker pen or color tape, and the colored area 12 is formed. Note that an area surrounded by a line may be set as an area (predetermined area) from which data is extracted. The imaging unit 5 images the master work 11 together with the index 10a.

[0050] 3 is an explanatory diagram illustrating a process of extracting a representative point from a colored region 12. The travel path generation device 1 acquires imaging data from the imaging unit 5. As shown in FIG. 3A, the imaging data includes imaging data of the colored region 12. The imaging data is composed of a plurality of points. Each point includes color information of red, green, and blue, i.e., RGB data. The RGB data is expressed, for example, by gradations of red, green, and blue.

[0051] The control unit 2 extracts only the imaging data of the colored area 12 from the imaging data. That is, as shown in FIG. 3B, each point 13 in the colored area 12 is extracted. Specifically, the control unit 2 extracts each point 13 as follows. The control unit 2 determines whether or not the first condition, that is, the R in the RGB data (R, G, B) of each point constituting the imaging data exceeds the lower threshold value Ra and is less than the upper threshold value Rb, is satisfied. Further, the control unit 2 determines whether or not the second condition, that is, the G in the RGB data (R, G, B) of each point constituting the imaging data exceeds the lower threshold value Ga and is less than the upper threshold value Gb, is satisfied. Further, the control unit 2 determines whether or not the third condition, that is, the B in the RGB data (R, G, B) of each point constituting the imaging data exceeds the lower threshold value Ba and is less than the upper threshold value Bb, is satisfied. That is, it is determined whether Ra < R < Rb and Ga < G < Gb and Ba < B < Bb. Note that each point 13 may be extracted using, for example, the hue angle or the saturation percentage in the HSV system. When the angle or the saturation is used, extraction can be performed without being affected by the brightness of the imaging data. As shown in FIG. 3B, the control unit 2 determines and extracts the points that satisfy all of the first condition, the second condition, and the third condition as the points 13 constituting the colored area 12.

[0052] Even when the colored area 12 has red represented by (R, G, B), depending on the amount of light at the time of imaging, the imaging unit 5 may detect a color represented by (R±α, G±β, B±γ). Therefore, an upper threshold value and a lower threshold value are set, and a color between the upper threshold value and the lower threshold value is determined as the point 13 constituting the colored area 12.

[0053] When extracting points 13 from a plurality of regions, each of the plurality of regions is given a different color, and points 13 are extracted for each color. For example, when extracting points 13 from each of three regions, the three regions are colored red, green, and blue, respectively, to create three colored regions 12. For example, first, points 13 are extracted from the red colored region 12, then points 13 are extracted from the green colored region 12, and finally points 13 are extracted from the blue colored region 12. In this manner, points 13 are extracted in order for each color. One colored region 12 in the red, green, and blue colored regions 12 corresponds to the first region, and the other colored regions 12 correspond to the second region. The color of each region and the total number of regions are stored in advance in the main memory unit 3 or the auxiliary memory unit 4.

[0054] As shown in FIG. 3C, the control unit 2 sets a plurality of cubic spaces 30. Each point 13 exists in one of the spaces 30. In other words, the control unit 2 divides the colored region 12 into a plurality of spaces 30. Hereinafter, all the points 13 existing in one space 30 are also referred to as a point cloud. As shown in FIG. 3D, the control unit 2 calculates the center of gravity 14 of the point cloud in each space 30 based on the position data. Only one center of gravity 14 exists in one space 30. In other words, the center of gravity 14 constitutes a representative point of all the points 13 included in one space 30.

[0055] FIG. 4 is an explanatory diagram for explaining the first vector 21. The dashed line in FIG. 4 indicates the points 13 included in one space 30, i.e., the plane 15 calculated from the point cloud. The control unit 2 obtains the normal line toward the imaging unit 5 from among the normal lines perpendicular to the plane 15 as the first vector 21. In FIG. 4, the first vector 21 is shown emanating from the center of gravity 14. The center of gravity 14 may not exist on the plane 15 depending on the bias of the point cloud. However, the first vector 21 is expressed as a vector quantity, i.e., a physical quantity indicating the direction and magnitude, and can be applied to any position. Therefore, in FIG. 4, the first vector 21 is applied to the center of gravity 14.

[0056] FIG. 5 is an explanatory diagram for explaining the correction process of the data of the center of gravity 14. As described above, the imaging data includes image data. In FIG. 5, an image 40 based on the image data is shown in a schematic manner. The image 40 includes an image of the center of gravity 14 and the index 10a. The image 40 has, for example, a rectangular frame, and one of the corners of the frame constitutes an origin O'. The origin O' is the origin of a first coordinate system. The first coordinate system has an X', Y', and Z' orthogonal coordinate system. The first coordinate system is set in advance, for example, in the imaging unit 5. The data of each point included in the image 40 includes the position of the first coordinate system as position data. That is, the data of the center of gravity 14 in the imaging data includes the position of the first coordinate system.

[0057] As described above, the index 10a corresponds to the index of the second coordinate system. The second coordinate system has an X, Y, and Z orthogonal coordinate system. The second coordinate system corresponds to the coordinate system of a holding table (not shown) that holds a workpiece in a machine tool, for example. Therefore, by correcting the position of the first coordinate system to the position of the second coordinate system, the position of the first coordinate system can be converted to the coordinate system of the holding table. The holding table corresponds to the holding unit.

[0058] The control unit 2 performs a correction process on the position of the first coordinate system at the center of gravity 14. The correction process includes an offset process and a rotation process. The offset process is a process of translating a point in the first coordinate system so that the origin O of the second coordinate system coincides with the origin O' of the first coordinate system. For example, in the first coordinate system, if the difference in position between the origin O' of the first coordinate system and the origin O of the second coordinate system in the X' direction is Δa, the difference in position between the origin O' of the first coordinate system and the origin O of the second coordinate system in the Y' direction is Δb, the difference in position between the origin O' of the first coordinate system and the origin O of the second coordinate system in the Z' direction is Δc, and the position of the first coordinate system of the center of gravity 14 is (a, b, c), the control unit 2 corrects the positions (a, b, c) of each center of gravity 14 to positions (a-Δa, b-Δb, c-Δc) in the first coordinate system. In other words, the position of the origin O of the second coordinate system in the first coordinate system after the offset processing is the position (0, 0, 0).

[0059] The rotation process is a process of rotating and moving a point in the first coordinate system so that each axis of the first coordinate system coincides with each axis of the second coordinate system. In the rotation process, the control unit 2 rotates the position of each center of gravity 14 in the first coordinate system around each of the X'-axis, Y'-axis, and Z'-axis by a rotation matrix. For example, when the angle between the unit vectors in the Z-axis direction and the Z'-axis direction around the X'-axis is θc, the control unit 2 rotates the center of gravity 14 around the X'-axis by θc, when the angle between the unit vectors in the X-axis direction and the X'-axis direction around the Y'-axis is θa, the control unit 2 rotates the center of gravity 14 around the Y'-axis by θc, and when the angle between the unit vectors in the Y-axis direction and the Y'-axis direction around the Z'-axis is θb, the control unit 2 rotates the center of gravity 14 around the Z'-axis by θb.

[0060] By performing correction processes, i.e. offset and rotation processes, on the position of the center of gravity 14 in the first coordinate system, the position of the center of gravity 14 can be transformed into a position in the second coordinate system, i.e. the coordinate system of the holding table.

[0061] FIG. 6 is an explanatory diagram for explaining the calculation of the angle of the holding table. FIG. 6 is a drawing similar to FIG. 4. In FIG. 6, a second vector 22 parallel to the axial direction of the tool 7 and a right-angle vector 26 perpendicular to the second vector 22 are shown. The control unit 2 calculates the angle θ between the first vector 21 and the right-angle vector 26. The angle θ is, for example, an angle around the A-axis or C-axis of the holding table. For example, the A-axis is parallel to the X-axis, and the C-axis is parallel to the Z-axis. The direction of the second vector 22 is stored in the auxiliary memory unit 4 of the movement path generating device 1. The control unit 2 calculates the right-angle vector 26 and the angle θ based on the first vector 21 and the second vector 22.

[0062] When the angle θ is an angle around the A axis, the peripheral surface of the tool 7 can be brought into contact with the center of gravity 14 by moving the holding table by the angle θ around the A axis. When the angle θ is an angle around the C axis, the peripheral surface of the tool 7 can be brought into contact with the center of gravity 14 by moving the holding table by the angle θ around the C axis. The angle θ may be an angle around the B axis. In this case, the peripheral surface of the tool 7 can be brought into contact with the center of gravity 14 by moving the holding table by the angle θ around the B axis. For example, the B axis is parallel to the Y axis. When a blade is formed on the peripheral surface of the tool 7, the center of gravity 14 can be processed, for example, deburred, with high accuracy by moving the holding table by the angle θ.

[0063] FIG. 7 is a flowchart for explaining the movement path generation process by the movement path generation device 1. The control unit 2 of the movement path generation device 1 judges whether or not imaging data has been acquired (S1). If imaging data has not been acquired (S1: NO), the control unit 2 returns the process to step S1. If imaging data has been acquired (S1: YES), the control unit 2 extracts each point 13 of the colored region 12 of the master work 11 (S2). The control unit 2 that executes step S2 corresponds to the extraction unit. The control unit 2 sets a plurality of cubic spaces 30 (S3). That is, the control unit 2 groups the multiple points 13 in one space 30 into one point cloud, and divides each point 13 in the colored region 12 into a plurality of point clouds. The control unit 2 that executes step S3 corresponds to the division unit. The control unit 2 calculates the center of gravity 14 of the point cloud in each space 30. That is, the control unit 2 extracts the center of gravity 14 of each space 30 (S4). The control unit 2 that executes step S4 corresponds to the representative point extraction unit.

[0064] The control unit 2 corrects the position of the center of gravity 14 (S5). The control unit 2 that executes step S5 constitutes a correction unit. The control unit 2 executes correction processing, i.e., offset processing and rotation processing, on the position of the center of gravity 14, and converts the position of the center of gravity 14 in the first coordinate system into a position in the second coordinate system, i.e., the coordinate system of the holding table. The center of gravity 14 after correction or conversion corresponds to a teaching point in the movement path of the tool 7.

[0065] The control unit 2 calculates, for example, an angle θ around the A-axis or C-axis (S6). The control unit 2 stores the position of the corrected center of gravity 14, i.e., the position in the second coordinate system (the coordinate system of the holding table), and the angle θ in the main memory unit 3 or the auxiliary memory unit 4 (S7). That is, the control unit 2 acquires the teaching point. The control unit 2 that executes step S7 corresponds to the acquisition unit. The control unit 2 determines whether all colored regions 12 have been extracted (S8). For example, the control unit 2 measures the color and number of colored regions 12 for which extraction has been completed, and compares it with the color of each region and the total number of regions stored in advance to determine whether all colored regions 12 have been extracted.

[0066] When it is determined that all the colored regions 12 have not been extracted (S8: NO), the control unit 2 returns the process to step S2 and extracts each point 13 of the colored regions 12 whose extraction has not been completed. For example, when there are three colored regions 12 colored red, green, and blue, the control unit 2 extracts a point 13 from the red colored region 12, obtains the center of gravity 14 from the point 13, corrects the position of the center of gravity 14, calculates the angle θ, and stores the position and angle θ of the center of gravity 14. The corrected red center of gravity 14 corresponds to the teaching point on the first moving path of the tool 7. Next, the control unit 2 extracts a point 13 from the green colored region 12, obtains the center of gravity 14 from the point 13, corrects the position of the center of gravity 14, calculates the angle θ, and stores the position and angle θ of the center of gravity 14. Finally, the control unit 2 extracts a point 13 from the blue colored region 12, obtains the center of gravity 14 from the point 13, corrects the position of the center of gravity 14, calculates the angle θ, and stores the position and angle θ of the center of gravity 14. The corrected green or blue center of gravity 14 corresponds to the teaching point on the second movement path of the tool 7. When it is determined that all colored regions 12 have been extracted (S8: YES), the control unit 2 ends the process.

[0067] In the first embodiment, the colored region 12 is divided into a plurality of spaces 30, and the center of gravity 14 of the point group of each space 30 is calculated. However, a plurality of point groups may be extracted from the colored region 12 by clustering, and the center of gravity 14 of each point group may be calculated. For example, when the colored region 12 has a front region and an upper surface region, it is considered that the points 13 in the front region are divided into a plurality of groups in the up-down direction by performing clustering on the front region. For example, it is considered that each point 13 in the front region is divided into an upper position group, a middle position group, and a lower position group. In this case, all points 13 in the upper position group, that is, the center of gravity 14 of the point group is calculated. The center of gravity 14 is also calculated for the middle position group and the lower position group. In addition, it is considered that the points 13 in the upper surface region are divided into a plurality of groups in the front-rear direction by performing clustering on the upper surface region. For example, it is considered that each point 13 in the upper surface region is divided into a front position group, a middle position group, and a rear position group. In this case, all points 13 in the front position group, i.e., the center of gravity 14 of the point cloud, are calculated. The centers of gravity 14 are also calculated for the intermediate position group and the rear position group.

[0068] In the movement path generating device 1, the movement path generating method, and the computer program according to the first embodiment, data of each point 13 in a colored region 12 on the surface of a master workpiece 11 is extracted from the imaging data, and teaching points on the movement path of the tool 7 are obtained based on the data of each point 13. Therefore, data of the entire colored region 12 on the surface of the master workpiece 11 is reflected in the teaching points.

[0069] Moreover, each point 13 in the colored region 12 is divided into a plurality of point groups (all points 13 existing in one space 30), data of a representative point of each point group is extracted, and teaching points are obtained based on the data of each representative point. The colored region 12 is also divided into a plurality of spaces 30, and the plurality of points in each space 30 are made into a point cloud. Furthermore, each point 13 in the colored region 12 is divided into a plurality of point clouds by clustering. Furthermore, the center of gravity 14 of the point cloud is made into the representative point.

[0070] In addition, the data of the representative points includes positions based on the first coordinate system, the imaging data includes index data obtained by imaging index 10a of the second coordinate system, and the positions based on the first coordinate system are corrected based on the index data. Further, index 10a includes the origin of the second coordinate system. When correcting the positions based on the first coordinate system, an offset process for aligning the origin O′ of the first coordinate system with the origin O of the second coordinate system is executed, and a rotation process for aligning each axis of the first coordinate system with each axis of the second coordinate system is executed.

[0071] In addition, data of each point 13 within the colored region 12 colored with a color different from the color of the master workpiece 11 is extracted. Also, it is determined whether the values R, G, B of the color information of each point in the imaging data are within a predetermined range, that is, whether Ra < R < Rb and Ga < G < Gb and Ba < B < Bb, and data of the points determined to have the RGB values of the color information within the predetermined range is extracted.

[0072] In addition, data of each point 13 within the colored region 12 colored with a first color different from the color of the master workpiece 11, for example, red, is extracted, and data of each point 13 within the colored region 12 colored with a second color different from the color of the master workpiece 11 and the first color, for example, green, is extracted. Based on the data of each point 13 within the colored region 12 colored with red, teaching points on the first movement path of the tool 7 are obtained, and based on the data of each point 13 within the colored region 12 colored with green, teaching points on the second movement path of the tool 7 are obtained.

[0073] In addition, the angle θ of the holding portion for holding the workpiece is calculated such that the angle between the first vector 21 on the normal line perpendicular to the plane 15 calculated from the point group, that is, the points 13 included in one space 30, and the second vector 22 parallel to the axis of the tool 7 becomes 90 degrees.

[0074] (Embodiment 2) The present invention will be described below based on the drawings showing a movement path generating device 1, a movement path generating method, and a computer according to a second embodiment. Among the configurations of the movement path generating device 1 according to the second embodiment, the same configurations as those of the first embodiment are given the same reference numerals, and detailed description thereof will be omitted. FIG. 8 is an explanatory diagram for explaining the calculation of the angle of the holding table. In FIG. 8, a strip-shaped coloring area 12, a fourth vector 24 parallel to the axial direction of the tool 7, and a third vector 23 extending in the width direction intersecting the longitudinal direction of the coloring area 12 are shown. The third vector 23 is perpendicular to the longitudinal edge of the coloring area 12. The control unit 2 calculates the angle θs between the third vector 23 and the fourth vector 24. The angle θs is, for example, an angle around the A-axis or C-axis of the holding table. For example, the A-axis is parallel to the X-axis, and the C-axis is parallel to the Z-axis. The control unit 2 detects the longitudinal edge of the coloring area 12 from the imaging data, and calculates and obtains the third vector 23. The direction of the fourth vector 24 is stored in the auxiliary storage unit 4 of the movement path generation device 1. The control unit 2 calculates the angle θs based on the third vector 23 and the fourth vector 24.

[0075] When the angle θs is an angle around the A axis, the tool 7 can be moved linearly in the longitudinal direction of the band by moving the holding table by an angle θs around the A axis, and the entire colored region 12 can be deburred. When the angle θs is an angle around the C axis, the tool 7 can be moved linearly in the longitudinal direction of the band by moving the holding table by an angle θs around the C axis, and the entire colored region 12 can be deburred. The angle θs may be an angle around the B axis. In this case, the tool 7 can be moved linearly in the longitudinal direction of the band by moving the holding table by an angle θs around the B axis, and the entire colored region 12 can be deburred. For example, the B axis is parallel to the Y axis. When a blade is formed on the peripheral surface of the tool 7, the workpiece can be processed, for example, deburred, with high accuracy by moving the holding table by an angle θs.

[0076] In the movement path generating device 1, movement path generating method, and computer program of embodiment 2, the colored area 12 extends along the surface of the master workpiece 11, and the angle of the holding table holding the master workpiece 11 is calculated so that a third vector 23 extending in the width direction intersecting the longitudinal direction of the colored area 12 is parallel to a fourth vector 24 parallel to the axis of the tool 7.

[0077] (Embodiment 3) The present invention will be described below based on the drawings showing a movement path generation device 1, a movement path generation method, and a computer according to the third embodiment. Among the components of the movement path generation device 1 according to the third embodiment, the same components as those in the first embodiment are given the same reference numerals, and detailed description thereof will be omitted. FIG. 9 is an explanatory diagram for explaining imaging of a master workpiece 11. A plurality of (three in this embodiment) indices 10a, 10b, and 10c are provided on a table 10. The patterns of the indices 10a, 10b, and 10c are different. The first imaging position 5a indicates a position where the master workpiece 11 is imaged from a position including the indices 10a and 10b, and the second imaging position 5b indicates a position where the master workpiece 11 is imaged from a position including the indices 10b and 10c.

[0078] At least one of the indices 10a, 10b, and 10c corresponds to an index of a second coordinate system, for example, a coordinate system of a holding table that holds a workpiece in a machine tool. The imaging data captured by the imaging unit 5 from the first imaging position 5a includes index data indicating the index 10a and index data indicating the index 10b, and the imaging data captured from the second imaging position 5b includes index data indicating the index 10b and index data indicating the index 10c. That is, the imaging data captured from the first imaging position 5a includes at least one index data that is the same as the imaging data captured from the second imaging position 5b.

[0079] The position data of the imaging data indicates a position in the first coordinate system. Therefore, by correcting the position of the first coordinate system to the position of the second coordinate system using the index data indicating the index 10a, the index 10b, or the index 10c, the position of the first coordinate system can be converted to the coordinate system of the holding table. For example, when the index 10a corresponds to the second coordinate system, the imaging data of the first imaging position 5a can be corrected using the index data indicating the index 10a. The imaging data of the second imaging position 5b cannot be directly corrected to the position of the second coordinate system because it does not include the index data indicating the index 10a. Therefore, the first coordinate system of the second imaging position 5b is corrected to the first coordinate system of the first imaging position 5a once using the index data indicating the index 10b included in the first imaging position 5a and the second imaging position 5b. After that, by correcting to the second coordinate system using the index data indicating the index 10a included in the imaging data of the first imaging position 5a, the other imaging data becomes the same as corrected using the index data indicating the index 10a.

[0080] In the movement path generation device 1, movement path generation method, and computer program of embodiment 3, the master work 11 is imaged from multiple positions including the first imaging position 5a and the second imaging position 5b so as to include at least two indexes 10a, 10b, 10c of the second coordinate system, the imaging data imaged from the first imaging position 5a includes at least one of the indexes 10a, 10b, 10c that are the same as the imaging data imaged from the second imaging position 5b, and the data of each point extracted from the imaging data imaged from the first imaging position 5a and the second imaging position 5b is corrected based on any one of the index data.

[0081] (Embodiment 4) The present invention will be described below based on the drawings showing a movement path generating device 1, a movement path generating method, and a computer according to a fourth embodiment. Among the configurations of the fourth embodiment, the same configurations as those of the first to third embodiments are given the same reference numerals, and detailed description thereof will be omitted. Fig. 10 is an explanatory diagram for explaining the relationship between the cutting direction and rotation direction of the tool 7 and the movement direction. In Fig. 10, a workpiece 16, a first movement direction 51 of the tool 7, a second movement direction 52 of the tool 7, a third movement direction 53 of the tool 7, and a fourth movement direction 54 of the tool 7 are shown.

[0082] The first moving direction 51 and the second moving direction 52 are directions parallel to the one surface 16a of the workpiece 16 on the one surface 16a side of the workpiece 16. The first moving direction 51 and the second moving direction 52 are opposite to each other. The third moving direction 53 and the fourth moving direction 54 are directions parallel to the other surface 16b of the workpiece 16 on the other surface 16b side of the workpiece 16. The other surface 16b of the workpiece 16 is opposite to the one surface 16a. The third moving direction 53 and the fourth moving direction 54 are opposite to each other.

[0083] The rotation direction of the tool 7 includes forward and reverse rotation. In FIG. 10, forward rotation is clockwise, and reverse rotation is counterclockwise. The cutting direction of the tool 7 includes up-cutting and down-cutting. Up-cutting is a cutting direction in which the rotation direction and the movement direction of the tool 7 are the same. Down-cutting is a cutting direction in which the rotation direction and the movement direction of the tool 7 are opposite to each other. Here, the rotation direction of the tool 7 in up-cutting and down-cutting is a direction in which the tool 7 rotates at the contact position between the tool 7 and the workpiece 16, and is a direction along the first movement direction 51 to the fourth movement direction 54. That is, the rotation direction of the tool 7 rotating forward on the one surface 16a side is approximately the same as the second movement direction 52, and the rotation direction of the tool 7 rotating forward on the other surface 16b side is approximately the same as the third movement direction 53. The rotation direction of the tool 7 reversed on the one surface 16a side is approximately the same as the first movement direction 51, and the rotation direction of the tool 7 reversed on the other surface 16b side is approximately the same as the fourth movement direction .

[0084] That is, when the tool 7 rotates forward on the one surface 16a side of the workpiece 16 and performs up-cutting, the movement direction of the tool 7 is a second movement direction 52. When the tool 7 rotates forward on the one surface 16a side of the workpiece 16 and performs down-cutting, the movement direction of the tool 7 is a first movement direction 51. When the tool 7 rotates forward on the other surface 16b side of the workpiece 16 and performs up-cutting, the movement direction of the tool 7 is a third movement direction 53. When the tool 7 rotates forward on the other surface 16b side of the workpiece 16 and performs down-cutting, the movement direction of the tool 7 is a fourth movement direction 54.

[0085] That is, when the tool 7 rotates in the reverse direction on the one surface 16a side of the workpiece 16 to perform up-cutting, the movement direction of the tool 7 is a first movement direction 51. When the tool 7 rotates in the reverse direction on the one surface 16a side of the workpiece 16 to perform down-cutting, the movement direction of the tool 7 is a second movement direction 52. When the tool 7 rotates in the reverse direction on the other surface 16b side of the workpiece 16 to perform up-cutting, the movement direction of the tool 7 is a fourth movement direction 54. When the tool 7 rotates in the reverse direction on the other surface 16b side of the workpiece 16 to perform down-cutting, the movement direction of the tool 7 is a third movement direction 53.

[0086] As described above, by specifying the rotation direction and cutting direction of the tool 7, the moving direction of the tool 7 is determined to be one of the first moving direction 51 to the fourth moving direction 54. For example, as shown in FIG. 10, a plurality of teaching points 14a, 14b, and 14c are arranged between a first position 161 and a second position 162 on one surface 16a. The teaching point 14a is closest to the first position 161, the teaching point 14c is closest to the second position 162, and the teaching point 14b is located between the two teaching points 14a and 14b. When the forward rotation is specified as the rotation direction of the tool 7 and the up-cut is specified as the cutting direction on the one surface 16a side of the workpiece 16, the moving direction of the tool 7 is automatically determined to be the second moving direction 52. That is, the tool 7 is moved in the order of the teaching point 14c, the teaching point 14b, and the teaching point 14a.

[0087] When forward rotation is specified as the rotation direction of the tool 7 on the side of one surface 16a of the workpiece 16 and down cutting is performed as the cutting direction, the movement direction of the tool 7 is automatically determined to be the first movement direction 51. That is, the tool 7 is moved in the order of the teaching point 14a, the teaching point 14b, and the teaching point 14c.

[0088] After acquiring the teaching points 14a to 14c, the control unit 2 acquires the rotation direction and cutting direction of the tool 7. The rotation direction and cutting direction of the tool 7 may be input to the movement path generating device 1 by an operator, for example, or may be set in advance in a control program. The control unit 2 determines the order of the teaching points 14a to 14c between the first position 161 and the second position 162 on the movement path based on the rotation direction and cutting direction of the tool 7. Note that the center of gravity 14 is an example of a representative point, and a histogram may be created for each axis coordinate (X, Y, Z) of the point cloud to determine the most frequent value as the representative point.

[0089] It should be noted that a computer program can be deployed to be executed on a single computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[0090] The embodiments disclosed herein should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is intended to include all modifications within the scope of the claims and the scope equivalent to the claims. The matters described in each embodiment can be combined with each other. In addition, the independent claims and dependent claims described in the claims can be combined with each other in all combinations regardless of the citation format. Furthermore, the claims use a format (multiple claim format) in which a claim cites two or more other claims, but this is not limited to this. A format in which a multiple claim (multi-multi claim) citing at least one multiple claim may be used. [Explanation of symbols]

[0091] 1. Travel route generation device 2. Control section 3 Main memory 4 Auxiliary storage 5. Imaging unit 5a First imaging position 5b Second imaging position 11 Masterwork 7 Tools 10 Tables 10a, 10b, 10c indicators 12 Colored area (predetermined area) 13 points 14 Center of gravity 14a~14c Teaching points 21 First Vector 22 Second Vector 23 Third Vector 24 Fourth Vector 30 space

Claims

1. An extraction unit that extracts data of each point within a predetermined area on a workpiece surface from image data of the workpiece; an acquisition unit that acquires teaching points on a moving path of a tool based on the data of each point extracted by the extraction unit; A travel route generation device comprising:

2. a division unit that divides each point in the predetermined region extracted by the extraction unit into a plurality of point groups; a representative point extraction unit that extracts data of a representative point of each point group divided by the dividing unit; Equipped with The acquisition unit acquires the teaching points based on data of representative points of each of the point groups. The travel route generation device according to claim 1 .

3. The partitioning unit divides the predetermined region into a plurality of spaces, and converts a plurality of points in each space into the point cloud. The travel route generation device according to claim 2 .

4. The partitioning unit partitions the points in the predetermined region into a plurality of point groups by clustering. The travel route generation device according to claim 2 .

5. The representative point is the center of gravity of the point cloud. The travel route generation device according to any one of claims 2 to 4.

6. data of the representative points of each of the point groups includes a position based on a first coordinate system; The imaging data includes index data obtained by imaging an index in a second coordinate system different from the first coordinate system, a correction unit that corrects the position based on the first coordinate system based on the index data; The travel route generation device according to any one of claims 2 to 4.

7. the index includes the origin of the second coordinate system; The correction unit is an offset processing unit that causes an origin of the first coordinate system to coincide with an origin of the second coordinate system; a rotation processing unit that causes each axis of the first coordinate system to coincide with each axis of the second coordinate system; Includes The travel route generation device according to claim 6.

8. The extraction unit extracts data of each point within an area that is colored differently from the color of the workpiece. The travel route generation device according to any one of claims 1 to 4.

9. The extraction unit determining whether or not a value of color information for each point in the imaging data is within a predetermined range; Extracting data of points where the value of the color information is determined to be within a predetermined range The travel route generation device according to claim 8.

10. The extraction unit extracts data of each point in a first area to which a first color different from the color of the workpiece is applied, and extracts data of each point in a second area to which a second color different from the color of the workpiece and the first color is applied, The acquisition unit acquires teaching points on a first movement path of the tool based on data of each point in the first region, and acquires teaching points on a second movement path of the tool based on data of each point in the second region. The travel route generation device according to any one of claims 1 to 4.

11. and a first angle calculation unit that calculates an angle of a holding unit that holds a workpiece so that an angle between a first vector on a normal line perpendicular to the plane calculated from the point cloud and a second vector parallel to the axis of the tool becomes a right angle. The travel route generation device according to any one of claims 2 to 4.

12. the predetermined area extends along the work surface; A second angle calculation unit is provided to calculate an angle of a holding unit that holds a workpiece so that a third vector extending in a width direction intersecting with the longitudinal direction of the predetermined region and a fourth vector parallel to the axis of the tool are parallel to each other. The travel route generation device according to any one of claims 1 to 4.

13. A determination unit that determines an order of the teaching points between a first position and a second position on the movement path based on a cutting direction of the tool and a rotation direction of the tool. The travel route generation device according to any one of claims 1 to 4.

14. The workpiece is imaged to generate image data; Extracting data of each point within a predetermined area of ​​the workpiece surface from the image data of the workpiece; Based on the extracted data of each point, teaching points in the tool movement path are obtained. A method for generating a travel route.

15. The workpiece is imaged by a depth camera. The travel route generation method according to claim 14.

16. The workpiece is imaged by an imaging unit including a distance sensor and a camera. The travel route generation method according to claim 14.

17. The workpiece is imaged from a plurality of positions including a first imaging position and a second imaging position so as to include at least two indices of a predetermined coordinate system; The imaging data captured from the first imaging position includes at least one index data identical to the imaging data captured from the second imaging position, The data of each point extracted from the image data captured from the first image capturing position and the second image capturing position is corrected based on any one of the index data. The travel route generation method according to any one of claims 14 to 16.

18. A computer program executed by a movement path generating device that generates a tool movement path, The travel route generation device includes: Extracting data of each point within a predetermined area of ​​the workpiece surface from the image data of the workpiece; Based on the extracted data of each point, teaching points in the tool movement path are obtained. A computer program that executes a process.

Citation Information

Patent Citations

  • Methyl methacrylate based resin bulk-buffering small foamed body and manufacture thereof

    JP1984081143A