micro-ROS / micro-ROS/micro_ros_setup

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

Aperta
#757 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Shell
Stelle
509
Fork
183
Merge medio
22h 26m
PR unite (30g)
7

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il problema segnalato avviando micro_ros_agent tramite ros2 launch, monitorando il relativo processo con htop e creando il topic con il comando ros2 topic pub mostrato. Confronta il picco della CPU con il caso di pubblicazione di rclcpp e traccia il percorso di creazione del topic in micro_ros_agent. Il lavoro è completato quando la causa è stata identificata e la creazione del topic non provoca più l’uso eccessivo della CPU segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
embedded-iot, performance, robotics
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.