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

Add diagnostics #2986

Merged
merged 3 commits into from
Jun 1, 2022
Merged

Conversation

tonynajjar
Copy link
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses #2984
Primary OS tested on Ubuntu
Robotic platform tested on Turtlebot gazebo simulation

Description of contribution in a few bullet points

  • I added diagnostics publishing for the lifecycle state of the nodes

Description of documentation updates required from your changes

  • Not sure, let me know if I should add docs

Future work that may be required in bullet points

  • Maybe more elaborate diagnostics

For Maintainers:

  • Check that any new parameters added are updated in navigation.ros.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

@mergify
Copy link
Contributor

mergify bot commented Jun 1, 2022

@tonynajjar, please properly fill in PR template in the future. @SteveMacenski, use this instead.

  • Check that any new parameters added are updated in navigation.ros.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

@mergify
Copy link
Contributor

mergify bot commented Jun 1, 2022

@tonynajjar, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just unavoidable linter complaints

void
LifecycleManager::CreateActiveDiagnostic(diagnostic_updater::DiagnosticStatusWrapper & stat)
{

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

White space that I'm sure CI will complain about - no empty lines at the start or end of the function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I ran ament_uncrustify

root@10a5941ce854:~# ament_uncrustify /root/ros2_ws/src/navigation2/nav2_lifecycle_manager/src/lifecycle_manager.cpp
No code style divergence in file '/root/ros2_ws/src/navigation2/nav2_lifecycle_manager/src/lifecycle_manager.cpp'

No problems found

Anything else I should run to detect the CI problems you mentioned?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may have an outdated version 🤷

@SteveMacenski
Copy link
Member

Test lifecycle also failed: https://app.circleci.com/pipelines/github/ros-planning/navigation2/7390/workflows/720796c3-4123-4fed-a865-8d126264caf3/jobs/26044 that should not be failing, so this might introduce a regression

@tonynajjar
Copy link
Contributor Author

tonynajjar commented Jun 1, 2022

I'm not 100% sure but it seems like the nav2_lifecycle_manager tests pass now? I simply fixed the empty lines.

Would be nice to see a more detailed summary (or I'm missing where to look):

Summary: 2854 tests, 3 errors, 3 failures, 565 skipped

@SteveMacenski
Copy link
Member

SteveMacenski commented Jun 1, 2022

Yeah maybe, I'm going to retrigger CI a few times just to make sure

There's a more detailed look in the artifacts tab, sorted by stdout in each package's tests

@SteveMacenski SteveMacenski merged commit 7efb6ba into ros-navigation:main Jun 1, 2022
@SteveMacenski
Copy link
Member

Ran 4x, looked related to the linter error, done!

@tonynajjar tonynajjar deleted the add-diagnostics branch June 2, 2022 07:43
redvinaa pushed a commit to EnjoyRobotics/navigation2 that referenced this pull request Jun 30, 2022
* add diagnostics

* fix

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants