dora-rs / dora

DORA (Dataflow-Oriented Robotic Architecture) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
https://dora-rs.ai
Apache License 2.0
1.48k stars 75 forks source link

High CPU Usage in the Dora Environment When Running SLAM with PCL Library #651

Open ZcanMelo opened 1 week ago

ZcanMelo commented 1 week ago

I am running the same SLAM algorithm code on the NVIDIA Orin platform using both Dora and ROS environments. ROS DORA The first image shows the CPU usage in the ROS environment, while the second image shows the CPU usage in the DORA environment.

Despite identical sensors and controllers, the CPU usage is significantly higher in the Dora environment. The high CPU consumption has been traced to the align function from the PCL library. align

I am seeking to understand the reason behind this difference in CPU usage and is considering whether it could be due to compatibility issues between the Dora environment and the PCL library.

Hennzau commented 1 week ago

Hi! thanks for the report, can you tell us what is your dora version and how you installed this version?

ZcanMelo commented 1 week ago

Hi! My Dora version is 0.3.2. I installed it via the Releases page, downloading both the zip and whl files.

Hennzau commented 1 week ago

Okay, so 0.3.2 is old, can you give a try with 0.3.6?

ZcanMelo commented 1 week ago

I received it, thank you for your response, I will try it.

starlitxiling commented 1 week ago

Hi! Could you try to comment out your output statements, such as printf or cout, and then test again? You can use the fprintf function to output debugging information to a file.

ZcanMelo commented 1 week ago

Hello, thank you for your reply. I have already tried commenting out the print statements, but the effect was not significant.

haixuanTao commented 3 days ago

Are you sure, you're running the same frequency?