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

[Diagnostics] Add diagnostics of execution time and periodicity of the controllers and controller_manager #1871

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

saikishor
Copy link
Member

This PR aims to add diagnostics to the controller_manager and the loaded controllers regarding their periodicity and execution time.

Needs: ros-controls/realtime_tools#192

The diagnostics should kinda look like the following screenshots (The following are only to look at the summary):

image
image
image

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

I successfully tested the new diagnostics with the demos (synchronous controllers), but as I haven't used them much a note for myself (would have been valid with #1764 already)

  • per default, /diagnostics is sent with 1Hz by the Updater, we don't set a different value in the CM's constructor
  • diagnostics_updater_ lives in a non RT-thread, and so do also the callback methods.

One comment as we are adding more and more parameters: Would it make sense to use generate_parameter_library also for the CM? I think we can't use it for the per-controller parameters because maps do not work well here, and there is no way to "namespace" parameters with GPL. But for the others?

@saikishor
Copy link
Member Author

@christophfroehlich yes, I thought of using the GPL for this, but I wanted to see your opinion here before taking any decision. I'm open to having this

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