Trigger action according to diagnostics
Hello,
I have nodes publishing diagnostic data and I have configured them correctly and I can visualize them in Rviz.
But now I would like to trigger some actions, for example ring a buzzer when one sensor fails.
Do I need to create my own diagnostic analyzer that will do what I need ? Or do I need to write a node that will subscrive to /diagnostics_agg
or /diagnostics_toplevel_state
?
Thanks a lot ! :)