How to provide variance field in sensor_msgs/FluidPressure messages?

asked 2019-05-16 08:55:09 -0600

Ricardo Angeli gravatar image

I'm writing a ROS driver for a pressure sensor and while I really only need to publish the 'pressure' field, I'd like to also fill out the other field which is 'variance' for the sake of completeness. I wanted to know if this is something that pressure sensors typically provide on their own or if this would be something that my ROS driver would have to calculate? What, if anything, is this field useful for?

If it's something I have to calculate, is it simply the average of the squared differences from the mean?

edit retag flag offensive close merge delete