Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty camera info in higher resolutions (astra pro plus) #65

Open
tfoldi opened this issue Oct 13, 2024 · 2 comments
Open

Empty camera info in higher resolutions (astra pro plus) #65

tfoldi opened this issue Oct 13, 2024 · 2 comments

Comments

@tfoldi
Copy link

tfoldi commented Oct 13, 2024

Everything works fine if I am running the nodes in 640x480 resolution:

ros2 launch orbbec_camera astra.launch.py enable_depth:=false enable_ir:=false  color_fps:=30 

and camera info looks good:

$ ros2 topic echo /camera/color/camera_info --once
header:
  stamp:
    sec: 1728817915
    nanosec: 232680960
  frame_id: camera_color_optical_frame
height: 480
width: 640
distortion_model: rational_polynomial
d:
- 0.10524643957614899
- -0.14457714557647705
- -0.0004056328325532377
- 0.0021555349230766296
- -0.09454253315925598
- 0.0
- 0.0
- 0.0
k:
- 544.0361328125
- 0.0
- 315.89178466796875
- 0.0
- 544.0361328125
- 235.51173400878906
- 0.0
- 0.0
- 1.0
r:
- 1.0
- 0.0
- 0.0
- 0.0
- 1.0
- 0.0
- 0.0
- 0.0
- 1.0
p:
- 544.0361328125
- 0.0
- 315.89178466796875
- 0.0
- 0.0
- 544.0361328125
- 235.51173400878906
- 0.0
- 0.0
- 0.0
- 1.0
- 0.0
binning_x: 0
binning_y: 0
roi:
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: false
---

When I am switching to larger resolution:

ros2 launch orbbec_camera astra.launch.py enable_depth:=false enable_ir:=false  color_fps:=30 color_width:=1920 color_height:=1080

Then camera_info becomes empty:

$ ros2 topic echo /camera/color/camera_info --once
header:
  stamp:
    sec: 1728817994
    nanosec: 588848128
  frame_id: camera_color_optical_frame
height: 1080
width: 1920
distortion_model: rational_polynomial
d:
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
k:
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 1.0
r:
- 1.0
- 0.0
- 0.0
- 0.0
- 1.0
- 0.0
- 0.0
- 0.0
- 1.0
p:
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 1.0
- 0.0
binning_x: 0
binning_y: 0
roi:
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: false
---

Any idea how can this be fixed?

@jian-dong
Copy link
Contributor

Hi @tfoldi
The color high resolution of Astra Pro Plus is indeed not calibrated.

@tfoldi
Copy link
Author

tfoldi commented Oct 15, 2024

then how can I add my own camera calibration data? if you are open I can draft a PR where one can specify a parameter pointing to a calibration file.

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

No branches or pull requests

2 participants