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

Node frequency impacting other nodes? #737

Open
pierre-rouanet opened this issue Dec 30, 2024 · 2 comments
Open

Node frequency impacting other nodes? #737

pierre-rouanet opened this issue Dec 30, 2024 · 2 comments

Comments

@pierre-rouanet
Copy link

pierre-rouanet commented Dec 30, 2024

Hi!
I've started playing a bit with dora to better understand its possibilities. It's really interesting and promising!

Based on the talker/listener examples, I've made one talker really high-frequency (eg. 500Hz) and kept the other at 1Hz.
The high-frequency node naturally uses quite some CPU. But the other talker with the low-frequency also quite significantly increases its CPU consumption (~ 20x).

Are all nodes receiving the tick updates of the highest frequency? Is there something I should do differently?
I've also tried mixing Python and Rust nodes as ideally, I would like to have some high frequency nodes running in Rust (typically for low-level motor control) and higher level nodes in Python.

Thanks!

@haixuanTao
Copy link
Collaborator

Hello Pierre!

Thanks for trying it out!

We do indeed have a lot of CPU-inefficiency while receiving data that we haven't optimized on in order to have the least latency on reception.

We will work on this in order to achieve high-frequency 500Hz, but at is currently implemented. High frequency is currently not managed by dora unfortunately.

Your vision on rust-python mixing is exactly what we want to do, and is definitely in our roadmap.

@pierre-rouanet
Copy link
Author

Great, thank you Tao for your answer!
I'll probably investigate a bit more later as we are considering alternatives option than using ROS2 as the core framework for our robots.
Let me know if we can help!

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