def curr_vol_cb(self, event): self.curr_vol = self.get_current_volume() self.pub.publish(Int8(self.curr_vol))