WO2023071481A1 - Method and apparatus for collecting teaching trajectory points, and robotic arm, system and medium - Google Patents

Method and apparatus for collecting teaching trajectory points, and robotic arm, system and medium Download PDF

Info

Publication number
WO2023071481A1
WO2023071481A1 PCT/CN2022/114889 CN2022114889W WO2023071481A1 WO 2023071481 A1 WO2023071481 A1 WO 2023071481A1 CN 2022114889 W CN2022114889 W CN 2022114889W WO 2023071481 A1 WO2023071481 A1 WO 2023071481A1
Authority
WO
WIPO (PCT)
Prior art keywords
teaching
coordinate system
coordinates
camera
coordinate
Prior art date
Application number
PCT/CN2022/114889
Other languages
French (fr)
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 深圳市越疆科技有限公司
Publication of WO2023071481A1 publication Critical patent/WO2023071481A1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1628Programme controls characterised by the control loop
    • B25J9/163Programme controls characterised by the control loop learning, adaptive, model based, rule based expert control
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J13/00Controls for manipulators
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/0081Programme-controlled manipulators with master teach-in means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • B25J9/161Hardware, e.g. neural networks, fuzzy logic, interfaces, processor
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1664Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning

Definitions

  • the present application relates to the field of teaching, and in particular to a method, device, mechanical arm, system and medium for collecting teaching track points.
  • Robots are more and more widely used in various industries. Compared with manual operations, robot operations have greatly improved the accuracy and efficiency of operations. For some scenarios that require consumables, such as painting, dispensing, welding, etc., robots The operation can also greatly improve the utilization rate of consumables and reduce the waste of consumables. In addition, the machine has many advantages in terms of large working space and improved working environment for workers.
  • the prerequisite for the robot to complete precise movements is that the operator has strong programming ability, completes the motion control program programming, and inputs it into the robot, which has very high requirements for the operator, and it is generally difficult for workers on the production line to complete complex Action programming, which in turn limits the application scenarios of the robot.
  • the prior art usually uses a teaching tool or the free end of the robot for teaching, but in the prior art, the robot teaching system usually needs to use a three-dimensional space attitude acquisition system (such as a motion capture camera or laser sensor, etc.) to capture the spatial attitude of the teaching tool, and then convert it to the position of the teaching point according to the spatial attitude.
  • a three-dimensional space attitude acquisition system such as a motion capture camera or laser sensor, etc.
  • the cost of teaching remains high and increases. This not only increases the burden on enterprises, but also hinders the promotion of robot applications.
  • the present application provides a teaching track point acquisition method, device, mechanical arm, system and medium to solve the problem of high cost in the prior art of using a spatial attitude acquisition system during teaching.
  • the present application provides a method for collecting teaching track points, the method is used to determine the teaching track points when the teaching tool is teaching, and the teaching tool includes a connected calibration board and teaching components,
  • the calibration board includes at least three positioning points, the teaching part includes a teaching tip, and there is an angle between the teaching part and the plane where the calibration board is located, and the method includes:
  • the present application provides a teaching method, the method comprising:
  • the present application provides a method for controlling motion of a robotic arm, the method comprising:
  • a motion control instruction of the robotic arm is generated according to the fifth coordinate of the recurring track point.
  • the present application provides a device for collecting teaching track points, including a unit for executing the method for collecting teaching track points as described in the first aspect.
  • the present application provides a teaching device, including a unit for performing the teaching method as described in the second aspect.
  • the present application provides a robotic arm, including a unit for executing the method for controlling motion of a robotic arm as described in the third aspect.
  • the present application provides a controller, including a processor, a communication interface, a memory, and a communication bus, wherein, the processor, the communication interface, and the memory complete mutual communication through the communication bus;
  • the processor is configured to implement the steps of the teaching track point acquisition method as described in the first aspect, or the steps of the teaching method as described in the second aspect, or the steps of the teaching method as described in the third aspect when executing the program stored in the memory.
  • the steps of the motion control method of the mechanical arm are configured to implement the steps of the teaching track point acquisition method as described in the first aspect, or the steps of the teaching method as described in the second aspect, or the steps of the teaching method as described in the third aspect when executing the program stored in the memory.
  • the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the teaching track point acquisition method as described in the first aspect are implemented, or as described in The steps of the teaching method described in the second aspect, or the steps of the robot arm motion control method described in the third aspect.
  • the present application provides a teaching system, including a teaching tool, a camera, and a controller, the camera is connected to the controller, and the teaching tool includes a connected calibration board and teaching components, so
  • the calibration board includes at least three positioning points, the teaching part includes a teaching tip, and there is an included angle between the teaching part and the plane where the calibration board is located, and the controller is used to execute the method described in the first aspect.
  • the trajectory point acquisition method proposed in the embodiment of the present application can locate the position of the teaching tip on the calibration board by using the two-dimensional captured image taken by the camera, and collect the trajectory points of the teaching tip in the world coordinate system, which is different from the existing Compared with technology, the three-dimensional space attitude acquisition system (such as motion capture camera or laser sensor, etc.) can be omitted. Compared with these three-dimensional space attitude acquisition systems, the cost of the camera can greatly save costs, and then the speed of robot teaching can be quickly promoted. .
  • the three-dimensional space attitude acquisition system such as motion capture camera or laser sensor, etc.
  • the acquisition equipment when the three-dimensional space attitude acquisition system is installed, in order to reflect the three-dimensional acquisition, the acquisition equipment is generally set within a certain range, such as laser acquisition, which requires at least two laser sensors; motion capture cameras usually require two cameras, these three-dimensional space
  • the attitude acquisition system is installed, an additional complex installation structure and frame need to be set up, while the camera only needs to be installed in a simple position. Therefore, it also greatly saves the complexity of the installation, and the requirements for the site, It can also be quickly deployed in confined spaces.
  • FIG. 1 is a schematic structural diagram of a teaching device provided in an embodiment of the present application.
  • Fig. 2 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application.
  • Fig. 3 is a top view structural schematic diagram of Fig. 2;
  • Fig. 4 is a top view of a teaching tool provided by another embodiment of the present application.
  • FIG. 5 is a schematic flow diagram of a teaching trajectory point acquisition method provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application.
  • Fig. 7 is another schematic structural diagram of the teaching tool provided by the embodiment of the present application.
  • FIG. 8 is a schematic flow diagram of a method for acquiring teaching trajectory points provided by another embodiment of the present application.
  • Fig. 9 is a schematic flow chart of a teaching method provided by the embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a method for controlling the motion of a robotic arm provided in an embodiment of the present application
  • Fig. 11 is a structural block diagram of a collection device for teaching trajectory points provided by an embodiment of the present application.
  • FIG. 12 is a structural block diagram of a teaching device provided by an embodiment of the present application.
  • FIG. 13 is a structural block diagram of a mechanical arm provided in an embodiment of the present application.
  • FIG. 14 is a structural block diagram of a controller provided in an embodiment of the present application.
  • FIG. 15 is a structural block diagram of a teaching system provided by an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a teaching device provided in an embodiment of the present application.
  • 100 is a mechanical arm
  • 200 is an operating table
  • the operating table 200 may be a platform on which parts or equipment to be processed are placed.
  • the travel of the end of the mechanical arm 100 can cover the operation table 200 , and the end of the robot arm 100 moves on the operation table 200 to perform related operations on parts or equipment to be processed.
  • the upper surface of the operating surface 200 may be referred to as an operating surface.
  • the mechanical arm 100 can be directly fixedly installed on the operating table 200, and in another case, the mechanical arm 100 can not be fixed on the operating table 200, but is located next to the operating table 200 , is suspended above the operating table 200 through a bracket or other mounting parts, and can also move on the operating table 200 .
  • the camera 11 may be a common optical imaging lens.
  • a shooting distance is set between the camera 11 and the operating table 200, as shown in Figure 1, there is a height difference between the camera 11 and the operating table 200, so that the operating table 200 can be located on the within the shooting range of the camera 11.
  • the shooting range of the camera 11 may cover part or all of the area on the operating table 200 .
  • the shooting range of the camera 11 covers the entire area of the operation table 200.
  • an effective operation area is set on the operation table 200, and the area of the effective operation area is smaller than the entire area of the operation table 200, and then The shooting range of the camera 11 may only cover the effective operation area.
  • FIG. 1 the postures of the teaching tool at two different moments at time n and time m are shown.
  • FIG. 2 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application
  • FIG. 3 is a schematic top view structural diagram of FIG. 2 .
  • the teaching tool 12 includes: a calibration board 121 and a teaching part 122, the calibration board 121 is connected with the teaching part 122, and the teaching part 122 is connected to the place where the calibration board 121 is located. There is an included angle between the planes, the calibration plate 121 contains calibration graphics, and the teaching component 122 is provided with a teaching tip 123 .
  • the calibration figure is arranged on one side of the calibration board, and the teaching component is fixed on the other side of the calibration board.
  • the shape of the teaching component 122 is specifically a rod shape, so as to be convenient for the user to hold.
  • the teaching part 122 is perpendicular to the calibration plate 121 .
  • the teaching component 122 is provided with an indicator light 124 and a collection button 125 .
  • the collection button 125 is used to send a collection trigger signal.
  • the indicator light 124 is used to indicate the working state. For example, the indicator light is on when working, and the indicator light is off when not working.
  • positioning points are arranged on the surface of the calibration plate 121, and the number of positioning points is at least three.
  • the positioning points on the calibration plate are arranged at equal intervals.
  • the calibration board is provided with a black and white checker grid array pattern, and the black and white checker grid array pattern is formed by an array arrangement of a plurality of black checker grids and white checker grids. Vertices of black and/or white checkerboards in the black and white checkerboard array pattern are anchor points.
  • the calibration plate 121 is provided with an array pattern of solid circles at equal intervals, and the array pattern of solid circles at equal intervals is formed by a plurality of solid circles arranged in an array at equal intervals.
  • the center of the solid circle is the positioning point.
  • the end of the teaching component 122 away from the calibration plate 121 is a teaching tip 123 , and in practical applications, the teaching tip 123 is used to indicate the position of the teaching point.
  • the calibration plate 121 in the teaching tool can be directly fixed to the teaching component 122, and considering the positional accuracy between the calibration plate 121 and the teaching component 122, the general calibration plate 121 and the teaching part 122 are fixed together by welding. Alternatively, it may also be fixed by buckles, or by fasteners, such as screws.
  • the coordinate systems involved include the world coordinate system, the camera coordinate system, the teaching tool coordinate system and the manipulator coordinate system.
  • the world coordinate system in the figure is (x1, y1, z1)
  • the camera coordinate system is (x2, y2, z2)
  • the coordinate system of the teaching tool is (x3, y3, z3)
  • the robot arm coordinates Department(x4, y4, z4) is (x4, y4, z4).
  • the transformation matrix between the teaching tool coordinate system and the camera coordinate system is defined as the first transformation matrix
  • the transformation matrix between the camera coordinate system and the world coordinate system is defined as the second transformation matrix.
  • the transformation matrix between the coordinate system and the world coordinate system is the third transformation matrix
  • the transformation matrix between the world coordinate system and the manipulator coordinate system is the fourth transformation matrix.
  • the teaching tool coordinate system refers to the coordinate system established for the teaching tool in advance.
  • the center point of the black and white chess grid array pattern on the calibration board of the teaching tool is the origin
  • the length direction of the calibration board is the X-axis direction
  • the width direction of the calibration board is the Y-axis direction
  • the teaching components The direction is the Z-axis direction
  • the teaching tool coordinate system is established. Since the positioning point on the teaching tool and the relative position between the teaching tip and the origin of the teaching tool coordinate system are fixed, after the teaching tool coordinate system is established, regardless of the posture of the teaching tool in space Changes, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are fixed. In the embodiment of the present application, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are determined and stored in advance.
  • the second transformation matrix between the camera coordinate system and the world coordinate system is fixed.
  • the second transformation matrix between the camera coordinate system and the world coordinate system is determined in advance, which can be specifically determined by calibrating the external parameters of the camera. It should be noted that the calibration process of the camera extrinsic parameters is well known to those skilled in the art, and this application does not specifically limit it.
  • the fourth transformation matrix between the world coordinate system and the robot arm coordinate system is fixed.
  • the fourth transformation matrix between the world coordinate system and the manipulator coordinate system is determined in advance. Specifically, the coordinates of at least 3 points in the world coordinate system are determined first (for example, in this embodiment, the number of points is 13, the more the number of points, the higher the accuracy, and the greater the corresponding calculation amount), then control the mechanical arm to move to the above-mentioned at least 3 points, and record the coordinates of the at least 3 points in the mechanical arm coordinate system, and then The fourth conversion matrix can be calculated according to the coordinates of the at least three points in the world coordinate system and the coordinates in the robot arm coordinate system.
  • the first transformation matrix between the teaching tool coordinate system and the camera coordinate system changes.
  • the camera collects the coordinates of the positioning point on the teaching tool in the camera coordinate system.
  • the first transformation matrix is solved according to the coordinates of the positioning point in the camera coordinate system and the coordinates of the positioning point in the teaching tool coordinate system.
  • the embodiment of the present application proposes a method for collecting teaching track points, which is used to determine the teaching track points when the teaching tool is teaching.
  • the teaching tool includes a connected calibration board and teaching components.
  • the calibration board includes at least three positioning points, the teaching part includes a teaching tip, and there is an included angle between the teaching part and the plane where the calibration board is located.
  • the method is applied in a controller, and the method includes the following steps S101-S104.
  • the camera faces the operation table, the teaching tool moves on the operation table, and the captured image including the calibration plate is collected by the camera.
  • the second is to control the camera to shoot video in real time, and intercept at least one frame of image from the video stream of the camera to obtain the captured image.
  • step S101 specifically includes the following steps S201-S202.
  • the acquisition trigger signal is used to trigger the acquisition and shooting of images.
  • the acquisition trigger signal can be input by the user.
  • a collection button is provided on the teaching part of the teaching tool, and the user can send a collection trigger signal by pressing the collection button.
  • the controller judges (monitors) whether the acquisition trigger signal is received in real time.
  • the indicator light on the teaching component is also used to indicate the acquisition status, for example, when it is detected that the acquisition button is pressed, the indicator light is on, otherwise the indicator light is off.
  • At least one photographed image including the calibration plate is acquired through the camera. For example, one sheet or multiple sheets may be collected.
  • the above step S202 specifically includes the following steps S301-S303.
  • the duration of the acquisition trigger signal is measured in real time, and it is judged whether the duration of the acquisition trigger signal is greater than a preset time threshold.
  • the time threshold can be set by those skilled in the art, for example, it can be set to 0.5s, which is not specifically limited in this application.
  • the duration of the acquisition trigger signal is greater than a preset time threshold, acquire a plurality of photographed images including the calibration plate through the camera.
  • the duration of the acquisition trigger signal is greater than the preset time threshold, at this time, enter the continuous acquisition mode, that is, collect a plurality of photographed images containing the calibration plate through the camera, for example, it can be preset every interval
  • One piece is collected at time, for example, one piece is collected every 0.5s, that is, one piece is collected when the collection trigger signal is just received, and one piece is collected every 0.5s thereafter.
  • the long press of the acquisition button by the user can make the duration of the acquisition trigger signal longer than the preset time threshold, thereby controlling the continuous acquisition of the captured images.
  • the duration of the acquisition trigger signal is not greater than the preset time threshold, at this time, enter the single-image acquisition mode, that is, collect a photographed image containing the calibration plate through the camera, for example, it can be used just now Acquire a shot image when receiving the acquisition trigger signal.
  • the user can click the acquisition button to make the duration of the acquisition trigger signal not greater than the preset time threshold, so as to control the acquisition of only one photographed image.
  • first establish an image coordinate system in the captured image and obtain the coordinates of each of the positioning points in the captured image in the image coordinate system, and then set each of the positioning points in the image coordinate system according to the internal reference of the camera
  • the coordinates of are converted to coordinates in the camera coordinate system of the camera.
  • the coordinates of the positioning point in the camera coordinate system of the camera are defined as the first coordinates. Therefore, through step S102, the first coordinates of each of the positioning points in the camera coordinate system can be respectively obtained.
  • the teaching tool coordinate system refers to a coordinate system established for the teaching tool in advance. Since the positioning point on the teaching tool and the relative position between the teaching tip and the origin of the teaching tool coordinate system are fixed, after the teaching tool coordinate system is established, regardless of the posture of the teaching tool in space Changes, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are fixed.
  • the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are determined and stored in advance.
  • the coordinates of the positioning point in the coordinate system of the teaching tool are defined as the second coordinates.
  • the conversion of coordinates between coordinate systems can be realized through the conversion matrix between coordinate systems.
  • the conversion between coordinate systems can also be reversely solved matrix.
  • the coordinates of at least three points between the two coordinate systems are required to solve the transformation matrix between the coordinate systems.
  • the transformation matrix between the teaching tool coordinate system and the camera coordinate system is defined as a first transformation matrix.
  • the number of positioning points is at least three, therefore, the first conversion matrix can be solved according to the first coordinates and the second coordinates of at least three positioning points.
  • step S103 specifically includes the following steps S401-S402.
  • an equation with the first transformation matrix as an unknown is established according to its first coordinates and second coordinates to obtain a system of equations.
  • the first conversion matrix can be obtained by solving the equation system.
  • the coordinates of the teaching tip in the coordinate system of the teaching tool are defined as the third coordinates.
  • the coordinates of the teaching tip in the world coordinate system are defined as the fourth coordinates. It should be noted that the third coordinate of the teaching tip is predetermined and stored.
  • the third coordinates are transformed into the coordinates of the teaching tip in the camera coordinate system according to the first transformation matrix.
  • the coordinates of the teaching tip in the camera coordinate system are transformed into the coordinates of the teaching tip in the world coordinate system according to the second transformation matrix.
  • the coordinate of the teaching tip in the world coordinate system is defined as the fourth coordinate.
  • the fourth coordinate is used as the coordinate of a teaching track point of the teaching tip.
  • the second transformation matrix may be specifically determined by calibrating the extrinsic parameters of the camera.
  • the process of calibrating camera extrinsic parameters is well known to those skilled in the art, and this application does not specifically limit it.
  • step S104 specifically includes the following steps S501-S502.
  • the product of the first transformation matrix and the second transformation matrix is calculated to obtain a transformation matrix between the teaching tool coordinate system and the world coordinate system.
  • the transformation matrix between the teaching tool coordinate system and the world coordinate system is defined as a third transformation matrix.
  • the coordinates in the teaching tool coordinate system can be directly converted into coordinates in the world coordinate system through the third conversion matrix.
  • the coordinates of the teaching tip in the world coordinate system can be obtained by calculating the product of the third coordinate of the teaching tip and the third conversion matrix.
  • the coordinate of the teaching tip in the world coordinate system is defined as the fourth coordinate.
  • the method for collecting teaching track points proposed in the embodiment of the present application can locate the position of the teaching tip on the calibration board by using the two-dimensional captured image captured by the camera, and collect the track points of the teaching tip in the world coordinate system, and Compared with the existing technology, the three-dimensional space attitude acquisition system (such as motion capture camera or laser sensor, etc.) can be omitted. Compared with these three-dimensional space attitude acquisition systems, the cost of the camera can greatly save costs, and then the robot teaching can be quickly promoted. speed.
  • the three-dimensional space attitude acquisition system such as motion capture camera or laser sensor, etc.
  • the acquisition equipment when the three-dimensional space attitude acquisition system is installed, in order to reflect the three-dimensional acquisition, the acquisition equipment is generally set within a certain range, such as laser acquisition, which requires at least two laser sensors; motion capture cameras usually require two cameras, these three-dimensional space
  • the attitude acquisition system is installed, an additional complex installation structure and frame need to be set up, while the camera only needs to be installed in a simple position. Therefore, it also greatly saves the complexity of the installation, and the requirements for the site, It can also be quickly deployed in confined spaces.
  • FIG. 6 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application.
  • FIG. 7 is another structural schematic diagram of the teaching tool provided by the embodiment of the present application.
  • a calibration board is provided on the teaching tool, but in a specific application, when the calibration board on the calibration board is tilted, as shown at moment m in Figure 1, the shooting direction of the camera is at the same position as the calibration board. The angle between the planes is small (almost parallel), so the image of the calibration plate acquired by the camera cannot be accurately calibrated. For this reason, considering the flexibility of the movement of the teaching tool, in the embodiment of the present application, a teaching tool having at least two calibration plates may also be provided.
  • the teaching tool includes: a teaching part 122 and at least two calibration boards, wherein the at least two calibration boards are connected to one end of the teaching part 122, and the other end of the teaching part 122 One end is a teaching tip 123 . And preferably, the at least two calibration plates are adjacent to each other, and the adjacent calibration plates share the same edge.
  • the teaching tool in the figure includes two calibration boards: calibration board a and calibration board b, an angle is set between the plane where calibration board a is located and the plane where calibration board b is located, and the calibration board There is a common edge between plate a and calibration plate b.
  • Each calibration plate is provided with at least three positioning points.
  • the present application provides a method for collecting teaching track points, which is used to determine track points when teaching with a teaching tool.
  • the method for collecting teaching track points includes the following steps: S601-S606.
  • the first coordinates of the positioning point of each calibration board in the camera coordinate system of the camera are acquired respectively.
  • the outline of each calibration plate is firstly determined by a preset edge detection algorithm, and then the area of each calibration plate is calculated respectively.
  • step S603 specifically includes the following steps S701-S702.
  • the contour of each calibration board is determined by a preset edge detection algorithm, and then the target area surrounded by the contours of each calibration board is determined.
  • S702. Determine the image area of each of the calibration plates according to the number of pixels included in the target area enclosed by the outline of each of the calibration plates.
  • the number of pixels contained in the target area surrounded by the outline of each calibration plate is respectively obtained. Since the area of each pixel is fixed, the image area of the calibration plate can be determined according to the number of pixels. .
  • the larger the image area the smaller the calculation error. Therefore, selecting the calibration plate with the largest image area as the target calibration plate can effectively reduce the error.
  • the first transformation matrix between the teaching tool coordinate system and the camera coordinate system is solved based on the first coordinates and the second coordinates of each positioning point of the target calibration board, because the image area of the target calibration board is the largest, therefore, can effectively reduce the error.
  • S606 Obtain the third coordinate of the teaching tip in the coordinate system of the teaching tool, and convert the The third coordinate of the teaching tip is transformed into a fourth coordinate in the world coordinate system, and the fourth coordinate is used as a coordinate of a teaching track point of the teaching tip.
  • an embodiment of the present application provides a teaching method, and the teaching method includes the following steps S801-S802.
  • At least one teaching track point is collected through the teaching track point acquisition method provided in any one of the above embodiments.
  • the number of teaching track points can be determined by those skilled in the art according to actual conditions, and is not specifically limited in this application.
  • the transformation matrix between the world coordinate system and the manipulator coordinate system of the manipulator is pre-calibrated.
  • the transformation matrix between the world coordinate system and the manipulator coordinate system is defined as the fourth transformation matrix .
  • the calibration method of the fourth transformation matrix is as follows: firstly, determine the coordinates of at least 3 points in the world coordinate system (for example, in this embodiment, the number of points is 13 and the distribution is uniform, the more the number of points, the higher the accuracy higher, the corresponding calculation amount is larger), and then control the robot arm to move to the above-mentioned at least 3 points, and record the coordinates of the at least 3 points in the robot arm coordinate system, and then according to the at least 3 points in the world coordinate system
  • the coordinates of and the coordinates in the coordinate system of the manipulator can be solved to obtain the fourth transformation matrix.
  • the fourth coordinate of the teaching tip is converted into the coordinates of the teaching tip in the coordinate system of the manipulator according to the fourth transformation matrix, in order
  • the description is simple and easy to distinguish, and the coordinate of the teaching tip in the coordinate system of the manipulator is defined as the fifth coordinate.
  • the fifth coordinate is used as the coordinate of a recurring track point of the teaching tip.
  • the coordinates of the recurring track point are sent to the controller of the robotic arm, so that the controller of the robotic arm can control the mechanical arm to move to the Recursive track points.
  • an embodiment of the present application provides a method for controlling motion of a robotic arm, and the teaching method includes the following steps S901 - S902 .
  • the coordinates of at least one recurring track point are collected through the teaching method provided by any one of the above embodiments.
  • the number of recurring track points can be determined by those skilled in the art according to actual conditions, and is not specifically limited in this application.
  • a motion control command of the robotic arm is generated according to the fifth coordinate of the recurring track point.
  • the fifth coordinate of the recurring track point is written as a parameter into the preset motion control program of the mechanical arm to obtain the motion control instruction, which is used to control the movement of the mechanical arm to the track point.
  • each recurring trajectory point can be connected by a line (for example, a line segment or an arbitrary curve, which can be fitted by those skilled in the art according to the actual situation, which is not specifically limited in this application), to obtain the teaching trajectory.
  • a motion control instruction of the robotic arm is generated according to the taught trajectory. The motion control instruction is used to control the movement of the mechanical arm along the teaching track.
  • an embodiment of the present application provides a teaching track point acquisition device 70
  • the teaching track point acquisition device 70 includes a unit for performing the teaching track point acquisition method described in any of the above-mentioned embodiments .
  • the acquisition device 70 for teaching track points includes a first acquisition unit 71 , a first acquisition unit 72 , a second acquisition unit 73 and a third acquisition unit 74 .
  • the first acquisition unit 71 is configured to acquire a photographed image including the calibration plate through a camera.
  • the first obtaining unit 72 is configured to obtain first coordinates of each of the positioning points in the captured image under the camera coordinate system of the camera.
  • the second acquiring unit 73 is configured to acquire the second coordinates of each of the positioning points under the teaching tool coordinate system pre-built for the teaching tool, according to the first coordinates of each of the positioning points and each of the positioning points The second coordinates of , and solve the first transformation matrix between the teaching tool coordinate system and the camera coordinate system.
  • the third acquiring unit 74 is configured to acquire the third coordinates of the teaching tip in the coordinate system of the teaching tool, according to the first transformation matrix and the pre-calibrated third coordinates of the camera coordinate system and the world coordinate system A conversion matrix, converting the third coordinate of the teaching tip into a fourth coordinate in the world coordinate system, and using the fourth coordinate as a coordinate of a teaching track point of the teaching tip.
  • the capturing of the photographed image containing the calibration plate through the camera includes:
  • the camera is used to acquire at least one photographed image including the calibration plate.
  • the collecting at least one photographed image containing the calibration plate through the camera includes:
  • the duration of the acquisition trigger signal is greater than the preset time threshold, a plurality of photographed images including the calibration plate are collected by the camera;
  • the duration of the acquisition trigger signal is not greater than the preset time threshold, a photographed image including the calibration plate is acquired by the camera.
  • the teaching tool is provided with at least two calibration boards, and there is an angle between the planes where the calibration boards are located, and the captured image includes images of at least two calibration boards, the Obtain the second coordinates of each of the positioning points under the teaching tool coordinate system pre-built for the teaching tool, and solve the problem according to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points.
  • the first transformation matrix between the teaching tool coordinate system and the camera coordinate system includes:
  • the acquiring the image area of each calibration plate in the captured image includes:
  • the image area of each of the calibration plates is determined according to the number of pixels included in the target area enclosed by the outline of each of the calibration plates.
  • the first transformation matrix between the teaching tool coordinate system and the camera coordinate system is solved ,include:
  • the acquisition of the third coordinate of the teaching tip in the coordinate system of the teaching tool is based on the first conversion matrix and the pre-calibrated third coordinate of the camera coordinate system and the world coordinate system.
  • an embodiment of the present application provides a teaching device 80 , and the teaching device 80 includes a unit for performing the teaching method described in any one of the above embodiments.
  • the teaching device 80 includes a second acquisition unit 81 and a conversion unit 82 .
  • the second collection unit 81 is configured to collect at least one teaching trajectory point according to the teaching trajectory point collection method provided in any one of the above embodiments.
  • the conversion unit 82 is used to convert the fourth coordinate of the teaching track point into the fifth coordinate in the mechanical arm coordinate system according to the fourth conversion matrix between the pre-calibrated world coordinate system and the mechanical arm coordinate system of the mechanical arm , and use the fifth coordinate as the coordinate of a recurring track point of the teaching tip.
  • an embodiment of the present application provides a robotic arm 100 , and the robotic arm 100 includes a unit configured to execute the method for controlling motion of the robotic arm described in any of the foregoing embodiments.
  • the robotic arm 100 includes a generating unit 110 and a sending unit 120 .
  • the generating unit 110 is configured to generate the fifth coordinates of the recurring track point of the teaching tip generated according to the teaching method provided in any one of the above-mentioned embodiments.
  • the sending unit 120 is configured to generate a motion control command of the robotic arm according to the fifth coordinate of the recurring track point.
  • the embodiment of the present application provides a controller, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein, the processor 111, the communication interface 112, and the memory 113 are completed through the communication bus 114 mutual communication.
  • Memory 113 used to store computer programs
  • the processor 111 is used to execute the program stored in the memory 113 to implement the steps of the teaching track point collection method provided by any of the aforementioned method embodiments, or the steps of the teaching method, or Steps of a method for controlling motion of a robotic arm.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the teaching track point collection method provided by any one of the above-mentioned method embodiments are implemented, Or the steps of the teaching method, or the steps of the mechanical arm motion control method.
  • an embodiment of the present application provides a teaching system
  • the teaching system includes a teaching tool 12, a camera 11 and a controller 13, the camera 11 is connected to the controller 13, the
  • the teaching tool 12 includes a connected calibration plate 121 and a teaching part 122
  • the calibration board 121 includes at least three positioning points
  • the teaching part 122 includes a teaching tip 123
  • the teaching part 122 is connected to the teaching part 122.
  • the teaching system further includes a collection button 125, and the collection button 125 is used to send a collection trigger signal to the controller.
  • the collection button 125 is set on the teaching component 122 .
  • the teaching tool 12 includes a first control module 127 , a first communication module 126 and a power supply module 128 , and the controller 13 includes a second control module 131 and a second communication module 132 .
  • the acquisition button 125 is connected to the first communication module 126
  • the first control module 127 is connected to the first communication module 126
  • the first communication module 126 is wirelessly connected to the second communication module 132, for data interaction.
  • the second communication module 132 is connected with the first control module 127 .
  • the power supply module 128 is connected to the first control module 127 for supplying power to the first control module 127 .
  • the camera 11 includes a third control module 1102 and a third communication module 1101 .
  • the third control module 1102 is connected to the third communication module 1101, and the third communication module 1101 is wirelessly connected to the second communication module 132 to realize data interaction.
  • the robotic arm 100 includes a fourth control module 1001 and a fourth communication module 1002 .
  • the fourth control module 1001 is connected with the fourth communication module 1002 .
  • the fourth communication module 1102 is wirelessly connected with the second communication module 132 to realize data interaction.
  • the collection button is set on the teaching part of the teaching tool, or, in some other embodiments, the teaching system further includes a collection trigger device, and the collection button is set on the collection trigger device superior.
  • the teaching system further includes an indicator light, which is used to indicate the working state of the teaching system.
  • an indicator light 124 is provided on the teaching component 122 of the teaching tool 12 .

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

