Don't process GNSS messages before SetDatum has been called #929
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When the NavsatTransform node is starting with
wait_for_datum
, the is the possibility of a race condition. We had nodes crashing because of this. My interpretation of the race condition is this:SetDatum
service is calledodometry/filtered/global
an map->base_footprint TF message with high x/y values.odometry/filtered/global
with it's X/Y far outside the UTM origin/range, crashing.This is the error log:
I think this is because of theses issues:
odometry/gps
before one of these conditions is met:wait_for_datum
parameter isFalse
I fixed it in this PR and tested locally in a regression test that isolates the race condition. I also added some more debugging logs to track issues better - I can also leave that part out if you want.
I'd be very happy about feedback if I got the issue right and if somebody else is having similar issues.