On-line, kinodynamic trajectory generation through rectangular channels using path and motion primitives