The present application relates to a method and apparatus for collecting teaching trajectory points, and a robotic arm, a system and a medium. The method comprises: collecting a photographed image which includes a calibration target; acquiring the first coordinates, under a camera coordinate system of a camera, of each positioning point in the photographed image; acquiring the second coordinates of each positioning point under a teaching tool coordinate system which is pre-constructed for a teaching tool, and solving a first transformation matrix between the teaching tool coordinate system and the camera coordinate system on the basis of the first coordinates of each positioning point and the second coordinates of each positioning point; and acquiring the third coordinates of a teaching tip under the teaching tool coordinate system, transforming the third coordinates of the teaching tip into fourth coordinates under a world coordinate system on the basis of the first transformation matrix, and a pre-calibrated second transformation matrix between the camera coordinate system and the world coordinate system, and taking the fourth coordinates as the coordinates of one teaching trajectory point of the teaching tip. By means of the present application, the costs can be saved, such that the speed of promoting robot teaching can be accelerated.

Description

一种示教轨迹点采集方法、装置、机械臂、系统及介质A teaching track point acquisition method, device, mechanical arm, system and medium
本申请要求于2021年10月28日提交的申请号为202111263269.5的中国申请的优先权。This application claims the priority of Chinese application number 202111263269.5 filed on October 28, 2021.
技术领域technical field
本申请涉及示教领域,尤其涉及一种示教轨迹点采集方法、装置、机械臂、系统及介质。The present application relates to the field of teaching, and in particular to a method, device, mechanical arm, system and medium for collecting teaching track points.
背景技术Background technique
机器人在各个行业中的应用越来越广泛,机器人作业相比于人工作业,作业精度、效率都有较大的提高,针对一些需要耗材的场景,例如:喷漆、点胶、焊接等,机器人作业还可以极大地提高了耗材的利用率,降低了耗材的浪费,另外,机器任作业还具有工作空间大,改善工人工作环境等方面有诸多优势。Robots are more and more widely used in various industries. Compared with manual operations, robot operations have greatly improved the accuracy and efficiency of operations. For some scenarios that require consumables, such as painting, dispensing, welding, etc., robots The operation can also greatly improve the utilization rate of consumables and reduce the waste of consumables. In addition, the machine has many advantages in terms of large working space and improved working environment for workers.
机器人完成精确动作的前提是操作人员具有较强的编程能力,完成动作控制程序编程,并且输入到机器人中,这就对操作人员的要求非常高,而在生产线上的工人,一般很难完成复杂的动作的编程,进而限制了机器人的应用场景。The prerequisite for the robot to complete precise movements is that the operator has strong programming ability, completes the motion control program programming, and inputs it into the robot, which has very high requirements for the operator, and it is generally difficult for workers on the production line to complete complex Action programming, which in turn limits the application scenarios of the robot.
为了更加简单对机器人进行控制,现有技术通常采用示教工具或机器人的自由端进行示教,但在现有技术中,机器人示教系统通常需要采用立体空间姿态采集系统(例如动作捕捉相机或激光传感器等)来捕捉示教工具的空间姿态,然后根据空间姿态转换为示教点的位置,但由于动捕相机以及激光光感器的价格极其高昂,使得示教成本始终居高不下,增加了企业的负担,也阻碍了机器人应用的推广。In order to control the robot more easily, the prior art usually uses a teaching tool or the free end of the robot for teaching, but in the prior art, the robot teaching system usually needs to use a three-dimensional space attitude acquisition system (such as a motion capture camera or laser sensor, etc.) to capture the spatial attitude of the teaching tool, and then convert it to the position of the teaching point according to the spatial attitude. However, due to the extremely high price of the motion capture camera and the laser light sensor, the cost of teaching remains high and increases. This not only increases the burden on enterprises, but also hinders the promotion of robot applications.
技术问题technical problem
本申请提供了一种示教轨迹点采集方法、装置、机械臂、系统及介质,以解决现有技术在示教时采用空间姿态采集系统存在的成本高的问题。The present application provides a teaching track point acquisition method, device, mechanical arm, system and medium to solve the problem of high cost in the prior art of using a spatial attitude acquisition system during teaching.
技术解决方案technical solution
第一方面,本申请提供一种示教轨迹点采集方法,所述方法用于确定示教工具示教时的示教轨迹点,所述示教工具包括相连接的标定板和示教部件,所述标定板包含至少三个定位点,所述示教部件包含示教尖端,所述示教部件与所述标定板所在平面之间具有夹角,所述方法包括:In the first aspect, the present application provides a method for collecting teaching track points, the method is used to determine the teaching track points when the teaching tool is teaching, and the teaching tool includes a connected calibration board and teaching components, The calibration board includes at least three positioning points, the teaching part includes a teaching tip, and there is an angle between the teaching part and the plane where the calibration board is located, and the method includes:
通过相机采集包含所述标定板的拍摄图像;Collecting the photographed image comprising the calibration plate through a camera;
获取所述拍摄图像中各所述定位点在所述相机的相机坐标系下的第一坐标;Acquiring the first coordinates of each of the positioning points in the captured image under the camera coordinate system of the camera;
获取各所述定位点在预先为示教工具构建的示教工具坐标系下的第二坐标,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵;Obtaining the second coordinates of each of the positioning points in the teaching tool coordinate system pre-built for the teaching tool, and solving the display according to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points. teaching a first transformation matrix between the tool coordinate system and the camera coordinate system;
获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标。Acquiring the third coordinates of the teaching tip in the teaching tool coordinate system, according to the first transformation matrix and the pre-calibrated second transformation matrix between the camera coordinate system and the world coordinate system, transform the display The third coordinate of the teaching tip is transformed into a fourth coordinate in the world coordinate system, and the fourth coordinate is used as a coordinate of a teaching track point of the teaching tip.
第二方面,本申请提供一种示教方法,所述方法包括:In a second aspect, the present application provides a teaching method, the method comprising:
根据第一方面所述的方法采集至少一个示教轨迹点;Acquiring at least one teaching trajectory point according to the method described in the first aspect;
根据预先标定的世界坐标系与机械臂的机械臂坐标系之间的第四转换矩阵将所述示教轨迹点的第四坐标转换为机械臂坐标系下的第五坐标,并将所述第五坐标作为 示教尖端的一个复现轨迹点的坐标。Transform the fourth coordinate of the teaching track point into the fifth coordinate in the mechanical arm coordinate system according to the fourth transformation matrix between the pre-calibrated world coordinate system and the mechanical arm coordinate system of the mechanical arm, and convert the fourth coordinate of the teaching track point into the fifth coordinate in the mechanical arm coordinate system, and The five coordinates are used as the coordinates of a recurring trajectory point of the teaching tip.
第三方面,本申请提供机械臂运动控制方法,所述方法包括:In a third aspect, the present application provides a method for controlling motion of a robotic arm, the method comprising:
根据第二方面所述的方法生成示教尖端的复现轨迹点的第五坐标;generating the fifth coordinate of the recurring trajectory point of the teaching tip according to the method described in the second aspect;
根据所述复现轨迹点的第五坐标生成所述机械臂的运动控制指令。A motion control instruction of the robotic arm is generated according to the fifth coordinate of the recurring track point.
第四方面,本申请提供一种示教轨迹点的采集装置,包括用于执行如第一方面所述的示教轨迹点采集方法的单元。In a fourth aspect, the present application provides a device for collecting teaching track points, including a unit for executing the method for collecting teaching track points as described in the first aspect.
第五方面,本申请提供一种示教装置,包括用于执行如第二方面所述的示教方法的单元。In a fifth aspect, the present application provides a teaching device, including a unit for performing the teaching method as described in the second aspect.
第六方面,本申请提供一种机械臂,包括用于执行如第三方面所述的机械臂运动控制方法的单元。In a sixth aspect, the present application provides a robotic arm, including a unit for executing the method for controlling motion of a robotic arm as described in the third aspect.
第七方面,本申请提供一种控制器,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a seventh aspect, the present application provides a controller, including a processor, a communication interface, a memory, and a communication bus, wherein, the processor, the communication interface, and the memory complete mutual communication through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现如第一方面所述的示教轨迹点采集方法的步骤,或如第二方面所述的示教方法的步骤,或如第三方面所述的机械臂运动控制方法的步骤。The processor is configured to implement the steps of the teaching track point acquisition method as described in the first aspect, or the steps of the teaching method as described in the second aspect, or the steps of the teaching method as described in the third aspect when executing the program stored in the memory. The steps of the motion control method of the mechanical arm.
第八方面,本申请提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的示教轨迹点采集方法的步骤,或如第二方面所述的示教方法的步骤,或如第三方面所述的机械臂运动控制方法的步骤。In an eighth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the teaching track point acquisition method as described in the first aspect are implemented, or as described in The steps of the teaching method described in the second aspect, or the steps of the robot arm motion control method described in the third aspect.
第九方面,本申请提供一种示教系统,包括示教工具、相机以及控制器,所述相机与所述控制器连接,所述示教工具包括相连接的标定板和示教部件,所述标定板包含至少三个定位点,所述示教部件包含示教尖端,所述示教部件与所述标定板所在平面之间具有夹角,所述控制器用于执行如第一方面所述的示教轨迹点采集方法的步骤,或如第二方面所述的示教方法的步骤,或如第三方面所述的机械臂运动控制方法的步骤。In a ninth aspect, the present application provides a teaching system, including a teaching tool, a camera, and a controller, the camera is connected to the controller, and the teaching tool includes a connected calibration board and teaching components, so The calibration board includes at least three positioning points, the teaching part includes a teaching tip, and there is an included angle between the teaching part and the plane where the calibration board is located, and the controller is used to execute the method described in the first aspect. The steps of the teaching trajectory point acquisition method, or the steps of the teaching method described in the second aspect, or the steps of the robot arm motion control method described in the third aspect.
有益效果Beneficial effect
本申请实施例提供的上述技术方案与现有技术相比具有如下优点:Compared with the prior art, the above-mentioned technical solutions provided by the embodiments of the present application have the following advantages:
本申请实施例提出的轨迹点采集方法,利用相机拍摄的二维的拍摄图像,就可以对标定板上示教尖端的位置进行定位,采集示教尖端在世界坐标系下轨迹点,与现有技术相比,可以省去立体空间姿态采集系统(例如动作捕捉相机或激光传感器等),相机的成本相比于这些立体空间姿态采集系统,可以大大节省成本,进而可以快速推广机器人示教的速度。The trajectory point acquisition method proposed in the embodiment of the present application can locate the position of the teaching tip on the calibration board by using the two-dimensional captured image taken by the camera, and collect the trajectory points of the teaching tip in the world coordinate system, which is different from the existing Compared with technology, the three-dimensional space attitude acquisition system (such as motion capture camera or laser sensor, etc.) can be omitted. Compared with these three-dimensional space attitude acquisition systems, the cost of the camera can greatly save costs, and then the speed of robot teaching can be quickly promoted. .
另外,立体空间姿态采集系统在安装时,为了体现立体采集,一般会在一定范围内设置采集设备,例如激光采集,需要至少两个激光传感器;动作捕捉相机,通常需要两个摄像头,这些立体空间姿态采集系统在安装时时,需要额外设置复杂的安装结构及框架,而相机只需要只需一个简单的位置就可以安装,因此,还极大了节省了安装的复杂度,并且对场地的要求,在狭窄的空间内也可以快速部署。In addition, when the three-dimensional space attitude acquisition system is installed, in order to reflect the three-dimensional acquisition, the acquisition equipment is generally set within a certain range, such as laser acquisition, which requires at least two laser sensors; motion capture cameras usually require two cameras, these three-dimensional space When the attitude acquisition system is installed, an additional complex installation structure and frame need to be set up, while the camera only needs to be installed in a simple position. Therefore, it also greatly saves the complexity of the installation, and the requirements for the site, It can also be quickly deployed in confined spaces.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本申请实施例提供的一种示教设备的结构示意图;FIG. 1 is a schematic structural diagram of a teaching device provided in an embodiment of the present application;
图2为本申请实施例提供的示教工具的一种结构示意图;Fig. 2 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application;
图3为图2的俯视结构示意图;Fig. 3 is a top view structural schematic diagram of Fig. 2;
图4为本申请另一实施例提供的示教工具的俯视图;Fig. 4 is a top view of a teaching tool provided by another embodiment of the present application;
图5为本申请实施例提供的一种示教轨迹点采集方法的流程示意图;FIG. 5 is a schematic flow diagram of a teaching trajectory point acquisition method provided in an embodiment of the present application;
图6为本申请实施例提供的示教工具的一种结构示意图;FIG. 6 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application;
图7为本申请实施例提供的示教工具的另一种结构示意图;Fig. 7 is another schematic structural diagram of the teaching tool provided by the embodiment of the present application;
图8为本申请另一实施例提供的一种示教轨迹点采集方法的流程示意图;FIG. 8 is a schematic flow diagram of a method for acquiring teaching trajectory points provided by another embodiment of the present application;
图9为本申请实施例提供的一种示教方法的流程示意图;Fig. 9 is a schematic flow chart of a teaching method provided by the embodiment of the present application;
图10为本申请实施例提供的一种机械臂运动控制方法的流程示意图;FIG. 10 is a schematic flowchart of a method for controlling the motion of a robotic arm provided in an embodiment of the present application;
图11为本申请实施例提供的一种示教轨迹点的采集装置的结构框图;Fig. 11 is a structural block diagram of a collection device for teaching trajectory points provided by an embodiment of the present application;
图12为本申请实施例提供的一种示教装置的结构框图;FIG. 12 is a structural block diagram of a teaching device provided by an embodiment of the present application;
图13为本申请实施例提供的一种机械臂的结构框图;FIG. 13 is a structural block diagram of a mechanical arm provided in an embodiment of the present application;
图14为本申请实施例提供的一种控制器的结构框图;FIG. 14 is a structural block diagram of a controller provided in an embodiment of the present application;
图15为本申请实施例提供的一种示教系统的结构框图。FIG. 15 is a structural block diagram of a teaching system provided by an embodiment of the present application.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.
一个实施例an embodiment
图1为本申请实施例提供的一种示教设备的结构示意图。FIG. 1 is a schematic structural diagram of a teaching device provided in an embodiment of the present application.
在图1中,100为机械臂,200为操作台面,操作台面200可以为一平台,上面用于放置有待加工的零部件或设备。机械臂100的末端的行程可以覆盖操作台面200,并且机械臂100的末端在操作台面200上运动,以对待加工的零部件或设备进行相关操作。操作台面200的上表面在可以称作是操作面。In FIG. 1 , 100 is a mechanical arm, 200 is an operating table, and the operating table 200 may be a platform on which parts or equipment to be processed are placed. The travel of the end of the mechanical arm 100 can cover the operation table 200 , and the end of the robot arm 100 moves on the operation table 200 to perform related operations on parts or equipment to be processed. The upper surface of the operating surface 200 may be referred to as an operating surface.
在具体安装时,一种情况下,机械臂100可以直接固定安装在操作台面200上,在另一种情况下,机械臂100还可以不固定在操作台面200上,而是位于操作台面200旁边,通过支架或其它安装件悬空设置在操作台面200上方,同样可以在操作台面200上运动。In specific installation, in one case, the mechanical arm 100 can be directly fixedly installed on the operating table 200, and in another case, the mechanical arm 100 can not be fixed on the operating table 200, but is located next to the operating table 200 , is suspended above the operating table 200 through a bracket or other mounting parts, and can also move on the operating table 200 .
在本申请实施例中,相机11可以为常见光学成像镜头。为了提高轨迹采集的范围,相机11与所述操作台面200之间设置有拍摄距离,如图1所示,相机11与操作台面200之间具有高度差,这样所述操作台面200可以位于所述相机11的拍摄范围内。根据相机11的焦距的实际情况不同,相机11的拍摄范围可以覆盖操作台面200上的部分或全部区域。一种实施例中,相机11的拍摄范围覆盖操作台面200的全部区域,另一种实施例中,操作台面200上设置有有效操作区,有效操作区的面积小于操作台面200的全部区域,进而相机11的拍摄范围可以仅覆盖该有效操作区即可。In the embodiment of the present application, the camera 11 may be a common optical imaging lens. In order to improve the range of trajectory acquisition, a shooting distance is set between the camera 11 and the operating table 200, as shown in Figure 1, there is a height difference between the camera 11 and the operating table 200, so that the operating table 200 can be located on the within the shooting range of the camera 11. According to different actual conditions of the focal length of the camera 11 , the shooting range of the camera 11 may cover part or all of the area on the operating table 200 . In one embodiment, the shooting range of the camera 11 covers the entire area of the operation table 200. In another embodiment, an effective operation area is set on the operation table 200, and the area of the effective operation area is smaller than the entire area of the operation table 200, and then The shooting range of the camera 11 may only cover the effective operation area.
在图1中示出了,n时刻和m时刻两个不同时刻的示教工具的姿态。图2为本申请实施例提供的示教工具的一种结构示意图,图3为图2的俯视结构示意图。In FIG. 1 , the postures of the teaching tool at two different moments at time n and time m are shown. FIG. 2 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application, and FIG. 3 is a schematic top view structural diagram of FIG. 2 .
如图2和图3所示,该示教工具12包括:标定板121和示教部件122,标定板121和示教部件122相连接,所述示教部件122与所述标定板121所在的平面之间具有夹角,所述标定板121上包含有标定图形,所述示教部件122上设置有示教尖端123。优选地,标定图形设置在所述标定板的一个侧面上,所述示教部件固定在所述标定板的另一侧面上。优选地,示教部件122的形状具体为杆状,以方便用户持握。As shown in Figures 2 and 3, the teaching tool 12 includes: a calibration board 121 and a teaching part 122, the calibration board 121 is connected with the teaching part 122, and the teaching part 122 is connected to the place where the calibration board 121 is located. There is an included angle between the planes, the calibration plate 121 contains calibration graphics, and the teaching component 122 is provided with a teaching tip 123 . Preferably, the calibration figure is arranged on one side of the calibration board, and the teaching component is fixed on the other side of the calibration board. Preferably, the shape of the teaching component 122 is specifically a rod shape, so as to be convenient for the user to hold.
示教部件122与所述标定板121所在的平面之间具有夹角,是指示教部件与标定板所在平面不平行,示教部件122与所述标定板121所在的平面之间可以为15度,30度,60度以及90度等,并且示教部件122与标定板121之间的夹角可以根据实际场地需要来设定。可选地,在本申请实施例中,如图2所示,示教部件122与标定板121相垂直。另外,在本申请实施例中,对于标定板121的面积大小,示教部件122的长度,以及标定板121的边长与示教部件121长度之间的比例关系,都没有限定,本领域技术人员可以根据需要自由设定。There is an included angle between the teaching part 122 and the plane where the calibration board 121 is located, indicating that the teaching part is not parallel to the plane where the calibration board is located, and the plane where the teaching part 122 and the calibration board 121 are located can be 15 degrees , 30 degrees, 60 degrees and 90 degrees, etc., and the angle between the teaching component 122 and the calibration plate 121 can be set according to the actual site needs. Optionally, in the embodiment of the present application, as shown in FIG. 2 , the teaching component 122 is perpendicular to the calibration plate 121 . In addition, in the embodiment of the present application, there is no limitation on the size of the area of the calibration board 121, the length of the teaching part 122, and the proportional relationship between the side length of the calibration board 121 and the length of the teaching part 121. Personnel can be set freely according to needs.
进一步地,示教部件122上设有指示灯124以及采集按钮125。采集按钮125用于发出采集触发信号。指示灯124用于指示工作状态。例如,工作时指示灯亮起,不工作时,指示灯熄灭。Further, the teaching component 122 is provided with an indicator light 124 and a collection button 125 . The collection button 125 is used to send a collection trigger signal. The indicator light 124 is used to indicate the working state. For example, the indicator light is on when working, and the indicator light is off when not working.
在本申请实施例中,标定板121表面上设置有定位点,定位点的数量至少为3个。标定板上的定位点等间距排列。具体地,在本实施例中,如图3所示,标定板上设有黑白棋格阵列图案,黑白棋格阵列图案由多个黑棋格和白棋格阵列排布形成。所述黑白棋格阵列图案的黑棋格和/或白棋格的顶点为定位点。In the embodiment of the present application, positioning points are arranged on the surface of the calibration plate 121, and the number of positioning points is at least three. The positioning points on the calibration plate are arranged at equal intervals. Specifically, in this embodiment, as shown in FIG. 3 , the calibration board is provided with a black and white checker grid array pattern, and the black and white checker grid array pattern is formed by an array arrangement of a plurality of black checker grids and white checker grids. Vertices of black and/or white checkerboards in the black and white checkerboard array pattern are anchor points.
或者在另一实施例中,参见图4,标定板121上设有等间距实心圆阵列图案,等间距实心圆阵列图案有多个实心圆等间距阵列排布形成。所述实心圆的圆心为定位点。Or in another embodiment, referring to FIG. 4 , the calibration plate 121 is provided with an array pattern of solid circles at equal intervals, and the array pattern of solid circles at equal intervals is formed by a plurality of solid circles arranged in an array at equal intervals. The center of the solid circle is the positioning point.
在本申请实施例中,示教部件122上远离标定板121的一端为示教尖端123,在实际应用个,示教尖端123用于指示示教的点的位置。In the embodiment of the present application, the end of the teaching component 122 away from the calibration plate 121 is a teaching tip 123 , and in practical applications, the teaching tip 123 is used to indicate the position of the teaching point.
在本申请实施例中,如图2所示,示教工具中标定板121可以直接与示教部件122相固定,并且考虑到标定板121与示教部件122之间的位置精度,一般标定板121和示教部件122是焊接固定在一起的。或者,也可以通过卡扣固定,或者紧固件固定,例如螺丝固定。In the embodiment of the present application, as shown in Figure 2, the calibration plate 121 in the teaching tool can be directly fixed to the teaching component 122, and considering the positional accuracy between the calibration plate 121 and the teaching component 122, the general calibration plate 121 and the teaching part 122 are fixed together by welding. Alternatively, it may also be fixed by buckles, or by fasteners, such as screws.
在图1所示场景中,总共涉及到的坐标系包括世界坐标系、相机坐标系、示教工具坐标系以及机械臂坐标系。如图1所示,图中世界坐标系为(x1,y1,z1),相机坐标系为(x2,y2,z2),示教工具的坐标系为(x3,y3,z3)以及机械臂坐标系(x4,y4,z4)。本申请中,为了描述简便,定义示教工具坐标系和相机坐标系之间的转换矩阵为第一转换矩阵,相机坐标系和世界坐标系之间的转换矩阵为第二转换矩阵,示教工具坐标系和世界坐标系之间的转换矩阵为第三转换矩阵,世界坐标系和机械臂坐标系之间的转换矩阵为第四转换矩阵。In the scene shown in Figure 1, the coordinate systems involved include the world coordinate system, the camera coordinate system, the teaching tool coordinate system and the manipulator coordinate system. As shown in Figure 1, the world coordinate system in the figure is (x1, y1, z1), the camera coordinate system is (x2, y2, z2), the coordinate system of the teaching tool is (x3, y3, z3) and the robot arm coordinates Department(x4, y4, z4). In this application, for simplicity of description, the transformation matrix between the teaching tool coordinate system and the camera coordinate system is defined as the first transformation matrix, and the transformation matrix between the camera coordinate system and the world coordinate system is defined as the second transformation matrix. The teaching tool The transformation matrix between the coordinate system and the world coordinate system is the third transformation matrix, and the transformation matrix between the world coordinate system and the manipulator coordinate system is the fourth transformation matrix.
示教工具坐标系是指预先为示教工具建立的坐标系。例如,在本实施例中,以示教工具的标定板上的黑白棋格阵列图案中心点为原点,标定板的长度方向为X轴方向,标定板的宽度方向为Y轴方向,示教部件所在方向为Z轴方向,建立示教工具坐标系。由于示教工具上的定位点以及示教尖端和示教工具坐标系的原点之间的相对位置是固定的,因此,在示教工具坐标系建立后,无论示教工具在空间中的姿态如何变化,示教工具上的定位点以及示教尖端在示教工具坐标系中的坐标都是固定的。本申请实施例中,预先确定并储存示教工具上的定位点以及示教尖端在示教工具坐标系中的坐标。The teaching tool coordinate system refers to the coordinate system established for the teaching tool in advance. For example, in this embodiment, the center point of the black and white chess grid array pattern on the calibration board of the teaching tool is the origin, the length direction of the calibration board is the X-axis direction, the width direction of the calibration board is the Y-axis direction, and the teaching components The direction is the Z-axis direction, and the teaching tool coordinate system is established. Since the positioning point on the teaching tool and the relative position between the teaching tip and the origin of the teaching tool coordinate system are fixed, after the teaching tool coordinate system is established, regardless of the posture of the teaching tool in space Changes, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are fixed. In the embodiment of the present application, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are determined and stored in advance.
在相机位置固定后,相机坐标系和世界坐标系之间的第二转换矩阵是固定的。本申请实施例中,预先确定相机坐标系和世界坐标系之间的第二转换矩阵,具体可通过标定相机外参来确定。需要说明的是,相机外参的标定过程为本领域技术人员所熟知,对此本申请不做具体限定。After the camera position is fixed, the second transformation matrix between the camera coordinate system and the world coordinate system is fixed. In the embodiment of the present application, the second transformation matrix between the camera coordinate system and the world coordinate system is determined in advance, which can be specifically determined by calibrating the external parameters of the camera. It should be noted that the calibration process of the camera extrinsic parameters is well known to those skilled in the art, and this application does not specifically limit it.
进一步地,机械臂固定后,世界坐标系和机械臂坐标系之间的第四转换矩阵是固定的。本申请实施例中,预先确定世界坐标系和机械臂坐标系之间的第四转换矩阵,具体的,首先确定世界坐标系下至少3个点的坐标(例如,本实施例中,点的数量为13,点的数量越多,精度越高,相应的计算量越大),然后控制机械臂移动到上述至少3个点,并记录该至少3个点在机械臂坐标系下的坐标,之后根据该至少三个点在世界坐标系下的坐标以及机械臂坐标系下的坐标就可求解出所述第四转换矩阵。Further, after the robot arm is fixed, the fourth transformation matrix between the world coordinate system and the robot arm coordinate system is fixed. In the embodiment of the present application, the fourth transformation matrix between the world coordinate system and the manipulator coordinate system is determined in advance. Specifically, the coordinates of at least 3 points in the world coordinate system are determined first (for example, in this embodiment, the number of points is 13, the more the number of points, the higher the accuracy, and the greater the corresponding calculation amount), then control the mechanical arm to move to the above-mentioned at least 3 points, and record the coordinates of the at least 3 points in the mechanical arm coordinate system, and then The fourth conversion matrix can be calculated according to the coordinates of the at least three points in the world coordinate system and the coordinates in the robot arm coordinate system.
在示教过程中,由于示教工具在空间中的姿态是变化的,因此,示教工具坐标系和相机坐标系之间的第一转换矩阵是变化的。本申请中,通过相机采集示教工具上的定位点在相机坐标系中的坐标。之后根据定位点在相机坐标系中的坐标以及定位点在示教工具坐标系中的坐标求解所述第一转换矩阵。During the teaching process, since the posture of the teaching tool in space changes, the first transformation matrix between the teaching tool coordinate system and the camera coordinate system changes. In this application, the camera collects the coordinates of the positioning point on the teaching tool in the camera coordinate system. Then, the first transformation matrix is solved according to the coordinates of the positioning point in the camera coordinate system and the coordinates of the positioning point in the teaching tool coordinate system.
参见图5,本申请实施例提出一种示教轨迹点采集方法,该用于确定示教工具示教时的示教轨迹点,所述示教工具包括相连接的标定板和示教部件,所述标定板包含至少三个定位点,所述示教部件包含示教尖端,所述示教部件与所述标定板所在平面之间具有夹角。该方法应用于控制器中,所述方法包括如下步骤S101-S104。Referring to Fig. 5 , the embodiment of the present application proposes a method for collecting teaching track points, which is used to determine the teaching track points when the teaching tool is teaching. The teaching tool includes a connected calibration board and teaching components. The calibration board includes at least three positioning points, the teaching part includes a teaching tip, and there is an included angle between the teaching part and the plane where the calibration board is located. The method is applied in a controller, and the method includes the following steps S101-S104.
S101,通过相机采集包含所述标定板的拍摄图像。S101. Collect a photographed image including the calibration plate by using a camera.
具体实施中,相机朝向操作台面,示教工具在操作台面上运动,通过相机采集包含所述标定板的拍摄图像。采集方式有两种,第一种为控制相机直接拍摄,得到拍摄图像。第二种为控制相机实时拍摄视频,并从相机的视频流中截取至少一帧图像,得到拍摄图像。In a specific implementation, the camera faces the operation table, the teaching tool moves on the operation table, and the captured image including the calibration plate is collected by the camera. There are two acquisition methods, the first is to control the camera to shoot directly to obtain the captured image. The second is to control the camera to shoot video in real time, and intercept at least one frame of image from the video stream of the camera to obtain the captured image.
在一实施例中,以上步骤S101具体包括如下步骤S201-S202。In an embodiment, the above step S101 specifically includes the following steps S201-S202.
S201,判断是否接收到采集触发信号。S201. Determine whether a collection trigger signal is received.
具体实施中,采集触发信号用于触发采集拍摄图像。采集触发信号可由用户输入。例如,在一实施例中,示教工具的示教部件上设有采集按钮,用户按下采集按钮即可发出采集触发信号。相应地,控制器实时判断(监控)是否接收到采集触发信号。In a specific implementation, the acquisition trigger signal is used to trigger the acquisition and shooting of images. The acquisition trigger signal can be input by the user. For example, in one embodiment, a collection button is provided on the teaching part of the teaching tool, and the user can send a collection trigger signal by pressing the collection button. Correspondingly, the controller judges (monitors) whether the acquisition trigger signal is received in real time.
在本实施例中,示教部件上的指示灯还用于指示采集状态,例如,在检测到采集按钮按下时,指示灯亮起,否则指示灯熄灭。In this embodiment, the indicator light on the teaching component is also used to indicate the acquisition status, for example, when it is detected that the acquisition button is pressed, the indicator light is on, otherwise the indicator light is off.
S202,若接收到采集触发信号,通过相机采集至少一张包含所述标定板的拍摄图像。S202. If a collection trigger signal is received, use a camera to collect at least one photographed image including the calibration plate.
具体实施中,如果接收到采集触发信号,则通过相机采集至少一张包含所述标定板的拍摄图像。例如,可以采集一张,也可以采集多张。In a specific implementation, if the acquisition trigger signal is received, at least one photographed image including the calibration plate is acquired through the camera. For example, one sheet or multiple sheets may be collected.
在一实施例中,以上步骤S202具体包括如下步骤S301-S303。In an embodiment, the above step S202 specifically includes the following steps S301-S303.
S301,判断所述采集触发信号的持续时间是否大于预设的时间阈值。S301. Determine whether the duration of the acquisition trigger signal is greater than a preset time threshold.
具体实施中,实时测量所述采集触发信号的持续时间,并判断所述采集触发信号的持续时间是否大于预设的时间阈值。需要说明的是,时间阈值可有本领域技术人员设定,例如可设定为0.5s,对此,本申请不做具体限定。In a specific implementation, the duration of the acquisition trigger signal is measured in real time, and it is judged whether the duration of the acquisition trigger signal is greater than a preset time threshold. It should be noted that the time threshold can be set by those skilled in the art, for example, it can be set to 0.5s, which is not specifically limited in this application.
S302,若所述采集触发信号的持续时间大于预设的时间阈值,通过相机采集多张包含所述标定板的拍摄图像。S302. If the duration of the acquisition trigger signal is greater than a preset time threshold, acquire a plurality of photographed images including the calibration plate through the camera.
具体实施中,如果所述采集触发信号的持续时间大于预设的时间阈值,此时,进入连续采集模式,即通过相机采集多张包含所述标定板的拍摄图像,例如,可每间隔预设时间采集一张,例如,每间隔0.5s采集一张,即在刚接到采集触发信号时采集一张,之后每间隔0.5s采集一张。In specific implementation, if the duration of the acquisition trigger signal is greater than the preset time threshold, at this time, enter the continuous acquisition mode, that is, collect a plurality of photographed images containing the calibration plate through the camera, for example, it can be preset every interval One piece is collected at time, for example, one piece is collected every 0.5s, that is, one piece is collected when the collection trigger signal is just received, and one piece is collected every 0.5s thereafter.
相应地,用户长按采集按钮可使得采集触发信号的持续时间大于预设的时间阈值,从而控制连续采集拍摄图像。Correspondingly, the long press of the acquisition button by the user can make the duration of the acquisition trigger signal longer than the preset time threshold, thereby controlling the continuous acquisition of the captured images.
S303,若所述采集触发信号的持续时间不大于预设的时间阈值,通过相机采集一张包含所述标定板的拍摄图像。S303. If the duration of the acquisition trigger signal is not greater than the preset time threshold, acquire a photographed image including the calibration plate through the camera.
具体实施中,如果所述采集触发信号的持续时间不大于预设的时间阈值,此时,进入单张采集模式,即通过相机采集一张包含所述标定板的拍摄图像,例如,可在刚接到采集触发信号时采集一张拍摄图像。In a specific implementation, if the duration of the acquisition trigger signal is not greater than the preset time threshold, at this time, enter the single-image acquisition mode, that is, collect a photographed image containing the calibration plate through the camera, for example, it can be used just now Acquire a shot image when receiving the acquisition trigger signal.
相应地,用户点按采集按钮可使得采集触发信号的持续时间不大于预设的时间阈值,从而控制只采集一张拍摄图像。Correspondingly, the user can click the acquisition button to make the duration of the acquisition trigger signal not greater than the preset time threshold, so as to control the acquisition of only one photographed image.
S102,获取所述拍摄图像中各所述定位点在所述相机的相机坐标系下的第一坐标。S102. Acquire first coordinates of each of the positioning points in the captured image under the camera coordinate system of the camera.
具体实施中,首先在拍摄图像中建立图像坐标系,并获取所述拍摄图像中各所述定位点在图像坐标系中的坐标,之后根据相机的内参将各所述定位点在图像坐标系中的坐标转换为所述相机的相机坐标系下的坐标。需要说明的是,相机内参的标定过程为本领域技术人员所熟知,对此本申请不做具体限定。In specific implementation, first establish an image coordinate system in the captured image, and obtain the coordinates of each of the positioning points in the captured image in the image coordinate system, and then set each of the positioning points in the image coordinate system according to the internal reference of the camera The coordinates of are converted to coordinates in the camera coordinate system of the camera. It should be noted that the process of calibrating internal camera parameters is well known to those skilled in the art, and this application does not specifically limit it.
本申请中,为了描述简便,便于区分,将所述定位点在所述相机的相机坐标系下的坐标定义为第一坐标。因此,通过步骤S102可以分别得到各所述定位点在相机坐标系下的第一坐标。In this application, for simplicity of description and distinction, the coordinates of the positioning point in the camera coordinate system of the camera are defined as the first coordinates. Therefore, through step S102, the first coordinates of each of the positioning points in the camera coordinate system can be respectively obtained.
S103,获取各所述定位点在预先为示教工具构建的示教工具坐标系下的第二坐标,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵。S103. Obtain the second coordinates of each of the positioning points in the teaching tool coordinate system pre-built for the teaching tool, and solve the problem according to the first coordinates of each of the positioning points and the second coordinate of each of the positioning points. A first transformation matrix between the teaching tool coordinate system and the camera coordinate system.
具体实施中,示教工具坐标系是指预先为示教工具建立的坐标系。由于示教工具上的定位点以及示教尖端和示教工具坐标系的原点之间的相对位置是固定的,因此,在示教工具坐标系建立后,无论示教工具在空间中的姿态如何变化,示教工具上的定位点以及示教尖端在示教工具坐标系中的坐标都是固定的。In a specific implementation, the teaching tool coordinate system refers to a coordinate system established for the teaching tool in advance. Since the positioning point on the teaching tool and the relative position between the teaching tip and the origin of the teaching tool coordinate system are fixed, after the teaching tool coordinate system is established, regardless of the posture of the teaching tool in space Changes, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are fixed.
本申请实施例中,预先确定并储存示教工具上的定位点以及示教尖端在示教工具坐标系中的坐标。本申请中,为了描述简便,便于区分,将所述定位点在示教工具坐标系中的坐标定义为第二坐标。In the embodiment of the present application, the positioning point on the teaching tool and the coordinates of the teaching tip in the teaching tool coordinate system are determined and stored in advance. In this application, for simplicity of description and distinction, the coordinates of the positioning point in the coordinate system of the teaching tool are defined as the second coordinates.
可以理解地,坐标系之间坐标的转换可通过坐标系之间的转换矩阵来实现,相应地,若知道同一个点在两坐标系之间的坐标也可以反向求解坐标系之间的转换矩阵。对于三维坐标,至少需要三个点在两坐标系之间的坐标,即可求解坐标系之间的转换矩阵。It can be understood that the conversion of coordinates between coordinate systems can be realized through the conversion matrix between coordinate systems. Correspondingly, if the coordinates of the same point between two coordinate systems are known, the conversion between coordinate systems can also be reversely solved matrix. For three-dimensional coordinates, the coordinates of at least three points between the two coordinate systems are required to solve the transformation matrix between the coordinate systems.
本申请实施例中,为了描述简便,便于区分,将所述示教工具坐标系和所述相机坐标系之间的转换矩阵定义为第一转换矩阵。In the embodiment of the present application, for simplicity of description and distinction, the transformation matrix between the teaching tool coordinate system and the camera coordinate system is defined as a first transformation matrix.
本申请实施例中,定位点的数量至少为3个,因此,根据至少三个定位点的第一坐标以及第二坐标即可求解所述第一转换矩阵。In the embodiment of the present application, the number of positioning points is at least three, therefore, the first conversion matrix can be solved according to the first coordinates and the second coordinates of at least three positioning points.
需要说明的是,定位点的数量越多,计算的精度越高,同时计算量越大。It should be noted that the greater the number of positioning points, the higher the accuracy of calculation and the greater the amount of calculation.
在一实施例中,以上步骤S103具体包括如下步骤S401-S402。In an embodiment, the above step S103 specifically includes the following steps S401-S402.
S401,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,建立以所述第一转换矩阵为未知数的方程组。S401. According to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points, establish a system of equations with the first transformation matrix as an unknown.
具体实施中,对于,每一个定位点,均根据其的第一坐标和第二坐标建立一个以所述第一转换矩阵为未知数的方程,得到方程组。In a specific implementation, for each positioning point, an equation with the first transformation matrix as an unknown is established according to its first coordinates and second coordinates to obtain a system of equations.
S402对所述方程组进行求解,得到所述第一转换矩阵。S402 Solving the equation system to obtain the first conversion matrix.
具体实施中,求解所述方程组,即可得到所述第一转换矩阵。In a specific implementation, the first conversion matrix can be obtained by solving the equation system.
S104,获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标。S104. Obtain the third coordinates of the teaching tip in the coordinate system of the teaching tool, and convert the coordinates according to the first transformation matrix and the pre-calibrated second transformation matrix between the camera coordinate system and the world coordinate system The third coordinate of the teaching tip is transformed into a fourth coordinate in the world coordinate system, and the fourth coordinate is used as a coordinate of a teaching track point of the teaching tip.
具体实施中,为了描述简便,便于区分,将所述示教尖端在所述示教工具坐标系下的坐标定义为第三坐标。将所述示教尖端在世界坐标系下的坐标定义为第四坐标。需要说明的是,示教尖端的第三坐标是预先确定并储存的。In a specific implementation, for simplicity of description and distinction, the coordinates of the teaching tip in the coordinate system of the teaching tool are defined as the third coordinates. The coordinates of the teaching tip in the world coordinate system are defined as the fourth coordinates. It should be noted that the third coordinate of the teaching tip is predetermined and stored.
首先,根据第一转换矩阵将第三坐标转换为示教尖端在相机坐标系下的坐标。Firstly, the third coordinates are transformed into the coordinates of the teaching tip in the camera coordinate system according to the first transformation matrix.
之后,根据第二转换矩阵将示教尖端在相机坐标系下的坐标转换为示教尖端在世界坐标系下的坐标。本申请中,为了描述简便,便于区分,将示教尖端在世界坐标系下的坐标定义为第四坐标。Afterwards, the coordinates of the teaching tip in the camera coordinate system are transformed into the coordinates of the teaching tip in the world coordinate system according to the second transformation matrix. In this application, for simplicity of description and distinction, the coordinate of the teaching tip in the world coordinate system is defined as the fourth coordinate.
进一步地,将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标。Further, the fourth coordinate is used as the coordinate of a teaching track point of the teaching tip.
需要说明的是,第二转换矩阵具体可通过标定相机外参来确定。相机外参的标定过程为本领域技术人员所熟知,对此本申请不做具体限定。It should be noted that the second transformation matrix may be specifically determined by calibrating the extrinsic parameters of the camera. The process of calibrating camera extrinsic parameters is well known to those skilled in the art, and this application does not specifically limit it.
在一实施例中,以上步骤S104具体包括如下步骤S501-S502。In an embodiment, the above step S104 specifically includes the following steps S501-S502.
S501,计算所述第一转换矩阵与所述第二转换矩阵的乘积,得到所述示教工具坐标系和所述世界坐标系之间的第三转换矩阵。S501. Calculate a product of the first transformation matrix and the second transformation matrix to obtain a third transformation matrix between the teaching tool coordinate system and the world coordinate system.
具体实施中,计算所述第一转换矩阵与所述第二转换矩阵的乘积即得到所述示教工具坐标系和所述世界坐标系之间的转换矩阵。本申请中,为了描述简便,便于区分,将所述示教工具坐标系和所述世界坐标系之间的转换矩阵定义为第三转换矩阵。In a specific implementation, the product of the first transformation matrix and the second transformation matrix is calculated to obtain a transformation matrix between the teaching tool coordinate system and the world coordinate system. In this application, for simplicity of description and distinction, the transformation matrix between the teaching tool coordinate system and the world coordinate system is defined as a third transformation matrix.
通过第三转换矩阵可直接将示教工具坐标系下的坐标转换为世界坐标系下的坐标。The coordinates in the teaching tool coordinate system can be directly converted into coordinates in the world coordinate system through the third conversion matrix.
S502,根据所述第四转换矩阵将所述示教尖端在所述示教工具坐标系下的第三坐标转化所述世界坐标系下的第四坐标。S502. Transform the third coordinate of the teaching tip in the teaching tool coordinate system into a fourth coordinate in the world coordinate system according to the fourth transformation matrix.
具体实施中,在计算得到第三转换矩阵后,计算示教尖端的第三坐标与第三转换矩阵的乘机即可得到示教尖端在世界坐标系下的坐标。本申请中,为了描述简便,便于区分,将示教尖端在世界坐标系下的坐标定义为第四坐标。In a specific implementation, after the third conversion matrix is calculated, the coordinates of the teaching tip in the world coordinate system can be obtained by calculating the product of the third coordinate of the teaching tip and the third conversion matrix. In this application, for simplicity of description and distinction, the coordinate of the teaching tip in the world coordinate system is defined as the fourth coordinate.
本申请实施例提出的示教轨迹点采集方法,利用相机拍摄的二维的拍摄图像,就可以对标定板上示教尖端的位置进行定位,采集示教尖端在世界坐标系下轨迹点,与现有技术相比,可以省去立体空间姿态采集系统(例如动作捕捉相机或激光传感器等),相机的成本相比于这些立体空间姿态采集系统,可以大大节省成本,进而可以快速推广机器人示教的速度。The method for collecting teaching track points proposed in the embodiment of the present application can locate the position of the teaching tip on the calibration board by using the two-dimensional captured image captured by the camera, and collect the track points of the teaching tip in the world coordinate system, and Compared with the existing technology, the three-dimensional space attitude acquisition system (such as motion capture camera or laser sensor, etc.) can be omitted. Compared with these three-dimensional space attitude acquisition systems, the cost of the camera can greatly save costs, and then the robot teaching can be quickly promoted. speed.
另外,立体空间姿态采集系统在安装时,为了体现立体采集,一般会在一定范围内设置采集设备,例如激光采集,需要至少两个激光传感器;动作捕捉相机,通常需要两个摄像头,这些立体空间姿态采集系统在安装时时,需要额外设置复杂的安装结构及框架,而相机只需要只需一个简单的位置就可以安装,因此,还极大了节省了安装的复杂度,并且对场地的要求,在狭窄的空间内也可以快速部署。In addition, when the three-dimensional space attitude acquisition system is installed, in order to reflect the three-dimensional acquisition, the acquisition equipment is generally set within a certain range, such as laser acquisition, which requires at least two laser sensors; motion capture cameras usually require two cameras, these three-dimensional space When the attitude acquisition system is installed, an additional complex installation structure and frame need to be set up, while the camera only needs to be installed in a simple position. Therefore, it also greatly saves the complexity of the installation, and the requirements for the site, It can also be quickly deployed in confined spaces.
一个实施例an embodiment
图6为本申请实施例提供的示教工具的一种结构示意图。图7为本申请实施例提供的示教工具的另一种结构示意图。FIG. 6 is a schematic structural diagram of a teaching tool provided by an embodiment of the present application. FIG. 7 is another structural schematic diagram of the teaching tool provided by the embodiment of the present application.
在前述实施例中,示教工具上设置有一个标定板,但在具体应用中,当标定板上的标定板倾斜时,如图1中的m时刻,此时相机的拍摄方向与标定板所在平面之间的夹角较小(几乎平行),进而相机获取的标定板的图像无法准确进行标定。为此,考虑到示教工具的移动的灵活性,本申请实施例中,还可以提供一个具有至少两个标定板的示教工具。In the foregoing embodiments, a calibration board is provided on the teaching tool, but in a specific application, when the calibration board on the calibration board is tilted, as shown at moment m in Figure 1, the shooting direction of the camera is at the same position as the calibration board. The angle between the planes is small (almost parallel), so the image of the calibration plate acquired by the camera cannot be accurately calibrated. For this reason, considering the flexibility of the movement of the teaching tool, in the embodiment of the present application, a teaching tool having at least two calibration plates may also be provided.
具体为,示教工具包括:一个示教部件122和至少两个标定板,其中,所述至少两个标定板均与所述示教部件122的一端相连接,所述示教部件122的另一端为示教尖端123。并且优选地,所述至少两个标定板之间两两相邻,且相邻标定板之间共边。Specifically, the teaching tool includes: a teaching part 122 and at least two calibration boards, wherein the at least two calibration boards are connected to one end of the teaching part 122, and the other end of the teaching part 122 One end is a teaching tip 123 . And preferably, the at least two calibration plates are adjacent to each other, and the adjacent calibration plates share the same edge.
参见图6和图7所示,图中示教工具包括两个标定板:标定板a和标定板b,标定板a所在的平面和标定板b所在的平面之间设置有夹角,并且标定板a和标定板b之间共边。每个标定板均至少设有三个定位点。Referring to Figure 6 and Figure 7, the teaching tool in the figure includes two calibration boards: calibration board a and calibration board b, an angle is set between the plane where calibration board a is located and the plane where calibration board b is located, and the calibration board There is a common edge between plate a and calibration plate b. Each calibration plate is provided with at least three positioning points.
基于图6和图7所示示教场景,本申请提供了一种示教轨迹点采集方法,用于确定利用示教工具示教时的轨迹点。Based on the teaching scenarios shown in FIG. 6 and FIG. 7 , the present application provides a method for collecting teaching track points, which is used to determine track points when teaching with a teaching tool.
如图8所示,该示教轨迹点采集方法包括如下步骤:S601-S606。As shown in FIG. 8 , the method for collecting teaching track points includes the following steps: S601-S606.
S601,通过相机采集包含标定板的拍摄图像。S601. Collect a photographed image including a calibration plate by using a camera.
S602,获取所述拍摄图像中的标定板的各定位点在所述相机的相机坐标系下的第一坐标。S602. Acquire first coordinates of each positioning point of the calibration plate in the captured image under the camera coordinate system of the camera.
具体实施中,分别获取每个标定板的定位点在所述相机的相机坐标系下的第一坐标。In a specific implementation, the first coordinates of the positioning point of each calibration board in the camera coordinate system of the camera are acquired respectively.
S603,获取所述拍摄图像中每个标定板的图像面积。S603. Acquire the image area of each calibration plate in the captured image.
具体实施中,首先通过预设的边缘检测算法确定每个标定板的轮廓,之后再分别计算各标定板的面积。In a specific implementation, the outline of each calibration plate is firstly determined by a preset edge detection algorithm, and then the area of each calibration plate is calculated respectively.
在一实施例中,以上步骤S603具体包括如下步骤S701-S702。In an embodiment, the above step S603 specifically includes the following steps S701-S702.
S701,在所述拍摄图像中分别确定各所述标定板的轮廓围出的目标区域。S701. Determine target areas surrounded by contours of each calibration plate in the captured image.
具体实施中,通过预设的边缘检测算法确定每个标定板的轮廓,进而确定各所述标定板的轮廓围出的目标区域。In a specific implementation, the contour of each calibration board is determined by a preset edge detection algorithm, and then the target area surrounded by the contours of each calibration board is determined.
S702,分别根据各所述标定板的轮廓围出的目标区域包含的像素的数量确定各所述标定板的图像面积。S702. Determine the image area of each of the calibration plates according to the number of pixels included in the target area enclosed by the outline of each of the calibration plates.
具体实施中,分别获取每个所述标定板的轮廓围出的目标区域内包含的像素的数量,由于每个像素的面积是固定的,因此,根据像素的数量即可确定标定板的图像面积。In the specific implementation, the number of pixels contained in the target area surrounded by the outline of each calibration plate is respectively obtained. Since the area of each pixel is fixed, the image area of the calibration plate can be determined according to the number of pixels. .
S604,选取图像面积最大的标定板作为目标标定板。S604. Select the calibration plate with the largest image area as the target calibration plate.
具体实施中,图像面积越大,其计算误差越小,因此,选取图像面积最大的标定板作为目标标定板,可有效减少误差。In specific implementation, the larger the image area, the smaller the calculation error. Therefore, selecting the calibration plate with the largest image area as the target calibration plate can effectively reduce the error.
S605,获取所述目标标定板的各定位点的在预先为示教工具构建的示教工具坐标系下的第二坐标,根据所述目标标定板的各定位点的第一坐标以及所述目标标定板的各定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵。S605. Acquire the second coordinates of each positioning point of the target calibration board in the teaching tool coordinate system pre-built for the teaching tool, and according to the first coordinates of each positioning point of the target calibration board and the target The second coordinates of each positioning point of the calibration board are calculated to solve the first transformation matrix between the teaching tool coordinate system and the camera coordinate system.
具体实施中,基于目标标定板的各定位点的第一坐标和第二坐标来求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵,由于目标标定板的图像面积是最大的,因此,可有效减少误差。In the specific implementation, the first transformation matrix between the teaching tool coordinate system and the camera coordinate system is solved based on the first coordinates and the second coordinates of each positioning point of the target calibration board, because the image area of the target calibration board is the largest, therefore, can effectively reduce the error.
S606获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标。S606 Obtain the third coordinate of the teaching tip in the coordinate system of the teaching tool, and convert the The third coordinate of the teaching tip is transformed into a fourth coordinate in the world coordinate system, and the fourth coordinate is used as a coordinate of a teaching track point of the teaching tip.
一个实施例an embodiment
参见图9,本申请实施例提供一种示教方法,该示教方法包括如下步骤S801-S802。Referring to FIG. 9 , an embodiment of the present application provides a teaching method, and the teaching method includes the following steps S801-S802.
S801,根据上述任一实施例提供的示教轨迹点采集方法采集至少一个示教轨迹点。S801. Collect at least one teaching track point according to the teaching track point acquisition method provided in any one of the above embodiments.
具体实施中,通过上述任一个实施例提供的示教轨迹点采集方法,采集至少一个示教轨迹点。示教轨迹点的数量可由本领域技术人员根据实际情况确定,本申请不做具体限定。In a specific implementation, at least one teaching track point is collected through the teaching track point acquisition method provided in any one of the above embodiments. The number of teaching track points can be determined by those skilled in the art according to actual conditions, and is not specifically limited in this application.
S802,根据预先标定的世界坐标系与机械臂的机械臂坐标系之间的第四转换矩阵将所述示教轨迹点的第四坐标转换为机械臂坐标系下的第五坐标,并将所述第五坐标作为示教尖端的一个复现轨迹点的坐标。S802, according to the fourth conversion matrix between the pre-calibrated world coordinate system and the mechanical arm coordinate system of the mechanical arm, transform the fourth coordinate of the teaching trajectory point into the fifth coordinate in the mechanical arm coordinate system, and convert the obtained The fifth coordinate is used as the coordinate of a recurring track point of the teaching tip.
具体实施中,预先标定世界坐标系与机械臂的机械臂坐标系之间的转换矩阵,为了描述简便,便于区分,将世界坐标系与机械臂坐标系之间的转换矩阵定义为第四转换矩阵。In the specific implementation, the transformation matrix between the world coordinate system and the manipulator coordinate system of the manipulator is pre-calibrated. In order to simplify the description and facilitate the distinction, the transformation matrix between the world coordinate system and the manipulator coordinate system is defined as the fourth transformation matrix .
具体地,第四转换矩阵的标定方法具体为,首先确定世界坐标系下至少3个点的坐标(例如,本实施例中,点的数量为13且分布均匀,点的数量越多,精度越高,相应的计算量越大),然后控制机械臂移动到上述至少3个点,并记录该至少3个点在机械臂坐标系下的坐标,之后根据该至少三个点在世界坐标系下的坐标以及机械臂坐标系下的坐标就可求解出所述第四转换矩阵。Specifically, the calibration method of the fourth transformation matrix is as follows: firstly, determine the coordinates of at least 3 points in the world coordinate system (for example, in this embodiment, the number of points is 13 and the distribution is uniform, the more the number of points, the higher the accuracy higher, the corresponding calculation amount is larger), and then control the robot arm to move to the above-mentioned at least 3 points, and record the coordinates of the at least 3 points in the robot arm coordinate system, and then according to the at least 3 points in the world coordinate system The coordinates of and the coordinates in the coordinate system of the manipulator can be solved to obtain the fourth transformation matrix.
本申请实施例中,在得到示教尖端的第四坐标(示教轨迹点)后,根据第四转换矩阵将示教尖端的第四坐标转换为示教尖端在机械臂坐标系下坐标,为了描述简便,便于区分,将示教尖端在机械臂坐标系下坐标定义为第五坐标。In the embodiment of the present application, after obtaining the fourth coordinate of the teaching tip (teaching track point), the fourth coordinate of the teaching tip is converted into the coordinates of the teaching tip in the coordinate system of the manipulator according to the fourth transformation matrix, in order The description is simple and easy to distinguish, and the coordinate of the teaching tip in the coordinate system of the manipulator is defined as the fifth coordinate.
进一步地,将所述第五坐标作为所述示教尖端的一个复现轨迹点的坐标。Further, the fifth coordinate is used as the coordinate of a recurring track point of the teaching tip.
进一步地,在采集到复现轨迹点后,将所述复现轨迹点的坐标发送给机械臂的控制器,从而机械臂的控制器能够根据复现轨迹点的坐标控制机械臂移动到所述复现轨迹点。Further, after the recurring track point is collected, the coordinates of the recurring track point are sent to the controller of the robotic arm, so that the controller of the robotic arm can control the mechanical arm to move to the Recursive track points.
一个实施例an embodiment
参见图10,本申请实施例提供一种机械臂运动控制方法,该示教方法包括如下步骤S901-S902。Referring to FIG. 10 , an embodiment of the present application provides a method for controlling motion of a robotic arm, and the teaching method includes the following steps S901 - S902 .
S901,根据上述任一实施例提供的示教方法生成的示教尖端的复现轨迹点的第五坐标。S901, the fifth coordinate of the recurring trajectory point of the teaching tip generated according to the teaching method provided in any one of the above embodiments.
具体实施中,通过上述任一个实施例提供的示教方法,采集至少一个复现轨迹点的坐标。复现轨迹点的数量可由本领域技术人员根据实际情况确定,本申请不做具体限定。In a specific implementation, the coordinates of at least one recurring track point are collected through the teaching method provided by any one of the above embodiments. The number of recurring track points can be determined by those skilled in the art according to actual conditions, and is not specifically limited in this application.
S902,根据所述复现轨迹点的第五坐标生成所述机械臂的运动控制指令。S902. Generate a motion control command of the robotic arm according to the fifth coordinate of the recurring track point.
具体实施中,根据所述复现轨迹点的第五坐标生成所述机械臂的运动控制指令。具体地,将所述复现轨迹点的第五坐标作为参数写入到预设的机械臂的运动控制程序中,得到所述运动控制指令,运动控制指令用于控制机械臂运动到所述复现轨迹点。In a specific implementation, a motion control command of the robotic arm is generated according to the fifth coordinate of the recurring track point. Specifically, the fifth coordinate of the recurring track point is written as a parameter into the preset motion control program of the mechanical arm to obtain the motion control instruction, which is used to control the movement of the mechanical arm to the track point.
进一步地,若所述复现轨迹点的数量超过1,则根据各所述复现轨迹点的第五坐标拟合示教轨迹。具体地,可通过线(例如,线段或者任意曲线,本领域技术人员可根据实际情况进行拟合,对此本申请不做具体限定)将各复现轨迹点连接,得到示教轨迹。之后,根据所述示教轨迹生成所述机械臂的运动控制指令。该运动控制指令用于控制机械臂沿着所述示教轨迹运动。Further, if the number of the recurring track points exceeds 1, the teaching track is fitted according to the fifth coordinates of each of the recurring track points. Specifically, each recurring trajectory point can be connected by a line (for example, a line segment or an arbitrary curve, which can be fitted by those skilled in the art according to the actual situation, which is not specifically limited in this application), to obtain the teaching trajectory. Afterwards, a motion control instruction of the robotic arm is generated according to the taught trajectory. The motion control instruction is used to control the movement of the mechanical arm along the teaching track.
参见图11,本申请实施例提供一种示教轨迹点的采集装置70,所述示教轨迹点的采集装置70包括用于执行上述任一实施例所述的示教轨迹点采集方法的单元。具体地,所述示教轨迹点的采集装置70包括第一采集单元71、第一获取单元72、第二获取单元73以及第三获取单元74。Referring to FIG. 11 , an embodiment of the present application provides a teaching track point acquisition device 70, the teaching track point acquisition device 70 includes a unit for performing the teaching track point acquisition method described in any of the above-mentioned embodiments . Specifically, the acquisition device 70 for teaching track points includes a first acquisition unit 71 , a first acquisition unit 72 , a second acquisition unit 73 and a third acquisition unit 74 .
第一采集单元71,用于通过相机采集包含所述标定板的拍摄图像。The first acquisition unit 71 is configured to acquire a photographed image including the calibration plate through a camera.
第一获取单元72,用于获取所述拍摄图像中各所述定位点在所述相机的相机坐标系下的第一坐标。The first obtaining unit 72 is configured to obtain first coordinates of each of the positioning points in the captured image under the camera coordinate system of the camera.
第二获取单元73,用于获取各所述定位点的在预先为示教工具构建的示教工具坐标系下的第二坐标,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵。The second acquiring unit 73 is configured to acquire the second coordinates of each of the positioning points under the teaching tool coordinate system pre-built for the teaching tool, according to the first coordinates of each of the positioning points and each of the positioning points The second coordinates of , and solve the first transformation matrix between the teaching tool coordinate system and the camera coordinate system.
第三获取单元74,用于获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标。The third acquiring unit 74 is configured to acquire the third coordinates of the teaching tip in the coordinate system of the teaching tool, according to the first transformation matrix and the pre-calibrated third coordinates of the camera coordinate system and the world coordinate system A conversion matrix, converting the third coordinate of the teaching tip into a fourth coordinate in the world coordinate system, and using the fourth coordinate as a coordinate of a teaching track point of the teaching tip.
在一实施例中,所述通过相机采集包含所述标定板的拍摄图像,包括:In one embodiment, the capturing of the photographed image containing the calibration plate through the camera includes:
判断是否接收到采集触发信号;Judging whether the acquisition trigger signal is received;
若接收到采集触发信号,通过相机采集至少一张包含所述标定板的拍摄图像。If the acquisition trigger signal is received, the camera is used to acquire at least one photographed image including the calibration plate.
在一实施例中,所述通过相机采集至少一张包含所述标定板的拍摄图像,包括:In one embodiment, the collecting at least one photographed image containing the calibration plate through the camera includes:
判断所述采集触发信号的持续时间是否大于预设的时间阈值;judging whether the duration of the acquisition trigger signal is greater than a preset time threshold;
若所述采集触发信号的持续时间大于预设的时间阈值,通过相机采集多张包含所述标定板的拍摄图像;If the duration of the acquisition trigger signal is greater than the preset time threshold, a plurality of photographed images including the calibration plate are collected by the camera;
若所述采集触发信号的持续时间不大于预设的时间阈值,通过相机采集一张包含所述标定板的拍摄图像。If the duration of the acquisition trigger signal is not greater than the preset time threshold, a photographed image including the calibration plate is acquired by the camera.
在一实施例中,所述示教工具上设置有至少两个标定板,各所述标定板所在平面之间具有夹角,所述拍摄图像中包含有至少两个标定板的图像,所述获取各所述定位点的在预先为示教工具构建的示教工具坐标系下的第二坐标,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵,包括:In one embodiment, the teaching tool is provided with at least two calibration boards, and there is an angle between the planes where the calibration boards are located, and the captured image includes images of at least two calibration boards, the Obtain the second coordinates of each of the positioning points under the teaching tool coordinate system pre-built for the teaching tool, and solve the problem according to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points. The first transformation matrix between the teaching tool coordinate system and the camera coordinate system includes:
获取所述拍摄图像中每个标定板的图像面积;Obtain the image area of each calibration plate in the captured image;
选取图像面积最大的标定板作为目标标定板;Select the calibration plate with the largest image area as the target calibration plate;
获取所述目标标定板的各定位点的在预先为示教工具构建的示教工具坐标系下的第二坐标,根据所述目标标定板的各定位点的第一坐标以及所述目标标定板的各定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵。Obtaining the second coordinates of each positioning point of the target calibration board in the teaching tool coordinate system pre-built for the teaching tool, according to the first coordinates of each positioning point of the target calibration board and the target calibration board The second coordinates of each positioning point of the given coordinates are used to solve the first transformation matrix between the teaching tool coordinate system and the camera coordinate system.
在一实施例中,所述获取所述拍摄图像中每个标定板的图像面积,包括:In one embodiment, the acquiring the image area of each calibration plate in the captured image includes:
在所述拍摄图像中分别确定各所述标定板的轮廓围出的目标区域;Determining target areas enclosed by the contours of each calibration plate in the captured image;
分别根据各所述标定板的轮廓围出的目标区域包含的像素的数量确定各所述标定板的图像面积。The image area of each of the calibration plates is determined according to the number of pixels included in the target area enclosed by the outline of each of the calibration plates.
在一实施例中,所述根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵,包括:In an embodiment, according to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points, the first transformation matrix between the teaching tool coordinate system and the camera coordinate system is solved ,include:
根据各所述定位点的第一坐标以及各所述定位点的第二坐标,建立以所述第一转换矩阵为未知数的方程组;According to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points, establishing a system of equations with the first transformation matrix as an unknown;
对所述方程组进行求解,得到所述第一转换矩阵。Solving the equation system to obtain the first conversion matrix.
在一实施例中,所述获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标,包括:In one embodiment, the acquisition of the third coordinate of the teaching tip in the coordinate system of the teaching tool is based on the first conversion matrix and the pre-calibrated third coordinate of the camera coordinate system and the world coordinate system. Two conversion matrices, converting the third coordinate of the teaching tip into the fourth coordinate in the world coordinate system, and using the fourth coordinate as the coordinate of a teaching track point of the teaching tip, including :
计算所述第一转换矩阵与所述第二转换矩阵的乘积,得到所述示教工具坐标系和所述世界坐标系之间的第三转换矩阵;calculating the product of the first transformation matrix and the second transformation matrix to obtain a third transformation matrix between the teaching tool coordinate system and the world coordinate system;
根据所述第三转换矩阵将所述示教尖端在所述示教工具坐标系下的第三坐标转化为所述世界坐标系下的第四坐标。Transforming the third coordinate of the teaching tip in the teaching tool coordinate system into a fourth coordinate in the world coordinate system according to the third conversion matrix.
参见图12,本申请实施例提供一种示教装置80,所述示教装置80包括用于执行上述任一实施例所述的示教方法的单元。具体地,所述示教装置80包括第二采集单元81以及转换单元82。Referring to FIG. 12 , an embodiment of the present application provides a teaching device 80 , and the teaching device 80 includes a unit for performing the teaching method described in any one of the above embodiments. Specifically, the teaching device 80 includes a second acquisition unit 81 and a conversion unit 82 .
第二采集单元81,用于根据上述任一实施例提供的示教轨迹点采集方法采集至少一个示教轨迹点。The second collection unit 81 is configured to collect at least one teaching trajectory point according to the teaching trajectory point collection method provided in any one of the above embodiments.
转换单元82,用于根据预先标定的世界坐标系与机械臂的机械臂坐标系之间的第四转换矩阵将所述示教轨迹点的第四坐标转换为机械臂坐标系下的第五坐标,并将所述第五坐标作为示教尖端的一个复现轨迹点的坐标。The conversion unit 82 is used to convert the fourth coordinate of the teaching track point into the fifth coordinate in the mechanical arm coordinate system according to the fourth conversion matrix between the pre-calibrated world coordinate system and the mechanical arm coordinate system of the mechanical arm , and use the fifth coordinate as the coordinate of a recurring track point of the teaching tip.
参见图13,本申请实施例提供一种机械臂100,所述机械臂100包括用于执行上述任一实施例所述的机械臂运动控制方法的单元。具体地,所述机械臂100包括生成单元110以及发送单元120。Referring to FIG. 13 , an embodiment of the present application provides a robotic arm 100 , and the robotic arm 100 includes a unit configured to execute the method for controlling motion of the robotic arm described in any of the foregoing embodiments. Specifically, the robotic arm 100 includes a generating unit 110 and a sending unit 120 .
生成单元110,用于根据上述任一实施例提供的示教方法生成的示教尖端的复现轨迹点的第五坐标。The generating unit 110 is configured to generate the fifth coordinates of the recurring track point of the teaching tip generated according to the teaching method provided in any one of the above-mentioned embodiments.
发送单元120,用于根据所述复现轨迹点的第五坐标生成所述机械臂的运动控制指令。The sending unit 120 is configured to generate a motion control command of the robotic arm according to the fifth coordinate of the recurring track point.
如图14所示,本申请实施例提供了一种控制器,包括处理器111、通信接口112、存储器113和通信总线114,其中,处理器111,通信接口112,存储器113通过通信总线114完成相互间的通信。As shown in Figure 14, the embodiment of the present application provides a controller, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein, the processor 111, the communication interface 112, and the memory 113 are completed through the communication bus 114 mutual communication.
存储器113,用于存放计算机程序;Memory 113, used to store computer programs;
在本申请一个实施例中,处理器111,用于执行存储器113上所存放的程序时,实现前述任意一个方法实施例提供的示教轨迹点采集方法的步骤,或示教方法的步骤,或机械臂运动控制方法的步骤。In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the steps of the teaching track point collection method provided by any of the aforementioned method embodiments, or the steps of the teaching method, or Steps of a method for controlling motion of a robotic arm.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述任意一个方法实施例提供的示教轨迹点采集方法的步骤,或示教方法的步骤,或机械臂运动控制方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the teaching track point collection method provided by any one of the above-mentioned method embodiments are implemented, Or the steps of the teaching method, or the steps of the mechanical arm motion control method.
参见图15并结合图2,本申请实施例提供一种示教系统,所述示教系统包括示教工具12、相机11以及控制器13,所述相机11与所述控制器13连接,所述示教工具12包括相连接的标定板121和示教部件122,所述标定板121包含至少三个定位点,所述示教部件122包含示教尖端123,所述示教部件122与所述标定板121所在平面之间具有夹角,所述控制器13用于执行前述任意一个方法实施例提供的示教轨迹点采集方法的步骤,或示教方法的步骤,或机械臂运动控制方法的步骤。Referring to FIG. 15 in conjunction with FIG. 2 , an embodiment of the present application provides a teaching system, the teaching system includes a teaching tool 12, a camera 11 and a controller 13, the camera 11 is connected to the controller 13, the The teaching tool 12 includes a connected calibration plate 121 and a teaching part 122, the calibration board 121 includes at least three positioning points, the teaching part 122 includes a teaching tip 123, and the teaching part 122 is connected to the teaching part 122. There is an included angle between the planes where the calibration board 121 is located, and the controller 13 is used to execute the steps of the teaching track point acquisition method provided by any one of the aforementioned method embodiments, or the steps of the teaching method, or the motion control method of the mechanical arm A step of.
进一步地,所述示教系统还包括采集按钮125,所述采集按钮125用于向所述控制器发出采集触发信号。具体地,所述采集按钮125设置在所述示教部件122上。Further, the teaching system further includes a collection button 125, and the collection button 125 is used to send a collection trigger signal to the controller. Specifically, the collection button 125 is set on the teaching component 122 .
进一步地,所述示教工具12包括第一控制模块127、第一通信模块126以及电源模块128,所述控制器13包括第二控制模块131以及第二通信模块132。所述采集按钮125与所述第一通信模块126连接,所述第一控制模块127与所述第一通信模块126连接,所述第一通信模块126与所述第二通信模块132无线连接,以实现数据交互。所述第二通信模块132与所述第一控制模块127连接。Further, the teaching tool 12 includes a first control module 127 , a first communication module 126 and a power supply module 128 , and the controller 13 includes a second control module 131 and a second communication module 132 . The acquisition button 125 is connected to the first communication module 126, the first control module 127 is connected to the first communication module 126, and the first communication module 126 is wirelessly connected to the second communication module 132, for data interaction. The second communication module 132 is connected with the first control module 127 .
所述电源模块128与所述第一控制模块127连接,用于向第一控制模块127供电。The power supply module 128 is connected to the first control module 127 for supplying power to the first control module 127 .
进一步地,相机11包括第三控制模块1102以及第三通信模块1101。第三控制模块1102与第三通信模块1101连接,所述第三通信模块1101与所述第二通信模块132无线连接,以实现数据交互。Further, the camera 11 includes a third control module 1102 and a third communication module 1101 . The third control module 1102 is connected to the third communication module 1101, and the third communication module 1101 is wirelessly connected to the second communication module 132 to realize data interaction.
进一步地,机械臂100包括第四控制模块1001以及第四通信模块1002。第四控制模块1001与第四通信模块1002连接。所述第四通信模块1102与所述第二通信模块132无线连接,以实现数据交互。Further, the robotic arm 100 includes a fourth control module 1001 and a fourth communication module 1002 . The fourth control module 1001 is connected with the fourth communication module 1002 . The fourth communication module 1102 is wirelessly connected with the second communication module 132 to realize data interaction.
本实施例中,采集按钮设置在示教工具的示教部件上,或者,在其它的一些实施例中,所述示教系统还包括采集触发装置,所述采集按钮设置在所述采集触发装置上。In this embodiment, the collection button is set on the teaching part of the teaching tool, or, in some other embodiments, the teaching system further includes a collection trigger device, and the collection button is set on the collection trigger device superior.
进一步地,所述示教系统还包括指示灯,指示灯用于指示所述示教系统的工作状态。Further, the teaching system further includes an indicator light, which is used to indicate the working state of the teaching system.
参见图2,在本实施例中,指示灯124设于所述示教工具12的示教部件122上。Referring to FIG. 2 , in this embodiment, an indicator light 124 is provided on the teaching component 122 of the teaching tool 12 .
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims (20)

  1. 一种示教轨迹点采集方法,其特征在于,用于确定示教工具示教时的示教轨迹点,所述示教工具包括相连接的标定板和示教部件,所述标定板包含至少三个定位点,所述示教部件包含示教尖端,所述示教部件与所述标定板所在平面之间具有夹角,所述方法包括:A teaching track point collection method, characterized in that it is used to determine the teaching track point when teaching tool teaching, the teaching tool includes a connected calibration board and teaching components, the calibration board contains at least Three positioning points, the teaching part includes a teaching tip, and there is an angle between the teaching part and the plane where the calibration plate is located, and the method includes:
    通过相机采集包含所述标定板的拍摄图像;Collecting the photographed image comprising the calibration plate through a camera;
    获取所述拍摄图像中各所述定位点在所述相机的相机坐标系下的第一坐标;Acquiring the first coordinates of each of the positioning points in the captured image under the camera coordinate system of the camera;
    获取各所述定位点在预先为示教工具构建的示教工具坐标系下的第二坐标,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵;Obtaining the second coordinates of each of the positioning points in the teaching tool coordinate system pre-built for the teaching tool, and solving the display according to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points. teaching a first transformation matrix between the tool coordinate system and the camera coordinate system;
    获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标。Acquiring the third coordinates of the teaching tip in the teaching tool coordinate system, according to the first transformation matrix and the pre-calibrated second transformation matrix between the camera coordinate system and the world coordinate system, transform the display The third coordinate of the teaching tip is transformed into a fourth coordinate in the world coordinate system, and the fourth coordinate is used as a coordinate of a teaching track point of the teaching tip.
  2. 根据权利要求1所述的示教轨迹点采集方法,其特征在于,所述标定板上的定位点等间距排列。The method for collecting teaching track points according to claim 1, wherein the positioning points on the calibration board are arranged at equal intervals.
  3. 根据权利要求2所述的示教轨迹点采集方法,其特征在于,所述标定板上设置有黑白棋格阵列图案,所述定位点为所述黑白棋格阵列图案的黑棋格和/或白棋格的顶点;The method for collecting teaching trajectory points according to claim 2, wherein the calibration board is provided with a black and white checker grid array pattern, and the positioning points are black checker grids and/or black and white checker grid array patterns of the black and white checker grid array pattern. the vertices of the white square;
    或者,所述标定板上设置有等间距实心圆阵列图案,所述定位点为所述等间距实心圆阵列图案的实心圆的圆心。Alternatively, an array pattern of equidistant solid circles is provided on the calibration plate, and the positioning point is a center of a solid circle of the equidistant solid circle array pattern.
  4. 根据权利要求1所述的示教轨迹点采集方法,其特征在于,所述通过相机采集包含所述标定板的拍摄图像,包括:The teaching track point acquisition method according to claim 1, wherein the capturing of the photographed image comprising the calibration plate through the camera comprises:
    判断是否接收到采集触发信号;Judging whether the acquisition trigger signal is received;
    若接收到采集触发信号,通过相机采集至少一张包含所述标定板的拍摄图像。If the acquisition trigger signal is received, the camera is used to acquire at least one photographed image including the calibration plate.
  5. 根据权利要求4所述的示教轨迹点采集方法,其特征在于,所述通过相机采集至少一张包含所述标定板的拍摄图像,包括:The teaching track point collection method according to claim 4, wherein said collecting at least one photographed image containing said calibration board through a camera comprises:
    判断所述采集触发信号的持续时间是否大于预设的时间阈值;judging whether the duration of the acquisition trigger signal is greater than a preset time threshold;
    若所述采集触发信号的持续时间大于预设的时间阈值,通过相机采集多张包含所述标定板的拍摄图像;If the duration of the acquisition trigger signal is greater than the preset time threshold, a plurality of photographed images including the calibration plate are collected by the camera;
    若所述采集触发信号的持续时间不大于预设的时间阈值,通过相机采集一张包含所述标定板的拍摄图像。If the duration of the acquisition trigger signal is not greater than the preset time threshold, a photographed image including the calibration plate is acquired by the camera.
  6. 根据权利要求1所述的示教轨迹点采集方法,其特征在于,所述示教工具上设置有至少两个标定板,各所述标定板所在平面之间具有夹角,所述拍摄图像中包含有至少两个标定板的图像,所述获取各所述定位点的在预先为示教工具构建的示教工具坐标系下的第二坐标,根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵,包括:The method for collecting teaching trajectory points according to claim 1, wherein at least two calibration plates are arranged on the teaching tool, and there is an included angle between the planes where the calibration plates are located, and in the captured image Including images of at least two calibration boards, the acquisition of the second coordinates of each of the positioning points in the teaching tool coordinate system pre-built for the teaching tool, according to the first coordinates of each of the positioning points and each The second coordinate of the positioning point, solving the first transformation matrix between the teaching tool coordinate system and the camera coordinate system, includes:
    获取所述拍摄图像中每个标定板的图像面积;Obtain the image area of each calibration plate in the captured image;
    选取图像面积最大的标定板作为目标标定板;Select the calibration plate with the largest image area as the target calibration plate;
    获取所述目标标定板的各定位点的在预先为示教工具构建的示教工具坐标系下的第二坐标,根据所述目标标定板的各定位点的第一坐标以及所述目标标定板的各定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵。Obtaining the second coordinates of each positioning point of the target calibration board in the teaching tool coordinate system pre-built for the teaching tool, according to the first coordinates of each positioning point of the target calibration board and the target calibration board The second coordinates of each positioning point of the given coordinates are used to solve the first transformation matrix between the teaching tool coordinate system and the camera coordinate system.
  7. 根据权利要求6所述的示教轨迹点采集方法,其特征在于,所述获取所述拍摄图像中每个标定板的图像面积,包括:The teaching track point acquisition method according to claim 6, wherein said acquiring the image area of each calibration plate in said captured image comprises:
    在所述拍摄图像中分别确定各所述标定板的轮廓围出的目标区域;Determining target areas enclosed by the contours of each calibration plate in the captured image;
    分别根据各所述标定板的轮廓围出的目标区域包含的像素的数量确定各所述标定板的图像面积。The image area of each of the calibration plates is determined according to the number of pixels included in the target area enclosed by the outline of each of the calibration plates.
  8. 根据权利要求1所述的示教轨迹点采集方法,其特征在于,所述根据各所述定位点的第一坐标以及各所述定位点的第二坐标,求解所述示教工具坐标系和所述相机坐标系之间的第一转换矩阵,包括:The teaching track point collection method according to claim 1, wherein, according to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points, the coordinate system of the teaching tool and the coordinate system of the teaching tool are solved. The first transformation matrix between the camera coordinate systems includes:
    根据各所述定位点的第一坐标以及各所述定位点的第二坐标,建立以所述第一转换矩阵为未知数的方程组;According to the first coordinates of each of the positioning points and the second coordinates of each of the positioning points, establishing a system of equations with the first transformation matrix as an unknown;
    对所述方程组进行求解,得到所述第一转换矩阵。Solving the equation system to obtain the first conversion matrix.
  9. 根据权利要求1所述的示教轨迹点采集方法,其特征在于,所述获取所述示教尖端在所述示教工具坐标系下的第三坐标,根据所述第一转换矩阵以及预先标定的所述相机坐标系与世界坐标系的第二转换矩阵,将所述示教尖端的第三坐标转化为所述世界坐标系下的第四坐标,并将所述第四坐标作为所述示教尖端的一个示教轨迹点的坐标,包括:The method for collecting teaching track points according to claim 1, wherein the acquisition of the third coordinate of the teaching tip in the coordinate system of the teaching tool is based on the first conversion matrix and the pre-calibrated The second conversion matrix between the camera coordinate system and the world coordinate system, transform the third coordinate of the teaching tip into the fourth coordinate in the world coordinate system, and use the fourth coordinate as the display Coordinates of a taught track point for the taught tip, including:
    计算所述第一转换矩阵与所述第二转换矩阵的乘积,得到所述示教工具坐标系和所述世界坐标系之间的第三转换矩阵;calculating the product of the first transformation matrix and the second transformation matrix to obtain a third transformation matrix between the teaching tool coordinate system and the world coordinate system;
    根据所述第三转换矩阵将所述示教尖端在所述示教工具坐标系下的第三坐标转化为所述世界坐标系下的第四坐标。Transforming the third coordinate of the teaching tip in the teaching tool coordinate system into a fourth coordinate in the world coordinate system according to the third conversion matrix.
  10. 一种示教方法,其特征在于,包括:A teaching method, characterized in that, comprising:
    根据权利要求1-9任一项所述的方法采集至少一个示教轨迹点;Acquiring at least one teaching track point according to the method described in any one of claims 1-9;
    根据预先标定的世界坐标系与机械臂的机械臂坐标系之间的第四转换矩阵将所述示教轨迹点的第四坐标转换为机械臂坐标系下的第五坐标,并将所述第五坐标作为 示教尖端的一个复现轨迹点的坐标。Transform the fourth coordinate of the teaching track point into the fifth coordinate in the mechanical arm coordinate system according to the fourth transformation matrix between the pre-calibrated world coordinate system and the mechanical arm coordinate system of the mechanical arm, and convert the fourth coordinate of the teaching track point into the fifth coordinate in the mechanical arm coordinate system, and Five coordinates as Coordinates of a recurring trajectory point for the taught tip.
  11. 根据权利要求10所述的示教方法,其特征在于,所述方法还包括:将所述复现轨迹点的坐标发送给机械臂的控制器。The teaching method according to claim 10, further comprising: sending the coordinates of the recurring track point to a controller of the robotic arm.
  12. 一种机械臂运动控制方法,其特征在于,包括:A method for controlling motion of a mechanical arm, comprising:
    根据权利要求10-11任一项所述的示教方法生成示教尖端的复现轨迹点的第五坐标;According to the teaching method described in any one of claims 10-11, the fifth coordinate of the recurring trajectory point of the teaching tip is generated;
    根据所述复现轨迹点的第五坐标生成机械臂的运动控制指令。A motion control instruction of the robotic arm is generated according to the fifth coordinate of the recurring track point.
  13. 根据权利要求12所述的机械臂运动控制方法,其特征在于,还包括:The motion control method of the mechanical arm according to claim 12, further comprising:
    若所述复现轨迹点的数量超过1,则根据各所述复现轨迹点的第五坐标拟合示教轨迹;If the number of the recurring track points exceeds 1, the teaching track is fitted according to the fifth coordinate of each of the recurring track points;
    根据所述示教轨迹生成所述机械臂的运动控制指令。A motion control instruction of the mechanical arm is generated according to the teaching trajectory.
  14. 一种示教轨迹点的采集装置,其特征在于,包括用于执行如权利要求1-9任一项所述的示教轨迹点采集方法的单元。A device for collecting teaching track points, characterized in that it includes a unit for executing the teaching track point collecting method according to any one of claims 1-9.
  15. 一种示教装置,其特征在于,包括用于执行如权利要求10-11任一项所述的示教方法的单元。A teaching device, characterized by comprising a unit for performing the teaching method according to any one of claims 10-11.
  16. 一种机械臂,其特征在于,包括用于执行如权利要求12-13任一项所述的机械臂运动控制方法的单元。A mechanical arm, characterized by comprising a unit for executing the method for controlling motion of a mechanical arm according to any one of claims 12-13.
  17. 一种控制器,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;A controller, characterized in that it includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;
    存储器,用于存放计算机程序;memory for storing computer programs;
    处理器,用于执行存储器上所存放的程序时,实现如权利要求1-9任一项所述的示教轨迹点采集方法的步骤,或如权利要求10-11任一项所述的示教方法的步骤,或如权利要求12-13任一项所述的机械臂运动控制方法的步骤。The processor is configured to implement the steps of the teaching track point collection method according to any one of claims 1-9 when executing the program stored on the memory, or the teaching method according to any one of claims 10-11. The steps of the teaching method, or the steps of the method for controlling the motion of the mechanical arm according to any one of claims 12-13.
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-9任一项所述的示教轨迹点采集方法的步骤,或如权利要求10-11任一项所述的示教方法的步骤,或如权利要求12-13任一项所述的机械臂运动控制方法的步骤。A computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the teaching track point acquisition method according to any one of claims 1-9 are realized, Or the steps of the teaching method as described in any one of claims 10-11, or the steps of the method for controlling the motion of a mechanical arm as described in any one of claims 12-13.
  19. 一种示教系统,其特征在于,包括示教工具、相机以及控制器,所述相机与所述控制器连接,所述示教工具包括相连接的标定板和示教部件,所述标定板包含至少三个定位点,所述示教部件包含示教尖端,所述示教部件与所述标定板所在平面之间具有夹角,所述控制器用于执行如权利要求1-9任一项所述的示教轨迹点采集方法的步骤,或如权利要求10-11任一项所述的示教方法的步骤,或如权利要求12-13任一项所述的机械臂运动控制方法的步骤。A teaching system, characterized in that it includes a teaching tool, a camera and a controller, the camera is connected to the controller, the teaching tool includes a connected calibration board and teaching components, the calibration board Contains at least three positioning points, the teaching part includes a teaching tip, and there is an angle between the teaching part and the plane where the calibration plate is located, and the controller is used to perform any one of claims 1-9 The steps of the teaching track point acquisition method, or the steps of the teaching method according to any one of claims 10-11, or the steps of the mechanical arm motion control method according to any one of claims 12-13 step.
  20. 根据权利要求19所述的示教系统,其特征在于,还包括采集按钮,所述采集按钮设置在所述示教部件上,所述采集按钮用于向所述控制器发出采集触发信号。The teaching system according to claim 19, further comprising a collection button, the collection button is arranged on the teaching component, and the collection button is used to send a collection trigger signal to the controller.
