Comments (8)
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.
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.
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.
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.
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.
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.
the ZED calibration works better for me also.
Thank you for your compliment!
from zed_cpu_ros.
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)
- VIDIOC_QUERYMENU: Invalid argument HOT 11
- Canβt find camera HOT 3
- Camera coordinate system HOT 1
- Does it work with ubuntu 14.04 ?? HOT 2
- strange resolution HOT 2
- Library Usage HOT 1
- Problem with tf message
- Why I get a green image from the webcam?
- [Help] can't change the frame rate HOT 1
- Improvement suggestion
- Cannot change the resolution HOT 2
- Error when running roslaunch zed_cpu_ros depth.launch
- opencv 4.2 roi error in ubuntu 20 HOT 1
- coordinate frame
- Crash on subscribe HOT 7
- Launch file logs webcam instead of Zed HOT 3
- Change frame rate HOT 7
- [camera] does not match name warning HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zed_cpu_ros.