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

High CPU usage with int32_publisher #297

Open
yashi opened this issue May 31, 2023 · 2 comments
Open

High CPU usage with int32_publisher #297

yashi opened this issue May 31, 2023 · 2 comments

Comments

@yashi
Copy link

yashi commented May 31, 2023

Describe the bug
Having only timers on an executor makes rmw_wait() to spin without blocking. This causes high cpu usage and it's a problem on a RTOS with threading support.

To Reproduce
Just build int32_publisher from micro-ROS-demos.

Expected behaviour
rclc_executor_spin() should always be a blocking call without any service, client, subscription, or timer.

System information (please complete the following information):

  • OS: Zephyr (but it shouldn't matter)
  • ROS 2: Humble (but it shouldn't matter)
  • Version: humble.

Additional context
https://micro-ros.slack.com/archives/CNC141G0N/p1684752941054099

@Acuadros95
Copy link
Contributor

This is resolved by #305, please close when merged

@yashi
Copy link
Author

yashi commented Aug 1, 2023

Thanks for you PR.

BTW, if you have "Resolves #297" in the description of #305, this will be closed when merged.
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

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

No branches or pull requests

2 participants