Thomas Tannous

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Recording audio stream from ROS – data type error #1143
    Thomas Tannous

    I’m also working on this currently.
    I let audio_capture publish wave format. I tried to write a converter
    from AudioData (uint8[] wave) to HarkWave following the instructions mentioned in this answer.
    Here is what I ended up with:

            dhw = HarkWave()
            dhw.header.stamp =
            dhw.header.frame_id = str(self.count)
            dhw.count = self.count
            harkwaveval = HarkWaveVal(wavedata=data_uint8)
            result = []
            dhw.src = result 
            dhw.nch = 1 # one channel
            dhw.length = 320 
            dhw.data_bytes = 320 * 4 # float(4bytes) times length of data

    When I run my network (attached below) it’s only receiving one message from ros and afterwards the network stops with the message “Normally finished”.
    So my question is: Why does it stop, since there is no error regarding the network and the topic is still actively pushing messages?

    Thanks in advance.

Viewing 1 post (of 1 total)