Handle empty ROS2 camera frame_id without panicking#12719
Handle empty ROS2 camera frame_id without panicking#12719Woodii1998 wants to merge 1 commit intorerun-io:mainfrom
frame_id without panicking#12719Conversation
|
I think this should be handled on |
|
Related: There's #12663 that also solves this on the TF level |
I agree with handling this in re_tf so that empty frame ids can never panic the transform system, regardless of the source. But I think #12663 goes a bit too far: it does not just make the system robust, it reinterprets empty frame ids as implicit/entity-derived frames. That changes the meaning of the data. For example, if a camera topic has frame_id = "", I would rather treat that as missing spatial metadata and degrade it to plain 2D import. Under #12663, it instead starts behaving like a valid implicit frame, which hides the fact that the original frame metadata was missing. So my preference would be: re_tf handles robustness globally; |
Related
Closes #12718
What
Empty
header.frame_idin ROS2 camera messages caused aTransformForestpanic due to self-referential pinhole topology. At the MCAP parser level, empty frame IDs now trigger a graceful downgrade:CameraInfoimport is skipped entirely, whileImageandCompressedImagefall back to plain 2D import without spatial metadata. As a defense-in-depth measure,TransformForestnow also ignores self-referential pinhole projections instead of panicking.