Skip to content

Add frame_id, image_width to camera info, small refactors - #602

Merged
codebot merged 2 commits into
mq/camera_streamingfrom
kaushik/camera_streaming_minor_fixes
Jul 22, 2026
Merged

codebot merged 2 commits into
mq/camera_streamingfrom
kaushik/camera_streaming_minor_fixes

Conversation

@kaushikbalasundar

Copy link
Copy Markdown
Collaborator
  • Fix missing frame_id: Added frame_id as a parameter to CaptureResultCallback so ros_image.header.frame_id and
    camera_info.header.frame_id are populated.

  • Fix missing camera_info width

  • Some minor styling change to how intrinsic params were extracted

  • Refactor hardcoded strings: Moved the optical frame ID strings (left_camera/optical, center_camera/optical, right_camera/optical) into file-scoped constants and applied them consistently across both simulated (ImageCallback) and real (CaptureResultCallback) code paths.

@codebot codebot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for these fixes.

@codebot
codebot merged commit 0831395 into mq/camera_streaming Jul 22, 2026
6 checks passed
@codebot
codebot deleted the kaushik/camera_streaming_minor_fixes branch July 22, 2026 22:01
kaushikbalasundar added a commit that referenced this pull request Jul 22, 2026
* Subscribe to proto CaptureResults and publish ROS images

* style

* style

* Add frame_id, image_width to camera info, small refactors (#602)

* Add frame_id, image_width to camera info, small refactors
* Style

---------

Co-authored-by: Kaushik Balasundar <44526371+kaushikbalasundar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants