What is the callbacks_ field in the Subscription class?

asked 2016-08-03 16:46:00 -0500

sunking gravatar image

I was perusing the roscpp code and wondering what the callbacks_ field of type V_CallbackInfo in the Subscription class is for? It seems that every call to subscribe(..) creates a new subscription object and each such call supplies just one callback so why there is a vector of them, and the code actually iterates over that collection I don’t get.

edit retag flag offensive close merge delete