Meet the 3D Cocooner from Festo: a robotic solution that can spin lightweight structures in space. It can spin complex shapes similar to natural structures such as a cocoon. The robot has a high-speed handling system and uses a UV light to cure the resin-soaked fiber and harden it into a sturdy rod.
As you can see in the above video, the system can be controlled quickly and precisely in space. More information is available here.