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

When ros2 creates a new topic, the CPU usage is high #757

Open
Venceplace opened this issue Dec 25, 2024 · 0 comments
Open

When ros2 creates a new topic, the CPU usage is high #757

Venceplace opened this issue Dec 25, 2024 · 0 comments

Comments

@Venceplace
Copy link

  • Hardware description: N/A
  • RTOS: Freertos
  • Installation type: micro_ros_setup
  • Version or commit hash: humble

Steps to reproduce the issue

  1. Start micro_ros_agent through ros2 launch;
  2. htop -p pidof micro_ros_agent to check the change of CPU usage
  3. Publish a message through ros2 topic pub /avoidance_status std_msgs/msg/UInt8 "{data: 0}", and you will find that the CPU usage soars from 7% to 30%, and then falls back to a stable state of 7%;
  4. Create a publishing topic through rclcpp, only create it once, send at 20hz frequency for 30s, stop for 3min, and then send again..., the CPU usage only changes when starting the node, and there is no fluctuation during the middle operation.

Is there any way to solve this problem? If the CPU is insufficient, the main controller will not be able to run.

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

1 participant