Development of flexible active mechanical metamaterials for autonomous morphing and shape adaptation