Similar Items: Real-Time Uncertainty-Aware Motion Planning for Magnetic-Based Navigation