WO2024094197A1 - Teaching trajectory processing method and apparatus, mechanical arm, teaching controller and system - Google Patents

Teaching trajectory processing method and apparatus, mechanical arm, teaching controller and system Download PDF

Info

Publication number
WO2024094197A1
WO2024094197A1 PCT/CN2023/129758 CN2023129758W WO2024094197A1 WO 2024094197 A1 WO2024094197 A1 WO 2024094197A1 CN 2023129758 W CN2023129758 W CN 2023129758W WO 2024094197 A1 WO2024094197 A1 WO 2024094197A1
Authority
WO
WIPO (PCT)
Prior art keywords
teaching
trajectory
tool
information
posture
Prior art date
Application number
PCT/CN2023/129758
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 WO2024094197A1 publication Critical patent/WO2024094197A1/en

Links

Classifications

    • 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/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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the field of robot teaching, and in particular to a teaching trajectory processing method, device, robotic arm, teaching controller, system and medium.
  • Robots are being used more and more widely 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., robot operations can also greatly improve the utilization rate of consumables and reduce the waste of consumables. In addition, robot operations also have many advantages in terms of large working space and improved working environment for workers.
  • the present application provides a teaching trajectory processing method, device, robotic arm, teaching controller, system and medium, aiming to solve the problem that operators currently have difficulty completing complex motion programming, resulting in limited application scenarios of robots, inconvenient use and low efficiency.
  • the present application provides a teaching trajectory processing method, which is applied to a robot arm teaching system, wherein the robot arm teaching system comprises: a teaching tool and a posture acquisition system, wherein the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system, and the method comprises:
  • a teaching trajectory corresponding to the teaching process is obtained by fitting
  • the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory where the two teaching position points are located is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching position points;
  • the line type of the teaching trajectory is determined to be an arc line type, and the arc teaching trajectory where the three teaching position points are located is obtained by fitting the arc line type;
  • the line type of the teaching trajectory is determined to be a curve line type, and the curve teaching trajectory where at least four teaching position points are located is obtained by fitting the curve line type.
  • the present application provides a teaching device, comprising a unit for executing the teaching trajectory processing method as described in any one of the first aspects.
  • the present application provides a robotic arm comprising a unit for executing the teaching trajectory processing method as described in any one of the first aspects.
  • the present application provides a teaching controller, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
  • Memory used to store computer programs
  • the processor is used to implement the steps of the teaching trajectory processing method as described in any one of the first aspects when executing the program stored in the memory.
  • the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the teaching trajectory processing method as described in any one of the first aspects are implemented.
  • the present application provides a robot arm teaching system, including: a teaching tool, a positioning device, a posture acquisition system and a teaching controller, wherein:
  • the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system; the posture acquisition system is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any one of the first aspects.
  • an embodiment of the present application provides a robotic arm control system, comprising: a robotic arm, an operating table, a robotic arm controller, and a robotic arm teaching system as provided in the sixth aspect, wherein:
  • the robot arm teaching system comprises: a teaching tool, a positioning device, a posture acquisition system and a teaching controller, wherein the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system; the posture acquisition system is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any one of the items;
  • the mechanical arm is fixed to the operating table, which includes an operating table body and an operating table surface, and the mechanical arm controller can drive the mechanical arm to move on the operating table surface of the operating table;
  • the robot arm controller is communicatively connected to the robot arm; the robot arm controller is communicatively connected to the teaching controller in the robot arm teaching system;
  • the teaching controller stores a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table, and the coordinate system conversion relationship can be used to convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system, and send it to the robotic arm controller, the robotic arm controller receives the motion trajectory, and uses the motion trajectory to control the robotic arm; or, the robotic arm controller stores a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table, the teaching controller 300 sends the teaching trajectory of the teaching tool in the posture acquisition coordinate system to the robotic arm controller, the robotic arm controller uses the coordinate system conversion relationship to convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system, and controls the robotic arm to move on the operating table according to the motion trajectory.
  • the trajectory processing method provided by the embodiment of the present application is that when performing trajectory teaching, the operator can directly operate the teaching tool to perform mobile teaching.
  • the posture information of the teaching tool at multiple teaching positions is determined; the posture information of multiple teaching positions is determined using the multiple posture information of the teaching tool; according to the posture information of multiple teaching positions, the teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method; wherein, when there are two teaching positions, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory at the two teaching positions is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching positions; when there are three teaching positions, the line type of the teaching trajectory is determined to be an arc line type, and a circular arc teaching trajectory at the three teaching positions is obtained by fitting according to the arc line type; when there are at least four teaching positions, the line type of the teaching trajectory is determined to be a curve line type, and a curve teaching trajectory at at least
  • the operator only needs to move the teaching tool to obtain the corresponding teaching trajectory, which is simple and convenient to operate.
  • this trajectory processing method there is no need to perform complicated programming work, thereby expanding the application scenarios of the robot and improving the convenience and efficiency of the robot.
  • FIG1 is a schematic diagram of a scenario of a robotic arm teaching system provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of a flow chart of a teaching trajectory processing method provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of a flow chart of another teaching trajectory processing method provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a flow chart of another teaching trajectory processing method provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of another scenario of a robot arm teaching system provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of the structure of a teaching tool provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a pattern of a calibration plate of a teaching tool provided in an embodiment of the present application.
  • FIG8 is a second schematic diagram of a pattern of a calibration plate of a teaching tool provided in an embodiment of the present application.
  • FIG9 is a teaching schematic diagram provided in an embodiment of the present application.
  • FIG10 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG11 is a schematic diagram of a teaching switching method provided in an embodiment of the present application.
  • FIG12 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG13 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG14 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG15 is another teaching switching schematic diagram provided in an embodiment of the present application.
  • FIG16 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG17 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG18 is another teaching schematic diagram provided by an embodiment of the present application.
  • FIG19 is another teaching schematic diagram provided in an embodiment of the present application.
  • FIG20 is another teaching switching schematic diagram provided in an embodiment of the present application.
  • FIG21 is a flow chart of another teaching trajectory processing method provided in an embodiment of the present application.
  • FIG21 is a schematic diagram of the structure of a teaching trajectory processing device provided in an embodiment of the present application.
  • FIG22 is a schematic diagram of the structure of a mechanical arm provided in an embodiment of the present application.
  • FIG23 is a schematic diagram of the structure of a teaching controller provided in an embodiment of the present application.
  • FIG24 is a schematic structural diagram of a robot arm control device provided in an embodiment of the present application.
  • FIG. 25 is a schematic diagram of the structure of a robotic arm control system provided in an embodiment of the present application.
  • FIG1 is a schematic diagram of a scenario of a robotic arm teaching system provided in an embodiment of the present application.
  • 400 is an operating table (not shown in the operating table diagram), 100 is a teaching tool, 200 is a posture acquisition system, and 300 is a teaching controller, wherein: the operating table 400 can be a platform on which parts or equipment to be processed are placed.
  • the teaching tool 100 can move or move on the surface of the operating table 400 under the control of the operator.
  • the posture acquisition system 200 is located above the operating table 400 and is used to identify the posture information of the teaching tool 100.
  • the teaching controller 300 has a processor, and the teaching controller 300 can be connected to the posture acquisition system 200 for communication and receiving the posture information sent by the posture acquisition system 200.
  • the teaching controller 300 may be a teaching controller for a robotic arm, and the teaching controller 300 may also store a coordinate system conversion relationship between a posture acquisition coordinate system of a posture acquisition system and a table coordinate system of an operating table, and also store a coordinate system conversion relationship between the coordinate system of the robotic arm (which may be a base coordinate system or an end coordinate system of the robotic arm or a tool coordinate system of the center point of an end effector of the robotic arm) and the table coordinate system.
  • the teaching trajectory of the teaching tool may be converted into a motion trajectory in the table coordinate system through the coordinate system conversion relationship between the aforementioned two coordinate systems, and then according to the coordinate system conversion relationship between the coordinate system of the robotic arm and the table coordinate system, the parameters of each joint of the robotic arm movement may be calculated to directly drive the robotic arm movement.
  • the teaching tool 100 includes: a positioning device 101, a teaching tool body 102 and a teaching tip 103, wherein the positioning device 101 is fixed on the teaching tool body 102, and the teaching tip 103 is located at the bottom of the teaching tool body 102.
  • the teaching tool 100 is further provided with a control button 104, and the operator can press the control button 104 to indicate that the teaching position point is selected.
  • the positioning device 101 can be fixed to the teaching tool body 102 by a fixed connection, or can be fixed to the teaching tool body 102 by a detachable connection, which is convenient for disassembly and assembly.
  • connection method in a complete teaching process, the relative position between the positioning device 101 and the teaching tool body 102 is fixed, and no sliding or loosening can occur, and the relative position relationship between the positioning device 101 and the teaching tool body 102 is known, for example: in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known and fixed.
  • the installation structure information of the teaching tip and the positioning device on the teaching tool body 102 is known.
  • the teaching tool 100 may be a separate simulation teaching device, that is, the trajectory points are collected by moving the teaching tool 100; when the teaching tool 100 is a simulation teaching device, the positioning device 101 may be fixed to the teaching tool body 102 in a fixed connection manner.
  • the teaching tool 100 may be an operating tool on an existing robot arm, such as a spray gun, a welding gun, a glue gun, etc. In this case, the positioning device 101 may be fixed to the teaching body 102 in a detachable manner.
  • the positioning device 101 is a positioning light ball combination composed of a plurality of positioning light balls.
  • the positioning light ball is 1011.
  • the positioning light ball 1011 may be an active positioning light ball with a light-emitting device built inside; in another embodiment, the positioning light ball 1011 may also be a passive positioning light ball with a reflective material disposed on the surface of the positioning light ball 1011 to facilitate reflection of light.
  • the positioning light ball combination includes at least four positioning light balls that are not on the same plane.
  • the posture acquisition system 200 can identify the posture information of the positioning device 101 on the teaching tool 100.
  • the posture acquisition system 200 can be a stereo camera, such as a depth camera, a motion capture camera, etc. In FIG1 , there is one camera. In other embodiments, in order to improve the accuracy of the posture information, the posture acquisition system 200 can also include two or more stereo cameras.
  • an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching.
  • the method can be applied to the teaching controller 300 shown in Figure 1.
  • the method may include the following steps S101-S103.
  • teaching position point is the point indicated by the teaching tip of the teaching tool during the moving process.
  • one teaching process includes at least two teaching position points.
  • the teaching position point can be a teaching point automatically generated during the teaching process according to a preset teaching point selection method, for example: when the teaching tool moves, the teaching position point is selected according to a fixed frequency or a fixed distance.
  • a teaching position point can be recorded every 5 seconds when the teaching tool moves (the aforementioned frequency of recording once every 5 seconds is just an example. In actual application, the frequency can be 120 times per second, or 60HZ/S), or, a teaching position point is recorded for every 1 cm distance moved by the teaching tool.
  • teaching position point selection methods are set as needed, for example: at a corner or turn, 5 teaching position points are collected at each turn, or, in the same teaching process, different teaching position point selection methods are set under different conditions, for example: in a straight line teaching process, a teaching position point is selected every 2 cm, and at a corner or turn, a teaching position point is selected every 1 second.
  • the teaching position point can also be a specific position point specified by the operator, as shown in FIG1 , in which the teaching tool 100 includes a control button 104, which can be a virtual button, such as a touch button on a touch screen, or a physical button, such as a press switch or other switches.
  • a control button 104 can be a virtual button, such as a touch button on a touch screen, or a physical button, such as a press switch or other switches.
  • the posture acquisition system 200 uses a camera to acquire an image of the positioning device 101 on the teaching tool 100, and can determine the position and posture of the positioning device 101 in the coordinate system of the posture acquisition system.
  • the position and posture of the positioning device 101 can be determined according to the spatial relationship of the positioning light ball combination 1011 on the positioning device 101.
  • the relative position between the positioning device 101 and the teaching tool body 102 is obtained in advance, and in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known in advance and are fixed. Therefore, after the position and posture of the positioning device 101 are acquired, the position and posture of the teaching tool 100 can be calculated.
  • the posture information refers to the spatial information of the teaching tool in the camera coordinate system, including position information and posture information, etc.
  • the posture information can also refer to the spatial information of the teaching tool in the table coordinate system, including position information and posture information, etc.
  • step S101 may specifically include:
  • the position and posture acquisition system is used to acquire the positioning information of the multiple light balls of the light ball combination of the teaching tool during the teaching process; and the position and posture information of the teaching tool when the light ball combination is located is determined according to the acquired positioning information of the light ball combination.
  • the teaching tip 103 at the bottom end of the teaching tool 100 is moved on the operating table 400.
  • the point where the teaching tip 103 contacts the operating table 400 when moving, or the point indicated by the teaching tip 103 on the operating table (with a small gap between the teaching tip 103 and the operating table), is the teaching position point.
  • the posture information refers to the spatial information of the teaching position point in the camera coordinate system, including position information, posture information, etc.
  • the posture information can also refer to the spatial information of the teaching position point in the table coordinate system, including position information, posture information, etc.
  • a teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method.
  • the teaching position points recorded by the teaching tool when it moves are the basis for the formation of the teaching trajectory.
  • the restored trajectory will have greater uncertainty.
  • the teaching position points are the basis for the formation of the teaching trajectory, when fitting, it is still necessary to fit according to the preset trajectory fitting method to ensure the relative uniqueness of the teaching trajectory, so that it can play a teaching role.
  • the preset trajectory fitting method includes:
  • Trajectory fitting method 1 two teaching position points, fitting a straight line teaching trajectory, or generating a joint motion trajectory based on the two teaching position points.
  • step S103 may include:
  • the line type of the teaching trajectory is a straight line type
  • the straight line teaching trajectory where the two teaching position points are located is obtained by fitting according to the straight line type.
  • the straight line teaching trajectory refers to the straight line where the two teaching position points are located.
  • the time is T1 and the teaching position point is A; then it moves, and when it moves to a certain position, the time is T2 and the teaching position point is B. Then, correspondingly, the teaching trajectory line is the straight line segment indicated by 502.
  • the joint motion trajectory is mainly to specify the trajectory of the robot arm to perform any movement between two specified points; the joints of the robot arm are driven to rotate so that the end of the robot arm can move from the first teaching position point to another teaching position point in the fastest or most convenient path.
  • the joint motion trajectory of the robot arm can also be generated according to the two teaching points in combination with the real-time status of each joint of the robot arm.
  • Trajectory fitting method 2 Three teaching position points, fitting the arc-shaped teaching trajectory.
  • step S103 may include:
  • the line type of the teaching trajectory is an arc line type
  • the arc teaching trajectory where the three teaching position points are located is obtained by fitting the arc line type.
  • the arc-shaped teaching trajectory refers to an arc in which the three teaching points are located, as shown in Figure 13.
  • the arc segment indicated by the teaching trajectory line 502 is a curve segment on the arc where the teaching position points A, B and C are located.
  • step S103 may include:
  • the line type of the teaching trajectory is a curve line type
  • the curve teaching trajectory where at least four teaching position points are located is obtained by fitting according to the curve line type.
  • the curve teaching trajectory refers to a trajectory of a spline curve shape, as shown in Figure 19.
  • the curve segment indicated by the teaching trajectory line 502 is the spline curve segment where the teaching position points A, B, C and D are located.
  • the trajectory processing method provided by the embodiment of the present application is that when performing trajectory teaching, the operator can directly operate the teaching tool to perform mobile teaching.
  • the posture information of the teaching tool at multiple teaching positions is determined; the posture information of multiple teaching positions is determined using the multiple posture information of the teaching tool; according to the posture information of the multiple teaching positions, the teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method; wherein, when there are two teaching positions, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory at the two teaching positions is obtained by fitting according to the straight line type; when there are three teaching positions, the line type of the teaching trajectory is determined to be an arc line type, and a circular arc teaching trajectory at the three teaching positions is obtained by fitting according to the arc line type; when there are at least four teaching positions, the line type of the teaching trajectory is determined to be a curve line type, and a curve teaching trajectory at at least four teaching positions is obtained by fitting according to the curve line type.
  • the operator only needs to move the teaching tool to obtain the corresponding teaching trajectory, which is simple and convenient to operate.
  • this trajectory processing method there is no need to perform complicated programming work, thereby expanding the application scenarios of the robot and improving the convenience and efficiency of the robot.
  • an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching.
  • the method can be applied to the teaching controller 300 shown in Figure 1.
  • the method may include the following steps S201-S206.
  • the teaching start signal refers to a trigger signal indicating the start of the teaching process.
  • the teaching start signal can be triggered by the control button 104. Specifically, when the operator starts teaching, he presses the control button 104 on the teaching tool 100, and then the teaching tool sends the pressing signal of the control button 104 to the posture acquisition system 200 or the processor 300 as a teaching start signal.
  • the teaching start signal can also be a movement detection signal of the teaching tool.
  • a displacement sensor is installed on the teaching tool, and the movement signal sensed by the displacement sensor is used as the teaching start signal.
  • a posture acquisition system is used to detect whether the posture of the teaching tool has changed, and the signal of the posture change is used as the teaching start signal.
  • the teaching start signal can also be an operation signal on the teaching controller, specifically, the operator clicks the "start" button on the teaching controller with a mouse/keyboard/button, and after receiving the click operation, the teaching controller uses the click operation as the teaching start signal.
  • the operator inputs a start command in the teaching controller through a button or a graphical user interface or a voice command as the teaching start signal.
  • the collection can be performed at a fixed collection frequency.
  • the preset collection frequency here can be freely set according to different teaching processes, but the collection frequency is generally related to the moving speed of the teaching process. For example, when teaching a process with a faster moving speed, the collection frequency can be set higher. For example, when the movement speed of the spray gun is faster during spraying, the collection frequency can be 1 second interval, that is, when teaching spraying, the signal can be collected once every 1 second. When teaching a process with a slower moving speed, the collection frequency can be set lower. For example, when the movement speed of the glue gun is slower during glue coating, the collection frequency can be 3 seconds interval, that is, when teaching glue coating, the signal can be collected once every 3 seconds.
  • the collected information of the positioning device may be image information of the positioning light ball on the positioning device captured by a camera, as well as the time of shooting, etc.
  • the teaching end signal can be another signal that corresponds one-to-one to the teaching start signal.
  • the teaching start signal is triggered by long pressing the control button 104, then the teaching end signal can be triggered by releasing the control button 104.
  • the teaching start signal is triggered by clicking the operating button 104
  • the teaching end signal can be triggered by clicking the operating button 104 again.
  • the movement signal sensed by the displacement sensor (not shown in the figure) is used as the teaching start signal, then the stop movement sensed by the displacement sensor or the stop movement exceeding a preset time threshold (such as 5 seconds) is used as the teaching stop signal.
  • a preset time threshold such as 5 seconds
  • the posture acquisition signal detects that the posture of the teaching tool stops changing or the posture stops changing for more than a preset time threshold (such as 6 seconds) as a teaching stop signal.
  • the teaching start signal is a click operation signal of clicking a "start” button on the teaching controller
  • the teaching stop signal may be a click operation signal of clicking a "stop” button.
  • the teaching stop signal can also be the operator inputting an end command in the teaching controller through a button, a graphical user interface, or a voice command as a teaching end signal.
  • the teaching start signal and the teaching end signal may not correspond one to one.
  • the teaching start signal is triggered by clicking the control button 104
  • the teaching end signal may be a click operation signal of clicking the "Stop" button on the teaching controller, or the stop movement sensed by the displacement sensor or the stop movement exceeds a preset time threshold (such as 5 seconds), etc.
  • a preset time threshold such as 5 seconds
  • the installation structure information refers to the spatial information in the tool coordinate system of the teaching tool.
  • the positions of the positioning device, the teaching tool body and the teaching tip are all known in advance and fixed, that is, in the tool coordinate system, the relative position relationship of each part of the teaching tool is known in advance.
  • the acquisition information of the positioning device is determined, the relative position relationship of each part in the tool coordinate system can be used to convert the posture information of the teaching position point corresponding to the teaching tip.
  • Each posture information of the teaching tool can represent that the teaching tool passes through a teaching position point. Accordingly, the posture information of a teaching position point can be calculated based on each posture information of the teaching work.
  • steps S205 and S206 please refer to the embodiment shown in FIG. 2 above, and the detailed descriptions of steps S102 and S103 are omitted here.
  • the method provided by the embodiment of the present application is that the teaching process is triggered only at the beginning and end of the teaching process.
  • the signal is collected according to the set frequency or method.
  • This method is suitable for the teaching process of a complete process, or a teaching process of a longer time. The operator does not need to operate during the teaching process, but only needs to control at the beginning and end stages.
  • an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching.
  • the method can be applied to the teaching controller 300 shown in Figure 1.
  • the method may include the following steps S301-S306.
  • the teaching process is detected only at the beginning and end of the teaching process, and the signal is collected according to the set frequency or method during the teaching process.
  • This method is suitable for a teaching process of a complete process, or a teaching process of a longer time. The operator does not need to operate during the teaching process, but only needs to control at the beginning and end stages.
  • the trigger signal here can be of various kinds, for example: it can be the pressing operation of the control button 104 on the teaching tool, it can also be the pressing operation of the "collection" button on the teaching controller, or it can be a fixed posture of the teaching tool, for example: when the teaching tool is placed vertically, the signal when placed vertically is used as the trigger signal.
  • the posture recognition system is used to acquire the acquisition information of the positioning device on the teaching tool.
  • S303 Determine the position of the teaching tip on the teaching tool corresponding to each piece of collected information as a teaching position point.
  • the installation structure information refers to the spatial information in the tool coordinate system of the teaching tool.
  • the positions of the positioning device, the teaching tool body and the teaching tip are all known in advance and fixed, that is, in the tool coordinate system, the relative position relationship of each part of the teaching tool is known in advance.
  • the acquisition information of the positioning device is determined, the relative position relationship of each part in the tool coordinate system can be used to convert the posture information of the teaching position point corresponding to the teaching tip.
  • Each posture information of the teaching tool can represent that the teaching tool passes through a teaching position point. Accordingly, the posture information of a teaching position point can be calculated based on each posture information of the teaching work.
  • steps S305 and S306 please refer to the embodiment shown in FIG. 2 above, and the detailed descriptions of steps S102 and S103 are omitted here.
  • the method provided in the embodiment of the present application can achieve refined management during teaching.
  • the operator operates the teaching tool for teaching, when it is necessary to record the point corresponding to the posture at the current moment as the teaching position point, the operator can directly operate the trigger signal to collect and record the posture, which can make the teaching process more flexible and convenient.
  • FIG5 is a schematic diagram of a scenario of a robotic arm teaching system provided in an embodiment of the present application.
  • 400 is an operation table
  • 100 is a teaching tool
  • 200 is a posture acquisition system
  • 300 is a teaching controller
  • the operation table 400 can be a platform on which parts or equipment to be processed are placed.
  • the teaching tool 100 can move or exercise on the surface of the operation table 400 under the control of the operator.
  • the posture acquisition system 200 is located above the operation table 400 and is used to identify the posture information of the teaching tool 100.
  • the teaching controller 300 has a processor, and the teaching controller 300 can be connected to the posture acquisition system 200 for communication and receiving the posture information sent by the posture acquisition system 200.
  • the teaching tool 100 includes: a positioning device 101, a teaching tool body 102 and a teaching tip 103, wherein the positioning device 101 is fixed on the teaching tool body 102, and the teaching tip 103 is located at the bottom end of the teaching tool body 102.
  • the teaching tool 100 is further provided with a control button 104, and the operator can press the control button 104 to indicate that the teaching position point is selected.
  • the positioning device 101 can be fixed to the teaching tool body 102 by a fixed connection, or can be fixed to the teaching tool body 102 by a detachable connection, which is convenient for disassembly and assembly.
  • connection method no matter which connection method is adopted, during a complete teaching process, the relative position between the positioning device 101 and the teaching tool body 102 is fixed, and no sliding or loosening can occur.
  • the relative position relationship between the positioning device 101 and the teaching tool body 102 needs to be known in advance, for example: in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known in advance and are fixed.
  • the teaching tool 100 may be a separate simulation teaching device, that is, the trajectory points are collected by moving the teaching tool 100; when the teaching tool 100 is a simulation teaching device, the positioning device 101 may be fixed to the teaching tool body 102 in a fixed connection manner.
  • the teaching tool 100 may be an operating tool on an existing robot arm, such as a spray gun, a welding gun, a glue gun, etc. In this case, the positioning device 101 may be fixed to the teaching body 102 in a detachable manner.
  • the positioning device 101 is a calibration board.
  • a calibration graphic can be set on the calibration board.
  • the calibration graphic can be a regular block diagram or a dot matrix diagram. The blocks in the calibration graphic or the points in the dot matrix are positioning points.
  • the posture acquisition system 200 can identify the posture information of the positioning device 101 on the teaching tool 100.
  • the posture acquisition system 200 can be a planar camera. In FIG5, there is one depth camera. In other embodiments, in order to improve the accuracy of the posture information, the posture acquisition system 200 can also include two or more planar cameras.
  • the teaching tool body 101 is perpendicular to the calibration plate of the positioning device 101.
  • a shooting distance is set between the posture collection system 200 and the operating table 400.
  • the shooting range of the posture collection system 200 can cover part or all of the area on the operating table 400.
  • the shooting range of the posture collection system 200 covers the entire area of the operating table 400.
  • an effective operation area is set on the operating table 400, and the area of the effective operation area is smaller than the entire area of the operating table 400, so that the shooting range of the posture collection system 200 can only cover the effective operation area.
  • an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching.
  • the method can be applied to the teaching controller 300 shown in Figure 6.
  • the method may include the following steps S101-S103.
  • a teaching process includes at least two teaching position points.
  • the posture acquisition system 200 uses a camera to capture a planar image of the positioning device 101 on the teaching tool 100, and can determine the position of the positioning device 101 in the camera coordinate system in the coordinate system of the posture acquisition system.
  • the camera of the posture acquisition system 200 faces the operating table, the teaching tool moves on the operating table, and the camera captures the captured image containing the calibration plate.
  • the position and posture information of the positioning device 101 is converted.
  • the relative position between the positioning device 101 and the teaching tool body 102 is obtained in advance, and in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known in advance and are fixed. Therefore, when the position and posture of the positioning device 101 is collected, the position and posture information of the teaching tool 100 can be calculated.
  • the posture information refers to the spatial information of the teaching tool in the camera coordinate system, including position information, posture information, etc.
  • the posture information can also refer to the spatial information of the teaching tool in the table coordinate system, including position information, posture information, etc.
  • step S101 may specifically include:
  • the posture acquisition system is used to acquire image information of multiple teaching images of the two-dimensional teaching board during the teaching process of the teaching tool; and the posture information of the teaching tool at the position corresponding to each teaching image is calculated based on the image information.
  • Each posture information of the teaching tool can represent that the teaching tool passes through a teaching position point. Accordingly, the posture information of a teaching position point can be calculated based on each posture information of the teaching work.
  • a teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method.
  • the trajectory processing method provided by the embodiment of the present application is that when performing trajectory teaching, the operator can directly operate the teaching tool to perform mobile teaching.
  • the posture information of the teaching tool at multiple teaching positions is determined; the posture information of multiple teaching positions is determined using the multiple posture information of the teaching tool; according to the posture information of multiple teaching positions, the teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method; wherein, when there are two teaching positions, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory at the two teaching positions is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching positions; when there are three teaching positions, the line type of the teaching trajectory is determined to be an arc line type, and a circular arc teaching trajectory at the three teaching positions is obtained by fitting according to the arc line type; when there are at least four teaching positions, the line type of the teaching trajectory is determined to be a curve line type, and a curve teaching trajectory at at least
  • the operator only needs to move the teaching tool to obtain the corresponding teaching trajectory, which is simple and convenient to operate.
  • this trajectory processing method there is no need to perform complicated programming work, thereby expanding the application scenarios of the robot and improving the convenience and efficiency of the robot.
  • an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching.
  • the method can be applied to the teaching controller 300 shown in Figure 1.
  • the method may include the following steps S101-S105.
  • a teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method.
  • steps S101 and S103 please refer to the embodiment shown in FIG. 2 above, and the detailed description of steps S101 and S103 will not be repeated here.
  • the process operation of each teaching position point can be the same or different. Generally, at different teaching positions, some detailed parameters of the process operation are somewhat different.
  • all parameters corresponding to the process operation are taken as a process parameter set. Taking the spraying process as an example, the process parameter set may include: spraying amount, spraying speed, spraying material, etc. Taking dispensing as an example, the process parameter set may include: dispensing pressure, dispensing duration, dispensing delay time, etc.
  • the teaching tool may correspond to different process operations at different teaching positions, at different times, and for different equipment to be processed during its movement, in order to perform real operations based on the data recorded during the teaching process, the relationship between the process parameter set and the teaching position point must be one-to-one corresponding, otherwise, there will be confusion between the position and the process parameter set.
  • the process parameters and the teaching trajectory are fitted based on the corresponding relationship between the process parameter set and the corresponding teaching position points, so that the obtained process teaching trajectory contains not only the teaching trajectory line of the teaching position point, but also the process parameter set at each teaching position point.
  • the aforementioned step S104 may specifically be:
  • the posture acquisition system collects the acquisition information according to a preset acquisition frequency, records the acquisition order of the teaching position points of the teaching tool when any process operation exists, and records the process parameter set corresponding to the process operation; and establishes an order correspondence between the acquisition information and the process parameter set according to the acquisition order.
  • the method can count each acquisition process after receiving the teaching start signal, and use the counting result as the acquisition order. For example, after receiving the teaching start signal, the acquisition information of the positioning device on the teaching tool is collected every 5 seconds. Then the first 5 seconds of the acquisition order is M001, the second 5 seconds of the acquisition order is M002, ..., until the teaching stop signal is received. In each acquisition order, there are corresponding acquisition information and process parameter sets, so the order correspondence between the acquisition information and the process parameter set can be established according to the acquisition order.
  • step S105 may specifically be:
  • each of the acquired process parameter sets is fitted to the corresponding teaching position point in the teaching trajectory to obtain the process teaching trajectory.
  • step S104 may specifically be:
  • the method can start collecting the collection information of the positioning device on the teaching tool each time a collection trigger signal is detected. Therefore, the time of collection is random. Therefore, when establishing a corresponding relationship, when a collection trigger signal is received, it is determined whether there is a process operation. If so, the process parameter set and the collection information are directly recorded at the same time, and a time correspondence is established.
  • step S105 may specifically be:
  • the method provided in the embodiment of the present application can not only record the teaching trajectory during the teaching process, but also form a process teaching trajectory containing the teaching position points and the process parameter set by recording the process operation corresponding to each teaching position point in the teaching process. Then, when the actual operation is subsequently performed according to the process teaching trajectory, the teaching position points and the process operation at each teaching position point can be restored at the same time, which is more intelligent and makes the teaching process simpler and more convenient.
  • the method may further include the following steps:
  • the teaching trajectory is displayed.
  • the teaching trajectory can be displayed on a graphical user interface in the display screen of the teaching controller. In other embodiments, if there is no display screen on the teaching controller, but the teaching controller is connected to a separate display screen, then the teaching trajectory can also be displayed on a graphical user interface in the separate display screen.
  • the teaching trajectory can be a single linear graphic, or a schematic diagram with a linear graphic and other schematic graphics, for example, as shown in Figures 9 to 20.
  • the method may include the following steps:
  • the preset schematic display method includes at least: non-solid line display, light color display, first display color and/or thin line display.
  • teaching is performed by collecting trigger signals.
  • the control button 104 is pressed to record the teaching position point A.
  • the teaching tool moves to the second posture at time T2, and the control button 104 is pressed to record the teaching position point B. Since there may be other teaching positions in the future, in FIG9 , between the teaching position point A and the teaching position point B, the teaching trajectory of the two points AB is displayed in the form of a dotted line, that is, the schematic trajectory line 501.
  • a time threshold may be added when detecting the posture information of other teaching positions. If the time threshold is exceeded and no detection is performed, step S402 is directly executed.
  • the method may further include the following steps:
  • the straight line teaching trajectory of the two teaching positions is pre-fitted in the background according to the straight line line type corresponding to the two teaching positions; the straight line teaching trajectory is displayed in a preset schematic display mode, and the posture information of the third teaching position is continuously detected;
  • the schematic trajectory line 501 can be switched to a teaching display mode.
  • the teaching display method described in the embodiment of the present application at least includes: solid line display; dark color display, second display color and/or thick line display.
  • the schematic trajectory line 501 since the meaning of the schematic trajectory line 501 is still uncertain, a distinction is made between the schematic trajectory line and the actual teaching trajectory line.
  • the schematic trajectory line may be a non-solid line, while the teaching trajectory line is a solid line; or, the schematic trajectory line may be a light color, while the teaching trajectory line is a dark color; or, the schematic trajectory line may be red, while the teaching trajectory line may be blue; or, the schematic trajectory line may be a thin line, while the teaching trajectory line may be a thick line.
  • the left side of the arrow is the screen before switching, and the right side of the arrow is the screen after switching.
  • the left side is a preset schematic display method, and the right side has a teaching display method. From Figure 11, it can be seen that the schematic trajectory line 501 is a dotted line, and the teaching trajectory line 502 is a solid line.
  • the arc teaching trajectory of the three teaching position points is obtained according to the arc line type corresponding to the three teaching position points in the background; the arc teaching trajectory is displayed in a preset schematic display mode, and the posture information of the fourth teaching position point is continuously detected;
  • a schematic trajectory line of the arc where ABC is located is generated, and a dotted line is used between the three teaching positions ABC.
  • the operator may select the fourth point, so the dotted line in FIG12 is only for illustration.
  • the schematic trajectory line 501 is switched to the teaching trajectory line 502.
  • the entire arc where ABC is located can also be displayed in the form of dotted lines, as shown in FIG14, such as the extended schematic line 503 in FIG14.
  • Figure 15 When only two teaching position points AB are determined on the left, a straight line connecting AB and a dotted schematic trajectory line are used to illustrate. Once the teaching position point C is determined, the straight line is switched to an arc-shaped line and a dotted schematic trajectory line is used to illustrate.
  • the curve teaching trajectory of the four teaching position points is pre-fitted in the background according to the curve line types corresponding to the four teaching position points; the curve teaching trajectory is displayed in a preset schematic display mode, and the posture information of other teaching position points is continuously detected;
  • FIG16 in order to demonstrate a better switching effect, see FIG16.
  • the operator may move the teaching tool by hand. Before determining C, the teaching tip of the teaching tool may be placed at point C1. Then, the schematic trajectory line of the arc-shaped line where ABC1 is located is directly indicated. When the operator does not select point C1, but moves the teaching tool to point C3, then the schematic trajectory line of the arc-shaped line where ABC3 is located is directly indicated. When the operator does not select C3, but moves the teaching tool to point C, then the schematic trajectory line of the arc-shaped line where ABC is located is directly displayed.
  • an embodiment of the present application provides a teaching trajectory processing device, the teaching trajectory processing device comprising a unit for executing the teaching method described in any of the above embodiments.
  • the teaching trajectory processing device comprises a first pose information determination unit 11, a second pose information determination unit 12 and a teaching trajectory fitting unit 13.
  • a second posture information determination unit 12 used to determine the posture information of the plurality of teaching position points using the plurality of posture information of the teaching tool
  • a teaching trajectory fitting unit 13 used for fitting the teaching trajectory corresponding to the teaching process according to the position information of the plurality of teaching position points in a preset trajectory fitting manner;
  • the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a straight line type, and obtains a straight line teaching trajectory where the two teaching position points are located according to the straight line type fitting, or generates a joint motion trajectory according to the two teaching position points;
  • the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is an arc line type, and obtains the arc teaching trajectory where the three teaching position points are located according to the arc line type fitting;
  • the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a curve line type, and obtains the curve teaching trajectory where at least four teaching positions are located according to the curve line type fitting.
  • an embodiment of the present application provides a robotic arm, the robotic arm comprising a unit for executing the teaching method described in any of the above embodiments.
  • the robotic arm comprises a first pose information determination unit 11 , a second pose information determination unit 12 , and a teaching trajectory fitting unit 13 .
  • a second posture information determination unit 12 used to determine the posture information of the plurality of teaching position points using the plurality of posture information of the teaching tool
  • a teaching trajectory fitting unit 13 used for fitting the teaching trajectory corresponding to the teaching process according to the position information of the plurality of teaching position points in a preset trajectory fitting manner;
  • the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a straight line type, and obtains a straight line teaching trajectory where the two teaching position points are located according to the straight line type fitting, or generates a joint motion trajectory according to the two teaching position points;
  • the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is an arc line type, and obtains the arc teaching trajectory where the three teaching position points are located according to the arc line type fitting;
  • the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a curve line type, and obtains the curve teaching trajectory where at least four teaching positions are located according to the curve line type fitting.
  • an embodiment of the present application provides a robot arm control device, 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 communicate with each other through the communication bus 114.
  • Memory 113 used for storing computer programs
  • the processor 111 is used to implement the steps of the teaching trajectory processing method provided by any of the aforementioned method embodiments when executing the program stored in the memory 113.
  • An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon.
  • the computer program is executed by a processor, the steps of the teaching trajectory processing method provided in any of the aforementioned method embodiments are implemented.
  • the present application also provides a robot arm teaching system, as shown in FIG. 1 and FIG. 5 , comprising: a teaching tool 100, a positioning device 101, a posture acquisition system 200 and a teaching controller 300, wherein:
  • the teaching tool 100 is provided with a positioning device 101 whose posture can be recognized by the posture acquisition system 200; the posture acquisition system 200 is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any of the aforementioned method embodiments.
  • the teaching tool 100 is provided with a teaching tip 103 , and the installation structure information of the teaching tip 103 and the positioning device 101 is known.
  • the robot arm teaching system further includes a manipulation button, as shown in FIG. 1 and FIG. 5 , the manipulation button 104 is disposed on the teaching tool, or the manipulation button is independent of the teaching tool (not shown in the figure).
  • the control button 104 is in communication connection with the teaching controller 300 , and the control button 104 is used to send a collection trigger signal to the teaching controller.
  • the robotic arm teaching system further includes a start/stop button (not shown in the figure), which is connected to the posture acquisition system and is used to send a teaching start signal or a teaching end signal to the posture acquisition system.
  • a start/stop button (not shown in the figure), which is connected to the posture acquisition system and is used to send a teaching start signal or a teaching end signal to the posture acquisition system.
  • the embodiment of the present application further provides a robot arm control system, comprising: a robot arm 500, an operating table, a robot arm teaching controller 600 and a robot arm teaching system in any of the aforementioned embodiments, wherein:
  • the robot arm 500 is fixed to the operating table, and the operating table includes: an operating table body (not shown in the figure) and an operating table surface 400.
  • the robot arm controller 600 can drive the robot arm 500 to move on the operating table surface 400 of the operating table, that is, the robot arm 500 can move on the operating table surface 400 of the operating table under the control of the robot arm controller 600.
  • the robot arm teaching system includes: a teaching tool 100, a positioning device 101, a posture acquisition system 200 and a teaching controller 300, wherein:
  • the acquisition range of the posture acquisition system 200 may cover the operating table 400 of the operating table.
  • the posture acquisition system 200 may be fixed to the operating table body of the operating table, for example, the posture acquisition system 200 may be fixed to the side of the operating table body of the operating table 400 by a mounting rod or a mounting frame, or fixed to the operating table 400.
  • the posture acquisition system 200 may not be fixed to the operating table, but a gap is set between the operating table, for example, the posture acquisition system 200 may be fixed to the ground, wall or ceiling near the operating table by a mounting frame, or a support rod, and similarly, the acquisition range of the posture acquisition system 200 may cover the operating table of the operating table, and the acquisition range of the posture acquisition system 200 covers the operating table.
  • the robotic arm controller 600 is communicatively connected to the robotic arm 500 .
  • the robotic arm controller 600 can be communicatively connected to the robotic arm 500 via a communication cable or by wireless communication.
  • the robotic arm controller 600 can control the robotic arm 500 to move on the operating table 400 .
  • the robot arm controller 600 is also communicatively connected with the teaching controller 300 in the robot arm teaching system.
  • the teaching controller 300 may also store a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table. After determining the teaching trajectory of the teaching tool in the posture acquisition coordinate system, the teaching trajectory of the teaching tool in the posture acquisition coordinate system can be converted into a motion trajectory in the table coordinate system through the coordinate system conversion relationship between the aforementioned two coordinate systems, and then sent to the robot controller 600, so that the robot controller 600 can directly use the motion trajectory to control the robot 500, so that the robot 500 moves on the operating table 400 according to the teaching trajectory, so as to restore the teaching trajectory.
  • the robot controller 600 may store a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table.
  • the teaching controller 300 only sends the teaching trajectory of the teaching tool in the posture acquisition coordinate system to the robot controller 600.
  • the robot controller 600 can convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system through the coordinate system conversion relationship between the aforementioned two coordinate systems. Then, the robot controller 600 can directly use the converted motion trajectory to control the robot to move on the operating table 400 so as to restore the teaching trajectory.
  • the robot arm controller 600 and the teaching controller 300 may use two separate processors to perform processing operations separately.
  • the robot arm controller 600 and the teaching controller 300 may also use the same processor to save hardware costs and avoid communication delay problems caused by signal transmission between different processors.

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)
  • Numerical Control (AREA)

