Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to provide variance field in sensor_msgs/FluidPressure messages?

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?