orbbec / ros_astra_camera

ROS wrapper for Astra camera
Apache License 2.0
68 stars 28 forks source link

cannot calibrate color Astra mini camera #170

Closed han88 closed 1 year ago

han88 commented 1 year ago

hi if I try to calibrate my Astra mini camera from the color stream /camera/color/image_raw with the ros calibration pkg the saved calibration file is depth_serialnumber. yaml.. if I change the name to rgb_serialnumber. yaml it's not recognized... I launch the astra mini with the Astra. launch file... what do I have to change? thanks in advance

jian-dong commented 1 year ago

I've updated the readme. I hope that makes it clear.

- calibration file should like
```yaml
image_width: 640
image_height: 480
# The camera name is fixed. The color camera is rgb_camera, the depth/IR camera is depth_camera
camera_name: astra_rgb
camera_matrix:
  rows: 3
  cols: 3
  data: [517.301, 0, 326.785, 0, 519.291, 244.563, 0, 0, 1]
distortion_model: plumb_bob
distortion_coefficients:
  rows: 1
  cols: 5
  data: [-0.41527, 0.31874, -0.00197, 0.00071, 0]
rectification_matrix:
  rows: 3
  cols: 3
  data: [0.999973, 0.00612598, -0.00406652, -0.00610201, 0.999964, 0.00588094, 0.0041024, -0.00585596, 0.999974 ]
projection_matrix:
  rows: 3
  cols: 4
  data: [517.301, 0, 326.785, -25.3167, 0, 519.291, 244.563, 0.282065, 0, 0, 1, 0.0777703]
han88 commented 1 year ago

thank you, i had to use ir_camera and rgb_camera as camera_name instead ...