How to ROS_*_THROTTLE inside objects?
I have a vector of objects of a custom class. In one function of my class, I am trying to include a ROS_*_THROTTLE macro. At some point, I iterate through the vector, calling my function. I would like for the message to get printed once for each object, but instead the message only gets called for the very first object, leading me to believe the throttle isn't based on the message content or the context, but rather the line number or something like that. Am I correct on this?
If so, is there any existing way to throttle messages per object or per message content? I tried using named loggers, too, but still I only get the one message.