Search-Based Robot Motion Planning With Distance-Based Adaptive Motion Primitives