Skip to content

D555 TF bug - flipped y on camera_link -> camera_infra2_frame #3435

@kyle-the-voyant

Description

@kyle-the-voyant

I am seeing an incorrect static transform when running the realsense2_camera_node with the new D555 camera.

It is documented (and shown) that camera_infra1_frame is the left stereo camera and aligns with the camera_link frame.

The camera_link -> camera_color_frame seems correct based on hand measurements of the RGB camera being ~6cm to the right of the left stereo camera. Below see: y: -0.05891134962439537

However, camera_link -> camera_infra2_frame is incorrect and seems to have a flipped sign. The magnitude is correct based on hand measurements of the right camera being ~10cm to the right of the left stereo camera. Below see: y: 0.09499085694551468. However, the positive sign puts this to the left of the left camera (and has the color camera frame outside of the two stereo camera frames, which is not how the camera is configured.)

$ ros2 topic echo /tf_static 
transforms:
- header:
    stamp:
      sec: 1758573838
      nanosec: 735626811
    frame_id: camera_link
  child_frame_id: camera_infra1_frame
  transform:
    translation:
      x: 0.0
      y: -0.0
      z: -0.0
    rotation:
      x: 0.0
      y: 0.0
      z: 0.0
      w: 1.0
- header:
    stamp:
      sec: 1758573838
      nanosec: 735626811
    frame_id: camera_aligned_depth_to_infra1_frame
  child_frame_id: camera_infra1_optical_frame
  transform:
    translation:
      x: 0.0
      y: -0.0
      z: -0.0
    rotation:
      x: -0.5
      y: 0.4999999999999999
      z: -0.5
      w: 0.5000000000000001
- header:
    stamp:
      sec: 1758573838
      nanosec: 735626811
    frame_id: camera_link
  child_frame_id: camera_aligned_depth_to_infra1_frame
  transform:
    translation:
      x: 0.0
      y: -0.0
      z: -0.0
    rotation:
      x: 0.0
      y: 0.0
      z: 0.0
      w: 1.0
- header:
    stamp:
      sec: 1758573838
      nanosec: 735666066
    frame_id: camera_link
  child_frame_id: camera_infra2_frame
  transform:
    translation:
      x: 0.0
      y: 0.09499085694551468
      z: -0.0
    rotation:
      x: 0.0
      y: 0.0
      z: 0.0
      w: 1.0
- header:
    stamp:
      sec: 1758573838
      nanosec: 735666066
    frame_id: camera_infra2_frame
  child_frame_id: camera_infra2_optical_frame
  transform:
    translation:
      x: 0.0
      y: -0.0
      z: -0.0
    rotation:
      x: -0.5
      y: 0.4999999999999999
      z: -0.5
      w: 0.5000000000000001
- header:
    stamp:
      sec: 1758573838
      nanosec: 755403300
    frame_id: camera_link
  child_frame_id: camera_color_frame
  transform:
    translation:
      x: -0.00039143903995864093
      y: -0.05891134962439537
      z: -3.5686345654539764e-05
    rotation:
      x: -0.0009801259730011225
      y: 0.0005495680379681289
      z: 0.0009980970062315464
      w: 0.9999988675117493
- header:
    stamp:
      sec: 1758573838
      nanosec: 755403300
    frame_id: camera_color_frame
  child_frame_id: camera_color_optical_frame
  transform:
    translation:
      x: 0.0
      y: -0.0
      z: -0.0
    rotation:
      x: -0.5
      y: 0.4999999999999999
      z: -0.5
      w: 0.5000000000000001
---

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions