ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Problem with nmea_navsat_driver

asked 2017-03-04 08:42:21 -0500

Aleksandra gravatar image

I try to connect MBED C027 with gps to ROS Kinect. I install package and I want to to try run ROS as in example from http://wiki.ros.org/nmea_navsat_driver

$ rosrun nmea_navsat_driver nmea_serial_driver _port:=/dev/ttyUSB0

but on my Ubuntu 16.04 LTS there is no dev/ttyUSB0 but dev/ttyACM0 so I change above formula to :

$ rosrun nmea_navsat_driver nmea_serial_driver _port:=/dev/ttyACM0

and I have message on my terminal:

[WARN] [1488637721.102995]: Received a sentence with an invalid checksum. Sentence was: 'JJB\x011$@\x040`\xc4\x8c\xa5JJJJ\xd6\x95c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\[..][WARN] [1488637721.121065]: Received a sentence with an invalid checksum. Sentence was: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00$GPRMC,142841.00,V,,,,,,,040317,,,N*76'

Traceback (most recent call last):
File "/opt/ros/kinetic/lib/nmea_navsat_driver/nmea_serial_driver", line 52, in <module> data = GPS.readline().strip() File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 511, in read raise SerialException('read failed: %s' % (e,)) serial.serialutil.SerialException: read failed: (4, 'Interrupted system call')

I consider that this path dev/ttyACM0 might cause problem to connect but I can't find a solution Anyone have any advice?

Thanks :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-05 04:18:19 -0500

Marek gravatar image

There might be two reasons for that. 1. Ensure that You pass the right baud as a parameter.

More important however is to ensure on the receiver side that is it casting NMEA messages.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-03-04 08:42:21 -0500

Seen: 1,490 times

Last updated: Mar 04 '17