Possibility of adding additional arguments to DiagnosticStatusWrapper
Hi, I'm fairly new to ros diagnostic so please forgive my possible noob question.
I'm using DiagnosticStatusWrapper class in my function to create some diagnostic functionality. I'm following a tutorial from this link.
I have created a function that is very similar to the dummy_diagnostic function, which is on line 48 of the above tutorial. I wanted to know if it is possible to add an additional argument to the dummy_diagnostic function?
To make my question clear: the dummy_diagnostic function is defined as
void dummy_diagnostic(diagnostic_updater::DiagnosticStatusWrapper &stat)
and I would like to add an argument to this function so it should look like this
void dummy_diagnostic(diagnostic_updater::DiagnosticStatusWrapper &stat, const int& threshold)