The application discloses a method, device and equipment for generating a U-turn trajectory based on automatic driving and a medium. The method comprises the following steps: when a vehicle drives to a preset U-turn section, a U-turn space is discretely sampled to obtain a sampling point, wherein the U-turn space is a space between a current lane of the vehicle and an opposite lane in which the vehicle can make a U-turn, and the sampling point is a position on a center line of the U-turn space that is passed by the vehicle when making a U-turn; a vehicle adjustment space is constructed according to a total width of the current lane of the vehicle and the opposite lane and a length of the U-turn space; and a vehicle U-turn trajectory is generated by a preset path
planning method according to a current position of the vehicle, the sampling point, the vehicle adjustment space and a
road condition of a lane to be driven into. The method can solve the problem that a U-turn trajectory cannot be flexibly generated in the prior art.