Aiming at the problem that the dynamic window approach (DWA) has low planning efficiency and it is difficult to avoid fast-moving obstacles, an improved adaptive DWA based on risk degree function is proposed in this paper. The risk function is designed and introduced into the evaluation function of the traditional DWA to evaluate the risk of collision between dynamic obstacles and the robot, so that the robot can effectively avoid faster obstacles. Then, according to the fuzzy control principle, the adaptive weight coefficient is designed to improve the evaluation function, so that the mobile robot can move to the target point more efficiently. The simulation results show that compared with the traditional DWA, the adaptive DWA based on risk degree function reduces the time of completing the planning task by about 8%, and the path length after the completion of the planning by about 8%, it indicates that the improved algorithm has higher efficiency. After 50 repeated experiments, using the adaptive DWA based on risk degree function successfully avoids all obstacles to complete the planning task, which shows that this algorithm has higher security.