micro-ROS / micro-ROS/micro_ros_setup

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

Ouverte
#757 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Shell
Étoiles
509
Forks
183
Merge moyen
22 h 26 min
PR mergées (30 j)
7

Description

- 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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez le problème signalé en démarrant micro_ros_agent via ros2 launch, en surveillant son processus avec htop et en créant le topic avec la commande ros2 topic pub indiquée. Comparez le pic de CPU avec le cas de publication de rclcpp et retracez le chemin de création du topic dans micro_ros_agent. C’est terminé lorsque la cause est identifiée et que la création du topic n’entraîne plus l’utilisation excessive du CPU signalée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
embedded-iot, performance, robotics
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.