Plotting covariance from amcl_pose in Matlab
I have recorded a bag-file and am trying to plot the /amcl_pose/pose/covariance
matrix which has a message type geometry_msgs/PoseWithCovarianceStamped
. I followed this tutorial on plotting data from topics, however, when I try:
bagselect = select(bag, 'Topic', '/amcl_pose');
msgs = readMessages(bagselect);
ts = timeseries(bagselect, 'Pose.Covariance');
I Get the error:
The Pose.covariance property does not exist for message type geometry_msgs/PoseWithCovarianceStamped.
What am I doing wrong?