Design of Trajectory Generator of Triaxial Swing Based on Inertial Sensors