An autonomous motion planning framework is proposed, consisting of path planning and trajectory generation. Primarily, a spacious preferred probabilistic roadmap algorithm is utilized to search a safe and short path, considering kinematics and threats from obstacles. Subsequently, a minimum-snap and position-clearance polynomial trajectory problem is transformed into an unconstrained quadratic programming and solved in a two-step optimization. Finally, comparisons with other methods based on statistical simulations are implemented. The results show that the proposed method achieves computational efficiency and a safe trajectory.