基于双变量限幅PID算法的四轮差速转向AGV导航控制系统

    Four-wheel differential steering AGV navigation control system based on double variable limiters PID algorithm

    • 摘要: 四轮差速转向AGV(automated guided vehicle,自动导引车)具有灵活性好、转弯半径小、机械结构复杂度低等特点,在丘陵山地农业生产中更有优势。针对传统阿克曼底盘导航算法直接应用于差速转向底盘导航所存在转弯半径过大、易导致导航失效的问题,该研究使用模块化分层开发思想,基于ROS(robot operating system,机器人操作系统)设计了一种基于双变量限幅PID的差速转向底盘导航控制算法,并通过改造的四轮差速车辆进行试验。算法通过横向偏差与航向角偏差双变量限幅PID得到前进速度与旋转角速度,再通过下位单片机实现车轮转速的闭环控制。通过仿真试验,水泥路面试验和田间试验,以横向偏差平均值、变异系数与最大偏差3个方面对算法的准确性与适应能力进行验证。仿真试验结果表明:通过路径跟踪算法控制的四轮差速车辆在0.4 m/s的速度行驶时,平均误差为1.15 cm,均方根误差为1.27 cm,上线距离小于4.09 m,导航系统有较好的稳定性和调节能力。在水泥地试验中水泥路面环境下以0.4 m/s速度行驶时,平均误差2.83 cm,均方根误差为3.21 cm,在田间试验的果树行间路面环境下以0.4 m/s速度行驶时,平均误差5.25 cm,均方根误差6.13 cm。田间试验结果表明,导航系统与试验车辆在不同的地形环境下有着较好的适应能力,研究结果可以为差速转向底盘的导航技术提供参考。

       

      Abstract: The current algorithm of differential vehicle navigation cannot fully meet the optimal turning radius, long-distance path tracking, and simple navigation logic. In this study, a navigation control algorithm was proposed using ROS (robot operating system), according to modular and hierarchical development. The four-wheel differential speed vehicle was also transformed for testing. The target path was described by the target point plus the target yaw angle. The target path was an infinite straight line through the target point, whose direction was the target yaw angle. The vehicle started from any position, then approached the target path, and finally reached the target point. The kinematic equation of the vehicle was obtained by the kinematic analysis of the four-wheel differential speed vehicle. There was a relationship between the forward speed and steering speed of the vehicle, with the speed of the left and right wheels. Then the coordinate transformation was implemented to obtain the lateral deviation between the vehicle and the target path, and the longitudinal distance between the target point and the vehicle. The required forward speed was calculated using the longitudinal distance. The driving angle close to the target path was determined using the lateral deviation. Then the required steering speed was obtained after the difference between the driving angle and the yaw angle of the vehicle. Two advantages were gained during optimization. One was to improve the robustness and flexibility of the algorithm, which was stably solved under any size of lateral deviation and simplified the complexity of path planning. The algorithm was freely switched to the target path of the task, whether to focus or ignore the path planning among lines. Another was that the internal parameters of the algorithm all shared specific meanings, which were easy to understand and adjust, according to different needs under the different environments and operations. The above calculation was realized by the double variable limiter PID algorithm. The forward speed and steering speed were converted into the left and right wheel speeds through the kinematic equation of vehicles. The wheel speed was input into the closed-loop PID of the lower computer, in order to realize the accurate control of the left and right wheel speed. As such, the vehicle was stably controlled to reduce the disturbance during operation, according to the calculation of the algorithm. The accuracy and adaptability of the algorithm were then verified in three aspects: the average value of lateral deviation, the coefficient of variation, and the maximum deviation. The simulation results show that the average error was 1.146 cm, the coefficient of variation was 47.535%, and the line distance was less than 4.092 m when the four-wheel differential vehicle controlled by the path following algorithm runs at the speed of 0.4 m/s. The navigation system performed the better stability and adjustment. At the same time, the optimal driving trajectory was determined as the driving angle close to the target path, according to the unique lateral deviation of the algorithm. As such, the vehicle was used to drive perpendicular to the target path, whether far from or approaching the target path. The failure of the traditional algorithm was avoided by slowly adjusting the direction along the target path in the same environment. A comparison was then made on the different parameters in the simulation. The parameter adjustment of the algorithm was then verified to evaluate the influence of different parameters on the control system. In the cement ground test, the average error was 2.833 cm and the coefficient of variation was 68.478% when the vehicle was driving at the speed of 0.4 m/s on the cement pavement environment. The average error was 5.249 cm and the coefficient of variation was 62.804% when the vehicle was driving at the speed of 0.4 m/s on the fruit tree pavement environment in the field test. The average error rose slightly, and the variation coefficient changed little, with the increase of the ruggedness of the ground environment, indicating the strong robustness and the excellent anti-interference of the algorithm. The navigation system and the test vehicle shared better adaptability in different terrain environments. The finding can also provide a strong reference for the navigation technology of differential steering chassis.

       

    /

    返回文章
    返回