Possibility of adding additional arguments to DiagnosticStatusWrapper

asked 2021-02-08 13:20:51 -0600

mvish7 gravatar image

updated 2021-02-10 00:32:22 -0600

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)

edit retag flag offensive close merge delete