Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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.

Valutazione

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

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.

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.

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

Preparare l'ambiente

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.

Altre issue di micro-ROS/micro_ros_setup

Tutte le issue di micro-ROS/micro_ros_setup

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.