Real-Time Design Based on PREEMPT_RT and Timing Analysis of Collaborative Robot Control System
Yanlei Ye,Peng Li,Zihao Li,Fugui Xie,Xin-Jun Liu,Jianhui Liu
DOI: https://doi.org/10.1007/978-3-030-89098-8_56
2021-01-01
Abstract:The design of the collaborative robot control system is restricted by the following key factors: real-time system, field bus, robot frame and human-computer interaction module. Academia and industry have an urgent need for high-quality, high-stability, distributed and easy-to-operate control systems with the development of the robotics industry. Robot systems architecture based on ROS and ROS2 have attracted more and more attention due to the flexibility, openness, modularity, scalability and friendliness. The main contribution of this article is to partially construct the real-time architecture of the collaborative robot control system. In addition, the timing jitter of the system, EtherCAT master station and ROS under different frequencies and loads is analyzed. First, a Linux kernel based on PREEMPT_RT patch is constructed, the basic architecture is described, and the timing performance of the robot system is improved through the application of high-precision timers, priority assignment, scheduling mode, and energy consumption management. Furthermore, the timing jitter performance of the operating system is analyzed. The maximum jitter of the system and the EtherCAT master station is about 10 us, and the average jitter is 1 us. Finally, the timing jitter of the built-in timing callbacks in ROS and ROS2 is evaluated. The design of the real-time system and performance analysis provide critical support for the design of the robot controller.