You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 error segmentation 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?
The text was updated successfully, but these errors were encountered:
/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.
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?
The text was updated successfully, but these errors were encountered: