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
Use current time to check if observation is out of date #1872
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1872 +/- ##
==========================================
- Coverage 70.14% 69.29% -0.86%
==========================================
Files 218 218
Lines 10586 10586
==========================================
- Hits 7426 7336 -90
- Misses 3160 3250 +90
Continue to review full report at Codecov.
|
@DLu can you take a look at this? I could go either way on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I wasn't sure.
Thanks for the contribution @marting87 |
Basic Info
Issue:
Points remain in obstacle layer after we stopped publishing a point cloud on regular basis. Settings to reproduce:
According to
observation_persistence: 1.0
the point clouds used by the obstacle layers should time-out after 1 second.Analysis:
last_updated_
is updated on every new cloud that needs to be added to the buffer.last_updated_
.last_updated_
will never be updated.observation_list_
.observation_list_
:Sensor origin at (x, y) is out of map bounds. The costmap cannot raytrace for it.
Description of contribution in a few bullet points
last_updated_
withnh_->now()
in purgeStaleObservationsDescription of documentation updates required from your changes
Future work that may be required in bullet points