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

Port cpu_monitor to ROS2 #326

Merged
merged 16 commits into from Mar 22, 2024
Merged

Port cpu_monitor to ROS2 #326

merged 16 commits into from Mar 22, 2024

Conversation

RichardvdK
Copy link
Contributor

I attempted to port the cpu_monitor to ROS2. The module allows users to monitor the CPU usage of their system in real time. It publishes the usage percentage in a diagnostic message.

  • I kept the ros arguments warning_percentage and window.
  • Added 3 unit tests to cover the code

Let me know what you think! :)

Copy link
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

Thanks for porting this. Please see the inline comments

@ct2034 ct2034 added enhancement ros2 PR tackling a ROS2 branch needs more work labels Jan 25, 2024
Richardvdketterij and others added 2 commits January 28, 2024 15:17
…and move the sleep to there to make sure this is done every test in a systemactic way
@RichardvdK
Copy link
Contributor Author

Thanks for porting this. Please see the inline comments

Thanks for reviewing! I updated the files accordingly :)

Copy link
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

Please fix the failing tests

Copy link
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

Please fix

  • SyntaxError in diagnostic_common_diagnostics/cpu_monitor.py:95

@RichardvdK
Copy link
Contributor Author

@ct2034 Excuse moi! Everything should be fixed now :)

Copy link
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

Sorry, I wanted to make these changes myself but could not push to your branch

diagnostic_common_diagnostics/CMakeLists.txt Outdated Show resolved Hide resolved
diagnostic_common_diagnostics/README.md Show resolved Hide resolved
diagnostic_common_diagnostics/mainpage.dox Outdated Show resolved Hide resolved
diagnostic_common_diagnostics/package.xml Outdated Show resolved Hide resolved
@RichardvdK
Copy link
Contributor Author

@ct2034 did you find time already to re-review this PR? :)

@ct2034 ct2034 merged commit f89beba into ros:ros2 Mar 22, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs more work ros2 PR tackling a ROS2 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants