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

Fix high CPU usage #65

Merged
merged 4 commits into from
Apr 6, 2022
Merged

Fix high CPU usage #65

merged 4 commits into from
Apr 6, 2022

Conversation

hsd-dev
Copy link
Contributor

@hsd-dev hsd-dev commented Jul 27, 2021

Fixes #63

The CPU consumption comes down to ~10%

@Arthav24
Copy link

Frequency dropped from 25 to 12 in 100Hz mode and from 12 to 6 in 50Hz mode

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Apr 4, 2022

pushed new changes. Now frequency is as expected even after disabling and enabling layers:

rosrun dynamic_reconfigure dynparam get /r2300_node 
{'scan_frequency': 100, ...
rostopic hz /cloud
average rate: 24.789
	min: 0.008s max: 0.074s std dev: 0.00627s window: 1166

@hsd-dev hsd-dev changed the title [WIP] Fix high CPU usage Fix high CPU usage Apr 5, 2022
@hsd-dev hsd-dev merged commit 6c3192b into main Apr 6, 2022
@hsd-dev hsd-dev deleted the fix_while_loop branch April 6, 2022 08:55
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.

Very high cpu usage with R2300
2 participants