CN103823467A - Control method of industrial robot demonstration planner with motion planning function - Google Patents
Control method of industrial robot demonstration planner with motion planning function Download PDFInfo
- Publication number
- CN103823467A CN103823467A CN201410005405.4A CN201410005405A CN103823467A CN 103823467 A CN103823467 A CN 103823467A CN 201410005405 A CN201410005405 A CN 201410005405A CN 103823467 A CN103823467 A CN 103823467A
- Authority
- CN
- China
- Prior art keywords
- teaching
- robot
- point
- equation
- locus
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Landscapes
- Numerical Control (AREA)
- Manipulator (AREA)
Abstract
Description
本专利申请是申请号为201210161778.1,申请日为2012年5月23日,发明名称为《具备运动规划功能的工业机器人示教规划器及其控制方法》的发明专利申请的分案申请。This patent application is a divisional application of the invention patent application with the application number 201210161778.1, the application date is May 23, 2012, and the invention title is "Industrial robot teaching planner with motion planning function and its control method".
技术领域technical field
本发明涉及一种示教规划器的控制方法,特别是涉及一种具备运动规划功能的工业机器人示教规划器的控制方法。The invention relates to a control method of a teaching planner, in particular to a control method of an industrial robot teaching planner with a motion planning function.
背景技术Background technique
随着计算机集成制造技术从实验室阶段向工厂实用化阶段的迈近,对工业机器人的需求越来越大,机器人自动化生产的市场也越来越大,工业机器人的广泛应用,对人机交互提出了更高的要求,作为机器人控制器重要可选件的示教盒可以提供良好的人机接口界面,具有示教编程,现场监控功能,广泛应用于工业机器人的安全示教、生产操控上。不过目前现有示教盒大部分都是由控制面板和显示屏组成,体积较大,按键较多,示教操作不方便,工作效率不高。并且在与机器人控制器之间还需要通过一台规划控制器,例如工控机,示教盒与工控机连接通信,工控机再与机器人控制器相连,不仅成本较高,而且容易收到工控机带来的电磁干扰,且通信途径繁琐,容易造成系统通信故障,造成安全隐患。因此,设计一种低成本、体积小巧、简便高效、通信可靠、并集成运动规划功能控制方法的示教盒有着重大的经济价值和应用前景。As computer integrated manufacturing technology approaches from the laboratory stage to the practical stage of factories, the demand for industrial robots is increasing, and the market for robotic automated production is also increasing. The wide application of industrial robots has a great impact on human-computer interaction. Higher requirements are put forward. As an important optional part of the robot controller, the teaching box can provide a good human-machine interface, with teaching programming and on-site monitoring functions, and is widely used in the safe teaching and production control of industrial robots. . However, at present, most of the existing teaching boxes are composed of a control panel and a display screen, which are relatively large in size and have many buttons, which makes the teaching operation inconvenient and the work efficiency is not high. Moreover, a planning controller, such as an industrial computer, is needed between the robot controller and the teaching box to communicate with the industrial computer, and then the industrial computer is connected to the robot controller. Not only is the cost high, but it is also easy to receive The electromagnetic interference brought by it, and the communication path is cumbersome, which may easily cause system communication failure and cause safety hazards. Therefore, it is of great economic value and application prospect to design a teaching box with low cost, small size, simple and efficient, reliable communication, and integrated motion planning function control method.
发明内容Contents of the invention
针对现有机器人示教盒体积较大,按键较多,且需要与工控机相连操作不便的问题,本发明的目的在于提供一种具备运动规划功能的工业机器人示教规划器的控制方法。In view of the problems that the existing robot teaching box has a large volume, many buttons, and needs to be connected with an industrial computer and is inconvenient to operate, the purpose of the present invention is to provide a control method for an industrial robot teaching planner with a motion planning function.
本发明采用的技术方案是包括以下步骤:The technical solution adopted in the present invention comprises the following steps:
S1、新建示教文件或者打开示教文件:如果新建示教文件,则进行步骤S2;如果打开示教文件,则进行步骤S10;S1. Create a teaching file or open a teaching file: if creating a teaching file, proceed to step S2; if opening a teaching file, proceed to step S10;
S2、设置机器人的系统参数和示教参数,系统参数包括机器人结构的D-H参数,示教参数包括选择运动模式和速度模式;S2, set the system parameters and teaching parameters of the robot, the system parameters include the D-H parameters of the robot structure, and the teaching parameters include selecting motion mode and speed mode;
S3、在机器人任务空间中控制机器人进行手动示教,根据机器人手动示教的位姿确认任务空间关键点和运行时间,关键点包括指定起点、终点和抓手动作;S3. Control the robot to perform manual teaching in the robot task space, and confirm the key points and running time of the task space according to the pose of the manual teaching of the robot. The key points include the specified starting point, end point and gripper action;
S4、利用VAL-Ⅲ语言的编程指令进行示教编程;S4. Use the programming instructions of VAL-Ⅲ language to perform teaching programming;
S5、进行机器人运动学逆解,把任务空间关键点转换成关节空间经过点,把三维空间轨迹转换成关节空间轨迹;S5. Carry out inverse solution of robot kinematics, convert key points in task space into passing points in joint space, and convert 3D space trajectory into joint space trajectory;
S6、在关节空间轨迹中插入轨迹中间点,轨迹中间点包括起始点、提升点、下放点和终止点;S6. Insert a trajectory intermediate point into the joint space trajectory. The trajectory intermediate point includes a starting point, a lifting point, a lowering point and an ending point;
S7、根据步骤S6得到的每个轨迹中间点规划轨迹方程,轨迹方程的规划方式为4-3-4多项式轨迹规划或3-5-3多项式轨迹规划,计算优化规划方程,得到关节空间的轨迹方程;S7. According to the trajectory equation of each trajectory intermediate point obtained in step S6, the planning method of the trajectory equation is 4-3-4 polynomial trajectory planning or 3-5-3 polynomial trajectory planning, calculate the optimal planning equation, and obtain the trajectory of the joint space equation;
S8、对步骤S7得到的轨迹方程进行定时间间隔插值计算,得到机器人控制序列点;S8. Carry out interpolation calculation at fixed time intervals to the trajectory equation obtained in step S7 to obtain robot control sequence points;
S9、如果示教工作还没有结束,则回到S2步骤,重新设置系统参数和示教参数,重新进行示教工作;如果示教工作结束,则直接执行下一步骤;S9. If the teaching work is not over, return to step S2, reset the system parameters and teaching parameters, and perform the teaching work again; if the teaching work is over, directly execute the next step;
S10、将步骤S8得到的机器人控制序列点通过RS-485串口总线发送到机器人控制器中。S10. Send the robot control sequence point obtained in step S8 to the robot controller through the RS-485 serial bus.
所述的步骤S2中的系统参数的设置采用四关节示教操作,示教参数的运动模式选择为连续,速度模式选择为中等速度。The setting of the system parameters in the step S2 adopts the four-joint teaching operation, the movement mode of the teaching parameters is selected as continuous, and the speed mode is selected as medium speed.
所述的步骤S3具体是:手动示教机器人运动经过预期的任务空间关键点,再经过需要机器人操作动作的任务空间关键点,并记录上述两种的任务空间关键点坐标,确认示教运动的运行时间。The step S3 specifically includes: manually teaching the robot to move through the expected key points in the task space, and then passing through the key points in the task space that require robot operation actions, and recording the coordinates of the above two key points in the task space to confirm the accuracy of the teaching movement. operation hours.
所述的步骤S4中的VAL-Ⅲ语言编程指令由运动指令、操作指令和辅助指令组成;运动指令包括MOVJ、MOVL、MOVC、MOVS;操作指令包括PICKUP、PUTDOWN;辅助指令包括START、END、DELAY。The VAL-Ⅲ language programming instruction in the described step S4 is made up of movement instruction, operation instruction and auxiliary instruction; Movement instruction includes MOVJ, MOVL, MOVC, MOVS; Operation instruction includes PICKUP, PUTDOWN; Auxiliary instruction includes START, END, DELAY .
所述的步骤S5具体通过机器人逆运动学把任务空间的关键点求解出4个关节中的各个关节空间的关键点,通过连续求解,可以把三维笛卡尔空间的连续轨迹转换成4个关节的关节空间连续轨迹。The step S5 specifically solves the key points of the task space through the inverse kinematics of the robot to obtain the key points of each joint space in the 4 joints, and through continuous solving, the continuous trajectory of the three-dimensional Cartesian space can be converted into the trajectories of the 4 joints. Continuous trajectory in joint space.
所述的步骤S7得到的关节空间的轨迹方程为加加速度连续轨迹方程、时间最优轨迹方程或最优平滑轨迹方程。The trajectory equation of the joint space obtained in the step S7 is a jerk continuous trajectory equation, a time optimal trajectory equation or an optimal smooth trajectory equation.
所述的步骤S8中进行定时间间隔插值的定时间间隔为20ms,每20ms对轨迹方程进行求解,得到对应时间的轨迹点,即机器人关节空间的控制序列点。The fixed time interval for the fixed time interval interpolation in the step S8 is 20 ms, and the trajectory equation is solved every 20 ms to obtain the corresponding time trajectory point, that is, the control sequence point of the robot joint space.
与背景技术相比,本发明具有的有益效果是:Compared with background technology, the beneficial effect that the present invention has is:
不仅提供高效实用的示教系统,而且还具备机器人运动轨迹规划的功能,并将轨迹规划的指令结果直接通过RS-485串口通信发送到机器人控制器。这样的控制策略可以将示教系统和运动规划系统有机地组合,节省轨迹规划工控机的使用,不仅可以减少成本,而且还减少了复杂的通信环节,降低了系统通信故障的概率,提高了数据传输的稳定性,同时避免了PC机带来的电磁干扰,提高了现场操作的安全性。It not only provides an efficient and practical teaching system, but also has the function of robot motion trajectory planning, and sends the command results of trajectory planning to the robot controller directly through RS-485 serial communication. Such a control strategy can organically combine the teaching system and the motion planning system, save the use of the trajectory planning industrial computer, not only reduce the cost, but also reduce the complex communication links, reduce the probability of system communication failure, and improve the data quality. The stability of the transmission, while avoiding the electromagnetic interference brought by the PC, improves the safety of the on-site operation.
附图说明Description of drawings
图1是本发明示教规划器的整体结构图。Fig. 1 is the overall structure diagram of the teaching planner of the present invention.
图2是本发明示教规划器控制方法的软件结构图。Fig. 2 is a software structure diagram of the teaching planner control method of the present invention.
图3是示教规划器示教流程图。Figure 3 is a teaching flow chart of the teaching planner.
图4是串口通信协议结构图。Figure 4 is a structural diagram of the serial communication protocol.
图5是轨迹方程的规划趋势图。Figure 5 is a planning trend diagram of the trajectory equation.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明作进一步详细说明,但本发明的实施方式不限于此。The present invention will be described in further detail below in conjunction with the accompanying drawings and specific examples, but the embodiments of the present invention are not limited thereto.
如图1所示,本发明包括核心处理器、程序数据存储器、USB扩展接口、RS-485串口通信接口、以太网通信接口、电源及复位电路和液晶触摸屏;核心处理器分别与程序数据存储器、USB扩展接口、RS-485串口通信接口、以太网通信接口、电源及复位电路和液晶触摸屏连接,核心处理器采用ARM9嵌入式核心处理芯片,以太网通信接口与PC机连接,RS-485串口通信接口与机器人控制器连接。As shown in Figure 1, the present invention comprises core processor, program data memory, USB extension interface, RS-485 serial port communication interface, Ethernet communication interface, power supply and reset circuit and liquid crystal touch screen; Core processor is respectively connected with program data memory, USB expansion interface, RS-485 serial communication interface, Ethernet communication interface, power supply and reset circuit are connected with LCD touch screen, the core processor adopts ARM9 embedded core processing chip, Ethernet communication interface is connected with PC, RS-485 serial communication The interface is connected with the robot controller.
所述的核心处理芯片采用嵌入式操作系统。The core processing chip adopts an embedded operating system.
本发明的示教规划器的主要部件描述如下:The main components of the teaching planner of the present invention are described as follows:
核心处理器采用SAMSUNG公司的S3C2240A微处理器,基于ARM920T内核,具有低功耗、高集成度的特点,集成了丰富的内部资源,提供了强大的外部存储控制器。The core processor adopts the S3C2240A microprocessor of SAMSUNG Company, based on the ARM920T core, has the characteristics of low power consumption and high integration, integrates rich internal resources, and provides a powerful external storage controller.
程序数据存储器主要有Nor Flash接口、Nand Flash接口和SDRAM接口电路,NorFlash和Nand Flash具有掉电保护的功能,SDRAM中存储的是执行中的程序和产生的数据,用于动态存储,SDRAM运行速度快、容量大、成本低,本实施例选用两片16位32MB(4Banks×4M×16位)的K4S561632作为系统的SDRAM,考虑到后期移植Linux系统和QT图形界面的需要,本系统选用K9F1208作为Nand Flash存储器,其容量为64M。The program data memory mainly includes Nor Flash interface, Nand Flash interface and SDRAM interface circuit. NorFlash and Nand Flash have the function of power-down protection. SDRAM stores the program in execution and the generated data for dynamic storage. The operating speed of SDRAM is Fast, large capacity, and low cost. In this embodiment, two 16-bit 32MB (4Banks×4M×16-bit) K4S561632 are selected as the SDRAM of the system. Considering the needs of later porting Linux systems and QT graphical interfaces, this system uses K9F1208 as the SDRAM. Nand Flash memory, its capacity is 64M.
USB扩展接口用于扩展移动储存设备,可实现对示教数据的保存及转移,包括示教文件的存储和读取管理,示教文件中指令字符和数据字符的提取,系统参数文件的存储和读取。The USB expansion interface is used to expand the mobile storage device, which can realize the storage and transfer of teaching data, including the storage and reading management of teaching files, the extraction of command characters and data characters in teaching files, and the storage and storage of system parameter files. read.
液晶触摸屏采用CHILIN公司的TFT LCD TOUCH Module型号,无其他控制面板按键,体积小巧,操作简便,提供很好的人机交互界面。The LCD touch screen adopts the TFT LCD TOUCH Module model of CHILIN Company, without other control panel buttons, small in size, easy to operate, and provides a good human-computer interaction interface.
以太网通信接口采用Cirrus Logic公司的16位以太网控制器CS8900A,提供10M的以太网接入带宽,以太网控制器可以与PC机连接,用于定制与移植嵌入式Linux操作系统,在其移植操作系统过程中,嵌入式系统需要从PC机下载几十兆的镜像数据,同时需要建立NFS网络文件系统,使用ztelnet登陆来传送文件等操作,通过以太网具有很高的通信效率。The Ethernet communication interface adopts the 16-bit Ethernet controller CS8900A of Cirrus Logic Company, which provides 10M Ethernet access bandwidth. The Ethernet controller can be connected with a PC for customizing and transplanting the embedded Linux operating system. During the operating system process, the embedded system needs to download dozens of megabytes of image data from the PC, and at the same time, it needs to establish an NFS network file system, use ztelnet to log in to transfer files and other operations, and has high communication efficiency through Ethernet.
RS-485串口通信接口采用S3C2440A集成的串口通信接口,与机器人控制器进行通信,发送控制指令控制器根据接收到的示教盒指令做出各个关节的控制。The RS-485 serial communication interface adopts the integrated serial communication interface of S3C2440A, communicates with the robot controller, and sends control instructions. The controller controls each joint according to the instructions received from the teaching box.
另外与核心处理器相连的还有用作调试的串口通信接口以及备用的串口通信接口,用作调试的串口通信接口用于在移植和调试Linux系统时作为调试控制台(console)。In addition, the serial communication interface used for debugging and the spare serial communication interface are also connected to the core processor. The serial communication interface used for debugging is used as a debugging console (console) when transplanting and debugging the Linux system.
本发明所述机器人示教规划器的主要功能是完成监控机器人的状态,设置系统参数,操作机器人运动,编辑机器人作业任务,规划机器人运动轨迹,并与机器人控制器完成数据及命令的通信传输。核心处理器负责整个示教规划系统的控制及处理,并通过其完善的存储接口与程序数据存储器及外扩存储器相连,通过液晶触摸屏显示接口与内置的LCD控制器相连,通过以太网通信接口与PC机相连,用于移植嵌入式操作系统,通过用于调试的串口通信接口与PC机相连,用于调试嵌入式操作系统的控制台,通过RS-485串口通信接口与机器人控制器相连,用于发送机器人控制指令。The main functions of the robot teaching planner in the present invention are to monitor the state of the robot, set system parameters, operate the robot movement, edit the robot task, plan the robot movement trajectory, and complete the communication transmission of data and commands with the robot controller. The core processor is responsible for the control and processing of the entire teaching planning system, and is connected to the program data memory and external memory through its perfect storage interface, connected to the built-in LCD controller through the LCD touch screen display interface, and connected to the built-in LCD controller through the Ethernet communication interface. Connected to PC, used to transplant embedded operating system, connected to PC through serial communication interface for debugging, console for debugging embedded operating system, connected to robot controller through RS-485 serial communication interface, used to send robot control commands.
本发明所述的具有运动规划功能的示教规划器控制方法的软件结构框图如图2:首先在PC机上建立交叉编译环境,定制并编译Linux嵌入式操作系统内核,然后移植嵌入式操作系统模块入示教规划器核心处理器中,在此基础上,示教规划器完成底层硬件驱动程序的开发,进而完成用户程序的设计与开发,用户程序包括人机交互用户界面模块、通信模块和机器人示教及运动规划模块。The software structure block diagram of the teaching planner control method with motion planning function of the present invention is as shown in Figure 2: first set up a cross-compilation environment on the PC, customize and compile the Linux embedded operating system kernel, and then transplant the embedded operating system module Into the core processor of the teaching planner, on this basis, the teaching planner completes the development of the underlying hardware driver, and then completes the design and development of the user program. The user program includes the human-computer interaction user interface module, communication module and robot Teaching and motion planning modules.
嵌入式操作系统模块,考虑示教规划器对稳定性和实时性的要求,方便实现多任务的管理及人机交互功能,在本实施例中采用嵌入式操作系统Linux,Linux操作系统支持各种主流硬件设备和最新硬件技术,有丰富的驱动程序资源,在内核层面上,Linux系统的内核高效稳定,其内核分成进程调度、内存管理、进程间通信、虚拟文件系统和网络接口五大部分,模块化的机制可以方便用户根据需要进行裁剪,适应于嵌入式系统的需要;在应用层面,它有完善的网络通信和文件管理机制,同时具有丰富的开源代码和方便的开发和调试工具。在嵌入式系统上进行图形界面开发,现成已有较成熟的图形界面库以集成开发环境,使得用户如在PC上编程一样方便直接。嵌入式Linux平台的开发步骤,一般包括下载Boot1oader、定制及编译内核、制作根文件系统以及运行用户程序四大部分:Bootloader是系统引导程序,系统复位后从Bootloader开始执行,很类似于PC机上的BIOS,Bootloader在完成系统的硬件初始化包括系统时钟设置、存储区映射、设置堆栈指针等工作后,跳到操作系统内核的入口,将控制权限移交操作系统,采用U-Boot,包含了一些常见的外设驱动,是一个功能强大的板极支持包,减少了后续底层硬件驱动的开发,可以通过JTAG工具将BootLoader烧写进Flash里;完成BootLoader的烧写后需要Linux内核的定制及编译,通过条件编译进行裁剪相应的功能和模块,使用make menuconifg指令通过图形界面配置内核模块,配置时设置正确的设备号及波特率以保证控制台终端正常使用,同时指定文件系统支持,指定网络、触摸屏、实时时钟等常见的驱动,同时自行编写新加入的硬件的底层驱动,并进行配置,最后编译生成内核映像;最后一步需要制作根文件系统,系统采用Yaffs(Yet AnotherFlash File System)文件系统;用户程序移植到嵌入式Linux系统运行,实现机器人示教操作的功能,并完成机器人运动学解算、轨迹规划和通信功能。The embedded operating system module considers the stability and real-time requirements of the teaching planner, and facilitates the management of multi-tasks and human-computer interaction functions. In this embodiment, the embedded operating system Linux is used, and the Linux operating system supports various Mainstream hardware devices and the latest hardware technology have abundant driver resources. At the kernel level, the kernel of the Linux system is efficient and stable. The kernel is divided into five parts: process scheduling, memory management, inter-process communication, virtual file system and network interface. The customized mechanism is convenient for users to tailor according to their needs, and adapts to the needs of embedded systems; at the application level, it has a complete network communication and file management mechanism, as well as rich open source codes and convenient development and debugging tools. For the development of graphical interface on embedded systems, there is a relatively mature graphical interface library ready-made to integrate the development environment, making it as convenient and direct for users as programming on a PC. The development steps of the embedded Linux platform generally include downloading Bootloader, customizing and compiling the kernel, making the root file system, and running user programs. After BIOS and Bootloader complete the hardware initialization of the system, including system clock setting, memory area mapping, and stack pointer setting, etc., they jump to the entry of the operating system kernel and hand over the control authority to the operating system. U-Boot is used, which includes some common Peripheral driver is a powerful board support package, which reduces the development of subsequent underlying hardware drivers. You can burn BootLoader into Flash through JTAG tools; after completing BootLoader programming, you need to customize and compile the Linux kernel. Conditional compilation to tailor the corresponding functions and modules, use the make menuconifg command to configure the kernel module through the graphical interface, set the correct device number and baud rate to ensure the normal use of the console terminal, and specify the file system support, specify the network, touch screen , real-time clock and other common drivers, and at the same time write and configure the underlying drivers of the newly added hardware, and finally compile and generate a kernel image; the last step needs to create a root file system, and the system uses the Yaffs (Yet AnotherFlash File System) file system; The program is transplanted to the embedded Linux system to run, realize the function of robot teaching operation, and complete the robot kinematics solution, trajectory planning and communication functions.
人机交互界面模块,采用QT软件。它是一个跨平台的图形界面应用程序,支持Windows,Linux等操作系统,QT只需一次性开发应用程序,无须重新编写源代码,便可跨不同桌面和嵌入式操作系统部署这些应用程序,这个优良的跨平台特性使得QT在嵌入式系统中的应用非常的广泛,可以在PC机上开发编译所需各种功能,通过交叉编译器一次性通过以太网移植到嵌入式操作系统里,只需一次性开发应用程序,无须重新编写源代码,便可跨不同桌面和嵌入式操作系统部署,简洁方便,而且采用了面向对象的C++语言开发,良好封装机制使得QT的模块化程度非常高,可重用性较好,同时还有丰富的API和大量的开发文档,对用户非常方便。The human-computer interaction interface module adopts QT software. It is a cross-platform graphical interface application program that supports Windows, Linux and other operating systems. QT only needs to develop the application program once, without rewriting the source code, and can deploy these applications across different desktop and embedded operating systems. The excellent cross-platform features make QT widely used in embedded systems, and various functions required for compilation can be developed on the PC, and transplanted to the embedded operating system through the Ethernet at one time through the cross-compiler. It can be deployed across different desktop and embedded operating systems without rewriting the source code. It is simple and convenient, and it is developed with object-oriented C++ language. The good packaging mechanism makes QT highly modular and reusable. It is more flexible, and also has rich API and a large number of development documents, which is very convenient for users.
通信接口模块,采用RS-485串口通信接口与底层的机器人控制器连接,控制器根据接收到的示教盒指令做出各个关节的控制,负责接收示教指令和任务文件,发送机器人状态信息,让机器人执行程序要求的轨迹运动,实现程序回放,由于示教盒与主控制器的通信较为频繁,为了保证通信的稳定性和数据的准确性,必须建立通信协议,通信协议考虑了数据功能类型的划分和数据格式类型的定义,通信协议结构如下图4所示,包括功能码2个字节,文件开头标志2个字节,文件语句编号2个字节,文件数据体32个字节,文件结束标志2个字节。The communication interface module uses the RS-485 serial communication interface to connect with the underlying robot controller. The controller controls each joint according to the instructions received from the teaching box, is responsible for receiving teaching instructions and task files, and sending robot status information. Let the robot execute the trajectory movement required by the program to achieve program playback. Since the communication between the teaching box and the main controller is relatively frequent, in order to ensure the stability of communication and the accuracy of data, a communication protocol must be established. The communication protocol considers the data function type The division of data and the definition of data format type, the communication protocol structure is shown in Figure 4 below, including 2 bytes of function code, 2 bytes of file beginning mark, 2 bytes of file statement number, 32 bytes of file data body, The end-of-file flag is 2 bytes.
机器人示教及运动规划模块,主要完成以下功能:1、机器人点动运动,包括四个关节的单独运动和XYZ三个方向的运动,并可以通过设定速度系数改变运动速度;2、机器人示教,包括示教操作,新建、保存、编辑、删除示教文件、执行示教指令、回零、急停等。其中示教语言采用简化的VAL-Ⅲ语言,常见的指令包括:运动指令,如MOVJ、MOVL、MOVC、MOVS、操作指令:PICKUP、PUTDOWN、辅助指令:START、END、DELAY等,具体的格式及指令解释可以参考表1,采用四关节示教操作;3、机器人运动指令及状态显示:包括机器人当前各关节期望和实际的运动量及机器人三维空间的期望和实际运动量,4、功能键及数字键。5、机器人规划方式:为4-3-4多项式轨迹规划或3-5-3多项式轨迹规划。The robot teaching and motion planning module mainly completes the following functions: 1. Robot jogging motion, including individual motion of four joints and motion in XYZ three directions, and the motion speed can be changed by setting the speed coefficient; 2. Robot display Teaching, including teaching operations, creating, saving, editing, deleting teaching files, executing teaching instructions, returning to zero, emergency stop, etc. Among them, the teaching language adopts the simplified VAL-Ⅲ language. Common instructions include: movement instructions, such as MOVJ, MOVL, MOVC, MOVS, operation instructions: PICKUP, PUTDOWN, auxiliary instructions: START, END, DELAY, etc., the specific format and Command explanation can refer to Table 1, using four-joint teaching operation; 3. Robot motion command and status display: including the expected and actual movement of each joint of the robot and the expected and actual movement of the robot's three-dimensional space; 4. Function keys and number keys . 5. Robot planning method: 4-3-4 polynomial trajectory planning or 3-5-3 polynomial trajectory planning.
如图3,本发明的方法步骤如下实施例:As shown in Fig. 3, the method steps of the present invention are as follows embodiment:
S1、新建示教文件或者打开示教文件:如果新建示教文件,则进行步骤S2;如果打开示教文件,则进行步骤S10;S1. Create a teaching file or open a teaching file: if creating a teaching file, proceed to step S2; if opening a teaching file, proceed to step S10;
S2、设置机器人的系统参数和示教参数,系统参数包括机器人结构的D-H参数,示教参数包括选择运动模式和速度模式;S2, set the system parameters and teaching parameters of the robot, the system parameters include the D-H parameters of the robot structure, and the teaching parameters include selecting motion mode and speed mode;
系统参数的设置采用四关节示教操作,机器人的D-H系统参数如表1所示;示教参数运动模式选择为连续,速度模式选择为中等速度。The setting of the system parameters adopts the four-joint teaching operation, and the D-H system parameters of the robot are shown in Table 1; the teaching parameter motion mode is selected as continuous, and the speed mode is selected as medium speed.
表1Table 1
S3、在机器人任务空间中控制机器人进行手动示教,根据机器人手动示教的位姿确认任务空间关键点和运行时间,关键点包括指定起点、终点和抓手动作;S3. Control the robot to perform manual teaching in the robot task space, and confirm the key points and running time of the task space according to the pose of the manual teaching of the robot. The key points include the specified starting point, end point and gripper action;
根据实际工作要求,手动示教机器人运动经过预期的任务空间关键点,比如绕过某些障碍点,再经过需要机器人操作动作的任务空间关键点,并记录上述两种的任务空间关键点坐标,确认示教运动的运行时间;According to the actual work requirements, manually teach the robot to move through the expected key points in the task space, such as bypassing some obstacle points, and then pass through the key points in the task space that require robot operation actions, and record the coordinates of the above two key points in the task space, Confirm the running time of the teaching movement;
S4、利用VAL-Ⅲ语言的编程指令进行示教编程;S4. Use the programming instructions of VAL-Ⅲ language to perform teaching programming;
VAL-Ⅲ语言中编程指令由运动指令、操作指令和辅助指令组成;运动指令包括MOVJ、MOVL、MOVC、MOVS;操作指令包括PICKUP、PUTDOWN;辅助指令包括START、END、DELAY。编程指令的具体的格式及指令解释见表2;Programming instructions in VAL-Ⅲ language are composed of movement instructions, operation instructions and auxiliary instructions; movement instructions include MOVJ, MOVL, MOVC, MOVS; operation instructions include PICKUP, PUTDOWN; auxiliary instructions include START, END, DELAY. The specific format and instruction explanation of programming instructions are shown in Table 2;
表2Table 2
S5、进行机器人运动学逆解,把任务空间关键点转换成关节空间经过点,把三维空间轨迹转换成关节空间轨迹;S5. Carry out inverse solution of robot kinematics, convert key points in task space into passing points in joint space, and convert 3D space trajectory into joint space trajectory;
通过机器人逆运动学把任务空间的关键点求解出4个关节中的各个关节空间的关键点,通过连续求解,可以把三维笛卡尔空间的连续轨迹转换成4个关节的关节空间连续轨迹;Through inverse kinematics of the robot, the key points of the task space are solved to obtain the key points of each joint space among the four joints. Through continuous solution, the continuous trajectory of the three-dimensional Cartesian space can be converted into the continuous trajectory of the joint space of the four joints;
S6、在关节空间轨迹中插入轨迹中间点,轨迹中间点包括起始点、提升点、下放点和终止点;S6. Insert a trajectory intermediate point into the joint space trajectory. The trajectory intermediate point includes a starting point, a lifting point, a lowering point and an ending point;
设置轨迹中间点包括起始点、提升点、下放点和终止点,来使得整个关节空间轨迹平滑连续,在轨迹运动过程中不会出现大的突变和冲击,保证了机器人运动的平稳性;Set the middle point of the trajectory including the starting point, lifting point, lowering point and end point to make the trajectory of the entire joint space smooth and continuous, and there will be no large mutations and impacts during the trajectory movement, ensuring the stability of the robot's motion;
S7、根据步骤S6得到的每个轨迹中间点规划轨迹方程;S7, according to step S6 obtains each track intermediate point planning track equation;
根据运动学及动力学约束条件,选用4-3-4多项式轨迹规划或3-5-3多项式轨迹规划规划方式来进行轨迹规划,计算优化规划方程,得到关节空间的轨迹方程,轨迹方程为加加速度连续轨迹方程、时间最优轨迹方程或最优平滑轨迹方程;According to kinematics and dynamics constraints, choose 4-3-4 polynomial trajectory planning or 3-5-3 polynomial trajectory planning planning method to carry out trajectory planning, calculate the optimal planning equation, and obtain the trajectory equation of the joint space, the trajectory equation is added Acceleration continuous trajectory equation, time optimal trajectory equation or optimal smooth trajectory equation;
S8、对步骤S7得到的轨迹方程进行定时间间隔插值计算,得到机器人控制序列点;S8. Carry out interpolation calculation at fixed time intervals to the trajectory equation obtained in step S7 to obtain robot control sequence points;
进行定时间间隔插值的定时间间隔为20ms,每20ms对轨迹方程进行求解,得到对应时间的轨迹点,即机器人关节空间的控制序列点。The fixed time interval for fixed time interval interpolation is 20ms, and the trajectory equation is solved every 20ms to obtain the trajectory points corresponding to the time, that is, the control sequence points of the robot joint space.
S9、如果示教工作没有结束,则回到S2步骤;如果示教工作结束,则执行下一步骤;S9. If the teaching work is not over, return to step S2; if the teaching work is over, perform the next step;
如果示教工作还没有结束,则回到S2步骤,重新设置系统参数和示教参数,重新进行示教工作;如果示教工作结束,则直接执行下一步骤。If the teaching work is not finished, go back to step S2, reset the system parameters and teaching parameters, and perform the teaching work again; if the teaching work is finished, directly execute the next step.
S10、将步骤S8得到的机器人控制序列点通过RS-485串口总线发送到机器人控制器中。S10. Send the robot control sequence points obtained in step S8 to the robot controller through the RS-485 serial bus.
采用RS-485串口通信接口与底层的机器人控制器连接,控制器根据接收到的示教盒指令做出各个关节的控制,负责接收示教指令和任务文件,发送机器人状态信息,让机器人执行程序要求的轨迹运动,实现程序回放,由于示教盒与主控制器的通信较为频繁,为了保证通信的稳定性和数据的准确性,必须建立通信协议,通信协议考虑了数据功能类型的划分和数据格式类型的定义,通信协议结构如下图4所示,包括功能码2个字节,文件开头标志2个字节,文件语句编号2个字节,文件数据体32个字节,文件结束标志2个字节。The RS-485 serial port communication interface is used to connect with the bottom robot controller. The controller controls each joint according to the instructions received from the teaching box, and is responsible for receiving teaching instructions and task files, sending robot status information, and letting the robot execute the program. The required trajectory movement realizes program playback. Since the communication between the teaching box and the main controller is relatively frequent, in order to ensure the stability of communication and the accuracy of data, a communication protocol must be established. The communication protocol considers the division of data function types and data The definition of the format type, the structure of the communication protocol is shown in Figure 4 below, including 2 bytes of function code, 2 bytes of file beginning mark, 2 bytes of file statement number, 32 bytes of file data body, and 2 bytes of file end mark bytes.
如图5,轨迹方程的规划方式选择为4-3-4多项式轨迹规划时,将机器人的运动分为起始点、提升点和下放点和终止点来完成运动轨迹规划,规划轨迹方程的趋势可参考图5。起始点要求速度、加速度均为0,提升点和下放点要求运动连续,终止点同样要求速度加速度为0。第一段从起始点到提升点采用四次多项式表示,中间段从提升点到下放点的轨迹采用三次多项式表示,最后一段从下放点到终点采用四次多项式,每一段的连接点保证速度及加速度连续。As shown in Figure 5, when the planning method of the trajectory equation is selected as 4-3-4 polynomial trajectory planning, the motion of the robot is divided into the starting point, lifting point, lowering point and end point to complete the trajectory planning. The trend of the planning trajectory equation can be Refer to Figure 5. The starting point requires both speed and acceleration to be 0, the lifting point and lowering point require continuous movement, and the ending point also requires the speed and acceleration to be 0. The first section is expressed by a quartic polynomial from the starting point to the lifting point, the trajectory of the middle section from the lifting point to the lowering point is expressed by a cubic polynomial, and the last section is expressed by a quartic polynomial from the lowering point to the end point. The connection points of each section guarantee speed and Acceleration is continuous.
如图5,轨迹方程的规划方式选择为3-5-3多项式轨迹规划时,将机器人的运动分为起始点、提升点和下放点和终止点来完成运动轨迹规划,规划轨迹方程的趋势可参考图5。起始点要求速度、加速度均为0,提升点和下放点要求运动连续,终止点同样要求速度加速度为0。第一段从起始点到提升点采用三次多项式表示,中间段从提升点到下放点的轨迹采用五次多项式表示,最后一段从下放点到终点采用三次多项式,每一段的连接点保证速度及加速度连续。As shown in Figure 5, when the planning method of the trajectory equation is selected as 3-5-3 polynomial trajectory planning, the motion of the robot is divided into the starting point, the lifting point, the lowering point and the end point to complete the motion trajectory planning. The trend of the planning trajectory equation can be Refer to Figure 5. The starting point requires both speed and acceleration to be 0, the lifting point and lowering point require continuous movement, and the ending point also requires the speed and acceleration to be 0. The first section is expressed by a cubic polynomial from the starting point to the lifting point, the trajectory of the middle section from the lifting point to the lowering point is expressed by a fifth-degree polynomial, and the last section is expressed by a cubic polynomial from the lowering point to the end point. The connection points of each section guarantee the speed and acceleration continuous.
上述实施例只是本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他任何在本技术方案范围内未背离本发明实质原理下所做的改变、替代和组合都包含在本发明的保护范围之内。The above-mentioned embodiment is only the preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, substitutions and combinations that do not deviate from the essential principle of the present invention within the scope of the technical solution All are included in the scope of protection of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410005405.4A CN103823467A (en) | 2012-05-23 | 2012-05-23 | Control method of industrial robot demonstration planner with motion planning function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410005405.4A CN103823467A (en) | 2012-05-23 | 2012-05-23 | Control method of industrial robot demonstration planner with motion planning function |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101617781A Division CN102681465A (en) | 2012-05-23 | 2012-05-23 | Industrial robot demonstration planner with motion planning function and control method for industrial robot demonstration planner |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103823467A true CN103823467A (en) | 2014-05-28 |
Family
ID=50758579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410005405.4A Pending CN103823467A (en) | 2012-05-23 | 2012-05-23 | Control method of industrial robot demonstration planner with motion planning function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103823467A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106406317A (en) * | 2016-10-31 | 2017-02-15 | 上海新时达电气股份有限公司 | Three-dimensional translation mechanism control method and device |
CN106476014A (en) * | 2015-08-27 | 2017-03-08 | 发那科株式会社 | Robot system by multiple teaching apparatus operation robots |
CN107065682A (en) * | 2017-05-17 | 2017-08-18 | 西安交通大学 | A kind of robot controller opens the implementation method of bottom position instruction interface |
CN107220099A (en) * | 2017-06-20 | 2017-09-29 | 华中科技大学 | A kind of robot visualization virtual teaching system and method based on threedimensional model |
CN107450480A (en) * | 2017-08-06 | 2017-12-08 | 北京镁伽机器人科技有限公司 | Control device, control method, medium and the system of moving component |
CN109605378A (en) * | 2019-01-21 | 2019-04-12 | 北京镁伽机器人科技有限公司 | Processing method, device and system and the storage medium of kinematic parameter |
CN109648557A (en) * | 2018-12-21 | 2019-04-19 | 上海信耀电子有限公司 | A kind of six-joint robot spatial movement planing method |
CN110209048A (en) * | 2019-05-20 | 2019-09-06 | 华南理工大学 | Robot time optimal trajectory planning method, equipment based on kinetic model |
CN110914024A (en) * | 2017-07-05 | 2020-03-24 | 欧姆龙株式会社 | Path output method, path output system, and path output program |
WO2020151406A1 (en) * | 2019-01-21 | 2020-07-30 | 北京镁伽机器人科技有限公司 | Motion control method, apparatus and system, and storage medium |
CN111767033A (en) * | 2020-05-21 | 2020-10-13 | 江苏中科重德智能科技有限公司 | Programming system for mechanical arm program development and function extension method |
CN111844128A (en) * | 2019-04-25 | 2020-10-30 | 株式会社日立制作所 | Track planning device and track planning method |
CN113093716A (en) * | 2019-12-19 | 2021-07-09 | 广州极飞科技股份有限公司 | Motion trail planning method, device, equipment and storage medium |
CN113492414A (en) * | 2021-06-29 | 2021-10-12 | 江苏集萃华科智能装备科技有限公司 | Web-based robot cross-platform man-machine interaction system and implementation method |
CN113795795A (en) * | 2019-06-26 | 2021-12-14 | 深圳市晟视科技有限公司 | Method and system for realizing intelligent camera to control mobile platform |
CN114131613A (en) * | 2021-12-21 | 2022-03-04 | 伯朗特机器人股份有限公司 | Inching operation control method based on S curve |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110172818A1 (en) * | 2010-01-12 | 2011-07-14 | Honda Motor Co., Ltd. | Trajectory planning method, trajectory planning system and robot |
CN102324206A (en) * | 2011-05-20 | 2012-01-18 | 广州数控设备有限公司 | Robot teaching box with bus communication function and control method thereof |
-
2012
- 2012-05-23 CN CN201410005405.4A patent/CN103823467A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110172818A1 (en) * | 2010-01-12 | 2011-07-14 | Honda Motor Co., Ltd. | Trajectory planning method, trajectory planning system and robot |
CN102324206A (en) * | 2011-05-20 | 2012-01-18 | 广州数控设备有限公司 | Robot teaching box with bus communication function and control method thereof |
Non-Patent Citations (1)
Title |
---|
郑东鑫: "《SCARA机械手系统设计与规划控制研究》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106476014B (en) * | 2015-08-27 | 2018-07-10 | 发那科株式会社 | Pass through the robot system of multiple teaching apparatus operation robots |
CN106476014A (en) * | 2015-08-27 | 2017-03-08 | 发那科株式会社 | Robot system by multiple teaching apparatus operation robots |
CN106406317A (en) * | 2016-10-31 | 2017-02-15 | 上海新时达电气股份有限公司 | Three-dimensional translation mechanism control method and device |
CN107065682A (en) * | 2017-05-17 | 2017-08-18 | 西安交通大学 | A kind of robot controller opens the implementation method of bottom position instruction interface |
CN107220099A (en) * | 2017-06-20 | 2017-09-29 | 华中科技大学 | A kind of robot visualization virtual teaching system and method based on threedimensional model |
CN110914024A (en) * | 2017-07-05 | 2020-03-24 | 欧姆龙株式会社 | Path output method, path output system, and path output program |
CN107450480B (en) * | 2017-08-06 | 2019-08-16 | 苏州镁伽智能制造科技有限公司 | Control device, control method, medium and the system of moving component |
CN107450480A (en) * | 2017-08-06 | 2017-12-08 | 北京镁伽机器人科技有限公司 | Control device, control method, medium and the system of moving component |
CN109648557A (en) * | 2018-12-21 | 2019-04-19 | 上海信耀电子有限公司 | A kind of six-joint robot spatial movement planing method |
WO2020151406A1 (en) * | 2019-01-21 | 2020-07-30 | 北京镁伽机器人科技有限公司 | Motion control method, apparatus and system, and storage medium |
US11975452B2 (en) | 2019-01-21 | 2024-05-07 | Megarobo Technologies Co., Ltd. | Motion control method, device and system, and storage medium |
CN109605378A (en) * | 2019-01-21 | 2019-04-12 | 北京镁伽机器人科技有限公司 | Processing method, device and system and the storage medium of kinematic parameter |
CN111844128A (en) * | 2019-04-25 | 2020-10-30 | 株式会社日立制作所 | Track planning device and track planning method |
CN110209048A (en) * | 2019-05-20 | 2019-09-06 | 华南理工大学 | Robot time optimal trajectory planning method, equipment based on kinetic model |
CN113795795A (en) * | 2019-06-26 | 2021-12-14 | 深圳市晟视科技有限公司 | Method and system for realizing intelligent camera to control mobile platform |
CN113093716A (en) * | 2019-12-19 | 2021-07-09 | 广州极飞科技股份有限公司 | Motion trail planning method, device, equipment and storage medium |
CN113093716B (en) * | 2019-12-19 | 2024-04-30 | 广州极飞科技股份有限公司 | Motion trail planning method, device, equipment and storage medium |
CN111767033B (en) * | 2020-05-21 | 2023-08-25 | 江苏中科重德智能科技有限公司 | Programming system and function expansion method for mechanical arm program development |
CN111767033A (en) * | 2020-05-21 | 2020-10-13 | 江苏中科重德智能科技有限公司 | Programming system for mechanical arm program development and function extension method |
CN113492414A (en) * | 2021-06-29 | 2021-10-12 | 江苏集萃华科智能装备科技有限公司 | Web-based robot cross-platform man-machine interaction system and implementation method |
CN114131613A (en) * | 2021-12-21 | 2022-03-04 | 伯朗特机器人股份有限公司 | Inching operation control method based on S curve |
CN114131613B (en) * | 2021-12-21 | 2023-05-26 | 伯朗特机器人股份有限公司 | Inching operation control method based on S curve |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103823467A (en) | Control method of industrial robot demonstration planner with motion planning function | |
CN102681465A (en) | Industrial robot demonstration planner with motion planning function and control method for industrial robot demonstration planner | |
CN105467858B (en) | A kind of graphical Integrated Development Environment of robot control program | |
CN104786221B (en) | A kind of open method for controlling robot based on Ethernet | |
CN107932504B (en) | Robotic arm operation control system based on PyQt | |
CN101592951B (en) | General Control System of Distributed Humanoid Robot | |
CN110271009B (en) | The method of manipulator teaching function based on PLC imitation robot instruction | |
CN201689302U (en) | Integrated intelligent servo driver | |
CN105807628B (en) | Robot flexibility controller and its implementation for complicated CPS | |
CN105278940A (en) | Robotic hybrid system application frame based on multi-core processor architecture | |
CN110524543A (en) | A kind of industrial robot control device and system based on manipulation one | |
CN116822135A (en) | Real-time simulation platform system and simulation system construction method | |
CN109960516A (en) | A clustered IoT application development system and method thereof | |
CN106933212A (en) | A kind of restructural industrial robot programmable control method under distributed manufacturing environment | |
CN104317236A (en) | Soft PLC technology-based wireless sensor network control terminal | |
CN104700705A (en) | Industrial robot teaching system | |
CN103576614A (en) | Multi-axis motion control system | |
CN102662349A (en) | Cross-platform numerical control system | |
CN101206468A (en) | A Modeling Method in the Field of Computer Numerical Control | |
CN102109835A (en) | Motion control system based on PLC (programmable logic controller) | |
CN102681861B (en) | Method and device for installing software | |
CN201945835U (en) | Embedded control system used for carton proofing machine | |
CN107340995A (en) | A kind of traction control applied software development system | |
CN102902207B (en) | Method, device and system for integrated turntable control based on Matlab/VC | |
CN201237713Y (en) | Built-in type integrated industrial control computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140528 |
|
WD01 | Invention patent application deemed withdrawn after publication |