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

Why is observation_persistence is compared to the last update time instead of the current time? #1114

Open
nightingale0131 opened this issue May 7, 2021 · 0 comments

Comments

@nightingale0131
Copy link

This is more of a question than an issue, but I noticed that the observation_persistence parameter in the obstacle layer is used to compare observations with the last known update rather than the current time.

This can be seen in the ObservationBuffer::purgeStaleObservations() function (observation_persistence is passed into observation_keep_time_). This is an issue for me because I have an observation source that does not populate the buffer at a given rate, in fact, it very rarely populates the buffer. Instead of the observation being cleared after observation_persistence (say 1s) has passed, it hangs around indefinitely in the buffer until the next observation is received.

Does anyone know why this is the case? Is this by design or a bug?
I ask because it's not how I would have expected observation_persistence to be used.

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

No branches or pull requests

1 participant