Adaptive Lattice-based Motion Planning