def update_sound(self, state): self.sound_pub.publish(Float32(self.conversions.ball_to_sound(state))) # TODO rescale