Giter VIP home page Giter VIP logo

Comments (8)

willdzeng avatar willdzeng commented on July 30, 2024

Hi Prarinya,

For this part, I referenced the official zed_ros_warpper. Looks like it's wrong.

So the Rectification matrix should be

[Rx  0   0 ]
[0   1   0 ]
[0   0   Rz]

from zed_cpu_ros.

willdzeng avatar willdzeng commented on July 30, 2024

But I noticed the value giving in my zed config is

RX_2K=0.00388714
RX_FHD=0.00388714
RX_HD=0.00388714
RX_VGA=0.00388714
RZ_2K=-0.00139603
RZ_FHD=-0.00139603
RZ_HD=-0.00139603
RZ_VGA=-0.00139603

I am not sure this RX and RZ is indicating which value in the 3x3 Rectification Matrix, Do you have any idea?

from zed_cpu_ros.

prarinya-s avatar prarinya-s commented on July 30, 2024

I think RX and RZ should refer to the extrinsic rotation matrix. From the look, I guess they gave the rotation angles in radian \theta_x and \theta_z.

From wikipedia https://en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions , rotation matrix can be calculated by finding rotation in every axes. So you got R_x(\theta_x), R_z(\theta_z), R_y=I. The final rotation matrix R = R_z(\theta_z) x I x R_x(\theta_x)

So, I did calculated the above equations. The resultant rotation matrix R look similar to the rotation matrix I got from other stereo camera (very close to identity matrix).

I am not sure if I was wrong about this. Please check on this if able. At the moment, I set the R to identity matrix, and stereo_image_proc package work very well with this setting.

from zed_cpu_ros.

willdzeng avatar willdzeng commented on July 30, 2024

Cool, The recent commits also set the R matrix as identity, but I again failed to do the image_proc for some reason, how did you do that?

Also, I think it's better to do a calibration yourself using ROS's stero_proc package. I got a launch file that can do this which you might want to check out.

from zed_cpu_ros.

willdzeng avatar willdzeng commented on July 30, 2024

Here I found an interesting explanation,
stereolabs/zed-ros-wrapper#39
The rotation (in rotation vector form, convertible into matrix with Rodrigues formula) are the following:

Rx = RX (in rad),
Ry = CV,
Rz = RZ.

from zed_cpu_ros.

prarinya-s avatar prarinya-s commented on July 30, 2024

Thanks for the info on rotation matrix.

For the calibration, I used the ZED calibration tool in the ZED SDK. It gave a better calibration for me. However, they seem to record it in float32 not float64. So the precision are very limited. How about your case ?

By the way, it works with your roslaunch like a charm. Thank you for you great work.

from zed_cpu_ros.

willdzeng avatar willdzeng commented on July 30, 2024

the ZED calibration works better for me also.

Thank you for your compliment!

from zed_cpu_ros.

willdzeng avatar willdzeng commented on July 30, 2024

Hi @prarinya-s
Can you help me check if the new commits are right in terms of the rectification?
I don't have the camera with me, so I can't really check if it works or not.
09ffa6e
Thanks.

from zed_cpu_ros.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.