A multiaxle wheeled robot is difficult to be controlled due to its long body and a large number of axles, especially for obstacle avoidance and steering in narrow space. To solve this problem, a multisteering mode control strategy based on front and rear virtual wheels is proposed, and the driving trajectory prediction of the multiaxle wheeled robot is analyzed. On this basis, an obstacle avoidance control strategy based on trajectory prediction is proposed. By calculating the relationship between the lidar points of the obstacle and the trajectory coverage area, the iterative calculation of the obstacle avoidance scheme for the proposed steering is carried out, and the feasible obstacle avoidance scheme is obtained. The mechanical structure, hardware, and software control system of a five-axle wheeled robot are designed. Finally, to verify the effectiveness of the obstacle avoidance strategy, a Z-shaped obstacle avoidance experiment was carried out. The results confirm the effectiveness of the proposed control strategy.