Automatic path-planning for a multilink articulated boom within the torus of a fusion reactor and related applications