Behavior change on Lyrical: static transforms are cleared by BufferCore::clear() (RViz Reset)

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

I maintainer di solito rispondono entro 1 giorno

@tfoote ci sta già lavorando.

Dal 23/10/2026.

  • #998 di @dlanov — chiusa senza merge
  • #1002 di @paneendrakumar0 — chiusa senza merge
  • #1004 di @tfoote — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
robotics

Direzione di ricerca

Start with tf2::StaticCache::clearList() and BufferCore::clear(), comparing the Jazzy and Lyrical behavior described in the issue. Reproduce the problem with robot_state_publisher, RViz, and the TF display, then verify that static transforms remain available after pressing Reset and that the reported camera lookup crash no longer occurs.

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

Descrizione

Environment
  • Operating System:
    • Ubuntu 24.04
  • Installation type:
    • binaries (ROS 2 Lyrical packages in the NVIDIA Isaac ROS 5.0 container)
  • Version or commit hash:
    • ros-lyrical-tf2 0.45.9
  • DDS implementation:
    • Fast DDS (rmw_fastrtps_cpp)
  • Client library (if applicable):
    • rclcpp
Steps to reproduce issue
  1. Start robot_state_publisher (the robot has fixed joints) and RViz.
  2. Add the TF display in RViz.
  3. Press the Reset button in RViz.
Expected behavior

The TF display stays after Reset, as in Jazzy.

Actual behavior
  • The TF display becomes empty after Reset. It does not come back until I restart RViz.
  • With camera nodes also running, RViz crashes after Reset:
    terminate called after throwing an instance of 'tf2::LookupException'
      what():  Static cache is empty, when looking up transform from frame [camera_1_left_camera_frame] to frame [world]
    
  • The same crash is reported in ros2/rviz#1875.
Additional information

With the same launch files on Jazzy, the TF display stays after Reset.

I compared tf2 in Jazzy and Lyrical. This change in #908 may be related:

// Jazzy
void tf2::StaticCache::clearList() {}
// Lyrical
void tf2::StaticCache::clearList() {populated_ = false;}

I think RViz Reset calls BufferCore::clear(), and now the static transforms are cleared too.
/tf_static is not sent again, so they do not come back.

As a workaround, I changed only this one line back to {}, and built geometry2 (0.45.10) from source.
After this, the TF display did not become empty, even when I pressed Reset many times.
I kept populated_, so I think the fix for #769 (empty cache returns false) still works.

Lingua principale
C++
Stelle
157
Fork
265
Merge medio
13h 41m
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 ros2/geometry2

Tutte le issue di ros2/geometry2

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.