Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROS2] Enable multiple tasks publishing for diagnostic updater #182

Conversation

BasVolkers
Copy link
Contributor

Currently, the publish() function of the Updater() class in _diagnostic_updater.py seems bugged.

A DiagnosticStatus is only created for the last stat in msg, while it should be for every stat in msg.
This means that only a single DiagnosticStatus is published instead of all the DiagnosticStatus.

This Pull Request fixes this by creating a DiagnositcStatus in the for loop and appending it to the DiagnosticArray.

This is a copy of #181, but with target ros2-devel.

@BasVolkers
Copy link
Contributor Author

@Karsten1987

@Karsten1987 Karsten1987 self-assigned this Feb 26, 2021
@Karsten1987 Karsten1987 added the ros2 PR tackling a ROS2 branch label Feb 26, 2021
@Karsten1987
Copy link
Contributor

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@Karsten1987
Copy link
Contributor

@BasVolkers thanks for the patch and sorry for the long turnaround. This ticket flew under my radar.

@Karsten1987 Karsten1987 merged commit 651c3ad into ros:ros2-devel Mar 1, 2021
Karsten1987 added a commit that referenced this pull request Mar 4, 2021
Co-authored-by: BasVolkers <basvolkers99@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ros2 PR tackling a ROS2 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants