Abstract:Path planning of agricultural machinery is currently focused on static obstacle avoidance infield operation scenarios. The driving environment of the tractor is characterized by semi-structured roads with a width of 3-6 m. The tractor roads are relatively complex without identification lines. Many types of dynamic and static obstacles can be found, including the agricultural machinery temporarily parked on both sides of the road, various agricultural machinery, or other traffic participants traveling in the same or opposite direction, even crossing the tractor road. Large-scale agricultural machinery cannot perform the complex trajectory movements in the narrow and long path. It is highly required for the smoothness of the planned trajectory. At the same time, the speed planning is needed to avoid the dynamic obstacles. In this study, local path planning was proposed using quadratic programming, in order to fully meet the practical needs of safety, smoothness, and real-time planning of autonomous agricultural machinery in the scenario of tractor roads. Firstly, a finite state machine was used to define the driving mode of agricultural machinery for the obstacle categories. Secondly, a horizontal and vertical decoupling was adopted to reduce the redundancy for better timeliness. The behavior decision-making of trajectory and velocity was also designed using an improved dynamic state grid method. Thirdly, the planning starting point was designed with a control preview point to combine the planning and control systems. The discontinuity of the cycle trajectory was then effectively solved during planning. Finally, quadratic programming was used to optimize the sampling path. All planned trajectories, trajectory curvature, and velocities fully met the dynamic constraints. A penalty function of safety distance was introduced to solve the constraints exceeding the feasibility of a quadratic programming solution. That was the domain's upper limit. A series of vehicle tests were conducted in various driving environments, with a reference speed of 2 m/s. The results show that in the scenario of bypassing static obstacles, the average and maximum absolute curvature of the planned trajectory were 0.021, and 0.056 m-1, respectively, while the average and maximum absolute lateral error were 3.23, and 8.69 cm, respectively, and the distance from the agricultural machinery to the outer contour of the obstacle was greater than 0.76 m. Furthermore, the average and absolute error of planning speed were 0.08-0.12 m/s, and less than 0.38 m/s, respectively, while the acceleration variation range was -0.38-0.44 m/s, in order to avoid the dynamic obstacles, such as driving in the opposite or same direction, or crossing tractor tracks. Therefore, there was the average and maximum time of 48, and 75 ms, respectively, after simulation with the planning period of 200 ms. The average time was reduced by 38 ms, whereas, the efficiency was improved by 44%, compared with the static state grid method. The findings can also provide technical support to the local path planning of agricultural machinery in the scenario of machine plowing roads.