Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficient data rate is logged for GPS rates lower than 20 Hz #6

Open
pjreed opened this issue Sep 11, 2017 · 12 comments
Open

Insufficient data rate is logged for GPS rates lower than 20 Hz #6

pjreed opened this issue Sep 11, 2017 · 12 comments
Labels

Comments

@pjreed
Copy link
Contributor

pjreed commented Sep 11, 2017

A user reported seeing this message logged when using an OEM718D device that was running at 5 Hz. Looking at the code, I suspect that this warning will be logged any time GPS messages are received at a rate of less than 20 Hz, even if the polling_period is configured differently.

@pjreed pjreed added the bug label Sep 11, 2017
@senoa95
Copy link

senoa95 commented Oct 10, 2017

+1

1 similar comment
@DongxuFooo
Copy link

+1

@olamarre
Copy link

olamarre commented Jul 6, 2018

Hi! I am using a Novatel Smart6L, and I am also getting this error. Has anyone figured out a fix for it?
Also, I am not receiving any data on the published topics (except for diagnostics). Is this related to this error?
Thank you!

@senoa95
Copy link

senoa95 commented Jul 7, 2018

I have been able to get past this issue. The issue is caused by the configuration of your specific hardware. In order to fix this issue you will need to have access to the Novatel Connect software (requires a Windows OS). The fix requires that you configure the correct Serial/USB ports to output Novatel data (this can be configured under the COM PORT Wizard). The SWRI Novatel ROS package has a launch file tester_for_usb.launch which has usb0 set as default. Keep in mind that Novatel hardware has USB1, USB2... and COM1, COM2,... but linux systems recognize USB and COM ports on a zero-base system.

I hope this helps.

@olamarre
Copy link

olamarre commented Jul 12, 2018

Hi @senoa95 ! Thanks a bunch for the reply.
Sorry for the delay - I just managed to get a Windows OS I can use for this (which is on a different computer - hope that won't matter), and the Novatel Connect software works well.
If I may ask, what did you change on your end to make it work? I'm simply not certain what to change on the COM PORT Wizard of the Novatel Connect software.
I do understand the indexing difference on Novatel and Linux machines. However, I do not understand the problem if the device already appears as /dev/ttyUSB0 (which is the case for me).
Thanks again for the help!

Update: I finally managed to read the sensor. However, although readings are coming in, the error message still shows up. Is this related to a specific setting on the Novatel that permitted you to prevent the error from showing up @senoa95 ? Thanks!

@senoa95
Copy link

senoa95 commented Jul 27, 2018

Hi @olamarre sorry for the delay, I was not able to get to this earlier. It seems the wizard is configured correctly. I assume that you are using the 'tester_for_usb.launch' to launch the driver. Have you tried changing the device to use one of the other USB ports eg. try (device: /dev/ttyUSB1 or
device: /dev/ttyUSB2). I hope that fixes your issue.

Additionally, I think one of the latest commits might have fixed the issue but there are some carriage returns ('\r') missing in the novatel_gps.cpp file in the novatel_gps_driver directory. Give that a shot.

Good luck!

@olamarre
Copy link

Hi @senoa95 ! No worries. I was actually off the grid for the past month - I'll try it and let you know if I have further problems. Thanks a lot!

@weisongwen
Copy link

@olamarre have you solve the probelm? i got the same probelm,

@mrgransky
Copy link

Still the same error:

[ERROR] [1575627506.957520432]: insufficient data rate <Novatel GPS (/dev/ttyUSB0)>: 0.000000 < 20.000000

and tried with all three /dev/ttyUSB0 , /dev/ttyUSB1, /dev/ttyUSB2 and my device: pwrpack7.

$ rostopic list -v

Published topics:
 * /clocksteering [novatel_gps_msgs/ClockSteering] 1 publisher
 * /inspvax [novatel_gps_msgs/Inspvax] 1 publisher
 * /fix [sensor_msgs/NavSatFix] 1 publisher
 * /heading2 [novatel_gps_msgs/NovatelHeading2] 1 publisher
 * /gpgga [novatel_gps_msgs/Gpgga] 1 publisher
 * /corrimudata [novatel_gps_msgs/NovatelCorrectedImuData] 1 publisher
 * /gprmc [novatel_gps_msgs/Gprmc] 1 publisher
 * /time [novatel_gps_msgs/Time] 1 publisher
 * /rosout [rosgraph_msgs/Log] 1 publisher
 * /inscov [novatel_gps_msgs/Inscov] 1 publisher
 * /rosout_agg [rosgraph_msgs/Log] 1 publisher
 * /bestpos [novatel_gps_msgs/NovatelPosition] 1 publisher
 * /imu [sensor_msgs/Imu] 1 publisher
 * /insstdev [novatel_gps_msgs/Insstdev] 1 publisher
 * /bestxyz [novatel_gps_msgs/NovatelXYZ] 1 publisher
 * /inspva [novatel_gps_msgs/Inspva] 1 publisher
 * /range [novatel_gps_msgs/Range] 1 publisher
 * /diagnostics [diagnostic_msgs/DiagnosticArray] 1 publisher
 * /bestutm [novatel_gps_msgs/NovatelUtmPosition] 1 publisher
 * /gps [gps_common/GPSFix] 1 publisher
 * /bestvel [novatel_gps_msgs/NovatelVelocity] 1 publisher

Subscribed topics:
 * /gps_sync [std_msgs/Time] 1 subscriber
 * /rosout [rosgraph_msgs/Log] 1 subscriber

but neither one of them has sensor reading!

@pjreed
Copy link
Contributor Author

pjreed commented Dec 6, 2019

@mrgransky , I think your issue is unrelated to this. This issue is because the diagnostics will log a warning if your data rate is less than 20 Hz even if you have actually configured your receiver to produce less than that, but your issue seems to be that you're not actually publishing data at all. If you've built the driver from the latest source and have addressed the comments I made in #75 and #18, and you're still seeing this problem, could you open a new issue and paste a log file from when you run the driver?

@senoa95
Copy link

senoa95 commented Dec 6, 2019

@mrgransky I have run into a similar issue using Novatel Span CPT. It is possible that the ROS driver is not communicating with the novatel hardware. Please look at my comment above to see how I solved this issue, basically by making all received messages of type "Novatel".

@mrgransky
Copy link

Thanks for your support. The problem was indeed connection with GPS antenna. Now it publishes data with sensor readings!
And I built it from the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants