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

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

    • 摘要: 针对当前差速车辆导航算法转弯半径大,远距离路径无法跟踪,导航逻辑复杂,开发困难等问题,该研究使用模块化分层开发思想,基于ROS(robot operating system,机器人操作系统)设计了一种导航控制算法,并通过改造的四轮差速车辆进行试验。算法通过横向偏差与航向角偏差双变量限幅PID得到目标前进速度与目标转向速度,再通过下位单片机实现车轮转速的闭环控制。通过仿真试验,水泥地试验和田间试验,以横向偏差平均值、变异系数与最大偏差3个方面对算法的准确性与适应能力进行验证。仿真试验结果表明:通过路径跟踪算法控制的四轮差速车辆在0.4 m/s的速度行驶时,平均误差为1.201 cm,变异系数为47.068%,上线距离小于4.185 m,导航系统有较好的稳定性和调节能力。在水泥地试验中水泥路面环境下以0.4 m/s速度行驶时,平均误差2.833 cm,变异系数最大为68.478%,在田间试验的果树行间路面环境下以0.4 m/s速度行驶时,平均误差5.249 cm,变异系数62.804%。田间试验结果表明,导航系统与试验车辆在不同的地形环境下有着较好的适应能力,研究结果可以为差速转向底盘的导航技术提供参考。

       

      Abstract: Aiming at the problems of the current differential vehicle navigation algorithm, such as large turning radius, unable to track long-distance path, complex navigation logic, and difficult development, this study uses the idea of modular and hierarchical development, and designs a navigation control algorithm based on ROS (robot operating system). And through the transformation of four wheel differential speed vehicle for testing. The algorithm describes the target path by the way of target point plus target yaw angle, and the target path is an infinite straight line through the target point whose direction is the target yaw angle. The vehicle can start from any position and approach the target path, and finally reach the target point. The kinematic equation of the vehicle is obtained by the kinematic analysis of the four-wheel differential speed vehicle, and the relationship between the forward speed and steering speed of the vehicle with the speed of the left and right wheels is obtained. Then the lateral deviation between the vehicle and the target path, and the longitudinal distance between the target point and the vehicle are obtained by coordinate transformation. The required forward speed is calculated based on the longitudinal distance, the driving angle close to the target path is determined based on the lateral deviation. Then the required steering speed is obtained after the difference between the driving angle and the yaw angle of the vehicle itself. Based on this idea, it brings two advantages. First is that it improves the robustness and flexibility of the algorithm, which can be stably solved under any size of lateral deviation and simplifies the complexity of path planning. It can focus on the path planning between lines and ignore the path planning between lines, and let the algorithm automatically close to the target path of the job. Second, the internal parameters of the algorithm all have specific meanings, which are easy to understand and adjust, and can be easily adjusted according to different needs to adapt to different environments and operations. The above calculation is realized by the double variable limiter PID algorithm. The forward speed and steering speed obtained are converted into the left and right wheel speed through the vehicle's kinematic equation. Then the wheel speed is input into the closed-loop PID of the lower computer to realize the accurate control of the left and right wheel speed, so as to stably control the vehicle to move according to the calculation results of the algorithm and reduce the disturbance caused by the vehicle itself. Through simulation experiments, cement ground experiments and field experiments, the accuracy and adaptability of the algorithm are 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 is 1.146 cm, the coefficient of variation is 47.535%, and the line distance is 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 has good stability and adjustment ability. At the same time, it can also be observed from the driving trajectory that the driving angle close to the target path is determined based on the unique lateral deviation of the algorithm, so that the vehicle can drive perpendicular to the target path when it is far from the target path, and approach the target path quickly, avoiding the defect of the traditional algorithm that needs to slowly adjust the direction to the target path in the same environment. From the comparison of different parameters in the simulation, the influence of different parameters on the control effect of the algorithm can also be observed, which also shows that the parameter adjustment of the algorithm is simple and clear to a certain extent. 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. 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 was 5.249 cm and the coefficient of variation was 62.804%. It can be seen that with the increase of the ruggedness of the ground environment, the average error rises slightly, and the variation coefficient changes little, which indicates that the robustness of the algorithm is strong and the anti-interference ability is excellent. The above test results show that the navigation system and the test vehicle have better adaptability in different terrain environments, and the research results can provide reference for the navigation technology of differential steering chassis.

       

    /

    返回文章
    返回