A motion planning method of operation in a processor-based system to perform motion planning via planning lattices, where each planning lattice respectively comprises a plurality of nodes and edges, each node which characterizes a state of a primary vehicle, the primary vehicle which operates in an environment that includes one or more other vehicles and other obstacles, and each edge represents a trajectory of the primary vehicle between states represented by a respective pair of the nodes, the method comprising:
- during a runtime, for each of a number of the edges of a planning lattice,
- representing, by the processor-based system, the trajectory corresponding to the respective edge as a set of fitted functions,
- performing, by the processor-based system, collision detection using the set of fitted functions to determine whether a representation of the primary vehicle collides with one or more representations of other vehicles or other obstacles;
- and
- setting, by the processor-based system, a cost of the respective edge of the planning lattice to reflect at least one of the determined collision or absence thereof in transitioning between a pair of states represented by respective nodes that are connected by the respective edge of the planning lattice.