An Optimization-Based Planner with B-spline Parameterized Continuous-Time Reference Signals