I recently came across 'ros::SingleSubscriberPubliser' class. The documentation describes it as 'Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks'.
What does 'subscriber connection callbacks' mean?
Also, when does it make sense to use this class?