Abstract

The present application relates to a teaching trajectory processing method and apparatus, which are applied to a mechanical arm teaching system. The mechanical arm teaching system comprises a teaching tool and a pose acquisition system. The teaching tool is provided with a positioning apparatus, the pose of which can be identified by the pose acquisition system. The method comprises: in a teaching process performed by the teaching tool, determining pose information of the teaching tool on a plurality of teaching position points; determining pose information of the plurality of teaching position points by using a plurality of pieces of pose information of the teaching tool; and according to the pose information of the plurality of teaching position points, obtaining, via fitting, a teaching trajectory corresponding to the teaching process. By applying the trajectory processing method provided in an embodiment of the present application, an operator merely needs to move the teaching tool to obtain the corresponding teaching trajectory. The operation is simple and convenient. By means of the trajectory processing method, the need for complex programming may be eliminated, thereby expanding the application scenarios of a robot and improving the use convenience and increasing the efficiency of the robot.

Description

示教轨迹处理方法、装置、机械臂、示教控制器及系统Teaching trajectory processing method, device, robotic arm, teaching controller and system 技术领域Technical Field
本申请涉及机器人示教领域,尤其涉及一种示教轨迹处理方法、装置、机械臂、示教控制器、系统及介质。The present application relates to the field of robot teaching, and in particular to a teaching trajectory processing method, device, robotic arm, teaching controller, system and medium.
背景技术Background technique
机器人在各个行业中的应用越来越广泛,机器人作业相比于人工作业,作业精度、效率都有较大的提高,针对一些需要耗材的场景,例如:喷漆、点胶、焊接等,机器人作业还可以极大地提高了耗材的利用率,降低了耗材的浪费,另外,机器人作业还具有工作空间大,改善工人工作环境等方面有诸多优势。Robots are being used more and more widely 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., robot operations can also greatly improve the utilization rate of consumables and reduce the waste of consumables. In addition, robot operations also have 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 skills, completes the motion control program programming, and inputs it into the robot. This places very high demands on the operator. However, it is generally difficult for workers on the production line to complete the programming of complex movements, which in turn limits the application scenarios of the robot.
技术问题technical problem
本申请提供了一种示教轨迹处理方法、装置、机械臂、示教控制器、系统及介质,旨在解决目前操作人员难以完成复杂的动作编程导致机器人应用场景受限且使用不便捷、效率低的问题。The present application provides a teaching trajectory processing method, device, robotic arm, teaching controller, system and medium, aiming to solve the problem that operators currently have difficulty completing complex motion programming, resulting in limited application scenarios of robots, inconvenient use and low efficiency.
技术解决方案Technical Solutions
第一方面,本申请提供了一种 示教轨迹处理方法,应用于机械臂示教系统,所述机械臂示教系统包括:示教工具和位姿采集系统,所述示教工具上设有可被所述位姿采集系统识别位姿的定位装置,所述方法包括:In the first aspect, the present application provides a teaching trajectory processing method, which is applied to a robot arm teaching system, wherein the robot arm teaching system comprises: a teaching tool and a posture acquisition system, wherein the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system, and the method comprises:
在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;During the teaching process of the teaching tool, determining the position and posture information of the teaching tool at a plurality of teaching positions;
利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;Determine the position information of the teaching position points by using the plurality of position information of the teaching tool;
根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹;According to the position information of the plurality of teaching position points, a teaching trajectory corresponding to the teaching process is obtained by fitting;
其中,所述示教位置点为两个时,确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹,或根据两个所述示教位置点生成关节运动轨迹;Wherein, when there are two teaching position points, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory where the two teaching position points are located is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching position points;
所述示教位置点为三个时,确定所述示教轨迹的线型为圆弧线型,根据所述圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;When there are three teaching position points, the line type of the teaching trajectory is determined to be an arc line type, and the arc teaching trajectory where the three teaching position points are located is obtained by fitting the arc line type;
所述示教位置点为至少四个时,确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。When there are at least four teaching position points, the line type of the teaching trajectory is determined to be a curve line type, and the curve teaching trajectory where at least four teaching position points are located is obtained by fitting the curve line type.
第二方面,本申请提供了一种示教装置,包括用于执行如第一方面任一项所述的示教轨迹处理方法的单元。In a second aspect, the present application provides a teaching device, comprising a unit for executing the teaching trajectory processing method as described in any one of the first aspects.
第三方面,本申请提供了一种机械臂,包括用于执行如第一方面任一项所述的示教轨迹处理方法的单元。In a third aspect, the present application provides a robotic arm comprising a unit for executing the teaching trajectory processing method as described in any one of the first aspects.
第四方面,本申请提供了一种示教控制器,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a fourth aspect, the present application provides a teaching controller, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
存储器,用于存放计算机程序;Memory, used to store computer programs;
处理器,用于执行存储器上所存放的程序时,实现如第一方面任一项所述的示教轨迹处理方法的步骤。The processor is used to implement the steps of the teaching trajectory processing method as described in any one of the first aspects when executing the program stored in the memory.
第五方面,本申请提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面任一项所述的示教轨迹处理方法的步骤。In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the teaching trajectory processing method as described in any one of the first aspects are implemented.
第六方面,本申请提供了一种机械臂示教系统,包括:示教工具、定位装置、位姿采集系统和示教控制器,其中,In a sixth aspect, the present application provides a robot arm teaching system, including: a teaching tool, a positioning device, a posture acquisition system and a teaching controller, wherein:
所述示教工具上设有可被所述位姿采集系统识别位姿的定位装置;所述位姿采集系统与所述示教控制器通信连接;所述示教控制器用于执行如第一方面任一项所述的示教轨迹处理方法的步骤。The teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system; the posture acquisition system is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any one of the first aspects.
第七方面,本申请实施例提供了一种机械臂控制系统,包括:机械臂、操作台、机械臂控制器和如前述第六方面提供的机械臂示教系统,其中,In a seventh aspect, an embodiment of the present application provides a robotic arm control system, comprising: a robotic arm, an operating table, a robotic arm controller, and a robotic arm teaching system as provided in the sixth aspect, wherein:
所述机械臂示教系统,包括:示教工具、定位装置、位姿采集系统和示教控制器,所述示教工具上设有可被所述位姿采集系统识别位姿的定位装置;所述位姿采集系统与所述示教控制器通信连接;所述示教控制器用于执行如任一项所述的示教轨迹处理方法的步骤;The robot arm teaching system comprises: a teaching tool, a positioning device, a posture acquisition system and a teaching controller, wherein the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system; the posture acquisition system is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any one of the items;
所述机械臂与所述操作台相固定,操作台包括:操作台体和操作台面,所述机械臂控制器可驱动所述机械臂在操作台的操作台面上进行移动;The mechanical arm is fixed to the operating table, which includes an operating table body and an operating table surface, and the mechanical arm controller can drive the mechanical arm to move on the operating table surface of the operating table;
所述机械臂控制器与机械臂之间通信连接;机械臂控制器与机械臂示教系统中的示教控制器进行通信连接;The robot arm controller is communicatively connected to the robot arm; the robot arm controller is communicatively connected to the teaching controller in the robot arm teaching system;
所述示教控制器中存储有位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,且可利用所述坐标系转换关系,将所述示教工具在位姿采集坐标系中的示教轨迹转换为台面坐标系中的运动轨迹,并发送给机械臂控制器,所述机械臂控制器接收所述运动轨迹,并利用运动轨迹对机械臂进行控制;或者,所述机械臂控制器中存储有所述位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,所述示教控制器300将示教工具在位姿采集坐标系中的示教轨迹发送给机械臂控制器,所述机械臂控制器利用所述坐标系转换关系,将示教工具在位姿采集坐标系中的示教轨迹转换为台面坐标系中的运动轨迹,并且根据所述运动轨迹控制机械臂在操作台面上进行移动。The teaching controller stores a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table, and the coordinate system conversion relationship can be used to convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system, and send it to the robotic arm controller, the robotic arm controller receives the motion trajectory, and uses the motion trajectory to control the robotic arm; or, the robotic arm controller stores a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table, the teaching controller 300 sends the teaching trajectory of the teaching tool in the posture acquisition coordinate system to the robotic arm controller, the robotic arm controller uses the coordinate system conversion relationship to convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system, and controls the robotic arm to move on the operating table according to the motion trajectory.
本申请实施例提供的上述技术方案与现有技术相比具有如下优点:The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
本申请实施例提供的该轨迹处理方法,在进行轨迹示教时,操作人员可以直接操作示教工具进行移动示教,在示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹;其中,所述示教位置点为两个时,确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹,或根据两个所述示教位置点生成关节运动轨迹;所述示教位置点为三个时,确定所述示教轨迹的线型为圆弧线型,根据所述圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;所述示教位置点为至少四个时,确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。The trajectory processing method provided by the embodiment of the present application is that when performing trajectory teaching, the operator can directly operate the teaching tool to perform mobile teaching. During the teaching process of the teaching tool, the posture information of the teaching tool at multiple teaching positions is determined; the posture information of multiple teaching positions is determined using the multiple posture information of the teaching tool; according to the posture information of multiple teaching positions, the teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method; wherein, when there are two teaching positions, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory at the two teaching positions is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching positions; when there are three teaching positions, the line type of the teaching trajectory is determined to be an arc line type, and a circular arc teaching trajectory at the three teaching positions is obtained by fitting according to the arc line type; when there are at least four teaching positions, the line type of the teaching trajectory is determined to be a curve line type, and a curve teaching trajectory at at least four teaching positions is obtained by fitting according to the curve line type.
有益效果Beneficial Effects
应用本申请实施例提供的该轨迹处理方法,操作人员只需移动示教工具,即可获取到对应的示教轨迹,操作简单、方便,通过该轨迹处理方法,可以无需进行复杂的编程工作,进而扩大了机器人的应用场景,提高了机器人的使用便捷性以及效率。By applying the trajectory processing method provided in the embodiment of the present application, the operator only needs to move the teaching tool to obtain the corresponding teaching trajectory, which is simple and convenient to operate. Through this trajectory processing method, there is no need to perform complicated programming work, thereby expanding the application scenarios of the robot and improving the convenience and efficiency of the robot.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本申请实施例提供的一种机械臂示教系统的场景示意图;FIG1 is a schematic diagram of a scenario of a robotic arm teaching system provided in an embodiment of the present application;
图2为本申请实施例提供的一种示教轨迹处理方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a teaching trajectory processing method provided in an embodiment of the present application;
图3为本申请实施例提供的另一种示教轨迹处理方法的流程示意图;FIG3 is a schematic diagram of a flow chart of another teaching trajectory processing method provided in an embodiment of the present application;
图4为本申请实施例提供的又一种示教轨迹处理方法的流程示意图;FIG4 is a schematic diagram of a flow chart of another teaching trajectory processing method provided in an embodiment of the present application;
图5为本申请实施例提供的另一种机械臂示教系统的场景示意图;FIG5 is a schematic diagram of another scenario of a robot arm teaching system provided in an embodiment of the present application;
图6为本申请实施例提供的一种示教工具的结构示意图;FIG6 is a schematic diagram of the structure of a teaching tool provided in an embodiment of the present application;
图7为本申请实施例提供的示教工具的标定板的图案示意图一;FIG. 7 is a schematic diagram of a pattern of a calibration plate of a teaching tool provided in an embodiment of the present application;
图8为本申请实施例提供的示教工具的标定板的图案示意图二;FIG8 is a second schematic diagram of a pattern of a calibration plate of a teaching tool provided in an embodiment of the present application;
图9为本申请实施例提供的一种示教示意图;FIG9 is a teaching schematic diagram provided in an embodiment of the present application;
图10为本申请实施例提供的另一种示教示意图;FIG10 is another teaching schematic diagram provided in an embodiment of the present application;
图11为本申请实施例提供的一种示教切换示意图;FIG11 is a schematic diagram of a teaching switching method provided in an embodiment of the present application;
图12为本申请实施例提供的又一种示教示意图;FIG12 is another teaching schematic diagram provided in an embodiment of the present application;
图13为本申请实施例提供的又一种示教示意图;FIG13 is another teaching schematic diagram provided in an embodiment of the present application;
图14为本申请实施例提供的又一种示教示意图;FIG14 is another teaching schematic diagram provided in an embodiment of the present application;
图15为本申请实施例提供的另一种示教切换示意图;FIG15 is another teaching switching schematic diagram provided in an embodiment of the present application;
图16为本申请实施例提供的又一种示教示意图;FIG16 is another teaching schematic diagram provided in an embodiment of the present application;
图17为本申请实施例提供的又一种示教示意图;FIG17 is another teaching schematic diagram provided in an embodiment of the present application;
图18为本申请实施例提供的又一种示教示意图;FIG18 is another teaching schematic diagram provided by an embodiment of the present application;
图19为本申请实施例提供的又一种示教示意图;FIG19 is another teaching schematic diagram provided in an embodiment of the present application;
图20为本申请实施例提供的又一种示教切换示意图;FIG20 is another teaching switching schematic diagram provided in an embodiment of the present application;
图21为本申请实施例提供的又一种示教轨迹处理方法的流程示意图;FIG21 is a flow chart of another teaching trajectory processing method provided in an embodiment of the present application;
图21为本申请实施例提供的一种示教轨迹处理装置的结构示意图;FIG21 is a schematic diagram of the structure of a teaching trajectory processing device provided in an embodiment of the present application;
图22为本申请实施例提供的一种机械臂的结构示意图;FIG22 is a schematic diagram of the structure of a mechanical arm provided in an embodiment of the present application;
图23为本申请实施例提供的一种示教控制器的结构示意图;FIG23 is a schematic diagram of the structure of a teaching controller provided in an embodiment of the present application;
图24本申请实施例提供的一种机械臂控制设备的结构示意图;FIG24 is a schematic structural diagram of a robot arm control device provided in an embodiment of the present application;
图25为本申请实施例提供一种机械臂控制系统的结构示意图。FIG. 25 is a schematic diagram of the structure of a robotic arm control system provided in an embodiment of the present application.
本申请的具体实施方式Specific implementation methods of this application
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
一个实施例:An embodiment:
图1为本申请实施例提供的一种机械臂示教系统的场景示意图。FIG1 is a schematic diagram of a scenario of a robotic arm teaching system provided in an embodiment of the present application.
在图1中,400为操作台(操作台图中未示出)的操作台面,100为示教工具,200为位姿采集系统,300为示教控制器,其中:操作台面400可以为一平台,上面用于放置有待加工的零部件或设备。示教工具100可以在操作人员的操控下操作台面400的表面上移动或运动。位姿采集系统200位于操作台面400的上方,用于对示教工具100的位姿信息进行识别,示教控制器300中具有处理器,示教控制器300可以与位姿采集系统200通信连接,用于接收位姿采集系统200发送的位姿信息。在一些实施例中,示教工具100上还有一些操控按钮(如图1中的104),为了获取这些操控按钮的操控信息,可选地,示教控制器300还可以与示教工具100通信连接,用于接收示教工具100发送的操控信息。In FIG1 , 400 is an operating table (not shown in the operating table diagram), 100 is a teaching tool, 200 is a posture acquisition system, and 300 is a teaching controller, wherein: the operating table 400 can be a platform on which parts or equipment to be processed are placed. The teaching tool 100 can move or move on the surface of the operating table 400 under the control of the operator. The posture acquisition system 200 is located above the operating table 400 and is used to identify the posture information of the teaching tool 100. The teaching controller 300 has a processor, and the teaching controller 300 can be connected to the posture acquisition system 200 for communication and receiving the posture information sent by the posture acquisition system 200. In some embodiments, there are some control buttons (such as 104 in FIG1 ) on the teaching tool 100. In order to obtain the control information of these control buttons, the teaching controller 300 can also be connected to the teaching tool 100 for communication and receiving the control information sent by the teaching tool 100.
在本申请实施例中,示教控制器300可以为机械臂的示教控制器,在示教控制器300中还可以存储有位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,同时也存储有机械臂的坐标系(可以是基座标系或机械臂的末端坐标系统或机械臂的末端执行器的中心点的工具坐标系)和台面坐标系之间的坐标转换关系,进而当确定示教工具在位姿采集坐标系中的示教轨迹后,通过前述两个坐标系之间的坐标系转换关系,可以将示教工具的示教轨迹转换为台面坐标系中的运动轨迹,再根据机械臂的坐标系和台面坐标系之间的坐标转换关系,计算出机械臂运动的各关节的参数,直接驱动机械臂运动。In an embodiment of the present application, the teaching controller 300 may be a teaching controller for a robotic arm, and the teaching controller 300 may also store a coordinate system conversion relationship between a posture acquisition coordinate system of a posture acquisition system and a table coordinate system of an operating table, and also store a coordinate system conversion relationship between the coordinate system of the robotic arm (which may be a base coordinate system or an end coordinate system of the robotic arm or a tool coordinate system of the center point of an end effector of the robotic arm) and the table coordinate system. After determining the teaching trajectory of the teaching tool in the posture acquisition coordinate system, the teaching trajectory of the teaching tool may be converted into a motion trajectory in the table coordinate system through the coordinate system conversion relationship between the aforementioned two coordinate systems, and then according to the coordinate system conversion relationship between the coordinate system of the robotic arm and the table coordinate system, the parameters of each joint of the robotic arm movement may be calculated to directly drive the robotic arm movement.
参见图1所示,在图1中,示教工具100包括:定位装置101、示教工具主体102和示教尖端103,其中,定位装置101固定在示教工具主体102上,示教尖端103位于示教工具主体102的底端。在其它实施例中,示教工具100上还设置有操控按钮104,操作人员可以按压操控按钮104,表示选定示教位置点。As shown in FIG1 , in FIG1 , the teaching tool 100 includes: a positioning device 101, a teaching tool body 102 and a teaching tip 103, wherein the positioning device 101 is fixed on the teaching tool body 102, and the teaching tip 103 is located at the bottom of the teaching tool body 102. In other embodiments, the teaching tool 100 is further provided with a control button 104, and the operator can press the control button 104 to indicate that the teaching position point is selected.
在本申请实施例中,定位装置101可以采用固定连接的方式固定在示教工具主体102上,也可以采用可拆卸连接的方式固定在示教工具主体102上,方便拆卸以及组装,但无论采用哪种连接方式,在一次完整的示教过程中,定位装置101与示教工具主体102之间的相对位置固定,不能出现滑动或松动,并且定位装置101与示教工具主体102之间的相对位置关系是已知的,例如:在示教工具100的空间坐标系中,定位装置101与示教工具主体102的位置是已知的,并且是固定不变。在本申请实施例中,所述示教尖端与所述定位装置在示教工具主体102上的安装结构信息都是已知的。In the embodiment of the present application, the positioning device 101 can be fixed to the teaching tool body 102 by a fixed connection, or can be fixed to the teaching tool body 102 by a detachable connection, which is convenient for disassembly and assembly. However, no matter which connection method is used, in a complete teaching process, the relative position between the positioning device 101 and the teaching tool body 102 is fixed, and no sliding or loosening can occur, and the relative position relationship between the positioning device 101 and the teaching tool body 102 is known, for example: in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known and fixed. In the embodiment of the present application, the installation structure information of the teaching tip and the positioning device on the teaching tool body 102 is known.
在本申请一个实施例中,示教工具100可以为单独的模拟示教器具,即通过示教工具100的移动,来实现对轨迹点的采集;当示教工具100为模拟示教器具时,定位装置101可以采用固定连接的方式固定在示教工具主体102上。在本申请另一实施例中,示教工具100可以为现有的机器臂上的操作工具,例如:喷枪、焊枪、涂胶枪等,这种情况下,定位装置101可以采用可拆卸的方式固定在示教主体102上。In one embodiment of the present application, the teaching tool 100 may be a separate simulation teaching device, that is, the trajectory points are collected by moving the teaching tool 100; when the teaching tool 100 is a simulation teaching device, the positioning device 101 may be fixed to the teaching tool body 102 in a fixed connection manner. In another embodiment of the present application, the teaching tool 100 may be an operating tool on an existing robot arm, such as a spray gun, a welding gun, a glue gun, etc. In this case, the positioning device 101 may be fixed to the teaching body 102 in a detachable manner.
如图1所示,在本申请实施例中,定位装置101为多个定位光球组成的定位光球组合,如图1所示,定位光球为1011,在本申请一个具体的实施例中,定位光球1011可以为主动式定位光球,内部内置有发光器件;在另一实施例中,定位光球1011还可以为被动式定位光球,在定位光球1011表面设置有反光材料,以便于对光线进行反射。在本申请实施例中,定位光球组合中包括不在同一平面上的至少四个定位光球。As shown in FIG. 1 , in the embodiment of the present application, the positioning device 101 is a positioning light ball combination composed of a plurality of positioning light balls. As shown in FIG. 1 , the positioning light ball is 1011. In a specific embodiment of the present application, the positioning light ball 1011 may be an active positioning light ball with a light-emitting device built inside; in another embodiment, the positioning light ball 1011 may also be a passive positioning light ball with a reflective material disposed on the surface of the positioning light ball 1011 to facilitate reflection of light. In the embodiment of the present application, the positioning light ball combination includes at least four positioning light balls that are not on the same plane.
在本申请实施例中,位姿采集系统200可以识别示教工具100上的定位装置101的位姿信息。配合图1所示采用定位光球的定位装置101,位姿采集系统200可以为立体相机,例如深度相机、动捕相机等,在图1中,相机为1个,在其它实施例中,为了提高位姿信息的精度,位姿采集系统200还可以包括两个或两个以上的立体相机。In the embodiment of the present application, the posture acquisition system 200 can identify the posture information of the positioning device 101 on the teaching tool 100. In conjunction with the positioning device 101 using the positioning light ball shown in FIG1 , the posture acquisition system 200 can be a stereo camera, such as a depth camera, a motion capture camera, etc. In FIG1 , there is one camera. In other embodiments, in order to improve the accuracy of the posture information, the posture acquisition system 200 can also include two or more stereo cameras.
在图1所示实施例的基础上,本申请实施例提供了一种示教轨迹处理方法,该方法用于在示教工具进行示教时获取示教工具的示教轨迹,该方法可以应用于图1所示的示教控制器300中,如图2所示,该方法可以包括以下步骤S101-S103。Based on the embodiment shown in Figure 1, an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching. The method can be applied to the teaching controller 300 shown in Figure 1. As shown in Figure 2, the method may include the following steps S101-S103.
S101,在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息。S101, during the teaching process of the teaching tool, determining the position and posture information of the teaching tool at a plurality of teaching positions.
在示教工具进行使用过程中,如图1所示,操作人员可以手持示教工具,在操作平台上进行移动,移动过程就可以完成示教。示教位置点为移动过程中示教工具示教尖端所指示的点,在具体应用中,一次示教过程包括至少两个示教位置点。During the use of the teaching tool, as shown in FIG1 , the operator can hold the teaching tool and move it on the operating platform, and the moving process can complete the teaching. The teaching position point is the point indicated by the teaching tip of the teaching tool during the moving process. In a specific application, one teaching process includes at least two teaching position points.
在本申请一个实施例中,示教位置点,可以是示教过程中,按照预设的示教点选择方式,自动生成的示教点,例如:示教工具移动时,按照固定频率或固定距离来选择示教位置点,在具体应用中,可以为示教工具移动时每5秒记录一个示教位置点(前述每5秒记录一次的频率,仅仅是举例,在实际应用时,频率可以为每秒120次,或者,60HZ/S),或者,示教工具移动时每移动1厘米的距离记录一个示教位置点。本领域技术人员在实际应用中,可以根据需要设置不同的示教点选择方式,例如:在拐角或转弯时,按照每个转弯采集5个示教位置点,或者,在同一次示教过程中,不同条件下设置不同的示教位置点选择方式,例如:直线示教过程中,每2厘米选择一个示教位置点,在拐角或转弯时,按照每1秒选择一个示教位置点。In one embodiment of the present application, the teaching position point can be a teaching point automatically generated during the teaching process according to a preset teaching point selection method, for example: when the teaching tool moves, the teaching position point is selected according to a fixed frequency or a fixed distance. In a specific application, a teaching position point can be recorded every 5 seconds when the teaching tool moves (the aforementioned frequency of recording once every 5 seconds is just an example. In actual application, the frequency can be 120 times per second, or 60HZ/S), or, a teaching position point is recorded for every 1 cm distance moved by the teaching tool. In actual applications, those skilled in the art can set different teaching point selection methods as needed, for example: at a corner or turn, 5 teaching position points are collected at each turn, or, in the same teaching process, different teaching position point selection methods are set under different conditions, for example: in a straight line teaching process, a teaching position point is selected every 2 cm, and at a corner or turn, a teaching position point is selected every 1 second.
在本申请另一个实施例中,示教位置点,还可以是操作人员指定的具体位置点,参见图1所示,图中示教工具100上包括操控按钮104,操控按钮104可以是虚拟按钮,例如:触摸屏上的触摸按钮,也可以是实体物理按钮,例如:按压开关或其它开关。当操作人员操作示教工具移动到位后,按压一下操控按钮104,就将按压时刻示教工具上示教尖端所指定的点为示教位置点。In another embodiment of the present application, the teaching position point can also be a specific position point specified by the operator, as shown in FIG1 , in which the teaching tool 100 includes a control button 104, which can be a virtual button, such as a touch button on a touch screen, or a physical button, such as a press switch or other switches. When the operator operates the teaching tool to move to the position, presses the control button 104, and the point specified by the teaching tip on the teaching tool at the time of pressing is set as the teaching position point.
参见图1所示,位姿采集系统200利用相机采集示教工具100上定位装置101的图像,可以在位姿采集系统的坐标系中,确定出定位装置101的位置和姿态。另外,根据定位装置101上定位光球组合1011的空间关系,可以确定出定位装置101的位置和姿态,参见前述,定位装置101与示教工具主体102之间的相对位置是预先获得的,并且,在示教工具100的空间坐标系中,定位装置101与示教工具主体102的位置预先了解的,并且是固定不变。所以当采集到定位装置101的位置和姿态后,就可以计算得到示教工具100的位置和姿态。As shown in FIG1 , the posture acquisition system 200 uses a camera to acquire an image of the positioning device 101 on the teaching tool 100, and can determine the position and posture of the positioning device 101 in the coordinate system of the posture acquisition system. In addition, according to the spatial relationship of the positioning light ball combination 1011 on the positioning device 101, the position and posture of the positioning device 101 can be determined. As mentioned above, the relative position between the positioning device 101 and the teaching tool body 102 is obtained in advance, and in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known in advance and are fixed. Therefore, after the position and posture of the positioning device 101 are acquired, the position and posture of the teaching tool 100 can be calculated.
在本申请实施例中,位姿信息是指:示教工具在相机坐标系中的空间信息,包括:位置信息以及姿态信息等。当然根据坐标系的转换关系,位姿信息还可以指:示教工具在台面坐标系中的空间信息,包括:位置信息以及姿态信息等。In the embodiment of the present application, the posture information refers to the spatial information of the teaching tool in the camera coordinate system, including position information and posture information, etc. Of course, according to the conversion relationship of the coordinate system, the posture information can also refer to the spatial information of the teaching tool in the table coordinate system, including position information and posture information, etc.
在本申请实施例中,以定位装置为定位光球组合为例,步骤S101具体可以包括:In the embodiment of the present application, taking the positioning device as a positioning light ball combination as an example, step S101 may specifically include:
利用位姿采集系统采集所述示教工具在示教过程中的所述光球组合的多个光球的定位信息;根据采集到光球组合的定位信息确定光球组合所在位置时所述示教工具的位姿信息。The position and posture acquisition system is used to acquire the positioning information of the multiple light balls of the light ball combination of the teaching tool during the teaching process; and the position and posture information of the teaching tool when the light ball combination is located is determined according to the acquired positioning information of the light ball combination.
S102,利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息。S102, using the multiple posture information of the teaching tool, determine the posture information of the multiple teaching position points.
在使用示教工具进行示教时,为了方便对示教位置点进行准确指示,通常情况下,一般用示教工具100底端的示教尖端103在操作台面400上移动,那么此时,示教尖端103在移动时与操作台面400相接触的点,或者,示教尖端103在操作台面上所指示的点(与操作台面之间有较小的间隔),就是示教位置点。When using the teaching tool for teaching, in order to facilitate accurate indication of the teaching position point, usually, the teaching tip 103 at the bottom end of the teaching tool 100 is moved on the operating table 400. At this time, the point where the teaching tip 103 contacts the operating table 400 when moving, or the point indicated by the teaching tip 103 on the operating table (with a small gap between the teaching tip 103 and the operating table), is the teaching position point.
在本申请实施例中,位姿信息是指:示教位置点在相机坐标系中的空间信息,包括:位置信息、姿态信息等。当然根据坐标系的转换关系,位姿信息还可以指:示教位置点在台面坐标系中的空间信息,包括:位置信息、姿态信息等。In the embodiment of the present application, the posture information refers to the spatial information of the teaching position point in the camera coordinate system, including position information, posture information, etc. Of course, according to the conversion relationship of the coordinate system, the posture information can also refer to the spatial information of the teaching position point in the table coordinate system, including position information, posture information, etc.
S103,根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹。S103, according to the position information of the plurality of teaching position points, a teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method.
在示教过程中,示教工具在移动时记录的示教位置点,是示教轨迹的形成基础,但如果仅仅是将示教位置点串联起来,那么其还原得到的轨迹会有较大的不确定性,例如:采集的三个示教位置点,在一条直线上,这并不能说明,示教轨迹就是一条直线,也有可能是一条圆弧线,或者,曲线,或者,其它不规则线条。所以,虽然示教位置点是示教轨迹的形成基础,但在拟合时,还是按照预设轨迹拟合方式进行拟合,才可以保证示教轨迹相对唯一性,进而可以起到示教作用。During the teaching process, the teaching position points recorded by the teaching tool when it moves are the basis for the formation of the teaching trajectory. However, if the teaching position points are simply connected in series, the restored trajectory will have greater uncertainty. For example, if the three teaching position points collected are on a straight line, this does not mean that the teaching trajectory is a straight line. It may also be an arc line, or a curve, or other irregular lines. Therefore, although the teaching position points are the basis for the formation of the teaching trajectory, when fitting, it is still necessary to fit according to the preset trajectory fitting method to ensure the relative uniqueness of the teaching trajectory, so that it can play a teaching role.
本申请实施例中,预设轨迹拟合方式包括:In the embodiment of the present application, the preset trajectory fitting method includes:
1)轨迹拟合方式一:两个示教位置点,拟合直线线型示教轨迹,或根据两个所述示教位置点生成关节运动轨迹。1) Trajectory fitting method 1: two teaching position points, fitting a straight line teaching trajectory, or generating a joint motion trajectory based on the two teaching position points.
具体为:如果采用图1所示系统,在某一次进行示教时,如果,示教位置点为两个时,步骤S103可以包括:Specifically, if the system shown in FIG. 1 is used, during a teaching operation, if there are two teaching positions, step S103 may include:
根据两个示教位置点的位姿信息,确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹。According to the position information of the two teaching position points, it is determined that the line type of the teaching trajectory is a straight line type, and the straight line teaching trajectory where the two teaching position points are located is obtained by fitting according to the straight line type.
本申请实施例中,直线示教轨迹是指两个示教位置点所在的直线。参见图10所示,图中,示教工具第一个示教位置上时,时刻为T1时刻,示教位置点为A;然后进行移动,当移动到某一个位置时,时刻为T2,示教位置点为B,那么相应地,示教轨迹线为502所指的直线线段。In the embodiment of the present application, the straight line teaching trajectory refers to the straight line where the two teaching position points are located. Referring to FIG. 10 , when the teaching tool is at the first teaching position, the time is T1 and the teaching position point is A; then it moves, and when it moves to a certain position, the time is T2 and the teaching position point is B. Then, correspondingly, the teaching trajectory line is the straight line segment indicated by 502.
关节运动轨迹主要是指定机械臂在指定的两个点之间进行任意的运动的轨迹;驱动机械臂的各个关节转动,以使机械臂的末端能够以最快或最方便的路径从第一个示教位置点移动到另一个示教位置点。在该实施例中,也可以是结合机械臂的各关节的实时状态,根据两个示教点生成该机械臂的关节运动轨迹。The joint motion trajectory is mainly to specify the trajectory of the robot arm to perform any movement between two specified points; the joints of the robot arm are driven to rotate so that the end of the robot arm can move from the first teaching position point to another teaching position point in the fastest or most convenient path. In this embodiment, the joint motion trajectory of the robot arm can also be generated according to the two teaching points in combination with the real-time status of each joint of the robot arm.
2)轨迹拟合方式二:三个示教位置点,拟合圆弧线型示教轨迹。2) Trajectory fitting method 2: Three teaching position points, fitting the arc-shaped teaching trajectory.
具体为,在某一次示教过程中,如果,示教位置点为三个时,步骤S103可以包括:Specifically, in a certain teaching process, if there are three teaching positions, step S103 may include:
根据三个所述示教位置点的位姿信息,确定所述示教轨迹的线型为圆弧形线型,根据所述圆弧形线型拟合得到三个所述示教位置点所在的圆弧形示教轨迹。According to the position and posture information of the three teaching position points, it is determined that the line type of the teaching trajectory is an arc line type, and the arc teaching trajectory where the three teaching position points are located is obtained by fitting the arc line type.
本申请实施例中,圆弧形示教轨迹是指,三个示教点都在的圆弧,参见图13所示,图中,示教工具第一个示教位置上时,时刻为T1时刻,示教位置点为A;然后进行移动,当移动到某一个位置时,时刻为T2,示教位置点为B;然后进行移动,当移动到下一个位置时,时刻为T3,示教位置点为C,那么相应地,示教轨迹线为502所指的弧形线段为示教位置点A、B和C所在的圆弧形上的一段曲线段。In the embodiment of the present application, the arc-shaped teaching trajectory refers to an arc in which the three teaching points are located, as shown in Figure 13. In the figure, when the teaching tool is at the first teaching position, the moment is T1 and the teaching position point is A; then it moves, and when it moves to a certain position, the moment is T2 and the teaching position point is B; then it moves, and when it moves to the next position, the moment is T3 and the teaching position point is C. Accordingly, the arc segment indicated by the teaching trajectory line 502 is a curve segment on the arc where the teaching position points A, B and C are located.
3)轨迹拟合方式三:四个示教位置点,拟合曲线示教轨迹。3) Trajectory fitting method three: four teaching position points, fitting curve teaching trajectory.
具体为:在某一次示教过程中,如果示教位置点为至少四个时,步骤S103可以包括:Specifically, in a certain teaching process, if there are at least four teaching positions, step S103 may include:
根据四个所述示教位置点的位姿信息,确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。According to the position and posture information of the four teaching position points, it is determined that the line type of the teaching trajectory is a curve line type, and the curve teaching trajectory where at least four teaching position points are located is obtained by fitting according to the curve line type.
本申请实施例中,曲线示教轨迹是指样条曲线形状的轨迹,参见图19所示,图中,示教工具位于第一个姿态时,时刻为T1时刻,示教位置点为A;然后进行移动,当移动到某一个位置时,时刻为T2,示教位置点为B;然后再移动,当移动到下一姿态时,时刻为T3,示教位置点为C,然后再移动,当移动到下一个姿态时,时刻为T4,示教位置点为D那么相应地,示教轨迹线为502所指的曲线线段为示教位置点A、B、C和D所在的样条曲线段。In the embodiment of the present application, the curve teaching trajectory refers to a trajectory of a spline curve shape, as shown in Figure 19. In the figure, when the teaching tool is in the first posture, the moment is T1 and the teaching position point is A; then it moves, when it moves to a certain position, the moment is T2, and the teaching position point is B; then it moves again, when it moves to the next posture, the moment is T3, and the teaching position point is C; then it moves again, when it moves to the next posture, the moment is T4, and the teaching position point is D. Accordingly, the curve segment indicated by the teaching trajectory line 502 is the spline curve segment where the teaching position points A, B, C and D are located.
本申请实施例提供的该轨迹处理方法,在进行轨迹示教时,操作人员可以直接操作示教工具进行移动示教,在示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹;其中,所述示教位置点为两个时,确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹;所述示教位置点为三个时,确定所述示教轨迹的线型为圆弧形线型,根据所述圆弧形线型拟合得到三个所述示教位置点所在的圆弧形示教轨迹;所述示教位置点为至少四个时,确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。The trajectory processing method provided by the embodiment of the present application is that when performing trajectory teaching, the operator can directly operate the teaching tool to perform mobile teaching. During the teaching process of the teaching tool, the posture information of the teaching tool at multiple teaching positions is determined; the posture information of multiple teaching positions is determined using the multiple posture information of the teaching tool; according to the posture information of the multiple teaching positions, the teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method; wherein, when there are two teaching positions, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory at the two teaching positions is obtained by fitting according to the straight line type; when there are three teaching positions, the line type of the teaching trajectory is determined to be an arc line type, and a circular arc teaching trajectory at the three teaching positions is obtained by fitting according to the arc line type; when there are at least four teaching positions, the line type of the teaching trajectory is determined to be a curve line type, and a curve teaching trajectory at at least four teaching positions is obtained by fitting according to the curve line type.
应用本申请实施例提供的该轨迹处理方法,操作人员只需移动示教工具,即可获取到对应的示教轨迹,操作简单、方便,通过该轨迹处理方法,可以无需进行复杂的编程工作,进而扩大了机器人的应用场景,提高了机器人的使用便捷性以及效率。By applying the trajectory processing method provided in the embodiment of the present application, the operator only needs to move the teaching tool to obtain the corresponding teaching trajectory, which is simple and convenient to operate. Through this trajectory processing method, there is no need to perform complicated programming work, thereby expanding the application scenarios of the robot and improving the convenience and efficiency of the robot.
一个实施例:An embodiment:
在图1所示实施例的基础上,本申请实施例提供了一种示教轨迹处理方法,该方法用于对在示教工具进行示教时获取示教工具的示教轨迹,该方法可以应用于图1所示的示教控制器300中,如图3所示,该方法可以包括以下步骤S201-S206。Based on the embodiment shown in Figure 1, an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching. The method can be applied to the teaching controller 300 shown in Figure 1. As shown in Figure 3, the method may include the following steps S201-S206.
S201,在接收到示教启动信号时,控制所述位姿采集系统按照预设采集频率在示教过程中采集所述示教工具上所述定位装置的采集信息。S201, when receiving a teaching start signal, controlling the posture acquisition system to acquire acquisition information of the positioning device on the teaching tool during the teaching process according to a preset acquisition frequency.
在本申请实施例中,示教启动信号是指表示开始本次示教过程的触发信号,一种情况下,示教启动信号可以由操控按钮104来进行触发,具体为:操作人员在开始示教时,按压示教工具100上的操控按钮104,然后示教工具将操控按钮104的按压信号发送给位姿采集系统200或处理器300,作为示教启动信号。In an embodiment of the present application, the teaching start signal refers to a trigger signal indicating the start of the teaching process. In one case, the teaching start signal can be triggered by the control button 104. Specifically, when the operator starts teaching, he presses the control button 104 on the teaching tool 100, and then the teaching tool sends the pressing signal of the control button 104 to the posture acquisition system 200 or the processor 300 as a teaching start signal.
在另一种情况下,示教启动信号还可以为示教工具的移动检测信号,具体为:示教工具上安装有位移传感器,通过位移传感器感应到的移动信号作为示教启动信号,或者,通过位姿采集系统来检测示教工具的位姿是否发生变化,将位姿变化的信号作为示教启动信号。In another case, the teaching start signal can also be a movement detection signal of the teaching tool. Specifically, a displacement sensor is installed on the teaching tool, and the movement signal sensed by the displacement sensor is used as the teaching start signal. Alternatively, a posture acquisition system is used to detect whether the posture of the teaching tool has changed, and the signal of the posture change is used as the teaching start signal.
在另一种情况下,示教启动信号还可以为示教控制器上的操作信号,具体为操作人员用鼠标/键盘/按键等在示教控制器上点击“启动”按钮,示教控制器接收到点击操作后,将点击操作作为示教启动信号。或者,操作人员通过按钮或图形用户界面或语音指令在示教控制器中输入开始指令作为示教启动信号。In another case, the teaching start signal can also be an operation signal on the teaching controller, specifically, the operator clicks the "start" button on the teaching controller with a mouse/keyboard/button, and after receiving the click operation, the teaching controller uses the click operation as the teaching start signal. Alternatively, the operator inputs a start command in the teaching controller through a button or a graphical user interface or a voice command as the teaching start signal.
当接收到示教启动信号时,在本申请实施例中,可以按照固定的采集频率进行采集,这里预设的采集频率,可以根据不同的示教工序来自由设定,但采集频率一般是与示教的工序的移动速度相关联,例如:针对移动速度较快的工序进行示教时,采集频率可以设置的高一些,例如:喷涂时喷枪的移动速度较快,那么采集频率可以1秒间隔,也即在喷涂示教时,可以按照每1秒采集一次信号。针对移动速度较慢的工序,进行示教时,采集频率可以设置的低一些,例如:涂胶时胶枪的移动速度较慢,那么采集频率可以为3秒间隔,也即在涂胶示教时,可以按照每3秒采集一次信号。When the teaching start signal is received, in the embodiment of the present application, the collection can be performed at a fixed collection frequency. The preset collection frequency here can be freely set according to different teaching processes, but the collection frequency is generally related to the moving speed of the teaching process. For example, when teaching a process with a faster moving speed, the collection frequency can be set higher. For example, when the movement speed of the spray gun is faster during spraying, the collection frequency can be 1 second interval, that is, when teaching spraying, the signal can be collected once every 1 second. When teaching a process with a slower moving speed, the collection frequency can be set lower. For example, when the movement speed of the glue gun is slower during glue coating, the collection frequency can be 3 seconds interval, that is, when teaching glue coating, the signal can be collected once every 3 seconds.
在本申请实施例中,所述定位装置的采集信息可以是相机拍摄到的定位装置上定位光球的图像信息,以及拍摄的时刻等。In an embodiment of the present application, the collected information of the positioning device may be image information of the positioning light ball on the positioning device captured by a camera, as well as the time of shooting, etc.
S202,在接收到示教结束信号时,控制所述位姿采集系统停止采集所述定位装置的采集信息。S202, when receiving the teaching end signal, controlling the posture acquisition system to stop acquiring the acquisition information of the positioning device.
参见前述有关示教启动信号的描述,相应地,示教结束信号可以是与示教启动信号一一对应的另一种信号,例如:如果示教启动信号是长按操控按钮104来进行触发的,那么示教结束信号就可以是松开操控按钮104来触发。Refer to the above description of the teaching start signal. Accordingly, the teaching end signal can be another signal that corresponds one-to-one to the teaching start signal. For example, if the teaching start signal is triggered by long pressing the control button 104, then the teaching end signal can be triggered by releasing the control button 104.
如果示教启动信号是点击操控按钮104来进行触发的,那么示教结束信号就可以是再次点击操控按钮104来触发。If the teaching start signal is triggered by clicking the operating button 104 , then the teaching end signal can be triggered by clicking the operating button 104 again.
如果是将位移传感器(图中未示出)感应到的移动信号作为示教启动信号,那么位移传感器感应到的停止运动或者停止运动超过预设时间阈值(如5秒),作为示教停止信号。If the movement signal sensed by the displacement sensor (not shown in the figure) is used as the teaching start signal, then the stop movement sensed by the displacement sensor or the stop movement exceeding a preset time threshold (such as 5 seconds) is used as the teaching stop signal.
如果将位姿采集系统来检测示教工具的位姿变化的信号作为示教启动信号,那么位姿采集信号检测到的示教工具的位姿停止变化或者位姿停止变化超过预设时间阈值(如6秒),作为示教停止信号。If the posture acquisition system is used to detect the posture change of the teaching tool as a teaching start signal, then the posture acquisition signal detects that the posture of the teaching tool stops changing or the posture stops changing for more than a preset time threshold (such as 6 seconds) as a teaching stop signal.
如果示教启动信号为在示教控制器上点击“启动”按钮的点击操作信号,那么示教停止信号就可以为将点击“停止”按钮的点击操作信号。If the teaching start signal is a click operation signal of clicking a "start" button on the teaching controller, then the teaching stop signal may be a click operation signal of clicking a "stop" button.
如果将操作人员通过按钮或图形用户界面或语音指令在示教控制器中输入开始指令作为示教启动信号,那么示教停止信号也可以为操作人员通过按钮或图形用户界面或语音指令在示教控制器输入结束指令作为示教结束信号。If the operator inputs a start command in the teaching controller through a button, a graphical user interface, or a voice command as a teaching start signal, then the teaching stop signal can also be the operator inputting an end command in the teaching controller through a button, a graphical user interface, or a voice command as a teaching end signal.
在本申请其它实施例中,示教启动信号和示教结束信号,还可以不是以一一对应,例如:示教启动信号为点击操控按钮104来进行触发的,示教结束信号可以为在示教控制器上点击“停止”按钮的点击操作信号,或者,位移传感器感应到的停止运动或者停止运动超过预设时间阈值(如5秒)等,对此,本申请不做限定,本领域技术人员在此基础上进行的其它示教开始信号和示教结束信号的设置方式,都属于本申请的保护范围。In other embodiments of the present application, the teaching start signal and the teaching end signal may not correspond one to one. For example, the teaching start signal is triggered by clicking the control button 104, and the teaching end signal may be a click operation signal of clicking the "Stop" button on the teaching controller, or the stop movement sensed by the displacement sensor or the stop movement exceeds a preset time threshold (such as 5 seconds), etc. The present application does not limit this. Other settings of the teaching start signal and the teaching end signal performed by technical personnel in this field on this basis all fall within the protection scope of the present application.
S203,将每个采集信息所对应的所述示教工具上所述示教尖端的位置确定为示教位置点。S203, determining the position of the teaching tip on the teaching tool corresponding to each piece of collected information as a teaching position point.
S204,根据所述安装结构信息,将所述位姿采集系统采集到的所有采集信息转换为所述示教尖端所对应示教位置点的位姿信息。S204, converting all collected information collected by the posture collection system into posture information of the teaching position point corresponding to the teaching tip according to the installation structure information.
安装结构信息是指在示教工具的工具坐标系中的空间信息,在工具坐标系中,定位装置、示教工具主体以及示教尖端的位置都是预先知道的以及固定不变的,也即在工具坐标系中,示教工具上各个部分的相对位置关系是预先知道的。当确定了定位装置的采集信息,就可以利用工具坐标系中各部分的相对位置关系,就可以转换得到示教尖端对应的示教位置点的位姿信息。The installation structure information refers to the spatial information in the tool coordinate system of the teaching tool. In the tool coordinate system, the positions of the positioning device, the teaching tool body and the teaching tip are all known in advance and fixed, that is, in the tool coordinate system, the relative position relationship of each part of the teaching tool is known in advance. When the acquisition information of the positioning device is determined, the relative position relationship of each part in the tool coordinate system can be used to convert the posture information of the teaching position point corresponding to the teaching tip.
S205,利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息。S205, using the multiple posture information of the teaching tool, determining the posture information of the multiple teaching position points.
示教工具的每个位姿信息,都可以表示示教工具经过一个示教位置点,相应地,根据示教工作每个位姿信息就可以计算出一个示教位置点的位姿信息。Each posture information of the teaching tool can represent that the teaching tool passes through a teaching position point. Accordingly, the posture information of a teaching position point can be calculated based on each posture information of the teaching work.
S206,根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹。S206, fitting a teaching trajectory corresponding to the teaching process according to a preset trajectory fitting method based on the position and posture information of the plurality of teaching position points.
有关步骤S205和S206具体描述,详细可参见前述图2所示实施例中,关于步骤S102和S103的详细描述,在此不再赘述。For detailed descriptions of steps S205 and S206, please refer to the embodiment shown in FIG. 2 above, and the detailed descriptions of steps S102 and S103 are omitted here.
本申请实施例提供的该方法,示教过程只在示教的开始阶段和结束阶段进行触发操在示教中间过程中,按照设定的频率或方式来进行采集信号。这种方式适合一个完整工序的示教过程,或者,较长时间的示教过程,操作人员在示教过程中,无需进行操作,只需要在开始阶段和结束阶段进行控制即可。The method provided by the embodiment of the present application is that the teaching process is triggered only at the beginning and end of the teaching process. During the teaching process, the signal is collected according to the set frequency or method. This method is suitable for the teaching process of a complete process, or a teaching process of a longer time. The operator does not need to operate during the teaching process, but only needs to control at the beginning and end stages.
一个实施例:An embodiment:
在图1所示实施例的基础上,本申请实施例提供了一种示教轨迹处理方法,该方法用于对在示教工具进行示教时获取示教工具的示教轨迹,该方法可以应用于图1所示的示教控制器300中,如图4所示,该方法可以包括以下步骤S301-S306。Based on the embodiment shown in Figure 1, an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching. The method can be applied to the teaching controller 300 shown in Figure 1. As shown in Figure 4, the method may include the following steps S301-S306.
S301,在所述示教工具进行示教过程中,检测是否接收到采集触发信号。S301, during the teaching process of the teaching tool, detecting whether a collection trigger signal is received.
在前述图14所示的实施例中, 示教过程只在示教的开始阶段和结束阶段进行检测,在示教中间过程中,按照设定的频率或方式来进行采集信号。这种方式适合一个完整工序的示教过程,或者,较长时间的示教过程,操作人员在示教过程中,无需进行操作,只需要在开始阶段和结束阶段进行控制即可。In the embodiment shown in FIG. 14 , the teaching process is detected only at the beginning and end of the teaching process, and the signal is collected according to the set frequency or method during the teaching process. This method is suitable for a teaching process of a complete process, or a teaching process of a longer time. The operator does not need to operate during the teaching process, but only needs to control at the beginning and end stages.
但针对一些需要微操作或者不是连续的长时间的示教过程,如果采用图3所示的方法,那么就会需要频繁的启动、停止,操作非常不连贯,也不方便。为此,在本申请实施例中,在示教开始阶段不再进行触发,而是在示教过程中,按需采集。进而,在该步骤中,首先要检测是否采集到触发信号。However, for some teaching processes that require micro-operation or are not continuous and long, if the method shown in Figure 3 is adopted, it will require frequent starting and stopping, and the operation is very discontinuous and inconvenient. For this reason, in the embodiment of the present application, no triggering is performed at the beginning of the teaching, but the data is collected on demand during the teaching process. Furthermore, in this step, it is first necessary to detect whether the trigger signal is collected.
这里的触发信号可以有多种多样,例如:可以是示教工具上操控按钮104的按压操作,也可以是示教控制器上的“采集”按钮的按压操作,还可以是示教工具的一种固定的姿态,例如:当将示教工具竖直放置,则将竖直放置时的信号作为触发信号。The trigger signal here can be of various kinds, for example: it can be the pressing operation of the control button 104 on the teaching tool, it can also be the pressing operation of the "collection" button on the teaching controller, or it can be a fixed posture of the teaching tool, for example: when the teaching tool is placed vertically, the signal when placed vertically is used as the trigger signal.
S302,若接收到采集触发信号,控制所述位姿识别系统在示教过程中采集所述示教工具上所述定位装置的采集信息;所述采集信息与所述采集触发信号一一对应。S302, if a collection trigger signal is received, control the posture recognition system to collect collection information of the positioning device on the teaching tool during the teaching process; the collection information corresponds to the collection trigger signal one by one.
当接收到采集触发信号,表示在该时刻示教工具上示教尖端的位置为一个需要记录的示教位置点,所以,此时利用位姿识别系统采集示教工具上定位装置的采集信息。When the acquisition trigger signal is received, it means that the position of the teaching tip on the teaching tool at that moment is a teaching position point that needs to be recorded. Therefore, the posture recognition system is used to acquire the acquisition information of the positioning device on the teaching tool.
S303,将每个采集信息所对应的所述示教工具上所述示教尖端的位置确定为示教位置点。S303: Determine the position of the teaching tip on the teaching tool corresponding to each piece of collected information as a teaching position point.
S304,根据所述安装结构信息,将所述位姿采集系统采集到的所有采集信息转换为所述示教尖端所对应示教位置点的位姿信息。S304: Convert all collected information collected by the posture collection system into posture information of the teaching position point corresponding to the teaching tip according to the installation structure information.
安装结构信息是指在示教工具的工具坐标系中的空间信息,在工具坐标系中,定位装置、示教工具主体以及示教尖端的位置都是预先知道的以及固定不变的,也即在工具坐标系中,示教工具上各个部分的相对位置关系是预先知道的。当确定了定位装置的采集信息,就可以利用工具坐标系中各部分的相对位置关系,就可以转换得到示教尖端对应的示教位置点的位姿信息。The installation structure information refers to the spatial information in the tool coordinate system of the teaching tool. In the tool coordinate system, the positions of the positioning device, the teaching tool body and the teaching tip are all known in advance and fixed, that is, in the tool coordinate system, the relative position relationship of each part of the teaching tool is known in advance. When the acquisition information of the positioning device is determined, the relative position relationship of each part in the tool coordinate system can be used to convert the posture information of the teaching position point corresponding to the teaching tip.
S305,利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息。S305, using the multiple posture information of the teaching tool, determining the posture information of the multiple teaching position points.
示教工具的每个位姿信息,都可以表示示教工具经过一个示教位置点,相应地,根据示教工作每个位姿信息就可以计算出一个示教位置点的位姿信息。Each posture information of the teaching tool can represent that the teaching tool passes through a teaching position point. Accordingly, the posture information of a teaching position point can be calculated based on each posture information of the teaching work.
S306,根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹。S306, fitting a teaching trajectory corresponding to the teaching process according to a preset trajectory fitting method based on the position and posture information of the plurality of teaching position points.
有关步骤S305和S306具体描述,详细可参见前述图2所示实施例中,关于步骤S102和S103的详细描述,在此不再赘述。For detailed descriptions of steps S305 and S306, please refer to the embodiment shown in FIG. 2 above, and the detailed descriptions of steps S102 and S103 are omitted here.
本申请实施例提供的该方法,在进行示教时,可以做到精细化管理,当操作人员操作示教工具进行示教时,当需要记录下当前的时刻的姿态对应的点作为示教位置点时,操作人员就可以直接操作触发信号,进行位姿采集以及记录,可以使得示教过程更加灵活、方便。The method provided in the embodiment of the present application can achieve refined management during teaching. When the operator operates the teaching tool for teaching, when it is necessary to record the point corresponding to the posture at the current moment as the teaching position point, the operator can directly operate the trigger signal to collect and record the posture, which can make the teaching process more flexible and convenient.
一个实施例:An embodiment:
图5为本申请实施例提供的一种机械臂示教系统的场景示意图。FIG5 is a schematic diagram of a scenario of a robotic arm teaching system provided in an embodiment of the present application.
在图5中,400为操作台面,100为示教工具,200为位姿采集系统,300为示教控制器,其中:操作台面400可以为一平台,上面用于放置有待加工的零部件或设备。示教工具100可以在操作人员的操控下操作台面400的表面上移动或运动。位姿采集系统200位于操作台面400的上方,用于对示教工具100的位姿信息进行识别,示教控制器300中具有处理器,示教控制器300可以与位姿采集系统200通信连接,用于接收位姿采集系统200发送的位姿信息。在一些实施例中,示教工具100上还有一些操控按钮(如图5中的104),为了获取这些操控按钮的操控信息,可选地,示教控制器300还可以与示教工具100通信连接,用于接收示教工具100发送的操控信息。In FIG5 , 400 is an operation table, 100 is a teaching tool, 200 is a posture acquisition system, and 300 is a teaching controller, wherein: the operation table 400 can be a platform on which parts or equipment to be processed are placed. The teaching tool 100 can move or exercise on the surface of the operation table 400 under the control of the operator. The posture acquisition system 200 is located above the operation table 400 and is used to identify the posture information of the teaching tool 100. The teaching controller 300 has a processor, and the teaching controller 300 can be connected to the posture acquisition system 200 for communication and receiving the posture information sent by the posture acquisition system 200. In some embodiments, there are some control buttons (such as 104 in FIG5 ) on the teaching tool 100. In order to obtain the control information of these control buttons, the teaching controller 300 can also be connected to the teaching tool 100 for communication and receiving the control information sent by the teaching tool 100.
参见图5所示,在图5中,示教工具100包括:定位装置101、示教工具主体102和示教尖端103,其中,定位装置101固定在示教工具主体102上,示教尖端103位于示教工具主体102的底端。在其它实施例中,示教工具100上还设置有操控按钮104,操作人员可以按压操控按钮104,表示选定示教位置点。As shown in FIG5 , in FIG5 , the teaching tool 100 includes: a positioning device 101, a teaching tool body 102 and a teaching tip 103, wherein the positioning device 101 is fixed on the teaching tool body 102, and the teaching tip 103 is located at the bottom end of the teaching tool body 102. In other embodiments, the teaching tool 100 is further provided with a control button 104, and the operator can press the control button 104 to indicate that the teaching position point is selected.
在本申请实施例中,定位装置101可以采用固定连接的方式固定在示教工具主体102上,也可以采用可拆卸连接的方式固定在示教工具主体102上,方便拆卸以及组装,但无论采用哪种连接方式,在一次完整的示教过程中,定位装置101与示教工具主体102之间的相对位置固定,不能出现滑动或松动,并且定位装置101与示教工具主体102之间的相对位置关系需要预先了解的,例如:在示教工具100的空间坐标系中,定位装置101与示教工具主体102的位置预先了解的,并且是固定不变。In an embodiment of the present application, the positioning device 101 can be fixed to the teaching tool body 102 by a fixed connection, or can be fixed to the teaching tool body 102 by a detachable connection, which is convenient for disassembly and assembly. However, no matter which connection method is adopted, during a complete teaching process, the relative position between the positioning device 101 and the teaching tool body 102 is fixed, and no sliding or loosening can occur. Moreover, the relative position relationship between the positioning device 101 and the teaching tool body 102 needs to be known in advance, for example: in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known in advance and are fixed.
在本申请一个实施例中,示教工具100可以为单独的模拟示教器具,即通过示教工具100的移动,来实现对轨迹点的采集;当示教工具100为模拟示教器具时,定位装置101可以采用固定连接的方式固定在示教工具主体102上。在本申请另一实施例中,示教工具100可以为现有的机器臂上的操作工具,例如:喷枪、焊枪、涂胶枪等,这种情况下,定位装置101可以采用可拆卸的方式固定在示教主体102上。In one embodiment of the present application, the teaching tool 100 may be a separate simulation teaching device, that is, the trajectory points are collected by moving the teaching tool 100; when the teaching tool 100 is a simulation teaching device, the positioning device 101 may be fixed to the teaching tool body 102 in a fixed connection manner. In another embodiment of the present application, the teaching tool 100 may be an operating tool on an existing robot arm, such as a spray gun, a welding gun, a glue gun, etc. In this case, the positioning device 101 may be fixed to the teaching body 102 in a detachable manner.
如图5以及图6所示,在本申请实施例中,定位装置101为标定板,如图7和图8所示,在标定板上可以设置标定图形,标定图形可以为规则的方块图或点阵图,标定图形中的方块或点阵中的点为定位点。As shown in Figures 5 and 6, in an embodiment of the present application, the positioning device 101 is a calibration board. As shown in Figures 7 and 8, a calibration graphic can be set on the calibration board. The calibration graphic can be a regular block diagram or a dot matrix diagram. The blocks in the calibration graphic or the points in the dot matrix are positioning points.
在本申请实施例中,位姿采集系统200可以识别示教工具100上的定位装置101的位姿信息。配合图5所示采用标定板的定位装置101,位姿采集系统200可以为平面相机,在图5中,深度相机为1个,在其它实施例中,为了提高位姿信息的精度,位姿采集系统200还可以包括两个或两个以上的平面相机。如图6所示,示教工具主体101与定位装置101的标定板相垂直。另外,在本发明实施例中,对于标定板的面积大小,示教工具主体101的长度,以及标定板的边长与示教工具主体101长度之间的比例关系,都没有限定,本领域技术人员可以根据需要自由设定。In an embodiment of the present application, the posture acquisition system 200 can identify the posture information of the positioning device 101 on the teaching tool 100. In conjunction with the positioning device 101 using the calibration plate as shown in FIG5, the posture acquisition system 200 can be a planar camera. In FIG5, there is one depth camera. In other embodiments, in order to improve the accuracy of the posture information, the posture acquisition system 200 can also include two or more planar cameras. As shown in FIG6, the teaching tool body 101 is perpendicular to the calibration plate of the positioning device 101. In addition, in an embodiment of the present invention, there is no limitation on the area of the calibration plate, the length of the teaching tool body 101, and the proportional relationship between the side length of the calibration plate and the length of the teaching tool body 101, and those skilled in the art can freely set them as needed.
在本申请实施例中,为了提高轨迹采集的范围,位姿采集系统200与所述操作台面400之间设置有拍摄距离,如图5所示,位姿采集系统200与操作台面400之间具有高度差,这样所述操作台面400可以位于所述位姿采集系统200的拍摄范围内。根据位姿采集系统200的焦距的实际情况不同,位姿采集系统200的拍摄范围可以覆盖操作台面400上的部分或全部区域。一种实施例中,位姿采集系统200的拍摄范围覆盖操作台面400的全部区域,另一种实施例中,操作台面400上设置有有效操作区,有效操作区的面积小于操作台面400的全部区域,进而位姿采集系统200的拍摄范围可以仅覆盖该有效操作区即可。In the embodiment of the present application, in order to increase the range of trajectory collection, a shooting distance is set between the posture collection system 200 and the operating table 400. As shown in FIG5 , there is a height difference between the posture collection system 200 and the operating table 400, so that the operating table 400 can be located within the shooting range of the posture collection system 200. According to the actual situation of the focal length of the posture collection system 200, the shooting range of the posture collection system 200 can cover part or all of the area on the operating table 400. In one embodiment, the shooting range of the posture collection system 200 covers the entire area of the operating table 400. In another embodiment, an effective operation area is set on the operating table 400, and the area of the effective operation area is smaller than the entire area of the operating table 400, so that the shooting range of the posture collection system 200 can only cover the effective operation area.
在图6所示实施例的基础上,本申请实施例提供了一种示教轨迹处理方法,该方法用于对在示教工具进行示教时获取示教工具的示教轨迹,该方法可以应用于图6所示的示教控制器300中,如图2所示,该方法可以包括以下步骤S101-S103。Based on the embodiment shown in Figure 6, an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching. The method can be applied to the teaching controller 300 shown in Figure 6. As shown in Figure 2, the method may include the following steps S101-S103.
S101,在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息。S101, during the teaching process of the teaching tool, determining the position and posture information of the teaching tool at a plurality of teaching positions.
在示教工具进行使用过程中,如图1所示,操作人员可以手持示教工具,在操作平台上进行移动,移动过程就可以完成示教。示教位置点为移动过程中示教工具所指示的点,在具体应用中,一次示教过程包括至少两个示教位置点。When the teaching tool is used, as shown in Figure 1, the operator can hold the teaching tool and move it on the operating platform, and the moving process can complete the teaching. The teaching position point is the point indicated by the teaching tool during the moving process. In a specific application, a teaching process includes at least two teaching position points.
参见图1所示,位姿采集系统200利用相机采集示教工具100上定位装置101的平面图像,可以在位姿采集系统的坐标系中,确定出定位装置101在相机坐标系中的位置。具体实施中,位姿采集系统200的相机朝向操作台面,示教工具在操作台面上运动,通过相机采集包含所述标定板的拍摄图像。采集方式有两种,第一种为控制相机直接拍摄,得到拍摄图像。第二种为控制相机实时拍摄视频,并从相机的视频流中截取至少一帧图像,得到拍摄图像。As shown in FIG1 , the posture acquisition system 200 uses a camera to capture a planar image of the positioning device 101 on the teaching tool 100, and can determine the position of the positioning device 101 in the camera coordinate system in the coordinate system of the posture acquisition system. In a specific implementation, the camera of the posture acquisition system 200 faces the operating table, the teaching tool moves on the operating table, and the camera captures the captured image containing the calibration plate. There are two acquisition methods. The first is to control the camera to shoot directly to obtain a captured image. The second is to control the camera to shoot a video in real time, and capture at least one frame of image from the camera's video stream to obtain a captured image.
另外,根据定位装置101上定位板图像中各定位点在平面相机的相机坐标系下坐标,然后根据定位点在示教工具的坐标系中的空间坐标以及在相机坐标系下的坐标,转换得到定位装置101的位姿信息,参见前述,定位装置101与示教工具主体102之间的相对位置是预先获得的,并且,在示教工具100的空间坐标系中,定位装置101与示教工具主体102的位置预先了解的,并且是固定不变。所以当采集到定位装置101的位姿,就可以计算得到示教工具100的位姿信息。In addition, according to the coordinates of each positioning point in the positioning plate image on the positioning device 101 in the camera coordinate system of the plane camera, and then according to the spatial coordinates of the positioning point in the coordinate system of the teaching tool and the coordinates in the camera coordinate system, the position and posture information of the positioning device 101 is converted. As mentioned above, the relative position between the positioning device 101 and the teaching tool body 102 is obtained in advance, and in the spatial coordinate system of the teaching tool 100, the positions of the positioning device 101 and the teaching tool body 102 are known in advance and are fixed. Therefore, when the position and posture of the positioning device 101 is collected, the position and posture information of the teaching tool 100 can be calculated.
在本申请实施例中,位姿信息是指:示教工具在相机坐标系中的空间信息,包括:位置信息、姿态信息等。当然根据坐标系的转换关系,位姿信息还可以指:示教工具在台面坐标系中的空间信息,包括:位置信息、姿态信息等。In the embodiment of the present application, the posture information refers to the spatial information of the teaching tool in the camera coordinate system, including position information, posture information, etc. Of course, according to the conversion relationship of the coordinate system, the posture information can also refer to the spatial information of the teaching tool in the table coordinate system, including position information, posture information, etc.
在本申请实施例中,以定位装置为定位光球组合为例,步骤S101具体可以包括:In the embodiment of the present application, taking the positioning device as a positioning light ball combination as an example, step S101 may specifically include:
利用所述位姿采集系统采集所述示教工具在示教过程中所述二维示教板的多幅示教图像的图像信息;根据所述图像信息计算每幅所述示教图像所对应位置时所述示教工具的位姿信息。The posture acquisition system is used to acquire image information of multiple teaching images of the two-dimensional teaching board during the teaching process of the teaching tool; and the posture information of the teaching tool at the position corresponding to each teaching image is calculated based on the image information.
S102,利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息。S102, using the multiple posture information of the teaching tool, determine the posture information of the multiple teaching position points.
示教工具的每个位姿信息,都可以表示示教工具经过一个示教位置点,相应地,根据示教工作每个位姿信息就可以计算出一个示教位置点的位姿信息。Each posture information of the teaching tool can represent that the teaching tool passes through a teaching position point. Accordingly, the posture information of a teaching position point can be calculated based on each posture information of the teaching work.
S103,根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹。S103, according to the position information of the plurality of teaching position points, a teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method.
本申请实施例提供的该轨迹处理方法,在进行轨迹示教时,操作人员可以直接操作示教工具进行移动示教,在示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹;其中,所述示教位置点为两个时,确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹,或根据两个所述示教位置点生成关节运动轨迹;所述示教位置点为三个时,确定所述示教轨迹的线型为圆弧线型,根据所述圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;所述示教位置点为至少四个时,确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。The trajectory processing method provided by the embodiment of the present application is that when performing trajectory teaching, the operator can directly operate the teaching tool to perform mobile teaching. During the teaching process of the teaching tool, the posture information of the teaching tool at multiple teaching positions is determined; the posture information of multiple teaching positions is determined using the multiple posture information of the teaching tool; according to the posture information of multiple teaching positions, the teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method; wherein, when there are two teaching positions, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory at the two teaching positions is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching positions; when there are three teaching positions, the line type of the teaching trajectory is determined to be an arc line type, and a circular arc teaching trajectory at the three teaching positions is obtained by fitting according to the arc line type; when there are at least four teaching positions, the line type of the teaching trajectory is determined to be a curve line type, and a curve teaching trajectory at at least four teaching positions is obtained by fitting according to the curve line type.
应用本申请实施例提供的该轨迹处理方法,操作人员只需移动示教工具,即可获取到对应的示教轨迹,操作简单、方便,通过该轨迹处理方法,可以无需进行复杂的编程工作,进而扩大了机器人的应用场景,提高了机器人的使用便捷性以及效率。By applying the trajectory processing method provided in the embodiment of the present application, the operator only needs to move the teaching tool to obtain the corresponding teaching trajectory, which is simple and convenient to operate. Through this trajectory processing method, there is no need to perform complicated programming work, thereby expanding the application scenarios of the robot and improving the convenience and efficiency of the robot.
一个实施例:An embodiment:
在图1所示实施例的基础上,本申请实施例提供了一种示教轨迹处理方法,该方法用于对在示教工具进行示教时获取示教工具的示教轨迹,该方法可以应用于图1所示的示教控制器300中,如图21所示,该方法可以包括以下步骤S101-S105。Based on the embodiment shown in Figure 1, an embodiment of the present application provides a teaching trajectory processing method, which is used to obtain the teaching trajectory of the teaching tool when the teaching tool is teaching. The method can be applied to the teaching controller 300 shown in Figure 1. As shown in Figure 21, the method may include the following steps S101-S105.
S101,在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息。S101, during the teaching process of the teaching tool, determining the position and posture information of the teaching tool at a plurality of teaching positions.
S102,利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息。S102, using the multiple posture information of the teaching tool, determine the posture information of the multiple teaching position points.
S103,根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹。S103, according to the position information of the plurality of teaching position points, a teaching trajectory corresponding to the teaching process is fitted according to a preset trajectory fitting method.
有关步骤S101和S103具体描述,详细可参见前述图2所示实施例中,关于步骤S101和S103的详细描述,在此不再赘述。For a detailed description of steps S101 and S103, please refer to the embodiment shown in FIG. 2 above, and the detailed description of steps S101 and S103 will not be repeated here.
S104,采集所述示教工具在至少一个示教位置点进行工序操作对应的工序参数集,所述工序参数集中包括至少一种工序类型的工序参数。S104, collecting a process parameter set corresponding to a process operation performed by the teaching tool at at least one teaching position point, wherein the process parameter set includes process parameters of at least one process type.
在具体应用中,当采用机器臂上的加工工具作为示教工具时,那么在进行示教时,除了记录示教位置点外,在示教位置点上的加工工具进行的一些操作对应的参数进行记录。在进行示教时,每个示教位置点的工序操作可以相同,也可以不同,一般情况下,在不同示教位置点上,工序操作的一些细节参数都是有一些差异的。在本申请实施例中,将工序操作对应的所有参数作为工序参数集,以喷涂工序为例,工序参数集可以包括:喷涂量、喷涂速度、喷涂的材料等等,以点胶为例,工序参数集可以包括:点胶压力、点胶时长、点胶延滞时间等。In a specific application, when a processing tool on a robot arm is used as a teaching tool, then when teaching, in addition to recording the teaching position point, the parameters corresponding to some operations performed by the processing tool at the teaching position point are recorded. When teaching, the process operation of each teaching position point can be the same or different. Generally, at different teaching positions, some detailed parameters of the process operation are somewhat different. In an embodiment of the present application, all parameters corresponding to the process operation are taken as a process parameter set. Taking the spraying process as an example, the process parameter set may include: spraying amount, spraying speed, spraying material, etc. Taking dispensing as an example, the process parameter set may include: dispensing pressure, dispensing duration, dispensing delay time, etc.
通过记录工序参数集,在示教结束后,就可以根据示教的工序参数集,在后续利用示教过程进行真实操作时,可以完全还原本次示教过程,使得示教的过程更加简单、准确。By recording the process parameter set, after the teaching is completed, the teaching process can be completely restored according to the taught process parameter set when performing real operations in the future, making the teaching process simpler and more accurate.
S105,根据每个所述工序参数集与各自对应的所述示教位置点之间的对应关系,将至少一个所述示教位置点的工序参数集拟合到所述示教轨迹中,得到工序示教轨迹。S105, according to the correspondence between each of the process parameter sets and the corresponding teaching position points, fitting the process parameter set of at least one of the teaching position points into the teaching trajectory to obtain a process teaching trajectory.
由于示教工具在移动过程中,不同示教位置点、不同时刻以及不同的待加工设备可能对应的工序操作都是不相同的,因此,为了根据示教过程记录的数据来进行真实操作,工序参数集与示教位置点之间的关系是一一对应的才行,否则,将会出现位置和工序参数集混乱的问题。在该步骤中,要根据工序参数集和各自对应的所述示教位置点之间的对应关系,将工序参数与示教轨迹进行拟合,使得得到的工序示教轨迹中,不仅包含有示教位置点的示教轨迹线,而且还有每个示教位置点上的工序参数集。Since the teaching tool may correspond to different process operations at different teaching positions, at different times, and for different equipment to be processed during its movement, in order to perform real operations based on the data recorded during the teaching process, the relationship between the process parameter set and the teaching position point must be one-to-one corresponding, otherwise, there will be confusion between the position and the process parameter set. In this step, the process parameters and the teaching trajectory are fitted based on the corresponding relationship between the process parameter set and the corresponding teaching position points, so that the obtained process teaching trajectory contains not only the teaching trajectory line of the teaching position point, but also the process parameter set at each teaching position point.
在本申请一个实施例中,前述步骤S104可以具体可以为:In one embodiment of the present application, the aforementioned step S104 may specifically be:
在所述位姿采集系统按照预设采集频率采集所述采集信息,记录所述示教工具在任意一个存在工序操作时示教位置点的采集次序,并记录所述工序操作对应的工序参数集;并根据所述采集次序建立所述采集信息与工序参数集的次序对应关系。The posture acquisition system collects the acquisition information according to a preset acquisition frequency, records the acquisition order of the teaching position points of the teaching tool when any process operation exists, and records the process parameter set corresponding to the process operation; and establishes an order correspondence between the acquisition information and the process parameter set according to the acquisition order.
参见图3所示实施例,该方法可以在接收到示教启动信号后,就开始对每次采集过程进行计数,并且将计数结果作为采集次序,例如:在接收到示教启动信号后,每5秒采集一次示教工具上的定位装置的采集信息,那么第一个5秒的采集次序为M001,第二个5秒的采集次为M002,……,相应直至接收到示教停止信号。在每个采集次序上,都对应有采集信息和工序参数集,所以可以根据采集次序建立所述采集信息与工序参数集的次序对应关系。Referring to the embodiment shown in FIG3 , the method can count each acquisition process after receiving the teaching start signal, and use the counting result as the acquisition order. For example, after receiving the teaching start signal, the acquisition information of the positioning device on the teaching tool is collected every 5 seconds. Then the first 5 seconds of the acquisition order is M001, the second 5 seconds of the acquisition order is M002, ..., until the teaching stop signal is received. In each acquisition order, there are corresponding acquisition information and process parameter sets, so the order correspondence between the acquisition information and the process parameter set can be established according to the acquisition order.
相应地,前述步骤S105具体可以为:Accordingly, the aforementioned step S105 may specifically be:
根据采集信息与工序参数集的所述次序对应关系,将获取到的每个所述工序参数集分别拟合到所述示教轨迹中对应所述示教位置点上,得到工序示教轨迹。According to the order correspondence between the collected information and the process parameter set, each of the acquired process parameter sets is fitted to the corresponding teaching position point in the teaching trajectory to obtain the process teaching trajectory.
在本申请另一实施例中,前述步骤S104可以具体可以为:In another embodiment of the present application, the aforementioned step S104 may specifically be:
在接收到采集触发信号后采集所述采集信息时,检测是否存在工序操作;若存在工序操作,记录所述工序操作对应的工序参数集; 将当前时刻记录的所述工序参数集与当前时刻采集到的所述采集信息建立时刻对应关系;When collecting the collected information after receiving the collection trigger signal, detect whether there is a process operation; if there is a process operation, record the process parameter set corresponding to the process operation; establish a time correspondence relationship between the process parameter set recorded at the current moment and the collected information collected at the current moment;
参见图4所示实施例,该方法可以在每次检测到采集触发信号,才开始采集示教工具上定位装置的采集信息,因此,采集的时刻是随机的,因此,在建立对应关系时,接收到采集触发信号,就进行判断是否有工序操作,如果有,则直接同时记录工序参数集和采集信息,并建立时刻对应关系。Referring to the embodiment shown in FIG. 4 , the method can start collecting the collection information of the positioning device on the teaching tool each time a collection trigger signal is detected. Therefore, the time of collection is random. Therefore, when establishing a corresponding relationship, when a collection trigger signal is received, it is determined whether there is a process operation. If so, the process parameter set and the collection information are directly recorded at the same time, and a time correspondence is established.
相应地,前述步骤S105具体可以为:Accordingly, the aforementioned step S105 may specifically be:
根据工序参数与采集信息的所述时刻对应关系,将获取到的所有工序参数集分别拟合到所述示教轨迹中对应所述示教位置点上,得到工序示教轨迹。According to the time correspondence between the process parameters and the collected information, all the acquired process parameter sets are respectively fitted to the corresponding teaching position points in the teaching trajectory to obtain the process teaching trajectory.
本申请实施例提供的该方法,在示教过程中,不仅可以记录示教轨迹,而且通过记录示教过程中每个示教位置点的工序操作对应的工序参数集,可以形成含有示教位置点以及工序参数集的工序示教轨迹,进而在根据工序示教轨迹后续进行真实操作时,可以同时还原示教位置点以及每个示教位置点上的工序操作,更加智能,使得示教的过程更加简单、方便。The method provided in the embodiment of the present application can not only record the teaching trajectory during the teaching process, but also form a process teaching trajectory containing the teaching position points and the process parameter set by recording the process operation corresponding to each teaching position point in the teaching process. Then, when the actual operation is subsequently performed according to the process teaching trajectory, the teaching position points and the process operation at each teaching position point can be restored at the same time, which is more intelligent and makes the teaching process simpler and more convenient.
一个实施例:An embodiment:
在前述任意一个方法实施例的基础上,当根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹后,该方法还可以包括以下步骤:On the basis of any of the foregoing method embodiments, after fitting the teaching trajectory corresponding to the teaching process according to the position information of the plurality of teaching position points, the method may further include the following steps:
展示所述示教轨迹。The teaching trajectory is displayed.
在一个实施例中,示教轨迹可以在示教控制器的显示屏中的图形用户交互界面上展示,在其它实施例中,若示教控制器上没有显示屏,但示教控制器连接有单独的显示屏,那么示教轨迹还可以在单独的显示屏中的图形用户交互界面上展示。In one embodiment, the teaching trajectory can be displayed on a graphical user interface in the display screen of the teaching controller. In other embodiments, if there is no display screen on the teaching controller, but the teaching controller is connected to a separate display screen, then the teaching trajectory can also be displayed on a graphical user interface in the separate display screen.
示教轨迹可以为单独的一个线状图形,也可以是带有线状图形以及其它示意图形的示意图,例如:图9-图20所示。The teaching trajectory can be a single linear graphic, or a schematic diagram with a linear graphic and other schematic graphics, for example, as shown in Figures 9 to 20.
在具体展示时,方式有多种多样,本申请仅仅举一些示例进行说明。There are many different ways to display it, and this application only gives some examples for illustration.
在一个实施例中,该方法可以包括以下步骤:In one embodiment, the method may include the following steps:
S401,在根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹后,按照预设示意展示方式展示所述示教轨迹;并持续检测其它示教位置点的位姿信息。S401, after fitting a teaching trajectory corresponding to the teaching process according to the posture information of the plurality of teaching position points, displaying the teaching trajectory in a preset schematic display manner; and continuously detecting the posture information of other teaching position points.
在本申请实施例中个,所述预设示意展示方式至少包括:非实线显示、浅颜色显示、第一展示颜色和/或细线型显示。In the embodiments of the present application, the preset schematic display method includes at least: non-solid line display, light color display, first display color and/or thin line display.
如图9所示,图9中,采用采集触发信号的方式进行示教,在示教工具T1时刻的第一姿态时,按下操控按钮104,记录示教位置点A,然后示教工具移动到T2时刻的第二姿态,按下操控按钮104,记录示教位置点B。由于后续可能还有其它的示教位置点,所以,图9中,示教位置点A与示教位置点B之间,以虚线的形式展示AB两点的示教轨迹,也即示意轨迹线501。As shown in FIG9 , in FIG9 , teaching is performed by collecting trigger signals. When the teaching tool is in the first posture at time T1, the control button 104 is pressed to record the teaching position point A. Then the teaching tool moves to the second posture at time T2, and the control button 104 is pressed to record the teaching position point B. Since there may be other teaching positions in the future, in FIG9 , between the teaching position point A and the teaching position point B, the teaching trajectory of the two points AB is displayed in the form of a dotted line, that is, the schematic trajectory line 501.
S402,若未检测到其它示教位置点的位姿信息,将所述示教轨迹由预设示意展示方式切换为示教展示方式,以展示所述示教轨迹。S402: If the posture information of other teaching position points is not detected, the teaching trajectory is switched from a preset schematic display mode to a teaching display mode to display the teaching trajectory.
在本申请实施例中,步骤S401中,在检测其它示教位置点的位姿信息,还可以加上一个时间阈值,如果超过该时间阈值未检测到,那么就直接执行步骤S402。In an embodiment of the present application, in step S401, a time threshold may be added when detecting the posture information of other teaching positions. If the time threshold is exceeded and no detection is performed, step S402 is directly executed.
在前述任意一个方法实施例的基础上,当根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹后,该方法还可以包括以下步骤:On the basis of any of the foregoing method embodiments, after fitting the teaching trajectory corresponding to the teaching process according to the position information of the plurality of teaching position points, the method may further include the following steps:
S501,若检测到两个所述示教位置点的位姿信息,在后台根据所述两个示教位置点所对应的直线线型预先拟合得到两个所述示教位置点所在的直线示教轨迹;以预设示意展示方式展示所述直线示教轨迹,并持续检测第三个示教位置点的位姿信息;S501, if the posture information of the two teaching positions is detected, the straight line teaching trajectory of the two teaching positions is pre-fitted in the background according to the straight line line type corresponding to the two teaching positions; the straight line teaching trajectory is displayed in a preset schematic display mode, and the posture information of the third teaching position is continuously detected;
如图10所示,在确定只有AB两个点时,可以将示意轨迹线501,切换为示教展示方式。As shown in FIG. 10 , when it is determined that there are only two points AB, the schematic trajectory line 501 can be switched to a teaching display mode.
在本申请实施例中所述示教展示方式至少包括:实线显示;深颜色显示、第二展示颜色和/或粗线型显示。The teaching display method described in the embodiment of the present application at least includes: solid line display; dark color display, second display color and/or thick line display.
在本申请实施例中,由于示意轨迹线501的意思是还具有不确定性,所以示意轨迹线与真实的示教轨迹线之间加以区分,例如:示意轨迹线可以用非实线,而示教轨迹线用实线;或者,示意轨迹线可以用浅颜色,而示教轨迹线用深颜色;再或者,示意轨迹线用红色,而示教轨迹线用蓝色;再或者,示意轨迹线用细线型,而示教轨迹线用粗线型。In the embodiment of the present application, since the meaning of the schematic trajectory line 501 is still uncertain, a distinction is made between the schematic trajectory line and the actual teaching trajectory line. For example, the schematic trajectory line may be a non-solid line, while the teaching trajectory line is a solid line; or, the schematic trajectory line may be a light color, while the teaching trajectory line is a dark color; or, the schematic trajectory line may be red, while the teaching trajectory line may be blue; or, the schematic trajectory line may be a thin line, while the teaching trajectory line may be a thick line.
为了展示更好的切换效果,可以参见图11所示,箭头左侧为切换前画面,箭头右侧为切换后画面,左侧为预设示意展示方式,右侧有示教展示方式,从图11中,可以看到,示意轨迹线501为虚线,而示教轨迹线502为实线。In order to show a better switching effect, please refer to Figure 11. The left side of the arrow is the screen before switching, and the right side of the arrow is the screen after switching. The left side is a preset schematic display method, and the right side has a teaching display method. From Figure 11, it can be seen that the schematic trajectory line 501 is a dotted line, and the teaching trajectory line 502 is a solid line.
S502,若未检测到第三个示教位置点的位姿信息,将所述直线示教轨迹切换为示教展示方式,以展示所述示教轨迹。S502: If the posture information of the third teaching position point is not detected, the straight line teaching trajectory is switched to a teaching display mode to display the teaching trajectory.
S503,若检测到第三个示教位置点的位姿信息,在后台根据所述三个示教位置点所对应的圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;以预设示意展示方式展示所述圆弧示教轨迹,并持续检测第四个示教位置点的位姿信息;S503, if the posture information of the third teaching position point is detected, the arc teaching trajectory of the three teaching position points is obtained according to the arc line type corresponding to the three teaching position points in the background; the arc teaching trajectory is displayed in a preset schematic display mode, and the posture information of the fourth teaching position point is continuously detected;
S504,若未检测到第四个示教位置点的位姿信息,将所述圆弧示教轨迹切换为示教展示方式,以展示所述示教轨迹。S504: If the posture information of the fourth teaching position point is not detected, the arc teaching trajectory is switched to the teaching display mode to display the teaching trajectory.
参见图15所示,当示教工具确定ABC三个示教位置点时,此时,生成ABC所在的圆弧形的示意轨迹线,并且在ABC三个示教位置点之间用虚线表示,此时操作人员有可能选择第四个点,所以图12中的虚线仅仅表示示意。一旦确定只有ABC三个示教位置点,那么参见图13所示,示意轨迹线501切换为示教轨迹线502。另外,为了使得ABC所在的圆弧形更加直观、形象,还可以如图14所示,将ABC所在的圆弧形的全部用虚线的形式展示出来,如图14中的扩展示意线503。As shown in FIG15, when the teaching tool determines the three teaching positions ABC, a schematic trajectory line of the arc where ABC is located is generated, and a dotted line is used between the three teaching positions ABC. At this time, the operator may select the fourth point, so the dotted line in FIG12 is only for illustration. Once it is determined that there are only three teaching positions ABC, as shown in FIG13, the schematic trajectory line 501 is switched to the teaching trajectory line 502. In addition, in order to make the arc where ABC is located more intuitive and vivid, the entire arc where ABC is located can also be displayed in the form of dotted lines, as shown in FIG14, such as the extended schematic line 503 in FIG14.
为了展示更好的切换效果,可以参见图15所示,左侧为只确定AB两个示教位置点时,用AB连接的直线线型、且虚线的示意轨迹线来示意,一旦又确定了C示教位置点,那么就从直线切换为圆弧形线型、且虚线的示意轨迹线来示意。In order to show a better switching effect, please refer to Figure 15. When only two teaching position points AB are determined on the left, a straight line connecting AB and a dotted schematic trajectory line are used to illustrate. Once the teaching position point C is determined, the straight line is switched to an arc-shaped line and a dotted schematic trajectory line is used to illustrate.
S505,若检测到第四个示教位置点的位姿信息,在后台根据所述四个示教位置点所对应的曲线线型预先拟合得到四个所述示教位置点所在的曲线示教轨迹;以预设示意展示方式展示所述曲线示教轨迹,并持续检测其它示教位置点的位姿信息;S505, if the posture information of the fourth teaching position point is detected, the curve teaching trajectory of the four teaching position points is pre-fitted in the background according to the curve line types corresponding to the four teaching position points; the curve teaching trajectory is displayed in a preset schematic display mode, and the posture information of other teaching position points is continuously detected;
S506,若未检测到其它示教位置点的位姿信息,将所述曲线示教轨迹切换为示教展示方式,直至检测不到其它示教点的位姿信息。S506, if the posture information of other teaching position points is not detected, the curve teaching trajectory is switched to the teaching display mode until the posture information of other teaching points is not detected.
如图20所示,在检测到三个示教位置点ABC后,还需要判断是否有第四个示教位置点,如果有第四个示教位置点,那么显示图18所示的虚线的示意轨迹线501,在图18所示的基础上,如果未检测到其它点,那么图18中示教轨迹线501由虚线切换为实线显示,如图19所示。As shown in Figure 20, after detecting three teaching position points ABC, it is also necessary to determine whether there is a fourth teaching position point. If there is a fourth teaching position point, then the dotted schematic trajectory line 501 shown in Figure 18 is displayed. On the basis of what is shown in Figure 18, if no other points are detected, then the teaching trajectory line 501 in Figure 18 is switched from a dotted line to a solid line display, as shown in Figure 19.
此外,为了展示更好的切换效果,参见图16所示,在图16中,当确定了AB两个示教位置点时,此时为了选择更好的C示教位置点,操作人员可能手持示教工具进行移动,在确定C之前,可能先将示教工具的示教尖端放到了C1点,那么直接示意出ABC1所在圆弧形线型的示意轨迹线,当操作人员未选择C1点,而是将示教工具的移动到了C3点,那么就直接示意出ABC3所在圆弧形线型的示意轨迹线,当操作人员未选择C3,而是将示教工具移动到了C点,那么就直接显示ABC所在圆弧形线型的示意轨迹线。In addition, in order to demonstrate a better switching effect, see FIG16. In FIG16, when the two teaching position points AB are determined, in order to select a better teaching position point C, the operator may move the teaching tool by hand. Before determining C, the teaching tip of the teaching tool may be placed at point C1. Then, the schematic trajectory line of the arc-shaped line where ABC1 is located is directly indicated. When the operator does not select point C1, but moves the teaching tool to point C3, then the schematic trajectory line of the arc-shaped line where ABC3 is located is directly indicated. When the operator does not select C3, but moves the teaching tool to point C, then the schematic trajectory line of the arc-shaped line where ABC is located is directly displayed.
参见图22,本申请实施例提供一种示教轨迹处理装置,所述示教轨迹处理装置包括用于执行上述任一实施例所述的示教方法的单元。具体地,所述示教轨迹处理装置包括第一位姿信息确定单元11、第二位姿信息确定单元12和示教轨迹拟合单元13。22 , an embodiment of the present application provides a teaching trajectory processing device, the teaching trajectory processing device comprising a unit for executing the teaching method described in any of the above embodiments. Specifically, the teaching trajectory processing device comprises a first pose information determination unit 11, a second pose information determination unit 12 and a teaching trajectory fitting unit 13.
第一位姿信息确定单元11,用于在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;A first posture information determination unit 11, used to determine the posture information of the teaching tool at multiple teaching positions during the teaching process of the teaching tool;
第二位姿信息确定单元12,用于利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;A second posture information determination unit 12, used to determine the posture information of the plurality of teaching position points using the plurality of posture information of the teaching tool;
示教轨迹拟合单元13,用于根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹;A teaching trajectory fitting unit 13, used for fitting the teaching trajectory corresponding to the teaching process according to the position information of the plurality of teaching position points in a preset trajectory fitting manner;
其中,所述示教位置点为两个时,示教轨迹拟合单元13确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹,或根据两个所述示教位置点生成关节运动轨迹;Wherein, when there are two teaching position points, the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a straight line type, and obtains a straight line teaching trajectory where the two teaching position points are located according to the straight line type fitting, or generates a joint motion trajectory according to the two teaching position points;
所述示教位置点为三个时,示教轨迹拟合单元13确定所述示教轨迹的线型为圆弧线型,根据所述圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;When there are three teaching position points, the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is an arc line type, and obtains the arc teaching trajectory where the three teaching position points are located according to the arc line type fitting;
所述示教位置点为至少四个时,示教轨迹拟合单元13确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。When there are at least four teaching positions, the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a curve line type, and obtains the curve teaching trajectory where at least four teaching positions are located according to the curve line type fitting.
参见图23,本申请实施例提供一种机械臂,所述机械臂包括用于执行上述任一实施例所述的示教方法的单元。具体地,所述机械臂包括第一位姿信息确定单元11、第二位姿信息确定单元12和示教轨迹拟合单元13。23 , an embodiment of the present application provides a robotic arm, the robotic arm comprising a unit for executing the teaching method described in any of the above embodiments. Specifically, the robotic arm comprises a first pose information determination unit 11 , a second pose information determination unit 12 , and a teaching trajectory fitting unit 13 .
第一位姿信息确定单元11,用于在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;A first posture information determination unit 11, used to determine the posture information of the teaching tool at multiple teaching positions during the teaching process of the teaching tool;
第二位姿信息确定单元12,用于利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;A second posture information determination unit 12, used to determine the posture information of the plurality of teaching position points using the plurality of posture information of the teaching tool;
示教轨迹拟合单元13,用于根据多个所述示教位置点的位姿信息,按照预设轨迹拟合方式拟合得到所述示教过程对应的示教轨迹;A teaching trajectory fitting unit 13, used for fitting the teaching trajectory corresponding to the teaching process according to the position information of the plurality of teaching position points in a preset trajectory fitting manner;
其中,所述示教位置点为两个时,示教轨迹拟合单元13确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹,或根据两个所述示教位置点生成关节运动轨迹;Wherein, when there are two teaching position points, the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a straight line type, and obtains a straight line teaching trajectory where the two teaching position points are located according to the straight line type fitting, or generates a joint motion trajectory according to the two teaching position points;
所述示教位置点为三个时,示教轨迹拟合单元13确定所述示教轨迹的线型为圆弧线型,根据所述圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;When there are three teaching position points, the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is an arc line type, and obtains the arc teaching trajectory where the three teaching position points are located according to the arc line type fitting;
所述示教位置点为至少四个时,示教轨迹拟合单元13确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。When there are at least four teaching positions, the teaching trajectory fitting unit 13 determines that the line type of the teaching trajectory is a curve line type, and obtains the curve teaching trajectory where at least four teaching positions are located according to the curve line type fitting.
如图24所示,本申请实施例提供了一种机械臂控制设备,包括处理器111、通信接口112、存储器113和通信总线114,其中,处理器111,通信接口112,存储器113通过通信总线114完成相互间的通信,As shown in FIG. 24 , an embodiment of the present application provides a robot arm control device, 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 communicate with each other through the communication bus 114.
存储器113,用于存放计算机程序;Memory 113, used for storing computer programs;
在本申请一个实施例中,处理器111,用于执行存储器113上所存放的程序时,实现前述任意一个方法实施例提供的示教轨迹处理方法的步骤。In one embodiment of the present application, the processor 111 is used to implement the steps of the teaching trajectory processing method provided by any of the aforementioned method embodiments when executing the program stored in the memory 113.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述任意一个方法实施例提供的示教轨迹处理方法的步骤。An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the teaching trajectory processing method provided in any of the aforementioned method embodiments are implemented.
本申请实施例还提供了一种机械臂示教系统,如图1和图5所示,包括:示教工具100、定位装置101、位姿采集系统200和示教控制器300,其中,The present application also provides a robot arm teaching system, as shown in FIG. 1 and FIG. 5 , comprising: a teaching tool 100, a positioning device 101, a posture acquisition system 200 and a teaching controller 300, wherein:
所述示教工具100上设有可被所述位姿采集系统200识别位姿的定位装置101;所述位姿采集系统200与所述示教控制器通信连接;所述示教控制器用于执行如前述任意方法实施例所述的示教轨迹处理方法的步骤。The teaching tool 100 is provided with a positioning device 101 whose posture can be recognized by the posture acquisition system 200; the posture acquisition system 200 is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any of the aforementioned method embodiments.
可选地,如图1和图5所示,所述示教工具100上设置有示教尖端103,所述示教尖端103与所述定位装置101的安装结构信息已知。Optionally, as shown in FIG. 1 and FIG. 5 , the teaching tool 100 is provided with a teaching tip 103 , and the installation structure information of the teaching tip 103 and the positioning device 101 is known.
可选地,所述机械臂示教系统还包括操控按钮,如图1和图5所示,所述操控按钮104设置在所述示教工具上,或者,所述操控按钮与所述示教工具相独立(图中未示出)。Optionally, the robot arm teaching system further includes a manipulation button, as shown in FIG. 1 and FIG. 5 , the manipulation button 104 is disposed on the teaching tool, or the manipulation button is independent of the teaching tool (not shown in the figure).
所述操控按钮104与所述示教控制器300通信连接,所述操控按钮104用于向所述示教控制器发出采集触发信号。The control button 104 is in communication connection with the teaching controller 300 , and the control button 104 is used to send a collection trigger signal to the teaching controller.
可选地,所述机械臂示教系统还包括启停按钮(图中未示出),所述启停按钮与所述位姿采集系统相连接,用于向所述位姿采集系统发送示教启动信号或示教结束信号。Optionally, the robotic arm teaching system further includes a start/stop button (not shown in the figure), which is connected to the posture acquisition system and is used to send a teaching start signal or a teaching end signal to the posture acquisition system.
如图25所示,本申请实施例还提供一种机械臂控制系统,包括:机械臂500、操作台、机械臂示教控制器600和前述任一实施例中的机械臂示教系统,其中,As shown in FIG. 25 , the embodiment of the present application further provides a robot arm control system, comprising: a robot arm 500, an operating table, a robot arm teaching controller 600 and a robot arm teaching system in any of the aforementioned embodiments, wherein:
所述机械臂500与所述操作台相固定,操作台包括:操作台体(图中未示出)和操作台面400。所述机械臂控制器600可驱动所述机械臂500在操作台的操作台面400上进行移动,也即所述机械臂500在所述机械臂控制器600的控制下,可在操作台的操作台面400上进行移动。The robot arm 500 is fixed to the operating table, and the operating table includes: an operating table body (not shown in the figure) and an operating table surface 400. The robot arm controller 600 can drive the robot arm 500 to move on the operating table surface 400 of the operating table, that is, the robot arm 500 can move on the operating table surface 400 of the operating table under the control of the robot arm controller 600.
所述机械臂示教系统包括:示教工具100、定位装置101、位姿采集系统200和示教控制器300,其中,The robot arm teaching system includes: a teaching tool 100, a positioning device 101, a posture acquisition system 200 and a teaching controller 300, wherein:
所述位姿采集系统200的采集范围可覆盖所述操作台的操作台面400。有关位姿采集系统200与操作台的位置关系,在一种可行的实施例中,位姿采集系统200可以与操作台的操作台体相固定,例如:位姿采集系统200可以通过安装杆或安装架固定在操作台400的操作台体的侧面,或者,固定在操作台面400上。在另一种可行的实施例中,位姿采集系统200可以不与操作台相固定,而是与操作台之间设置有间隔,例如:位姿采集系统200可以通过安装架,或者,支撑杆固定在操作台面附近的地面上或墙壁上或天花板上,并且同样,位姿采集系统200的采集范围可覆盖所述操作台的操作台面,并且位姿采集系统200的采集范围覆盖所述操作台。The acquisition range of the posture acquisition system 200 may cover the operating table 400 of the operating table. Regarding the positional relationship between the posture acquisition system 200 and the operating table, in a feasible embodiment, the posture acquisition system 200 may be fixed to the operating table body of the operating table, for example, the posture acquisition system 200 may be fixed to the side of the operating table body of the operating table 400 by a mounting rod or a mounting frame, or fixed to the operating table 400. In another feasible embodiment, the posture acquisition system 200 may not be fixed to the operating table, but a gap is set between the operating table, for example, the posture acquisition system 200 may be fixed to the ground, wall or ceiling near the operating table by a mounting frame, or a support rod, and similarly, the acquisition range of the posture acquisition system 200 may cover the operating table of the operating table, and the acquisition range of the posture acquisition system 200 covers the operating table.
所述机械臂控制器600与机械臂500之间通信连接,在具体实施时,机械臂控制器600可以通过通信线缆与机械臂500进行通信连接,也可以通过无线通信的方式进行通信连接,机械臂控制器600可以控制机械臂500在操作台面400上进行移动。The robotic arm controller 600 is communicatively connected to the robotic arm 500 . In a specific implementation, the robotic arm controller 600 can be communicatively connected to the robotic arm 500 via a communication cable or by wireless communication. The robotic arm controller 600 can control the robotic arm 500 to move on the operating table 400 .
机械臂控制器600还与机械臂示教系统中的示教控制器300进行通信连接。The robot arm controller 600 is also communicatively connected with the teaching controller 300 in the robot arm teaching system.
在具体应用中,示教控制器300中还可以存储有位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,进而当确定示教工具在位姿采集坐标系中的示教轨迹后,通过前述两个坐标系之间的坐标系转换关系,可以将示教工具在位姿采集坐标系中的示教轨迹转换为台面坐标系中的运动轨迹,进而发送给机械臂控制器600,以便机械臂控制器600可以直接利用运动轨迹对机械臂500进行控制,以使机械臂500按照示教轨迹在操作台面400上进行移动,以便对示教轨迹进行还原。In a specific application, the teaching controller 300 may also store a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table. After determining the teaching trajectory of the teaching tool in the posture acquisition coordinate system, the teaching trajectory of the teaching tool in the posture acquisition coordinate system can be converted into a motion trajectory in the table coordinate system through the coordinate system conversion relationship between the aforementioned two coordinate systems, and then sent to the robot controller 600, so that the robot controller 600 can directly use the motion trajectory to control the robot 500, so that the robot 500 moves on the operating table 400 according to the teaching trajectory, so as to restore the teaching trajectory.
在本申请另一实施例中,还可以是机械臂控制器600中存储有位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,示教控制器300仅仅将示教工具在位姿采集坐标系中的示教轨迹发送给机械臂控制器600,由机械臂控制器600通过前述两个坐标系之间的坐标系转换关系,可以将示教工具在位姿采集坐标系中的示教轨迹转换为台面坐标系中的运动轨迹,然后机械臂控制器600可以直接利用转换后的运动轨迹控制机械臂在操作台面400上进行移动,以便对示教轨迹进行还原。In another embodiment of the present application, the robot controller 600 may store a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table. The teaching controller 300 only sends the teaching trajectory of the teaching tool in the posture acquisition coordinate system to the robot controller 600. The robot controller 600 can convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system through the coordinate system conversion relationship between the aforementioned two coordinate systems. Then, the robot controller 600 can directly use the converted motion trajectory to control the robot to move on the operating table 400 so as to restore the teaching trajectory.
在本申请一些具体实施例中,机械臂控制器600可以与示教控制器300采用两个单独的处理器,分别进行处理操作。另外,在本申请其它实施例中,机械臂控制器600可以与示教控制器300还可以同一个处理器,以节省硬件成本以及避免不同处理器之间信号传递带来的通信延迟问题。In some specific embodiments of the present application, the robot arm controller 600 and the teaching controller 300 may use two separate processors to perform processing operations separately. In addition, in other embodiments of the present application, the robot arm controller 600 and the teaching controller 300 may also use the same processor to save hardware costs and avoid communication delay problems caused by signal transmission between different processors.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this article, relational 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 any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be 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 present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims (22)

  1. 一种示教轨迹处理方法,其特征在于,应用于机械臂示教系统,所述机械臂示教系统包括:示教工具和位姿采集系统,所述示教工具上设有可被所述位姿采集系统识别位姿的定位装置,所述方法包括:A teaching trajectory processing method, characterized in that it is applied to a robot arm teaching system, the robot arm teaching system comprises: a teaching tool and a posture acquisition system, the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system, the method comprises:
    在所述示教工具进行示教过程中,确定多个示教位置点上的所述示教工具的位姿信息;During the teaching process of the teaching tool, determining the position and posture information of the teaching tool at a plurality of teaching positions;
    利用所述示教工具的多个位姿信息,确定多个所述示教位置点的位姿信息;Determine the position information of the teaching position points by using the plurality of position information of the teaching tool;
    根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹;According to the position information of the plurality of teaching position points, a teaching trajectory corresponding to the teaching process is obtained by fitting;
    其中,所述示教位置点为两个时,确定所述示教轨迹的线型为直线线型,根据所述直线线型拟合得到两个所述示教位置点所在的直线示教轨迹,或根据两个所述示教位置点生成关节运动轨迹;Wherein, when there are two teaching position points, the line type of the teaching trajectory is determined to be a straight line type, and a straight line teaching trajectory where the two teaching position points are located is obtained by fitting according to the straight line type, or a joint motion trajectory is generated according to the two teaching position points;
    所述示教位置点为三个时,确定所述示教轨迹的线型为圆弧线型,根据所述圆弧线型拟合得到三个所述示教位置点所在的圆弧示教轨迹;When there are three teaching position points, the line type of the teaching trajectory is determined to be an arc line type, and the arc teaching trajectory where the three teaching position points are located is obtained by fitting the arc line type;
    所述示教位置点为至少四个时,确定所述示教轨迹的线型为曲线线型,根据所述曲线线型拟合得到至少四个所述示教位置点所在的曲线示教轨迹。When there are at least four teaching position points, the line type of the teaching trajectory is determined to be a curve line type, and the curve teaching trajectory where at least four teaching position points are located is obtained by fitting the curve line type.
  2. 根据权利要求1所述的方法,其特征在于,所述示教工具上设置有示教尖端,所述示教尖端与所述定位装置在所述示教工具上的安装结构信息已知;The method according to claim 1 is characterized in that a teaching tip is provided on the teaching tool, and the installation structure information of the teaching tip and the positioning device on the teaching tool is known;
    所述确定多个示教位置点上的所述示教工具的位姿信息,包括:The determining of the position information of the teaching tool at a plurality of teaching positions includes:
    在所述示教工具进行示教过程中,检测是否接收到采集触发信号;During the teaching process of the teaching tool, detecting whether an acquisition trigger signal is received;
    若接收到采集触发信号,控制所述位姿识别系统在示教过程中采集所述示教工具上所述定位装置的采集信息;所述采集信息与所述采集触发信号一一对应;If a collection trigger signal is received, the posture recognition system is controlled to collect collection information of the positioning device on the teaching tool during the teaching process; the collection information corresponds to the collection trigger signal one by one;
    将每个采集信息所对应的所述示教工具上所述示教尖端的位置确定为示教位置点;Determine the position of the teaching tip on the teaching tool corresponding to each piece of collected information as a teaching position point;
    根据所述安装结构信息,将所述位姿采集系统采集到的所有采集信息转换为所述示教尖端所对应示教位置点的位姿信息。According to the installation structure information, all collected information collected by the posture collection system is converted into posture information of the teaching position point corresponding to the teaching tip.
  3. 根据权利要求1所述的方法,其特征在于,所述示教工具上设置有示教尖端,所述示教尖端与所述定位装置在所述示教工具上的安装结构信息已知;The method according to claim 1 is characterized in that a teaching tip is provided on the teaching tool, and the installation structure information of the teaching tip and the positioning device on the teaching tool is known;
    所述确定多个示教位置点上的所述示教工具的位姿信息,包括:The determining of the position information of the teaching tool at a plurality of teaching positions includes:
    在接收到示教启动信号时,控制所述位姿采集系统按照预设采集频率在示教过程中采集所述示教工具上所述定位装置的采集信息;When receiving a teaching start signal, controlling the posture acquisition system to acquire acquisition information of the positioning device on the teaching tool during the teaching process according to a preset acquisition frequency;
    在接收到示教结束信号时,控制所述位姿采集系统停止采集所述定位装置的采集信息;Upon receiving the teaching end signal, controlling the posture acquisition system to stop acquiring the acquisition information of the positioning device;
    将每个采集信息所对应的所述示教工具上所述示教尖端的位置确定为示教位置点;Determine the position of the teaching tip on the teaching tool corresponding to each piece of collected information as a teaching position point;
    根据所述安装结构信息,将所述位姿采集系统采集到的所有采集信息转换为所述示教尖端所对应示教位置点的位姿信息。According to the installation structure information, all collected information collected by the posture collection system is converted into posture information of the teaching position point corresponding to the teaching tip.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that the method further comprises:
    采集所述示教工具在至少一个示教位置点进行工序操作对应的工序参数集,所述工序参数集中包括至少一种工序类型的工序参数;Collecting a process parameter set corresponding to a process operation performed by the teaching tool at at least one teaching position point, wherein the process parameter set includes process parameters of at least one process type;
    根据每个所述工序参数集与各自对应的所述示教位置点之间的对应关系,将至少一个所述示教位置点的工序参数集拟合到所述示教轨迹中,得到工序示教轨迹。According to the correspondence between each of the process parameter sets and the corresponding teaching position points, the process parameter set of at least one of the teaching position points is fitted into the teaching trajectory to obtain the process teaching trajectory.
  5. 根据权利要求4所述的方法,其特征在于,所述采集所述示教工具在至少一个所述示教位置点对应的工序参数集,包括:The method according to claim 4, characterized in that the step of collecting a set of process parameters corresponding to at least one of the teaching positions of the teaching tool comprises:
    在所述位姿采集系统按照预设采集频率采集所述采集信息,记录所述示教工具在任意一个存在工序操作时示教位置点的采集次序,并记录所述工序操作对应的工序参数集;并根据所述采集次序建立所述采集信息与工序参数集的次序对应关系;The posture acquisition system collects the acquisition information according to a preset acquisition frequency, records the acquisition order of the teaching position points of the teaching tool when any process operation exists, and records the process parameter set corresponding to the process operation; and establishes an order correspondence between the acquisition information and the process parameter set according to the acquisition order;
    根据每个所述工序参数集与各自对应的所述示教位置点之间的对应关系,将至少一个所述示教位置点的工序参数集拟合到所述示教轨迹中,得到工序示教轨迹,包括:According to the correspondence between each of the process parameter sets and the corresponding teaching position points, fitting the process parameter set of at least one of the teaching position points to the teaching trajectory to obtain the process teaching trajectory includes:
    根据采集信息与工序参数集的所述次序对应关系,将获取到的每个所述工序参数集分别拟合到所述示教轨迹中对应所述示教位置点上,得到工序示教轨迹。According to the order correspondence between the collected information and the process parameter set, each of the acquired process parameter sets is fitted to the corresponding teaching position point in the teaching trajectory to obtain the process teaching trajectory.
  6. 根据权利要求4所述的方法,其特征在于,所述采集所述示教工具在至少一个所述示教位置点对应的工序参数集,包括:The method according to claim 4, characterized in that the step of collecting a set of process parameters corresponding to at least one of the teaching positions of the teaching tool comprises:
    在接收到采集触发信号后采集所述采集信息时,检测是否存在工序操作;若存在工序操作,记录所述工序操作对应的工序参数集; 将当前时刻记录的所述工序参数集与当前时刻采集到的所述采集信息建立时刻对应关系;When collecting the collected information after receiving the collection trigger signal, detect whether there is a process operation; if there is a process operation, record the process parameter set corresponding to the process operation; establish a time correspondence relationship between the process parameter set recorded at the current moment and the collected information collected at the current moment;
    根据每个所述工序参数集与各自对应的所述示教位置点之间的对应关系,将至少一个所述示教位置点的工序参数集拟合到所述示教轨迹中,得到工序示教轨迹,包括:According to the correspondence between each of the process parameter sets and the corresponding teaching position points, fitting the process parameter set of at least one of the teaching position points to the teaching trajectory to obtain the process teaching trajectory includes:
    根据工序参数与采集信息的所述时刻对应关系,将获取到的所有工序参数集分别拟合到所述示教轨迹中对应所述示教位置点上,得到工序示教轨迹。According to the time correspondence between the process parameters and the collected information, all the acquired process parameter sets are respectively fitted to the corresponding teaching position points in the teaching trajectory to obtain the process teaching trajectory.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述定位装置是二维示教板;所述确定多个示教位置点上的所述示教工具的位姿信息,包括:The method according to any one of claims 1 to 6 is characterized in that the positioning device is a two-dimensional teaching board; and the determining of the position information of the teaching tool at a plurality of teaching positions comprises:
    利用所述位姿采集系统采集所述示教工具在示教过程中所述二维示教板的多幅示教图像的图像信息;Using the posture acquisition system to acquire image information of multiple teaching images of the two-dimensional teaching board during the teaching process of the teaching tool;
    根据所述图像信息计算每幅所述示教图像所对应位置时所述示教工具的位姿信息。The position information of the teaching tool at the position corresponding to each teaching image is calculated according to the image information.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述定位装置为定位光球组合,所述定位光球组合中包括不在同一平面上的至少四个定位光球;The method according to any one of claims 1 to 6, characterized in that the positioning device is a positioning light ball combination, and the positioning light ball combination includes at least four positioning light balls that are not on the same plane;
    所述确定多个示教位置点上的所述示教工具的位姿信息,包括:The determining of the position information of the teaching tool at a plurality of teaching positions includes:
    利用位姿采集系统采集所述示教工具在示教过程中的所述定位光球组合的多个定位光球的定位信息;Using a posture acquisition system to acquire positioning information of multiple positioning light balls of the positioning light ball combination of the teaching tool during the teaching process;
    根据采集到定位光球组合的定位信息确定行为光球组合所在位置时所述示教工具的位姿信息。The position information of the teaching tool when the behavior light ball combination is located is determined based on the positioning information of the positioning light ball combination collected.
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:
    在根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹,展示所述示教轨迹。According to the position information of the plurality of teaching position points, a teaching trajectory corresponding to the teaching process is fitted and the teaching trajectory is displayed.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:
    在根据多个所述示教位置点的位姿信息,拟合得到所述示教过程对应的示教轨迹,按照预设示意展示方式展示所述示教轨迹;并持续检测其它示教位置点的位姿信息;所述预设示意展示方式至少包括:非实线显示、浅颜色显示、第一展示颜色和/或细线型显示;According to the posture information of the plurality of teaching positions, a teaching trajectory corresponding to the teaching process is fitted, and the teaching trajectory is displayed in a preset schematic display mode; and the posture information of other teaching positions is continuously detected; the preset schematic display mode at least includes: non-solid line display, light color display, first display color and/or thin line display;
    若未检测到其它示教位置点的位姿信息,将所述示教轨迹由预设示意展示方式切换为示教展示方式,以展示所述示教轨迹,所述示教展示方式至少包括:实线显示;深颜色显示、第二展示颜色和/或粗线型显示。If no posture information of other teaching position points is detected, the teaching trajectory is switched from a preset schematic display mode to a teaching display mode to display the teaching trajectory, and the teaching display mode at least includes: solid line display; dark color display, second display color and/or thick line display.
  11. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:
    若检测到两个所述示教位置点的位姿信息,在后台根据所述两个示教位置点所对应的直线线型预先拟合得到两个所述示教位置点所在的直线示教轨迹;以虚线显示方式展示所述直线示教轨迹,并持续检测第三个示教位置点的位姿信息;If the posture information of the two teaching positions is detected, the straight line teaching trajectory of the two teaching positions is pre-fitted in the background according to the straight line type corresponding to the two teaching positions; the straight line teaching trajectory is displayed in a dotted line display mode, and the posture information of the third teaching position is continuously detected;
    若未检测到第三个示教位置点的位姿信息,将所述直线示教轨迹由所述虚线显示方式切换为实线显示方式,以展示所述示教轨迹。If the posture information of the third teaching position point is not detected, the straight line teaching trajectory is switched from the dotted line display mode to the solid line display mode to display the teaching trajectory.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that the method further comprises:
    若检测到第三个示教位置点的位姿信息,在后台根据所述三个示教位置点所对应的圆形圆弧形线型拟合得到三个所述示教位置点所在的圆形圆弧形示教轨迹;以浅颜色或第一展示颜色展示方式展示所述圆形圆弧形示教轨迹,并持续检测第四个示教位置点的位姿信息;If the posture information of the third teaching position point is detected, the circular arc teaching trajectory of the three teaching position points is obtained according to the circular arc line type corresponding to the three teaching position points in the background; the circular arc teaching trajectory is displayed in a light color or the first display color display mode, and the posture information of the fourth teaching position point is continuously detected;
    若未检测到第四个示教位置点的位姿信息,将所述圆形圆弧形示教轨迹由所述浅颜色显示方式切换为深颜色显示方式,或者,由所述第一展示颜色切换为第二展示颜色,以展示所述示教轨迹。If the posture information of the fourth teaching position point is not detected, the circular arc teaching trajectory is switched from the light color display mode to the dark color display mode, or from the first display color to the second display color to display the teaching trajectory.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method according to claim 12, characterized in that the method further comprises:
    若检测到第四个示教位置点的位姿信息,在后台根据所述四个示教位置点所对应的曲线线型预先拟合得到四个所述示教位置点所在的曲线示教轨迹;以细线型展示方式展示所述曲线示教轨迹,并持续检测其它示教位置点的位姿信息;If the posture information of the fourth teaching position point is detected, the curve teaching trajectory of the four teaching position points is pre-fitted in the background according to the curve line types corresponding to the four teaching position points; the curve teaching trajectory is displayed in a thin line display mode, and the posture information of other teaching position points is continuously detected;
    若未检测到其它示教位置点的位姿信息,将所述曲线示教轨迹由细线型显示方式切换为粗线型显示方式,直至检测不到其它示教点的位姿信息。If the posture information of other teaching position points is not detected, the curve teaching trajectory is switched from a thin line display mode to a thick line display mode until the posture information of other teaching points is not detected.
  14. 一种示教装置,其特征在于,包括用于执行如权利要求1-13任一项所述的示教轨迹处理方法的单元。A teaching device, characterized in that it comprises a unit for executing the teaching trajectory processing method as described in any one of claims 1-13.
  15. 一种机械臂,其特征在于,包括用于执行如权利要求1-13任一项所述的示教轨迹处理方法的单元。A robotic arm, characterized in that it comprises a unit for executing the teaching trajectory processing method as described in any one of claims 1-13.
  16. 一种示教控制器,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;A teaching 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 communicate with each other through the communication bus;
    存储器,用于存放计算机程序;Memory, used to store computer programs;
    处理器,用于执行存储器上所存放的程序时,实现如权利要求1-13任一项所述的示教轨迹处理方法的步骤。The processor is used to implement the steps of the teaching trajectory processing method as described in any one of claims 1 to 13 when executing the program stored in the memory.
  17. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-13任一项所述的示教轨迹处理方法的步骤。A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the teaching trajectory processing method as described in any one of claims 1 to 13 are implemented.
  18. 一种机械臂示教系统,其特征在于,包括:示教工具、定位装置、位姿采集系统和示教控制器,其中,A robot arm teaching system, characterized in that it comprises: a teaching tool, a positioning device, a posture acquisition system and a teaching controller, wherein:
    所述示教工具上设有可被所述位姿采集系统识别位姿的定位装置;所述位姿采集系统与所述示教控制器通信连接;所述示教控制器用于执行如权利要求1-9任一项所述的示教轨迹处理方法的步骤。The teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system; the posture acquisition system is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method as described in any one of claims 1-9.
  19. 根据权利要求18所述的系统,其特征在于,所述示教工具上设置有示教尖端,所述示教尖端与所述定位装置的安装结构信息已知。The system according to claim 18 is characterized in that a teaching tip is provided on the teaching tool, and the installation structure information of the teaching tip and the positioning device is known.
  20. 根据权利要求18或19所述的系统,其特征在于,所述机械臂示教系统还包括操控按钮,所述操控按钮设置在所述示教工具上,或者,所述操控按钮与所述示教工具相独立;The system according to claim 18 or 19, characterized in that the robot arm teaching system further comprises a control button, and the control button is arranged on the teaching tool, or the control button is independent of the teaching tool;
    所述操控按钮与所述示教控制器通信连接,所述操控按钮用于向所述示教控制器发出采集触发信号。The control button is in communication connection with the teaching controller, and the control button is used to send a collection trigger signal to the teaching controller.
  21. 根据权利要求18所述的系统,其特征在于,所述机械臂示教系统还包括启停按钮,所述启停按钮与所述位姿采集系统相连接,用于向所述位姿采集系统发送示教启动信号或示教结束信号。The system according to claim 18 is characterized in that the robotic arm teaching system also includes a start-stop button, which is connected to the posture acquisition system and is used to send a teaching start signal or a teaching end signal to the posture acquisition system.
  22. 一种机械臂控制系统,其特征在于,包括:机械臂、操作台、机械臂控制器和如权利要求18-21任一项所述的机械臂示教系统,其中,A robotic arm control system, characterized in that it comprises: a robotic arm, an operating table, a robotic arm controller and a robotic arm teaching system as claimed in any one of claims 18 to 21, wherein:
    所述机械臂示教系统,包括:示教工具、定位装置、位姿采集系统和示教控制器,所述示教工具上设有可被所述位姿采集系统识别位姿的定位装置;所述位姿采集系统与所述示教控制器通信连接;所述示教控制器用于执行如权利要求1-13任一项所述的示教轨迹处理方法的步骤;The robot arm teaching system comprises: a teaching tool, a positioning device, a posture acquisition system and a teaching controller, wherein the teaching tool is provided with a positioning device whose posture can be recognized by the posture acquisition system; the posture acquisition system is communicatively connected with the teaching controller; the teaching controller is used to execute the steps of the teaching trajectory processing method according to any one of claims 1 to 13;
    所述机械臂与所述操作台相固定,操作台包括:操作台体和操作台面,所述机械臂控制器可驱动所述机械臂在操作台的操作台面上进行移动;The mechanical arm is fixed to the operating table, which includes an operating table body and an operating table surface, and the mechanical arm controller can drive the mechanical arm to move on the operating table surface of the operating table;
    所述机械臂控制器与机械臂之间通信连接;机械臂控制器与机械臂示教系统中的示教控制器进行通信连接;The robot arm controller is in communication connection with the robot arm; the robot arm controller is in communication connection with the teaching controller in the robot arm teaching system;
    所述示教控制器中存储有位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,且可利用所述坐标系转换关系,将所述示教工具在位姿采集坐标系中的示教轨迹转换为台面坐标系中的运动轨迹,并发送给机械臂控制器,所述机械臂控制器接收所述运动轨迹,并利用运动轨迹对机械臂进行控制;或者,所述机械臂控制器中存储有所述位姿采集系统的位姿采集坐标系和操作台面的台面坐标系之间的坐标系转换关系,所述示教控制器将示教工具在位姿采集坐标系中的示教轨迹发送给机械臂控制器,所述机械臂控制器利用所述坐标系转换关系,将示教工具在位姿采集坐标系中的示教轨迹转换为台面坐标系中的运动轨迹,并且根据所述运动轨迹控制机械臂在操作台面上进行移动。The teaching controller stores a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table, and the coordinate system conversion relationship can be used to convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system and send it to the robotic arm controller, the robotic arm controller receives the motion trajectory and uses the motion trajectory to control the robotic arm; or, the robotic arm controller stores a coordinate system conversion relationship between the posture acquisition coordinate system of the posture acquisition system and the table coordinate system of the operating table, the teaching controller sends the teaching trajectory of the teaching tool in the posture acquisition coordinate system to the robotic arm controller, the robotic arm controller uses the coordinate system conversion relationship to convert the teaching trajectory of the teaching tool in the posture acquisition coordinate system into a motion trajectory in the table coordinate system, and controls the robotic arm to move on the operating table according to the motion trajectory.
