tilk / ntrip_ros Goto Github PK
View Code? Open in Web Editor NEWNTRIP client, imports RTCM streams to ROS
License: BSD 3-Clause "New" or "Revised" License
NTRIP client, imports RTCM streams to ROS
License: BSD 3-Clause "New" or "Revised" License
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.