# Given a vector of Pose samples, how do I compute the PoseWithCovariance?

Given a vector of pose estimates, how do I compute the PoseWithCovariance? Is there a simple function that does this conversion? Or do I need to manually calculate the mean of each pose entry and manually compute the covariance?

I don't think there is anything in ROS for this, maybe you can use ceres for that.