regenerate navigationAgent to connect to trajectoryrobot2d