PCT/CN2022/114889 2021-10-28 2022-08-25 Method and apparatus for collecting teaching trajectory points, and robotic arm, system and medium WO2023071481A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111263269.5 2021-10-28
CN202111263269.5A CN113696190B (en) 2021-10-28 2021-10-28 Teaching track point acquisition method, device, mechanical arm, system and medium

Publications (1)

Publication Number Publication Date
WO2023071481A1 true WO2023071481A1 (en) 2023-05-04

Family

ID=78647521

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114889 WO2023071481A1 (en) 2021-10-28 2022-08-25 Method and apparatus for collecting teaching trajectory points, and robotic arm, system and medium

Country Status (2)

Country Link
CN (1) CN113696190B (en)
WO (1) WO2023071481A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116222384A (en) * 2023-05-08 2023-06-06 成都飞机工业(集团)有限责任公司 Omnidirectional measurement calibration method, system, equipment and medium
CN116423526A (en) * 2023-06-12 2023-07-14 上海仙工智能科技有限公司 Automatic calibration method and system for mechanical arm tool coordinates and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113696190B (en) * 2021-10-28 2022-03-18 深圳市越疆科技有限公司 Teaching track point acquisition method, device, mechanical arm, system and medium
CN114543669B (en) * 2022-01-27 2023-08-01 珠海亿智电子科技有限公司 Mechanical arm calibration method, device, equipment and storage medium
CN114619233B (en) * 2022-03-17 2023-08-08 深圳市华成工业控制股份有限公司 Lock positioning method, screw locking method, lock positioning device and screw machine
CN115406676A (en) * 2022-10-31 2022-11-29 成都盛锴科技有限公司 Bogie detection system and method
CN116372889A (en) * 2022-11-03 2023-07-04 深圳市越疆科技股份有限公司 Teaching track processing method, device, mechanical arm, teaching controller and system
CN115781635A (en) * 2022-11-04 2023-03-14 北京镁伽机器人科技有限公司 Robot teaching method and device, electronic device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107756408A (en) * 2017-11-22 2018-03-06 浙江优迈德智能装备有限公司 A kind of robot trajectory's teaching apparatus and method based on active infrared binocular vision
CN108213776A (en) * 2016-12-15 2018-06-29 中国科学院沈阳自动化研究所 A kind of contactless robotic laser welding teaching method
KR20190070386A (en) * 2017-12-12 2019-06-21 한국로봇융합연구원 Robot hand for grasping object by using visual information and tactual information and control method thereof
CN110039523A (en) * 2019-05-20 2019-07-23 北京无远弗届科技有限公司 A kind of industrial robot vision's servo-system, servo method and device
CN110298878A (en) * 2018-03-21 2019-10-01 北京猎户星空科技有限公司 A kind of the determination method, apparatus and electronic equipment of target object three-dimensional pose
CN110465946A (en) * 2019-08-19 2019-11-19 珞石(北京)科技有限公司 Simple easily pixel coordinate and robot coordinate relationship scaling method
CN113696190A (en) * 2021-10-28 2021-11-26 深圳市越疆科技有限公司 Teaching track point acquisition method, device, mechanical arm, system and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104476552B (en) * 2014-10-30 2016-08-24 佛山金皇宇机械实业有限公司 A kind of method for carrying of robot based on machine vision section bar Handling device
JP6836571B2 (en) * 2018-11-14 2021-03-03 ファナック株式会社 Robot device
CN113296395A (en) * 2021-05-14 2021-08-24 珞石(山东)智能科技有限公司 Robot hand-eye calibration method in specific plane
CN113524157A (en) * 2021-06-30 2021-10-22 深圳市越疆科技有限公司 Robot system, method, robot arm, and storage medium for configuring copy function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108213776A (en) * 2016-12-15 2018-06-29 中国科学院沈阳自动化研究所 A kind of contactless robotic laser welding teaching method
CN107756408A (en) * 2017-11-22 2018-03-06 浙江优迈德智能装备有限公司 A kind of robot trajectory's teaching apparatus and method based on active infrared binocular vision
KR20190070386A (en) * 2017-12-12 2019-06-21 한국로봇융합연구원 Robot hand for grasping object by using visual information and tactual information and control method thereof
CN110298878A (en) * 2018-03-21 2019-10-01 北京猎户星空科技有限公司 A kind of the determination method, apparatus and electronic equipment of target object three-dimensional pose
CN110039523A (en) * 2019-05-20 2019-07-23 北京无远弗届科技有限公司 A kind of industrial robot vision's servo-system, servo method and device
CN110465946A (en) * 2019-08-19 2019-11-19 珞石(北京)科技有限公司 Simple easily pixel coordinate and robot coordinate relationship scaling method
CN113696190A (en) * 2021-10-28 2021-11-26 深圳市越疆科技有限公司 Teaching track point acquisition method, device, mechanical arm, system and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116222384A (en) * 2023-05-08 2023-06-06 成都飞机工业(集团)有限责任公司 Omnidirectional measurement calibration method, system, equipment and medium
CN116222384B (en) * 2023-05-08 2023-08-04 成都飞机工业(集团)有限责任公司 Omnidirectional measurement calibration method, system, equipment and medium
CN116423526A (en) * 2023-06-12 2023-07-14 上海仙工智能科技有限公司 Automatic calibration method and system for mechanical arm tool coordinates and storage medium
CN116423526B (en) * 2023-06-12 2023-09-19 上海仙工智能科技有限公司 Automatic calibration method and system for mechanical arm tool coordinates and storage medium

