Fast Safe Rectangular Corridor-based Online AGV Trajectory Optimization with Obstacle Avoidance