Get topic name in callback?
I have multiple subscriptions to messages of the same type. I want to use the same callback method for all of them, but I'd like to know which topic the message "came from" when the callback is executed. I found some examples online that use boost::bind, but rosmake is not happy with the syntax, and I'm beginning to wonder if they're from an older version of ROS. I also tried using MessageEvent's getConnectionHeader(), but the returned map doesn't contain a value for the key "topic." This seems like it ought to be something that should be readily available. Any ideas? I have to be missing something obvious.
A duplicate of [my question](http://answers.ros.org/question/51706/using-a-callback-for-multiple-subscribers-emulating-physical-outputs/). The answer is what @William told you to do, though.