trajectory planner implemented using dynamic motion primitives