Trajectory Optimization on Safety, Length and Smoothness in Complex Environments with A Locally Trained and Globally Working Agent | IEEE Conference Publication | IEEE Xplore