Path planning in robotics