PCT/CN2023/129758 2022-11-03 2023-11-03 Teaching trajectory processing method and apparatus, mechanical arm, teaching controller and system WO2024094197A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211374178.3 2022-11-03
CN202211374178.3A CN116372889A (en) 2022-11-03 2022-11-03 Teaching track processing method, device, mechanical arm, teaching controller and system

Publications (1)

Publication Number Publication Date
WO2024094197A1 true WO2024094197A1 (en) 2024-05-10

Family

ID=86977395

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/129758 WO2024094197A1 (en) 2022-11-03 2023-11-03 Teaching trajectory processing method and apparatus, mechanical arm, teaching controller and system

Country Status (2)

Country Link
CN (1) CN116372889A (en)
WO (1) WO2024094197A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116372889A (en) * 2022-11-03 2023-07-04 深圳市越疆科技股份有限公司 Teaching track processing method, device, mechanical arm, teaching controller and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001060108A (en) * 1999-06-18 2001-03-06 Agency Of Ind Science & Technol Device and method for teaching robot action
CN104850063A (en) * 2015-04-09 2015-08-19 叶成源 Novel multi-shaft welding system
CN106737691A (en) * 2017-02-07 2017-05-31 珠海金萝卜智动科技有限公司 The method and apparatus of manual teaching robot
CN108262586A (en) * 2018-03-02 2018-07-10 广州市盘古机器人科技有限公司 6 joint Manipulator welding application technology of 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
CN113319859A (en) * 2021-05-31 2021-08-31 上海节卡机器人科技有限公司 Robot teaching method, system and device and electronic equipment
CN113696190A (en) * 2021-10-28 2021-11-26 深圳市越疆科技有限公司 Teaching track point acquisition method, device, mechanical arm, system and medium
CN113927582A (en) * 2021-06-30 2022-01-14 深圳市越疆科技有限公司 Robot system, method, robot arm, and storage medium for configuring copy function
CN116372889A (en) * 2022-11-03 2023-07-04 深圳市越疆科技股份有限公司 Teaching track processing method, device, mechanical arm, teaching controller and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001060108A (en) * 1999-06-18 2001-03-06 Agency Of Ind Science & Technol Device and method for teaching robot action
CN104850063A (en) * 2015-04-09 2015-08-19 叶成源 Novel multi-shaft welding system
CN106737691A (en) * 2017-02-07 2017-05-31 珠海金萝卜智动科技有限公司 The method and apparatus of manual teaching robot
KR20190070386A (en) * 2017-12-12 2019-06-21 한국로봇융합연구원 Robot hand for grasping object by using visual information and tactual information and control method thereof
CN108262586A (en) * 2018-03-02 2018-07-10 广州市盘古机器人科技有限公司 6 joint Manipulator welding application technology of vision
CN113319859A (en) * 2021-05-31 2021-08-31 上海节卡机器人科技有限公司 Robot teaching method, system and device and electronic equipment
CN113927582A (en) * 2021-06-30 2022-01-14 深圳市越疆科技有限公司 Robot system, method, robot arm, and storage medium for configuring copy function
CN113696190A (en) * 2021-10-28 2021-11-26 深圳市越疆科技有限公司 Teaching track point acquisition method, device, mechanical arm, system and medium
CN116372889A (en) * 2022-11-03 2023-07-04 深圳市越疆科技股份有限公司 Teaching track processing method, device, mechanical arm, teaching controller and system

