I believe this should probably be supported:
diagnostic_updater::FunctionDiagnosticTask helm_diag(
"Helm", [&helm_report](diagnostic_updater::DiagnosticStatusWrapper & stat) {
stat.add("Modes", helm_report.getModeSummary());
stat.add("Halted", helm_report.getHalted());
});
diag_updater->add(std::move(helm_diag));
Unfortunately, this doesn't work and segfaults when helm_diag goes out of scope.
I believe this should probably be supported:
Unfortunately, this doesn't work and segfaults when
helm_diaggoes out of scope.