# Zedm ros calibration

**URL:** <https://community.stereolabs.com/t/zedm-ros-calibration/4210>\
**Category:** ROS1\
**Created:** [December 21, 2023, 7:10am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210 "2023-12-21T07:10:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenbo](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/w/db5fbb/32.png) [@wenbo](https://community.stereolabs.com/u/wenbo)\
**Post date:** [December 21, 2023, 7:10am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/1 "2023-12-21T07:10:00Z")

</div>

hi，I had calibrated the zedm underwater and got new parameters,then how to modify the topic “cameraInfo” of the zedm in zed-ros-wrapper

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [December 21, 2023, 8:27am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/2 "2023-12-21T08:27:18Z")

</div>

Hi @wenbo  
Welcome to the Stereolabs community.

The `camera_info` topic is automatically generated by the ZED ROS Wrapper by retrieving the factory calibration parameters of each camera.

Why do you need to modify it?

---

<div class="post-metadata">

**Author:** ![wenbo](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/w/db5fbb/32.png) [@wenbo](https://community.stereolabs.com/u/wenbo)\
**Post date:** [December 28, 2023, 8:15am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/3 "2023-12-28T08:15:05Z")

</div>

The calibration parameter in air is very different from the calibration parameter underwater, so the camera needs to change this parameter to adapt to underwater

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [January 2, 2024, 4:48pm UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/4 "2024-01-02T16:48:05Z")

</div>

Hi @wenbo,

We have written a guide to calibrate your camera with opencv, you can find it here: [How to Calibrate your ZED camera with OpenCV](https://www.stereolabs.com/docs/opencv/calibration#calibration-1).

You can then pass the path to the camera’s calibration file with `InitiParameters::optional_opencv_calibration_file`. This option is currently not supported in the zed-ros-wrapper, so you can test it out in an other C++ application.

I will open a feature request internally so this can be accessible. If you are familiar with ros code, feel free to implement the support and make a PR in the [public Github repository](https://github.com/stereolabs/zed-ros-wrapper).

---

<div class="post-metadata">

**Author:** ![lyehan](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lyehan](https://community.stereolabs.com/u/lyehan)\
**Post date:** [January 29, 2024, 9:10am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/5 "2024-01-29T09:10:24Z")

</div>

hi，Is your problem solved? I found the same problem as yours,i don’t know how to change the old parameters, I also want to use it in underwater environment

---

<div class="post-metadata">

**Author:** ![Slopezb](https://community.stereolabs.com/user_avatar/community.stereolabs.com/slopezb/32/4375_2.png) [@Slopezb](https://community.stereolabs.com/u/Slopezb)\
**Post date:** [December 4, 2025, 5:05pm UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/6 "2025-12-04T17:05:37Z")

</div>

Hello @wenbo @mattrouss any update about the recalibration in ROS2?

Also I have a question, it will work if I change the SNxxxxxx.conf file in the usr/local/zed/settings folder?  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [December 5, 2025, 6:47pm UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/7 "2025-12-05T18:47:58Z")

</div>

You can use the ZED Calibration tool to recalibrate the camera.

Read the documentation for details: [ZED Calibration - Stereolabs](https://www.stereolabs.com/docs/development/zed-tools/zed-calibration)

---

<div class="post-metadata">

**Author:** ![Slopezb](https://community.stereolabs.com/user_avatar/community.stereolabs.com/slopezb/32/4375_2.png) [@Slopezb](https://community.stereolabs.com/u/Slopezb)\
**Post date:** [December 29, 2025, 7:53am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/8 "2025-12-29T07:53:56Z")

</div>

Hello @Myzhar, the problem is that i am using the camera in a waterproof case for underwater environments. So I cannot use the Zed calibration tool. The only thing that I have is a chessboard.

I have done the calibration using openCV but I dont know how to match the parameters of openCV with the ones on the SNxxxxx file.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [December 29, 2025, 11:26am UTC](https://community.stereolabs.com/t/zedm-ros-calibration/4210/9 "2025-12-29T11:26:48Z")

</div>

You can try to use this OpenCV calibration tool with a standard printed chessboard:

> **[GitHub - stereolabs/zed-opencv-calibration: Calibration tools to calibrate ZED cameras using...](https://github.com/stereolabs/zed-opencv-calibration)**
>
> Calibration tools to calibrate ZED cameras using OpenCV