Also Published As

Publication number Publication date
CN116372889A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
WO2024094197A1 (en) Teaching trajectory processing method and apparatus, mechanical arm, teaching controller and system
CN113696190B (en) Teaching track point acquisition method, device, mechanical arm, system and medium
US6191773B1 (en) Interface apparatus
US10179407B2 (en) Dynamic multi-sensor and multi-robot interface system
AU2009248424B2 (en) Controlling robotic motion of camera
JP6361213B2 (en) Robot control apparatus, robot, robot system, teaching method, and program
US11092950B2 (en) Robot teaching device, and robot teaching method
CN101278251A (en) Interactive large scale touch surface system
CN101794171A (en) Wireless induction interactive system based on infrared light motion capture
WO2009061619A2 (en) Apparatus and method for tracking a light pointer
KR20160120841A (en) Smart cleaning system and method using a cleaning robot
JP2014197745A (en) System and program for supporting remote work
WO2023115927A1 (en) Cloud robot mapping method, system, device and storage medium
JP2006164049A5 (en)
CN102968245B (en) Mouse touches cooperative control method, device and Intelligent television interaction method, system
TWI505135B (en) Control system for display screen, control apparatus and control method
JP2018144228A (en) Robot control apparatus, robot, robot system, teaching method, and program
CN111633653A (en) Mechanical arm control system and method based on visual positioning
JP2001134357A (en) Method for operating image, method for searching image, method for defining image processing, and remote operation monitoring method and device or system
KR20120136719A (en) The method of pointing and controlling objects on screen at long range using 3d positions of eyes and hands
TW202018486A (en) Operation method for multi-monitor and electronic system using the same
US20180141212A1 (en) Method of controlling robotic arm with human-computer interaction, and terminal and system for same
WO2018042923A1 (en) Information processing system, information processing method, and program
CN105450962B (en) A kind of electronic equipment and information processing method
CN104602094A (en) Information processing method and electronic device