Code Monkey home page Code Monkey logo

ntrip_ros's People

Contributors

tilk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ntrip_ros's Issues

Message response problem

Hello!

Hope you're doing well. I am trying to get your client to work. However, I have encountered the following problem:

It appears that I can succesfully obtain a connection response from the NTRIP caster. However, when I read the response , the "\n\r" string is never found. As a consequence, the code endlessly iterates over a seemingly infinite message.

I have set the following parameters in ROS (exactly as typed here):
ntrip_server = www.igs-ip.net:2101
ntrip_stream = DLF100NLD0
ntrip_user = ****
ntrip_pass= ****

Note: I am not using the nmea_gga sentence, as the NMEA is not supported by the caster which I am trying to access.

connection = HTTPConnection(self.ntc.ntrip_server)
connection.request('GET', '/'+self.ntc.ntrip_stream, None, headers)
response = connection.getresponse()
if response.status != 200: raise Exception("blah")
buf = ""
rmsg = Message()
while not self.stop:
data = response.read(100)
pos = data.find('\r\n')
if pos != -1:
rmsg.message = buf + data[:pos]
rmsg.header.seq += 1
rmsg.header.stamp = rospy.get_rostime()
buf = data[pos+2:]
self.ntc.pub.publish(rmsg)
else: buf += data

I have observed a couple of times that it actually finds the end and succesfully publishes the message. However, there is no periodicity. Perhaps its the NTRIP caster ? I would appreciate any pointer you may have.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.