-
Notifications
You must be signed in to change notification settings - Fork 181
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
Publish diagnostics_agg right away upon new warn/error diagnostics #48
Comments
This sounds like a good idea, but is there any particular advantage to working with At the same time, it seems to me that the main purpose of the I guess what I'm wondering about is whether the purpose of the aggregator is to provide an aggregation of the most up to date diagnostics at any point in time, or just in slices. |
The main consumer of Even for the GUI case though, IMO a new ERROR case should be made visible as soon as possible, rather than waiting as much as a second for the next report to arrive. |
Definitely agree with making errors visible ASAP. What about changing messages that are attached to the diagnostics? Does it matter that the cause of the error is different, but the level is still the same? For example:
Should both of these messages cause an instant update, or just the first one? Does that also apply to when the level is From my perspective, I don't think it makes sense to update instantly on changed messages in the |
That seems reasonable to me. |
From personal experience, I'd suggest a few adjustments to this:
|
The present behaviour is to only publish the aggregated diagnostics at the fixed rate (default 1Hz):
https://github.com/ros/diagnostics/blob/03e0db006175c3e6157bb50ab38021ebb4995c5b/diagnostic_aggregator/src/aggregator_node.cpp#L50-56
I believe that it would be better to trigger an immediate publish of the aggregated topic when a diagnostic transitions to WARN or ERROR. We have some error reporting mechanisms that currently have to subscribe to
/diagnostics
, and could instead subscribe to/diagnostics_agg
if we knew that a) no error reports would be missed, and b) new error reports would be passed through immediately.Thoughts?
The text was updated successfully, but these errors were encountered: