Closed Brett-Wildermoth closed 3 years ago
Also JetPack version is 4.2 with Cuda 10 and the Zed Library version is 3.22.
Hi,
In the ZED SDK the reference is the left camera, every data are given according to it (depth, point cloud, positional tracking). If you want the data of the right camera you can enable it (it will require more computation).
// initparameters
minitparams.enable_right_side_measure = true;
// then, retrieve the right data
sl::Mat pc_right;
zed.retrieveMeasure(pc_right, sl::MEASURE::XYZRGBA_RIGHT);
Using the right camera gave me the same data. Based on what I have read when I use the left camera I should get a depth value that kind of aligns with the image I get out of the left camera. What I get appears to be only just over half of what I see in the image.
Major problem I found was I had not initialized the point_cloud properly. I appear to be getting the correct range now. Post processing is now clipping it and I will have to source the issue there.
When conducting a Depth Scan, I only appear to get half of the scan data. It appears I only get the data from the left camera and not the data for both cameras.
Below is my relevant code snippet
Swapping colIdx and rowIdx in mdatacloud.getValue() makes no difference.
m_rt is
m_rt.sensingmode = sl::SENSINGMODE::STANDARD;
and the initparameters for the ZED areI have setup my code similar to the examples and the demo code.
Doing a m_datacloud.write() seems to produce different data?