def listen_for_updates ( self ) : self . toredis . subscribe ( self . group_pubsub , callback = self . callback )
publisher ros python callback function
Attach a callback on the group pubsub
def listen_for_updates(self):
        """Attach a callback on the group pubsub"""
        self.toredis.subscribe(self.group_pubsub, callback=self.callback)