The science-fiction fan in me is now imagining a robot whose structure is a flat sheet of material, that can reconfigure itself into any form it needs.
You could use shape memory alloys to control join orientation, have one per orientation at the joint and have the correct one "remember" to allow a structure to reconfigure itself.