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

Fix queue build up issue in gpsd_client #89

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

erikboto
Copy link

In step() which is called periodically according to the parameter publish_rate we only perform read() once, which means that there could still be more unprocessed data from gpsd waiting. This leads to a build up of unprocessed data causing the published data to be old and outdated.

By instead using the waiting() call to see if there's more data to be processed we can make sure that what we publish is actually the newest available data.

In step() which is called periodically according to the parameter
publish_rate we only perform read() once, which means that there could
still be more unprocessed data from gpsd waiting. This leads to a build
up of unprocessed data causing the published data to be old and
outdated.

By instead using the waiting() call to see if there's more
data to be processed we can make sure that what we publish is actually
the newest available data.
@danthony06
Copy link
Collaborator

danthony06 commented Oct 15, 2023 via email

@danthony06
Copy link
Collaborator

Thanks for the good fix. I'll also work on getting it ported to ROS 1.

@danthony06 danthony06 merged commit 113782d into swri-robotics:ros2-devel Oct 26, 2023
6 checks passed
danthony06 added a commit to danthony06/gps_umd that referenced this pull request May 9, 2024
danthony06 added a commit that referenced this pull request May 9, 2024
* Port of PR #89

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

Successfully merging this pull request may close these issues.

2 participants