289 | 0 | 18 |
下载次数 | 被引频次 | 阅读次数 |
[目的]针对红花采摘机器人在复杂农田环境中面临的实时感知与控制挑战,特别是多源异构传感器数据处理和对环境变化的快速响应问题,设计一种基于ROS和Qt的多线程并行控制系统。[方法]数据处理引入生产者-消费者模型,实现多源异构传感器数据的实时并行处理,提高系统数据处理效率和鲁棒性,并在新疆吉木萨尔县红旗农场红花田现场试验。[结果]多线程架构在复杂场景中显著优化资源利用率,减少端到端延迟约19.3%~25%。通过任务分解与并行处理,多线程配置在高负载条件下将CPU使用率从单线程的90%降低至75%~80%,并显著平滑内存曲线,提升系统稳定性。[结论]该项目与新疆35家农户、合作社签订技术服务合作协议,对推动红花采摘机械化发展具有重要的理论和实践意义。
Abstract:[Objective]The paper addresses the challenges of real-time perception and control faced by safflower harvesting robots in complex farmland environments, particularly focusing on multi-source heterogeneous sensor data processing and rapid response to environmental changes. [Methods]A multithreaded parallel control system based on ROS and Qt is designed to tackle these issues.The data processing utilizes a producer-consumer model to achieve real-time parallel processing of multi-source heterogeneous sensor data, enhancing the efficiency and robustness of the system. Field experiments were conducted in a safflower field at Hongqi Farm,Jimusar County, Xinjiang. [Results]The results showed that the multithreaded architecture significantly optimized resource utilization and reduced end-to-end latency by approximately 19.3% to 25% in complex scenarios. By task decomposition and parallel processing, the multithreaded configuration reduced CPU usage from 90%(in single-threaded mode) to 75%–80% under high load conditions and significantly smoothed the memory usage curve, improving system stability. The project has signed technical service cooperation agreements with 35 farmers and cooperatives in Xinjiang. [Conclusion]The research findings have significant theoretical and practical value for promoting the mechanization of safflower harvesting.
[1]郭胜君.智能机器人在农业领域的应用与发展[J].河北农机,2024(10):42-44.GUO S J.Application and development of intelligent robots in agriculture[J].Hebei Agricultural Machinery,2024(10):42-44.
[2]杨会锋.新疆红花丝机械化采收研究现状[J].新疆农机化,2020(5):34-37.YANG H F.Research status of mechanized harvesting of Xinjiang safflower silk[J].Xinjiang Agricultural Mechanization,2020(5):34-37.
[3]张淑倩,王玥,吕文豪,等.西红花主要活性成分的抗炎机制研究进展[J].杭州师范大学学报(自然科学版),2024,23(5):504-511.ZHANG S Q,WANG Y,LüW H,et al.Research progress on anti inflammatory mechanism of main active components of crocus sativus[J].Journal of Hangzhou Normal University(Natural Science Edition),2024,23(5):504-511.
[4]路昊,郭辉,高国民,等.红花采摘机器人移动平台设计与分析[J].中国农机化学报,2024,45(6):242-249.LU H,GUO H,GAO G M,et al.Design and analysis of safflower picking robot mobile platform[J].Journal of China Agricultural and Machanization,2024,45(6):242-249.
[5] RAEISI N,BEHESHTI B,SHARIFNASAB H.Design,construction and evaluation of a picking safflower harvesting machine[J].Agricultural Mechanization and Systems Research,2020,21(74):237-250.
[6] SAFARI M,SHARIFNASAB H.Semi-mechanized harvesting of the safflower petals in comparison with conventional method[J].Journal of Agricultural Machinery,2021,11(2):465-475.
[7]曹卫彬,孙胃岭,牛驰,等.基于ANSYS/LS-DYNA的梳夹式红花采摘装置研究[J].农业机械学报,2018,49(11):123-131.CAO W B,SUN W L,NIU C,et al.Research on comb clip safflower picking device based on ANSYS/LS-DYNA[J].Transactions of the Chinese Society for Agricultural Machinery,2018,49(11):123-131.
[8]张振国,吕全贵,任杰宇,等.旋转剪切式红花花丝采摘机械关件部件设计[J].中国农机化学报,2019,40(7):1-6.ZHANG Z,LüQ,REN J.Design of critical components for safflower harvesting machinery by rotary shear[J].Journal of Chinese Agricultural Mechanization,2019,40(7):1-6.
[9] CHEN B,MA B,LIU X,et al.Research on the detection of safflower filaments in natural scenarios based on deep learning algorithms[C]//International Conference on Automation and Intelligent Technology(ICAIT 2024).SPIE,2024,13401:39-46.
[10] ZHANG H,GE Y,SUN C,et al.Picking path planning method of dual rollers type safflower picking robot based on improved ant colony algorithm[J].Processes,2022,10(6):1213.
[11] GUO H,QIU Z,GAO G,et al.Safflower picking trajectory planning strategy based on an ant colony genetic fusion algorithm[J].Agriculture,2024,14(4):622.
[12]罗丹,郭辉,高国民,等.剪切式红花采摘装置的设计与试验[J].农机化研究,2023,45(10):166-170,176.LUO D,GUO H,GAO G M,et al.Design and experiment of shearing safflower picking device[J].Journal of Agricultural Mechanization Research,2023,45(10):166-170,176.
[13]郭辉,陈海洋,高国民,等.基于YOLO v5m的红花花冠目标检测与空间定位方法[J].农业机械学报,2023,54(7):272-281.GUO H,CHEN H Y,GAO G M,et al.Safflower corolla target detection and spatial positioning method based on Yolo v5m[J].Transactions of the Chinese Society for Agricultural Machinery,2023,54(7):272-281.
[14]张淮声,余莉,陈翔翔.基于样板的GPU线程快速构造方法[J].集成电路应用,2024,41(5):18-21.ZHANG H S,YU L,CHEN X X.A template based method for rapid construction of GPU threads[J].Applications of IC,2024,41(5):18-21.
[15]李海芸,曹亚磊,董楸煌,等.农业机器人试验平台构建与探索[J].中国农机化学报,2019,40(1):210-214.LI H Y,CAO Y L,DONG L H,et al.Construction and exploration of agricultural robot experimental platform[J].Journal of Chinese Agricultural Mechanization,2019,40(1):210-214.
[16]赵春江,范贝贝,李瑾,等.农业机器人技术进展、挑战与趋势[J].智慧农业(中英文),2023,5(4):1-15.ZHAO C J,FAN B B,LI J,et al.Progress,challenges and trends of agricultural robot technology[J].Smart Agriculture,2023,5(4):1-15.
[17] BECHAR A,VIGNEAULT C.Agricultural robots for field operations.Part2:Operations and systems[J].Biosystems Engineering,2017,153:110-128.
[18] POST M A,BIANCO A,YAN X T,et al.Autonomous navigation with ROS for a mobile robot in agricultural fields[C]//14th International Conference on Informatics in Control,Automation and Robotics(ICINCO),2017:256-261.
[19] TSOLAKIS N,BECHTSIS D,BOCHTIS D.Agros:A robot operating system based emulation tool for agricultural robotics[J].Agronomy,2019,9(7):403.
[20] VELAMALA S S,PATIL D,MING X.Development of ROS-based GUI for control of an autonomous surface vehicle[C]//2017IEEE International Conference on Robotics and Biomimetics(ROBIO).IEEE,2017:628-633.
[21]何威,王建春,曾奕雄,等.QT、ROS下实现导航与自动避障功能小车[J].机械工程师,2020(4):92-94.HE W,WANG J C,ZENG Y X,et al.Vehicle with navigation and automatic obstacle avoidance function under QT and ROS[J].Mechanical Engineer,2020(4):92-94.
[22]郑忠楷,蒋学程,罗志灶.基于QT的串口通信程序设计[J].电子技术与软件工程,2019(24):236-238.ZHENG Z K,JIANG X C,LUO Z Z.Serial communication program design based on QT[J].Electronic Technology&Software Engineering,2019(24):236-238.
[23] MARTIN J,CASQUERO O,FORTES B,et al.A generic multi-layer architecture based on ROS-JADE integration for autonomoustransport vehicles[J].Sensors,2018,19(1):69.
[24] SHEN G,LI H,WANG S.Design of multi-robot interaction interface based on pyqt[C]//2022 First International Conference on Cyber-Energy Systems and Intelligent Energy(ICCSIE).IEEE,2023:1-5.
[25]薛秀云,洪添胜,宋淑然,等.基于无线通信技术的程序编程器[J].沈阳农业大学学报,2013,44(3):315-320.XUE X Y,HONG T S,SONG S R,et al.A programmer based on wireless communication technology[J].Journal of Shenyang Agricultural University,2013,44(3):315-320.
[26]廖春蓝.基于激光雷达的ROS服务机器人自动避障系统设计与实现[J].信息化研究,2023,49(3):63-66.LIAO C L.Design and implementation of automatic obstacle avoidance system for ROS service robot based on LiDAR[J].Informatization Research,2023,49(3):63-66.
[27]üNAL?,KABA??,ECEO?LU O,et al.Adaptive multi-robot communication system and collision avoidance algorithm for precision agriculture[J].Applied Sciences,2023,13(15):8602.
[28] KRASOWSKI P,SMO?ka J.Performance testing of STL and Qt library elements in multi-threaded processing[J].Journal of Computer Sciences Institute,2020,16:247-251.
[29]周谦,江燕,董宜丰.多通道接收设备数据并行处理方法[J].计算机与网络,2021,47(16):36-37.ZHOU Q,JIANG Y,DONG Y F.Data parallel processing method for multichannel receiving equipment[J].Computer and Network,2021,47(16):36-37.
[30] WEI P,CAGLE L,REZA T,et al.LiDAR and camera detection fusion in a real-time industrial multi-sensor collision avoidance system[J].Electronics,2018,7(6):84.
[31] WANG L,WANG C.Producer-consumer model based thread pool design[C]//Journal of Physics:Conference Series.IOP Publishing,2020,1616(1):012073.
[32] SHAHIAN J B,TULABANDHULA T,CETIN S.Real-time hybrid multi-sensor fusion framework for perception in autonomous vehicles[J].Sensors,2019,19(20):4357.
[33] LIN C C,LIU W Y,CHEN Y H.Considering stockers in reentrant hybrid flow shop scheduling with limited buffer capacity[J].Computers&Industrial Engineering,2020,139:106154.
[34] WANG Y,LI K,CHEN H,et al.Energy-aware data allocation and task scheduling on heterogeneous multiprocessor systems with time constraints[J].IEEE Transactions on Emerging Topics in Computing,2014,2(2):134-148.
[35] MOYAL P,PERRY O.Stability of parallel server systems[J].Operations Research,2022,70(4):2456-2476.
基本信息:
DOI:
中图分类号:TP242;S225
引用信息:
[1]郭辉,王翔,武天伦等.基于ROS-QT的红花采摘机器人多线程传感器数据预处理系统[J].沈阳农业大学学报,2025,56(01):117-127.
基金信息:
新疆维吾尔自治区自然科学基金项目(2022D01A117)