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

Ported cpu_monitor to ROS2 #4

Merged
merged 9 commits into from
Jan 17, 2024
Merged

Ported cpu_monitor to ROS2 #4

merged 9 commits into from
Jan 17, 2024

Conversation

RichardvdK
Copy link

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

Question to you guys; is the test test_updater() overkill in this context or does it add value?

@MCFurry
Copy link
Member

MCFurry commented Jan 16, 2024

LGTM! I think we can open this PR to the original repo indeed.

The ROS1 node also had tests, so I think this is good!

@Timple
Copy link
Member

Timple commented Jan 16, 2024

Flake 8 issue. But other than that, just forward to the ros repo.

@Rayman
Copy link

Rayman commented Jan 16, 2024

Yes LGTM, only a few flake8 errors remaining

Copy link

@mbharatheesha mbharatheesha left a comment

Choose a reason for hiding this comment

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

LGTM

@RichardvdK RichardvdK merged commit e4b13e0 into ros2 Jan 17, 2024
18 checks passed
@Timple
Copy link
Member

Timple commented Jan 17, 2024

This should not have been merged. This PR should have been redicted to github/ros/diagnostics.

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.

5 participants