Enhancing robot path planning with B-Spline and PSO for obstacle avoidance | Synapse