I am also currently searching for a sensor message for touch sensors.
I would say there should be something like the wrench message.
http://docs.ros.org/api/geometry_msgs/html/msg/Wrench.htmlNow you probably say a button can't measure force. But it actually can do.
It can tell you that the force it senses is higher than the force its spring can withstand before it closes/opens the contact.
So for the final message I would propose additional vectors:
Vector 3 min_force;
Vector 3 max_force;
Where in max_force and min_force are the same for a button.
When pressed the value of that would go into the value of the force.
So the message would be:
touch_sensor:
Header header
Vector3 force
Vector3 force_min
Vector3 force_max
Vector3 torque
Vector3 torque_min
Vector3 torque_max
Btw. I am not sure if torque should go in there as well...
Maybe we just need the force or create a different message for torque sensors.
And then there also should be somehow sort of an array in that message, if you have a sensor which is like a skin, featuring multiple sensors.