Open SiddharthPatel45 opened 5 years ago
/diagnostics
are used by all nodes that wants to emit diag data. So some nodes may publish different amount of diag entries. That is similar to how /tf
works.
You should not rely on indexes, they may change. You should walk and compare names.
ok, got it. thanks So there is actually no specific time time on which they will publish data. I will do as you suggested Thanks
Hi guys,
I am trying to log pixhawk CPU usage using the rostopic
/diagnostics
. But even though it says it publishes at 1Hz, when I subscribe to this topics to extract the CPU usage, most of the messages received by the subscriber in the node does not contain that much info, and I get the errorsegmentation fault (core dumped)
. I checked the vector length and see that it receives full message only sporadically. There is not relation in between the timestamps I receive, so I have to use a workaround like:But when I use
rostopic echo /diagnostics
I can see all the content. Can someone explain why part of the message is not published regularly or is there something I am missing. thanks. It is not something critical but as I am logging I just want to know if there is a consistent way to log this parameter.Thanks
MAVROS version and platform
Mavros: ?0.29.0? ROS: ?Kinetic? Ubuntu: ?16.04?