| title | ROS 2 Diagnostics Tutorial |
|---|---|
| short_description | Basic example of publishing and visualizing DiagnosticArray messages |
| blog_post_url | https://foxglove.dev/blog/a-practical-guide-to-using-ros-diagnostics |
This folder contains two packages that publish a minimal example of DiagnosticArray, as seen in the example tutorial in Foxglove's blog.
These packages only serve as as basic example to understand the fundamentals of diagnostic messages. For more advanced diagnostics, refer to the package diagnostic_updater.
The packages diagnostics_publisher_cpp and diagnostics_publisher_py have the same functionality:
A diagnostic_publisher node that publishes a DiagnosticArray message with two DiagnosticStatus elements:
- Element 1 contains diagnostic information about a supervised topic of type Int16
- Element 2 contains diagnostic information about a counter inside the node