Morphologies of a sagging elastica with intrinsic sensing and actuation