CN113218384B - Indoor AGV self-adaptive positioning method based on laser SLAM - Google Patents
Indoor AGV self-adaptive positioning method based on laser SLAM Download PDFInfo
- Publication number
- CN113218384B CN113218384B CN202110545126.7A CN202110545126A CN113218384B CN 113218384 B CN113218384 B CN 113218384B CN 202110545126 A CN202110545126 A CN 202110545126A CN 113218384 B CN113218384 B CN 113218384B
- Authority
- CN
- China
- Prior art keywords
- agv
- upper computer
- value
- environment
- laser radar
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/005—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/86—Combinations of lidar systems with systems other than lidar, radar or sonar, e.g. with direction finders
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Electromagnetism (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
Description
技术领域technical field
本发明涉及机器人定位技术领域,具体涉及了2D激光雷达、里程计和惯性测量单元多传感器融合的自适应切换的激光SLAM定位方法。The invention relates to the technical field of robot positioning, in particular to an adaptive switching laser SLAM positioning method of multi-sensor fusion of 2D laser radar, odometer and inertial measurement unit.
背景技术Background technique
随着社会的飞速发展,近年来网络购物的人越来越多,使得物流行业朝着更加智能化和高效化的方向发展。自动导引车(Automated Guided Vehicle,AGV)是一种在工作环境中沿指定路径自动行进的车辆,通常用于工业生产或仓库货物的运输。它是目前物流行业应用最为广泛的机器人之一。AGV在现代工业生产中发挥着越来越重要的作用,并得到了广泛的应用。With the rapid development of society, more and more people are shopping online in recent years, which makes the logistics industry develop towards a more intelligent and efficient direction. An Automated Guided Vehicle (AGV) is a vehicle that automatically travels along a designated path in a work environment, usually used for the transportation of goods in industrial production or warehouses. It is one of the most widely used robots in the logistics industry. AGVs play an increasingly important role in modern industrial production and have been widely used.
AGV作为一种具有自主定位与导航功能的小车,是一个集环境感知、路径规划、智能决策与控制等功能于一体的复杂系统。在对自主移动机器人的各项相关技术研究中,定位技术是自主导航中关键的技术之一,其定位精度直接影响AGV后续建图和导航任务的执行。因此,如何保证AGV能够快速准确地进行定位是个技术难点,一直以来备受研究人员关注。As a car with autonomous positioning and navigation functions, AGV is a complex system integrating environmental perception, path planning, intelligent decision-making and control. In the research on various related technologies of autonomous mobile robots, positioning technology is one of the key technologies in autonomous navigation, and its positioning accuracy directly affects the execution of AGV's subsequent mapping and navigation tasks. Therefore, how to ensure that the AGV can be positioned quickly and accurately is a technical difficulty, which has always attracted the attention of researchers.
AGV常用的定位方法为磁带定位、二维码定位、惯导定位,这些定位方法虽然定位精度较高、简单易行,但定位的灵活性差,当工作环境发生改变时,需要重新铺设定位设备,增加额外的成本。The commonly used positioning methods of AGV are tape positioning, two-dimensional code positioning, and inertial navigation positioning. Although these positioning methods have high positioning accuracy and are simple and easy to implement, they have poor positioning flexibility. When the working environment changes, the positioning equipment needs to be re-laid. Add extra cost.
现有的2D激光SLAM定位算法仍然存在一定的缺陷,无法提供一致、稳定的定位信息。但是,基于特征点的ICP和基于优化的匹配算法优缺点各不相同,可以相互补充。因此,为了提高AGV的定位精度和鲁棒性,本发明提出了一种基于Sigmoid函数的自适应切换的定位算法,在改进的ICP匹配算法和基于优化的匹配算法之间进行切换。将环境的角度值和运行时的通道宽窄度值设为切换阈值条件,从而达到提高AGV在复杂工作环境中的定位精度。The existing 2D laser SLAM localization algorithms still have certain defects and cannot provide consistent and stable localization information. However, feature point-based ICP and optimization-based matching algorithms have different advantages and disadvantages and can complement each other. Therefore, in order to improve the positioning accuracy and robustness of the AGV, the present invention proposes an adaptive switching positioning algorithm based on the Sigmoid function, which switches between the improved ICP matching algorithm and the optimization-based matching algorithm. The angle value of the environment and the channel width and narrowness value during operation are set as the switching threshold conditions, so as to improve the positioning accuracy of the AGV in the complex working environment.
发明内容SUMMARY OF THE INVENTION
针对上述问题,本发明目的在于提供一种基于激光SLAM的室内AGV自适应定位方法,即首先利用2D激光雷达建立工作环境的栅格地图,然后在已经建立好的地图上采用自适应切换的方法在基于特征点的ICP和基于优化的匹配算法之间进行切换。In view of the above problems, the purpose of the present invention is to provide an indoor AGV adaptive positioning method based on laser SLAM, that is, firstly use 2D laser radar to establish a grid map of the working environment, and then use the adaptive switching method on the established map Switch between feature point-based ICP and optimization-based matching algorithms.
为了实现上述目的,本发明采用下述技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
一种基于激光SLAM的室内AGV自适应定位方法,包括2D激光雷达、里程计、惯性测量单元、NVIDIA TX2嵌入式开发板、STM32单片机和远程监控终端;An indoor AGV adaptive positioning method based on laser SLAM, including 2D lidar, odometer, inertial measurement unit, NVIDIA TX2 embedded development board, STM32 microcontroller and remote monitoring terminal;
2D激光雷达与NVIDIA TX2上位机通过USB线进行连接,激光雷达对环境信息进行扫描,将扫描的每一帧数据传送给上位机进行处理;The 2D lidar is connected to the NVIDIA TX2 host computer through a USB cable, the lidar scans the environmental information, and transmits each frame of scanned data to the host computer for processing;
惯性测量单元(IMU)采用的是USB-TTL转接线与上位机NVIDIA TX2进行连接,用于采集AGV的车体姿态信息;The inertial measurement unit (IMU) uses a USB-TTL adapter cable to connect with the host computer NVIDIA TX2 to collect the body attitude information of the AGV;
AGV的里程计与STM32单片机通过GPIO接口连接,里程计采集AGV的运行里程和行驶速度信息,将采集到的信息传递给STM32下位机;The odometer of the AGV is connected to the STM32 microcontroller through the GPIO interface. The odometer collects the AGV's running mileage and driving speed information, and transmits the collected information to the STM32 lower computer;
上位机NVIDIA TX2和下位机STM32通过串口进行双向连接,AGV的电机驱动模块通过STM32单片机的IO口进行连接,上位机NVIDIA TX2使用局域网与远程监控终端进行通讯连接;The upper computer NVIDIA TX2 and the lower computer STM32 are connected bidirectionally through the serial port, the motor drive module of the AGV is connected through the IO port of the STM32 microcontroller, and the upper computer NVIDIA TX2 uses the local area network to communicate with the remote monitoring terminal;
下位机STM32单片机将采集到的AGV里程计的速度和行驶里程信息通过串口传递给上位机,并接受上位机发出的AGV电机驱动信息;The STM32 microcontroller of the lower computer transmits the collected speed and mileage information of the AGV odometer to the upper computer through the serial port, and accepts the AGV motor drive information sent by the upper computer;
2D激光雷达将采集到的工作环境中的障碍物信息、惯性测量单元(IMU)将采集到的AGV车体姿态角度值、STM32单片机将采集到的AGV速度和行驶里程信息传递给NVIDIATX2上位机中,通过采用激光SLAM算法,首先对AGV的工作环境进行建图,操控AGV进行移动并建立二维栅格地图;The 2D lidar will collect the obstacle information in the working environment, the inertial measurement unit (IMU) will collect the attitude angle value of the AGV body, and the STM32 microcontroller will transfer the collected AGV speed and mileage information to the NVIDIATX2 host computer. , By using the laser SLAM algorithm, firstly map the working environment of the AGV, control the AGV to move and establish a two-dimensional grid map;
远程监控终端用于监控AGV的运行状态和发布目标位置的坐标信息;The remote monitoring terminal is used to monitor the running status of the AGV and publish the coordinate information of the target position;
AGV为差速AGV,包括电机驱动电路、左轮驱动电机和右轮驱动电机、上位机发布运行指令给下位机,然后下位机发布驱动指令控制AGV左右轮电机的旋转,达到对AGV运行状态的控制;AGV is a differential AGV, including motor drive circuit, left-wheel drive motor and right-wheel drive motor. The upper computer issues running commands to the lower computer, and then the lower computer issues drive commands to control the rotation of the left and right wheel motors of the AGV to control the running state of the AGV. ;
上位机为NVIDIA的TX2高性能嵌入式开发板、装有Linux和ROS操作系统,该开发板拥有多核处理器且性能强大,可用于激光SLAM算法的运行和数据处理,作为算法移植的运行平台;The host computer is NVIDIA's TX2 high-performance embedded development board, equipped with Linux and ROS operating systems. The development board has a multi-core processor and powerful performance, which can be used for the operation of laser SLAM algorithm and data processing, as a running platform for algorithm transplantation;
上位机、下位机、驱动电机、2D激光雷达、惯性测量单元和里程计利用AGV自身携带的电源经转换后进行供电;The upper computer, lower computer, drive motor, 2D lidar, inertial measurement unit and odometer use the power carried by the AGV itself to supply power after conversion;
本发明中的AGV主要用于工业生产和物流仓库环境中,多数障碍物为静态障碍物,包含墙壁、生产设备、仓储货架、摆放的货物。The AGV in the present invention is mainly used in industrial production and logistics warehouse environments, and most obstacles are static obstacles, including walls, production equipment, storage shelves, and placed goods.
本发明还提供了一种基于激光SLAM的室内AGV自适应定位算法,步骤如下:The present invention also provides an indoor AGV adaptive positioning algorithm based on laser SLAM, the steps are as follows:
步骤1,在远程监控终端上,手动控制AGV在工作环境中进行移动,利用激光SLAM算法对所处环境构建二维栅格地图;Step 1, on the remote monitoring terminal, manually control the AGV to move in the working environment, and use the laser SLAM algorithm to construct a two-dimensional grid map for the environment;
步骤2,首先在远程监控终端上输入AGV目标点的位姿信息,利用导航算法中的路径规划算法规划出一条最优的运行路线;Step 2: First, input the pose information of the AGV target point on the remote monitoring terminal, and use the path planning algorithm in the navigation algorithm to plan an optimal running route;
步骤3,本发明定义一个用于自适应切换匹配算法的改进Sigmoid函数,函数定义如下:Step 3, the present invention defines an improved Sigmoid function for the adaptive switching matching algorithm, and the function is defined as follows:
公式(1)中,θ为弯道环境的角度值,λ为运行通道的宽窄度值,θ的值使用激光雷达扫描周围环境经过处理后得到,λ的值使用激光雷达的扫描数据可直接得到;In formula (1), θ is the angle value of the curve environment, λ is the width value of the running channel, the value of θ is obtained after scanning the surrounding environment with lidar, and the value of λ can be directly obtained by using the scanning data of lidar ;
当公式(1)中因此可通过f(λ,θ)的值来确定AGV运行时采用的匹配算法;When formula (1) Therefore, the matching algorithm used when the AGV is running can be determined by the value of f(λ, θ);
当AGV启动运行时,同步采集惯性测量单元和激光雷达的数据,其中弯道环境角度值θ,通过激光雷达扫描周围环境经过处理后获得;通道的宽窄度值λ,首先对激光雷达的前几帧数据进行预处理,并将距离值变化较大的离群点滤除,最后求通道宽窄度的平均值λ,将θ和λ的值代入公式(1)中进行计算,根据计算得出的值来判断AGV当前时刻所处的环境状态;When the AGV starts to run, the data of the inertial measurement unit and the lidar are collected synchronously. The angle value θ of the curve environment is obtained after scanning the surrounding environment by the lidar; The frame data is preprocessed, and the outliers with large changes in the distance value are filtered out. Finally, the average λ of the channel width is calculated, and the values of θ and λ are substituted into formula (1) for calculation. value to judge the environmental state of the AGV at the current moment;
步骤4,当计算得到的f(λ,θ)值大于0时,说明此时AGV处于宽阔的环境中,采用基于优化的匹配算法,该方法适用于大场景的环境,如AGV工业生产中的上下料区、物流仓库中的货物中转区;Step 4, when the calculated value of f(λ, θ) is greater than 0, it means that the AGV is in a wide environment at this time, and an optimization-based matching algorithm is used. This method is suitable for large-scene environments, such as AGV in industrial production. Loading and unloading area, cargo transfer area in logistics warehouse;
基于优化的算法思路为给定一个目标函数,将激光雷达的帧间匹配问题转化为求解目标函数极值的问题,目标函数的定义如下:The idea of the algorithm based on optimization is to give an objective function, and transform the inter-frame matching problem of lidar into the problem of solving the extremum of the objective function. The definition of the objective function is as follows:
公式(2)中,T=(Tx,Ty,Tθ)为机器人的在(x,y,z)坐标系下的位姿,Si(T)表示把激光雷达某一帧第i个数据用位姿T进行坐标转换,M(x)表示转换后的坐标x在地图中的占用概率;In formula (2), T=(T x , T y , T θ ) is the pose of the robot in the (x, y, z) coordinate system, S i (T) represents the i-th frame of the lidar The data are coordinately transformed with the pose T, and M(x) represents the occupancy probability of the transformed coordinate x in the map;
公式(2)中, In formula (2),
M(Si(T))为非线性函数,对公式(2)进行一阶泰勒展开,得公式(3)M(S i (T)) is a nonlinear function, and formula (2) is first-order Taylor expansion to obtain formula (3)
对于线性系统,对公式(3)中的ΔT求导数,并令其等于0,得公式(4)For a linear system, take the derivative of ΔT in equation (3) and set it equal to 0 to obtain equation (4)
求解公式(4)可得ΔT,如公式(5)所示:Solving formula (4) can obtain ΔT, as shown in formula (5):
公式(5)中,通过对地图进行双线性插值进行求解。令T=T+ΔT,不断进行迭代,直到满足精度要求或者到达最大迭代次数求解出机器人的位姿(x,y,θ)。In formula (5), Solve by bilinear interpolation of the map. Let T=T+ΔT, and iterate continuously until the accuracy requirements are met or the maximum number of iterations is reached to solve the pose (x, y, θ) of the robot.
通过以上算法,得到AGV在宽阔环境运行下的位姿,为导航提供高精度的定位数据;Through the above algorithm, the pose of the AGV in a wide environment is obtained, providing high-precision positioning data for navigation;
步骤5,当AGV进入弯道环境时,会因为轮子打滑、激光雷达扫描数据点覆盖的问题,导致激光SLAM的前端匹配算法出现匹配错误,从而影响AGV的定位精度;Step 5. When the AGV enters the curve environment, the front-end matching algorithm of the laser SLAM will have a matching error due to the problems of wheel slippage and lidar scanning data point coverage, which will affect the positioning accuracy of the AGV;
当计算得到的f(λ,θ)值小于0时,说明此时AGV处于弯道或者货架的环境,因此采用基于特征点的ICP匹配算法,通过提取环境结构中的特征点来提高匹配的精度和速度,从而提高AGV的定位精度;When the calculated value of f(λ, θ) is less than 0, it means that the AGV is in the environment of a curve or a shelf at this time. Therefore, the ICP matching algorithm based on feature points is used to improve the matching accuracy by extracting the feature points in the environmental structure. and speed, thereby improving the positioning accuracy of AGV;
使用激光雷达扫描环境结构,通过对数据进行预处理来提取特征点,如公式(6)和公式(7)所示:Use lidar to scan the environmental structure, and extract feature points by preprocessing the data, as shown in Equation (6) and Equation (7):
公式(6)中为所选取的特征点同一帧数据中,特征点左侧范围内点集的计算值,公式(7)中为所选取的特征点同一帧数据中,特征点右侧范围内点集的计算值;In formula (6) is the calculated value of the point set within the range to the left of the feature point in the same frame of data of the selected feature point, in formula (7) is the calculated value of the point set within the right range of the feature point in the same frame data of the selected feature point;
将公式(6)和公式(7)代入公式(8),如下式所示:Substitute Equation (6) and Equation (7) into Equation (8) as follows:
通过公式(8)、公式(9)和公式(10),将可能为特征点的点两侧范围内的点进行直线拟合,并计算两条拟合直线的夹角,若计算得到的f(k)值越大,说明两条拟合的直线夹角越接近90度,则该点为所需要的特征点,若f(k)的值越小,则越偏离90度,通过此方法将不是特征点的点进行剔除;According to formula (8), formula (9) and formula (10), the points within the range on both sides of the point that may be the feature point are fitted with a straight line, and the angle between the two fitted straight lines is calculated. If the calculated f The larger the value of (k) is, the closer the angle between the two fitted straight lines is to 90 degrees, the point is the required feature point. If the value of f(k) is smaller, the more deviation from 90 degrees is. Eliminate points that are not feature points;
通过步骤5的计算,来提取环境结构中满足要求的特征点;Through the calculation of step 5, the feature points that meet the requirements in the environmental structure are extracted;
步骤6,通过步骤5提取出的环境结构中的特征点,因为采用的是只提取环境中的特征点进行匹配,相比于原算法采用的逐点匹配法则可以提高算法的匹配速度和准确度。首先建立AGV的运动学模型,使用里程计通过运动学模型估计AGV在环境中的位姿,然后将激光雷达特征匹配和IMU观测得到的信息进行融合计算出AGV在实际环境中的位姿,利用计算出的实际位姿信息来更新估计的AGV位姿,从而得到AGV的精确位姿(x,y,θ)。采用基于特征点的ICP匹配算法可以提高算法的匹配速度和匹配精度,从而减少AGV在弯道环境运行时的定位误差;Step 6, through the feature points in the environment structure extracted in step 5, because only the feature points in the environment are extracted for matching, compared with the point-by-point matching rule adopted by the original algorithm, the matching speed and accuracy of the algorithm can be improved. . First, establish the kinematic model of AGV, use the odometer to estimate the pose of AGV in the environment through the kinematic model, and then fuse the information obtained by lidar feature matching and IMU observation to calculate the pose of AGV in the actual environment. The calculated actual pose information is used to update the estimated AGV pose, thereby obtaining the exact pose (x, y, θ) of the AGV. Using the feature point-based ICP matching algorithm can improve the matching speed and matching accuracy of the algorithm, thereby reducing the positioning error of the AGV when running in a curved environment;
步骤7,当AGV从宽阔的区域运行到货架区域时,由于货架结构的特殊性,其可以使用的特征点多且易提取出来,因此当AGV运行到货架这类狭窄的区域时采用基于特征点的ICP匹配算法也可以提高定位精度;Step 7. When the AGV runs from a wide area to the shelf area, due to the particularity of the shelf structure, it has many feature points that can be used and can be easily extracted. Therefore, when the AGV runs to a narrow area such as a shelf, the feature point-based method is adopted. The ICP matching algorithm can also improve the positioning accuracy;
利用AGV搭载的激光雷达采集两侧的障碍物信息,当AGV进入狭窄的货架区时f(λ,θ)小于0,从而将匹配算法切换为基于特征点的ICP匹配算法,采用步骤(5)和步骤(6)的方式通过提取货架的特征点进行匹配,从而得到精度更高的AGV位姿数据;The lidar mounted on the AGV is used to collect the obstacle information on both sides. When the AGV enters the narrow shelf area, f(λ, θ) is less than 0, so the matching algorithm is switched to the ICP matching algorithm based on feature points. Step (5) Matching with the method of step (6) by extracting the feature points of the shelf, so as to obtain the AGV pose data with higher accuracy;
与现有AGV采用的定位方式相比,本发明采用的基于激光SLAM的自适应定位方法定位灵活性高、适应性好、成本低,可以满足大部分应用环境的需求,并且采用基于ROS的开发系统,降低了开发的难度、提高了算法调试的效率。Compared with the positioning method adopted by the existing AGV, the adaptive positioning method based on laser SLAM adopted in the present invention has high positioning flexibility, good adaptability and low cost, which can meet the needs of most application environments, and adopts ROS-based development. The system reduces the difficulty of development and improves the efficiency of algorithm debugging.
附图说明Description of drawings
图1为本发明中基于激光SLAM的AGV自适应定位方法硬件结构图。FIG. 1 is a hardware structure diagram of an AGV adaptive positioning method based on laser SLAM in the present invention.
图2为本发明中基于激光SLAM的AGV自适应定位算法流程图。FIG. 2 is a flowchart of an AGV adaptive positioning algorithm based on laser SLAM in the present invention.
具体实施方式Detailed ways
以下结合附图并通过具体实施方式来进一步说明本发明的技术方案。The technical solutions of the present invention are further described below with reference to the accompanying drawings and through specific embodiments.
图1为本发明中基于激光SLAM的AGV自适应定位方法硬件结构图,由图1所示。FIG. 1 is a hardware structure diagram of an AGV adaptive positioning method based on laser SLAM in the present invention, as shown in FIG. 1 .
在本发明中,上位机选用的是NVIDIA TX2高性能嵌入式开发板,装有Ubuntu16.04和ROS Kinetic操作系统。下位机为STM32嵌入式开发板,远程监控终端为笔记本电脑,同样装有Ubuntu和ROS操作系统,用于显示AGV的运行状态和发布目标点坐标指令。In the present invention, the host computer selects NVIDIA TX2 high-performance embedded development board, which is equipped with Ubuntu16.04 and ROS Kinetic operating system. The lower computer is an STM32 embedded development board, and the remote monitoring terminal is a laptop computer, which is also equipped with Ubuntu and ROS operating systems, which are used to display the running status of the AGV and issue target point coordinate commands.
采用的RPLidar A2激光雷达与上位机通过USB线进行连接,激光雷达采集有效范围内障碍物的距离和角度信息,并将扫描的信息传送给上位机进行处理。The RPLidar A2 lidar used is connected to the host computer through a USB cable. The lidar collects the distance and angle information of obstacles within the effective range, and transmits the scanned information to the host computer for processing.
采用的惯性测量单元(IMU)采用USB-TTL线与上位机进行连接,用于采集AGV运行时车体的旋转角度信息,将采集到的信息直接传递给上位机,可以提高算法的计算效率,避免与下位相连再传递给上位机带来的时间延迟和传送时带来的数据误差。The inertial measurement unit (IMU) used is connected to the host computer with a USB-TTL cable, which is used to collect the rotation angle information of the vehicle body when the AGV is running, and directly transmit the collected information to the host computer, which can improve the calculation efficiency of the algorithm. Avoid the time delay brought by connecting with the lower position and then transmitting it to the upper computer and the data error brought by the transmission.
采用的里程计与下位机通过GPIO接口单向连接,用于采集AGV的线速度、角速度和运行里程信息,并将采集到的信息经过处理后通过下位机传递到上位机。The adopted odometer is one-way connected to the lower computer through the GPIO interface, which is used to collect the linear speed, angular velocity and running mileage information of the AGV, and the collected information is processed and transmitted to the upper computer through the lower computer.
本定位方法上位机与下位机通过串口线进行双向连接,下位机通过IO口与AGV的电机驱动模块进行连接,远程监控终端与上位机通过局域网进行连接。In this positioning method, the upper computer and the lower computer are connected bidirectionally through the serial line, the lower computer is connected with the motor drive module of the AGV through the IO port, and the remote monitoring terminal and the upper computer are connected through the local area network.
远程监控终端发布AGV要到达的目标点位置信息,通过局域网上位机接收到指令,使用激光雷达采集环境中的障碍物位置信息,同时采集IMU和里程计的信息,将这些数据传送到上位机中,利用激光SLAM算法,实时计算出AGV的位姿数据,并将其传送给导航算法部分,上位机将规划好的路径信息传递给下位机,下位机通过IO口发布电机驱动指令,控制AGV朝目标点进行运动。The remote monitoring terminal publishes the position information of the target point to be reached by the AGV, receives the command through the local area network host computer, uses the lidar to collect the obstacle position information in the environment, and simultaneously collects the information of the IMU and odometer, and transmits these data to the host computer. , using the laser SLAM algorithm to calculate the pose data of the AGV in real time, and transmit it to the navigation algorithm part. target point for movement.
图2为本发明中基于激光SLAM的室内AGV自适应定位算法流程图。由图2可知,本发明提供了一种基于激光SLAM的AGV自适应定位算法,步骤如下:FIG. 2 is a flowchart of an indoor AGV adaptive positioning algorithm based on laser SLAM in the present invention. It can be seen from FIG. 2 that the present invention provides an AGV adaptive positioning algorithm based on laser SLAM, and the steps are as follows:
步骤1,首先通过远程监控终端,操控AGV构建工作环境的二维栅格地图。Step 1: First, through the remote monitoring terminal, control the AGV to construct a two-dimensional grid map of the working environment.
步骤2,远程监控终端向上位机传送AGV要到达的目标点位置信息。Step 2: The remote monitoring terminal transmits the position information of the target point to be reached by the AGV to the upper computer.
步骤3,上位机接收远程监控终端发布的目标点位置信息,将AGV当前的位置作为起点,在二维栅格地图上利用路径规划算法规划出一条到达目标点的最优路径。Step 3: The host computer receives the target point location information issued by the remote monitoring terminal, uses the current position of the AGV as the starting point, and uses the path planning algorithm to plan an optimal path to the target point on the two-dimensional grid map.
步骤4,在AGV朝目标点进行运动时,导航算法需要AGV在环境中运行的实时位姿数据,只有高精度的定位数据,才能保证AGV准确无误地到达目标点,因此本发明采用自适应的定位算法来提高AGV的定位精度,该定位算法过程如下:Step 4: When the AGV moves towards the target point, the navigation algorithm needs the real-time pose data of the AGV running in the environment. Only high-precision positioning data can ensure that the AGV reaches the target point accurately. Therefore, the present invention adopts an adaptive The positioning algorithm is used to improve the positioning accuracy of AGV. The positioning algorithm process is as follows:
步骤4.1,当AGV接收到远程监控终端发出的运行指令后,上位机采集AGV搭载的传感器检测数据,将经过处理的θ和λ值代入公式(1)中进行计算,若计算后的f(λ,θ)值小于0,说明此时AGV处于弯道或者狭窄的运行环境中,上位机将匹配算法切换为基于特征点的ICP算法,可以充分利用环境结构特征进行匹配,也能避免AGV因处于弯道环境车轮打滑导致的匹配误差,从而提高AGV的定位精度和速度;Step 4.1, when the AGV receives the operation command issued by the remote monitoring terminal, the host computer collects the sensor detection data carried by the AGV, and substitutes the processed θ and λ values into formula (1) for calculation. If the calculated f(λ) ,θ) value is less than 0, indicating that the AGV is in a curved or narrow operating environment at this time, and the host computer switches the matching algorithm to the ICP algorithm based on feature points, which can make full use of the environmental structural features for matching, and can also avoid the AGV being in a Matching error caused by wheel slippage in the curve environment, thereby improving the positioning accuracy and speed of the AGV;
步骤4.2,若计算后的f(λ,θ)值大于0,说明此时AGV运行在宽阔的环境中,上位机则将匹配算法切换为基于优化的算法,从而保证AGV在大场景环境下的定位精度;Step 4.2, if the calculated value of f(λ, θ) is greater than 0, it means that the AGV is running in a wide environment at this time, and the host computer will switch the matching algorithm to an optimization-based algorithm to ensure that the AGV operates in a large-scene environment. positioning accuracy;
步骤5,判断AGV是否到达目标位置点,如果到达目标位置点,上位机向下位机发出停止运行指令,下位机则向AGV的电机驱动模块发出停止运行指令,并且等待下一次运行指令的发出;若未达到目标点,则返回步骤4,AGV继续运动直至到达目标点停止运行等待下一次指令。Step 5: Determine whether the AGV has reached the target position point. If it reaches the target position point, the upper computer sends a stop operation command to the lower computer, and the lower computer sends a stop operation command to the motor drive module of the AGV, and waits for the next operation command to be issued; If the target point is not reached, go back to step 4, and the AGV continues to move until it reaches the target point and stops running and waits for the next command.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110545126.7A CN113218384B (en) | 2021-05-19 | 2021-05-19 | Indoor AGV self-adaptive positioning method based on laser SLAM |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110545126.7A CN113218384B (en) | 2021-05-19 | 2021-05-19 | Indoor AGV self-adaptive positioning method based on laser SLAM |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113218384A CN113218384A (en) | 2021-08-06 |
| CN113218384B true CN113218384B (en) | 2022-05-06 |
Family
ID=77093016
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110545126.7A Expired - Fee Related CN113218384B (en) | 2021-05-19 | 2021-05-19 | Indoor AGV self-adaptive positioning method based on laser SLAM |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113218384B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113867290A (en) * | 2021-09-30 | 2021-12-31 | 上汽通用五菱汽车股份有限公司 | AGV joint control method and system based on laser SLAM and PLC |
| CN114564024A (en) * | 2022-03-15 | 2022-05-31 | 安歌科技(集团)股份有限公司 | Forklift AGV laser obstacle avoidance control method |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6635996B2 (en) * | 2017-10-02 | 2020-01-29 | ソフトバンク株式会社 | Autonomous traveling device, autonomous traveling system and program |
| CN109857113A (en) * | 2019-02-22 | 2019-06-07 | 中国计量大学 | A kind of independent navigation trolley of view-based access control model SLAM method |
| CN110333495A (en) * | 2019-07-03 | 2019-10-15 | 深圳市杉川机器人有限公司 | The method, apparatus, system, storage medium of figure are built in long corridor using laser SLAM |
| CN110389590B (en) * | 2019-08-19 | 2022-07-05 | 杭州电子科技大学 | AGV positioning system and method integrating 2D environment map and sparse artificial landmark |
| CN111290403B (en) * | 2020-03-23 | 2023-05-16 | 内蒙古工业大学 | Transport method for transporting automatic guided transport vehicle and transporting automatic guided transport vehicle |
| CN111829517A (en) * | 2020-08-19 | 2020-10-27 | 三一机器人科技有限公司 | AGV navigation positioning system and method |
| CN112066989B (en) * | 2020-08-19 | 2022-07-29 | 合肥工业大学 | Indoor AGV automatic navigation system and navigation method based on laser SLAM |
| CN112650255B (en) * | 2020-12-29 | 2022-12-02 | 杭州电子科技大学 | Robot positioning and navigation method based on fusion of vision and lidar information |
-
2021
- 2021-05-19 CN CN202110545126.7A patent/CN113218384B/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN113218384A (en) | 2021-08-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110262495B (en) | Control system and method for autonomous navigation and precise positioning of mobile robots | |
| CN109358340B (en) | A method and system for constructing AGV indoor map based on lidar | |
| CN112066989B (en) | Indoor AGV automatic navigation system and navigation method based on laser SLAM | |
| CN105607635B (en) | Panoramic optical vision navigation control system of automatic guided vehicle and omnidirectional automatic guided vehicle | |
| US8972095B2 (en) | Automatic guided vehicle and method for drive control of the same | |
| US11537140B2 (en) | Mobile body, location estimation device, and computer program | |
| CN111307147B (en) | AGV high-precision positioning method integrating positioning reflector and laser characteristics | |
| US20200363212A1 (en) | Mobile body, location estimation device, and computer program | |
| US20200264616A1 (en) | Location estimation system and mobile body comprising location estimation system | |
| CN114371716A (en) | Automatic driving inspection method for fire-fighting robot | |
| CN113218384B (en) | Indoor AGV self-adaptive positioning method based on laser SLAM | |
| CN111290403B (en) | Transport method for transporting automatic guided transport vehicle and transporting automatic guided transport vehicle | |
| CN214846390U (en) | Dynamic environment obstacle avoidance system based on automatic guided vehicle | |
| WO2019194079A1 (en) | Position estimation system, moving body comprising said position estimation system, and computer program | |
| CN119690078A (en) | Inspection robot and inspection method thereof | |
| CN117032265A (en) | ROS-based intelligent transport AGV path planning method and control system | |
| Behrje et al. | An autonomous forklift with 3d time-of-flight camera-based localization and navigation | |
| CN115542846A (en) | Modular control system and method for controlling automated guided vehicles | |
| CN119043332B (en) | A path optimization method and system for intelligent logistics robots | |
| Armesto et al. | Automation of industrial vehicles: A vision-based line tracking application | |
| JP5439552B2 (en) | Robot system | |
| CN112797986A (en) | Intelligent logistics robot positioning system and method based on unmanned autonomous technology | |
| CN112965494A (en) | Control system and method for pure electric automatic driving special vehicle in fixed area | |
| JP2025072732A (en) | Autonomous Driving System | |
| CN113895543A (en) | Intelligent unmanned vehicle driving system based on park environment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220506 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |