Skip to content

wrong optical frame transform in v2 #165

@christian-rauch

Description

@christian-rauch

System Environment

  • Hardware Info: Please provide system hardware details, such as:
    • CPU architecture (e.g., x86_64, arm64)
    • CPU model (e.g., 13th Gen Intel® Core™ i7-13700 × 24, NVIDIA Jetson Orin)
    • Memory size (e.g., 16GB, 32GB)
    • GPU model if available (e.g., NVIDIA RTX 3060, Integrated GPU)
  • Ubuntu Version: Please provide the ubuntu version you are using (e.g., ubuntu20.04, ubuntu22.04, etc.)
  • ROS Version: Please provide the version of ROS you are using (e.g., ROS Noetic, ROS 2 Foxy, etc.)
  • Camera Model: Femto Bolt
  • Firmware Version: latest
  • Branch: v2-main
  • Commit: Please provide the commit ID you are using (e.g., e2493a2, 7834949)

Description

The transform between the camera_base_link and camera_color_optical_frame are different between v1 and v2:

ros2 launch orbbec_camera femto_bolt.launch.py
ros2 run tf2_ros tf2_echo camera_link camera_color_optical_frame

For v1.5.8:

- Translation: [-0.002, -0.032, -0.001]
- Rotation: in Quaternion (xyzw) [-0.525, 0.526, -0.475, 0.472]
- Rotation: in RPY (radian) [-1.675, -0.002, -1.574]
- Rotation: in RPY (degree) [-95.957, -0.116, -90.167]
- Matrix:
 -0.003 -0.104  0.995 -0.002
 -1.000 -0.002 -0.003 -0.032
  0.002 -0.995 -0.104 -0.001
  0.000  0.000  0.000  1.000

v2.3.4, v2.4.7:

- Translation: [-0.002, -0.032, -0.001]
- Rotation: in Quaternion (xyzw) [-0.500, 0.500, -0.500, 0.500]
- Rotation: in RPY (radian) [-1.571, -0.000, -1.571]
- Rotation: in RPY (degree) [-90.000, -0.000, -90.000]
- Matrix:
 -0.000  0.000  1.000 -0.002
 -1.000 -0.000 -0.000 -0.032
  0.000 -1.000  0.000 -0.001
  0.000  0.000  0.000  1.000

For v2.5.4 and later:

- Translation: [-0.002, -0.032, -0.001]
- Rotation: in Quaternion (xyzw) [-0.474, 0.473, -0.524, 0.527]
- Rotation: in RPY (radian) [-1.467, 0.002, -1.568]
- Rotation: in RPY (degree) [-84.043, 0.099, -89.822]
- Matrix:
  0.003  0.104  0.995 -0.002
 -1.000  0.002  0.003 -0.032
 -0.002 -0.995  0.104 -0.001
  0.000  0.000  0.000  1.000

Note the different rotation and how the signs are switches in the rotation matrix between v1.5.8 and v2.5.4.

For v2, this results in the following wrong transforms:

Image

This results in the following observation of a table plane that is parallel to the camera:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions