Subscriber issue
What should I do if I want that the callBack function of a subscriber returns a value. In particular I have a subscriber that receive sensor_msgs/Range and I want the callBack function to return the range value that is in the message but I don't now how to implement it.
Any suggestion?
Thanks in advance