Ask Your Question
3

How to get /fix on NMEA data emitted on a TCP port

asked 2012-05-09 10:35:28 -0500

PKG gravatar image

updated 2012-05-09 12:26:28 -0500

I have a process emitting NMEA packets, similar to what gpsd does, on a TCP port . How do I use gspd_client on this port so that I can get the fix and extended_fix rostopics? Is there any other way to get a /fix quickly?

edit retag flag offensive close merge delete

Comments

So it's a UDP or TCP port? Or is it a serial port?

Eric Perko gravatar imageEric Perko ( 2012-05-09 10:57:36 -0500 )edit

It's a TCP port

PKG gravatar imagePKG ( 2012-05-09 12:25:54 -0500 )edit

Were you able to find how to do it? I am also struck with the same problem?

sai gravatar imagesai ( 2012-10-24 01:13:56 -0500 )edit

found it under tcp feed section in gpsd webpage

sai gravatar imagesai ( 2012-10-24 22:59:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-05-10 04:26:17 -0500

DimitriProsser gravatar image

The gpsd_client node uses the gps structure defined in <libgpsmm.h>, which (in the version of gpsd I'm using: gpsd3.3) uses QTcpSocket to connect to gpsd. I haven't read through the code very extensively, but it seems that if you set the ROS parameters for host and port in the gpsd_client node, it should try to connect to your TCP socket.

rosrun gpsd_client gpsd_client _host:=YOUR_HOST _port:=YOUR_PORT

Just to be clear, I have not tested this. My answer is based off of a quick read-through of the source code.

edit flag offensive delete link more

Comments

Not quite! GPSD_Client needs a gpsd process running on the port. Otherwise it just quits

PKG gravatar imagePKG ( 2012-05-10 06:28:10 -0500 )edit

Exactly..so what to do..?

sai gravatar imagesai ( 2012-10-24 01:17:26 -0500 )edit

found in the gpsd website under tcp feed section

sai gravatar imagesai ( 2012-10-24 22:58:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-09 10:35:28 -0500

Seen: 1,142 times

Last updated: May 10 '12