Subscribe to topic with Tactile message
Hi there,
I have a problem when subscribing to the tactile message. I have used topics and messages and am able to subscribe to default messages or custom messages that I have defined. However, I want to subscribe to the Tactile message now - I have a contact sensor in my model that uses the PressurePlugin and I want to subscribe the Tactile message so that I can get the data from it, such as the pressure. From PressurePlugin.cc I saw that it will advertise the Tactile message on a topic that starts with the name of the sensor - if my sensor was called 'my_sensor' then the whole topic would be "~/my_sensor/tactile". This is what I am using in my plugin, but it fails compilation and the problem is the Subscribe method. How can I successfully subscribe to the tactile message from the PressurePlugin?