Aiming at the impact and disturbance of dual-arm robots in the process of coordinated transportation, a dual-arm cooperative trajectory optimization control based on time-varying constrained output state is proposed. According to the constraint relationship of the end-effector trajectory of the dual-arm coordinated transportation, the joint space trajectory mathematical model of the dual-arm coordinated transportation was established by using the master-slave construction method. Based on the time impact optimization index of joint trajectory, a multiobjective nonlinear equation is established. Using random probability distribution to extract the interpolation features of nonuniform quintic B-spline trajectory, the feature optimization target is selected, and the Newton numerical algorithm is used for iterative optimization. At the same time, it is combined with an elite retention genetic algorithm to further optimize the target. Based on the disturbance and tracking problem, a PD control method based on time-varying constrained output state is proposed, and the control law is designed. Its convergence is verified by establishing the Lyapunov function equation and asymmetric term. The trajectory optimization results show that the proposed trajectory optimization method can increase the individual diversity and enhance the individual local optimization, thus avoiding the premature impact of the elite retention genetic algorithm. Finally, the proposed control method is simulated on the platform of Gazebo; compared with the traditional PD control method, the results show that the proposed control algorithm has high robustness, and the rationality of the coordinated trajectory control method is verified by the double-arm handling experiment.