LORD-MicroStrain/ntrip_client

nmea message handling bug

edvart-ros opened this issue · 1 comments

If you publish an nmea sentence which contains '$GPGGA' or similar, this is removed in the process of publishing and subscribing.
This can be easily reproduced by publishing an nmea sentence starting with '$GPGGA' and echoing the topic.

I think this part of the string is interpreted as an environment variable, and is therefore missing once the message actually reaches the subscriber. This isnt really an ntrip_client issue, but it left me quite confused and should probably be noted somewhere.

publishing:

punk@punk:~$ rostopic pub /ntrip_client/nmea nmea_msgs/Sentence "header:
  seq: 2
  stamp:
    secs: 0
    nsecs: 0
  frame_id: ''
sentence: '$GPGGA,211516.841,5922.155,N,01026.414,E,1,12,1.0,0.0,M,0.0,M,,*6A'" 
publishing and latching message. Press ctrl-C to terminate

subscriber/echo output:

header: 
  seq: 2
  stamp: 
    secs: 0
    nsecs:         0
  frame_id: ''
sentence: ",211516.841,5922.155,N,01026.414,E,1,12,1.0,0.0,M,0.0,M,,*6A"

I'm an idiot. nevermind.
Of course this happens- I'm publishing straight from the linux terminal....