Also Published As

Publication number Publication date
CN113696190A (en) 2021-11-26
CN113696190B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
WO2023071481A1 (en) Method and apparatus for collecting teaching trajectory points, and robotic arm, system and medium
JP6966582B2 (en) Systems and methods for automatic hand-eye calibration of vision systems for robot motion
US9679385B2 (en) Three-dimensional measurement apparatus and robot system
CN111127568B (en) Camera pose calibration method based on spatial point location information
JP5815761B2 (en) Visual sensor data creation system and detection simulation system
TWI420066B (en) Object measuring method and system
CN111083376B (en) Method, system and device for determining installation position of target object and electronic equipment
JP7111114B2 (en) Information processing device, information processing method, and information processing system
CN111801198A (en) Hand-eye calibration method, system and computer storage medium
JP2019115974A (en) Calibration and operation of vision-based manipulation systems
CN110815205A (en) Calibration method, system and device of mobile robot
CN111590593B (en) Calibration method, device and system of mechanical arm and storage medium
KR101111503B1 (en) Apparatus for controlling Pan/Tilt/Zoom camera in omnidirectional and method for the same
WO2020063058A1 (en) Calibration method for multi-degree-of-freedom movable vision system
CN114310901B (en) Coordinate system calibration method, device, system and medium for robot
JP5019478B2 (en) Marker automatic registration method and system
JP2019195885A (en) Control device and robot system
JP2010112731A (en) Joining method of coordinate of robot
CN111986267A (en) Coordinate system calibration method of multi-camera vision system
WO2024094197A1 (en) Teaching trajectory processing method and apparatus, mechanical arm, teaching controller and system
CN113400298A (en) Public-view-free multi-camera positioning large workpiece and industrial robot position compensation method
JP2015005093A (en) Pattern matching device and pattern matching method
JP5365960B2 (en) 3D two-point simple distance measuring device
CN115619877A (en) Method for calibrating position relation between monocular laser sensor and two-axis machine tool system
CN114643577B (en) Universal robot vision automatic calibration device and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885379

Country of ref document: EP

Kind code of ref document: A1