def send_msg(self, msg_idx, remote_address, ack, packet): acoustic_msg = AcousticModemPayload() acoustic_msg.msg_id = msg_idx acoustic_msg.address = remote_address acoustic_msg.ack = ack acoustic_msg.payload = packet # Send the packet to the Evologics driver which will send to modem self.acoustic_msg_pub.publish(acoustic_msg)