How to get the publisher name from a received message in rospy?
Hey everybody,
I can't find anywhere how to get the publisher name from a received message using python. In C++ I just have to do the following:
void
callback( const ros::MessageEvent< cola2_common::BhResponse const >& event )
{
const std::string& publisher_name = event.getPublisherName() ;
}
What's the equivalent in python? Thank you!