# C++

**URL:** https://community.stereolabs.com/c/sw/cpp/7.md?page=3

[Latest](https://community.stereolabs.com/latest.md) · [Categories](https://community.stereolabs.com/categories.md) · [Tags](https://community.stereolabs.com/tags.md)

**Page:** 4

---

## [Memory leak with SVO2 recording](https://community.stereolabs.com/t/memory-leak-with-svo2-recording/9157)

<div class="topic-metadata">

**Author:** [@Yjin](https://community.stereolabs.com/u/Yjin)\
**Replies:** 7\
**Last updated:** [June 27, 2025, 2:45pm UTC](https://community.stereolabs.com/t/memory-leak-with-svo2-recording/9157 "2025-06-27T14:45:30Z")

</div>

Hello, I’m currently using the ZED X camera on jetson devices. I’m seeing a memory leak while running a modified version of the C++ example recording code for single camera. Attaching the main function used below: int …

---

## [INVALID TIMESTAMP when fusion using GNSS](https://community.stereolabs.com/t/invalid-timestamp-when-fusion-using-gnss/9159)

<div class="topic-metadata">

**Author:** [@Lyra](https://community.stereolabs.com/u/Lyra)\
**Replies:** 3\
**Last updated:** [June 26, 2025, 3:35am UTC](https://community.stereolabs.com/t/invalid-timestamp-when-fusion-using-gnss/9159 "2025-06-26T03:35:31Z")

</div>

When I use GNSS for fusion and call the ingestGNSSData function, it returns an error with the value INVALID\_TIMESTAMP . Below is my code snippet and error log. What went wrong? SDK Version: 5.0.2 Device: ZED-X \[2025-0…

---

## [Global localization-two camera](https://community.stereolabs.com/t/global-localization-two-camera/9147)

<div class="topic-metadata">

**Author:** [@masaan](https://community.stereolabs.com/u/masaan)\
**Replies:** 3\
**Last updated:** [June 25, 2025, 8:35am UTC](https://community.stereolabs.com/t/global-localization-two-camera/9147 "2025-06-25T08:35:17Z")

</div>

Hello, I would like to apply global localization on two cameras as shown in the uploaded figure. I position the antenna on the left lens of camera 2, when I have to apply the calibration parameters for GNSS/VIO, I wil…

---

## [Object detection on edge devices can NOT be published to fusion on local network (C++)](https://community.stereolabs.com/t/object-detection-on-edge-devices-can-not-be-published-to-fusion-on-local-network-c/9066)

<div class="topic-metadata">

**Author:** [@KZoli39](https://community.stereolabs.com/u/KZoli39)\
**Replies:** 5\
**Last updated:** [June 23, 2025, 6:43am UTC](https://community.stereolabs.com/t/object-detection-on-edge-devices-can-not-be-published-to-fusion-on-local-network-c/9066 "2025-06-23T06:43:38Z")

</div>

Hi, I’m working on a project that uses ZED 2i cameras with Jetson edge devices. I’m running both body tracking and object detection simultaneously on the Jetsons, and both functions work correctly — I’m able to retrieve…

---

## [Info version SDK 5.02](https://community.stereolabs.com/t/info-version-sdk-5-02/9118)

<div class="topic-metadata">

**Author:** [@masaan](https://community.stereolabs.com/u/masaan)\
**Replies:** 4\
**Last updated:** [June 20, 2025, 9:31am UTC](https://community.stereolabs.com/t/info-version-sdk-5-02/9118 "2025-06-20T09:31:24Z")

</div>

Hello, I would like to install the new SDK on Windows 10 and cuda 12. I searched on my pc TensoRT but I don’t have any folder. Can I install CUDA 12 - TensorRT 10(https://download.stereolabs.com/zedsdk/5.0/cu12/win?\_gl…

---

## [Different Lossy H264 compression Zed Explorer VS C++ API?](https://community.stereolabs.com/t/different-lossy-h264-compression-zed-explorer-vs-c-api/9090)

<div class="topic-metadata">

**Author:** [@onthesofa](https://community.stereolabs.com/u/onthesofa)\
**Replies:** 5\
**Last updated:** [June 17, 2025, 3:29pm UTC](https://community.stereolabs.com/t/different-lossy-h264-compression-zed-explorer-vs-c-api/9090 "2025-06-17T15:29:53Z")

</div>

Lossy H264 compression recordings with ZED Explorer produce much better video than SVO\_COMPRESSION\_MODE::H264 from the API with the default bitrate. H264\_LOSSLESS produces files that are too big. What bitrate with SVO\_C…

---

## [\[Jetson Orin NX + Multi-Cam\] Can't Reach 30 FPS on 4 ZEDs – Streaming to External GPU (4060Ti)](https://community.stereolabs.com/t/jetson-orin-nx-multi-cam-cant-reach-30-fps-on-4-zeds-streaming-to-external-gpu-4060ti/9035)

<div class="topic-metadata">

**Author:** [@Cubia](https://community.stereolabs.com/u/Cubia)\
**Replies:** 4\
**Last updated:** [June 16, 2025, 9:55am UTC](https://community.stereolabs.com/t/jetson-orin-nx-multi-cam-cant-reach-30-fps-on-4-zeds-streaming-to-external-gpu-4060ti/9035 "2025-06-16T09:55:31Z")

</div>

Hi all, I’m working on a multi-camera streaming setup using 4 ZED cameras connected via GMSL2 to a Jetson Orin NX 16GB running JetPack 6.0. My goal is to stream 1080p@30FPS per camera to a desktop PC equipped with a 40…

---

## [Nvcompositor freezes on dynamic pad-resize when switching multi-camera view modes](https://community.stereolabs.com/t/nvcompositor-freezes-on-dynamic-pad-resize-when-switching-multi-camera-view-modes/8996)

<div class="topic-metadata">

**Author:** [@Lrnts](https://community.stereolabs.com/u/Lrnts)\
**Replies:** 3\
**Last updated:** [June 5, 2025, 3:20pm UTC](https://community.stereolabs.com/t/nvcompositor-freezes-on-dynamic-pad-resize-when-switching-multi-camera-view-modes/8996 "2025-06-05T15:20:49Z")

</div>

I’m developing a multi-camera video compositing application for vehicles using ZED X One cameras on NVIDIA Jetson Orin AGX. The application needs to dynamically switch between different camera view layouts at runtime bas…

---

## [ZED X on ZED Box Orin NX: grab() ≈ 20 ms, max ~35 FPS – Hardware limit?](https://community.stereolabs.com/t/zed-x-on-zed-box-orin-nx-grab-20-ms-max-35-fps-hardware-limit/8941)

<div class="topic-metadata">

**Author:** [@Cubia](https://community.stereolabs.com/u/Cubia)\
**Replies:** 2\
**Last updated:** [June 3, 2025, 12:12pm UTC](https://community.stereolabs.com/t/zed-x-on-zed-box-orin-nx-grab-20-ms-max-35-fps-hardware-limit/8941 "2025-06-03T12:12:45Z")

</div>

Environment: Camera: ZED X Host: ZED Box Orin NX 16 GB (JetPack 6.0, MAXN/jetson\_clocks) Depth Mode: NEURAL\_LIGHT, SVGA@60 Display: HDMI output active during execution Code (C++): #include "m3t/zed\_camera.h" ZedCam…

---

## [Weird  postion\_std\[1\] value in  global\_localization script](https://community.stereolabs.com/t/weird-postion-std-1-value-in-global-localization-script/8878)

<div class="topic-metadata">

**Author:** [@Vittoriocava](https://community.stereolabs.com/u/Vittoriocava)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 8:57am UTC](https://community.stereolabs.com/t/weird-postion-std-1-value-in-global-localization-script/8878 "2025-05-23T08:57:21Z")

</div>

Hi everyone, I am trying to use gnss with zed x to have a good localization. It sorts of work but i have a very high position std \[1\] value (e+19). Is it a known problem or am i doing something wrong using the gps?

---

## [getSVOPositionAtTimestamp() doesn't work as expected](https://community.stereolabs.com/t/getsvopositionattimestamp-doesnt-work-as-expected/8298)

<div class="topic-metadata">

**Author:** [@roncapat](https://community.stereolabs.com/u/roncapat)\
**Replies:** 5\
**Last updated:** [May 19, 2025, 7:40am UTC](https://community.stereolabs.com/t/getsvopositionattimestamp-doesnt-work-as-expected/8298 "2025-05-19T07:40:59Z")

</div>

I have an SVO2 file. First of all, I check initial and final timestamps. auto n = zed.getSVONumberOfFrames(); zed.grab(runParameters); auto ts0 = zed.getTimestamp(sl::TIME\_REFERENCE::IMAGE); zed.setSVOPosition(n-2); ze…

---

## [Issues with multi-camera fusion: only camera 0 correct, point clouds not fused (ZED SDK C++ example + ZED360 calibration)](https://community.stereolabs.com/t/issues-with-multi-camera-fusion-only-camera-0-correct-point-clouds-not-fused-zed-sdk-c-example-zed360-calibration/8780)

<div class="topic-metadata">

**Author:** [@Cubia](https://community.stereolabs.com/u/Cubia)\
**Replies:** 9\
**Last updated:** [May 15, 2025, 9:39am UTC](https://community.stereolabs.com/t/issues-with-multi-camera-fusion-only-camera-0-correct-point-clouds-not-fused-zed-sdk-c-example-zed360-calibration/8780 "2025-05-15T09:39:52Z")

</div>

Hi everyone, I’m trying to run the official C++ “multi-camera fusion” sample on a Jetson Orin NX (16 GB) with four ZED X cameras connected via GMSL2. I calibrated all four cameras using ZED360 (following the official gu…

---

## [ZED X on AGX Orin capped at 30 FPS even when requesting 60FPS](https://community.stereolabs.com/t/zed-x-on-agx-orin-capped-at-30-fps-even-when-requesting-60fps/8751)

<div class="topic-metadata">

**Author:** [@auc7us](https://community.stereolabs.com/u/auc7us)\
**Replies:** 7\
**Last updated:** [May 15, 2025, 8:27am UTC](https://community.stereolabs.com/t/zed-x-on-agx-orin-capped-at-30-fps-even-when-requesting-60fps/8751 "2025-05-15T08:27:34Z")

</div>

I have been working on a script to store and share images directly to and from a GPU ring buffer in C++ and noticed that the output was always being limited to 30fps. My setup: Single ZED X on AGX Orin 64 GB (maxn pow…

---

## [How to Build a Single Fused Point Cloud from Multiple Simultaneously Captured SVO Files?](https://community.stereolabs.com/t/how-to-build-a-single-fused-point-cloud-from-multiple-simultaneously-captured-svo-files/8614)

<div class="topic-metadata">

**Author:** [@nitingarg](https://community.stereolabs.com/u/nitingarg)\
**Replies:** 3\
**Last updated:** [April 17, 2025, 12:47pm UTC](https://community.stereolabs.com/t/how-to-build-a-single-fused-point-cloud-from-multiple-simultaneously-captured-svo-files/8614 "2025-04-17T12:47:08Z")

</div>

Hi ZED team and community, I’m working on a multi-camera setup using multiple ZED cameras (zed 2i) that recorded data simultaneously using the multi-camera recording example provided in the SDK. As a result, I now have …

---

## [Inconsistency with setRegionOfInterest](https://community.stereolabs.com/t/inconsistency-with-setregionofinterest/8561)

<div class="topic-metadata">

**Author:** [@huck](https://community.stereolabs.com/u/huck)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 8:18pm UTC](https://community.stereolabs.com/t/inconsistency-with-setregionofinterest/8561 "2025-04-08T20:18:33Z")

</div>

Hello! I was testing the setRegionOfInterest functionality and came across some inconsistent results after setting the ROI mask. At first it looks like it stops tracking joints when one is found outside of the mask (as …

---

## [Issues with Global Localization Sample](https://community.stereolabs.com/t/issues-with-global-localization-sample/8469)

<div class="topic-metadata">

**Author:** [@Oweifh](https://community.stereolabs.com/u/Oweifh)\
**Replies:** 2\
**Last updated:** [March 27, 2025, 1:50pm UTC](https://community.stereolabs.com/t/issues-with-global-localization-sample/8469 "2025-03-27T13:50:25Z")

</div>

Hello. I tried to run sample Global Localization on jetson orin agx. cmake ran without problems, but when running make command I got the following error in gnss\_reader: ‘struct gps\_fix\_t’ has no member named ‘status’ 1…

---

## [ZED X ONE input from virtual camera's serial number](https://community.stereolabs.com/t/zed-x-one-input-from-virtual-cameras-serial-number/8466)

<div class="topic-metadata">

**Author:** [@Tommy](https://community.stereolabs.com/u/Tommy)\
**Replies:** 1\
**Last updated:** [March 27, 2025, 11:53am UTC](https://community.stereolabs.com/t/zed-x-one-input-from-virtual-cameras-serial-number/8466 "2025-03-27T11:53:38Z")

</div>

Hello, I am using 2 ZED X ONE. I would like to know if it would be possible via code to make an input using the serial number of the virtual camera. Now I start the stream from ZEDXONE Media Server and by code I use: \_…

---

## [Is setRegionOfInterest bug fixed](https://community.stereolabs.com/t/is-setregionofinterest-bug-fixed/8467)

<div class="topic-metadata">

**Author:** [@huck](https://community.stereolabs.com/u/huck)\
**Replies:** 1\
**Last updated:** [March 26, 2025, 5:08pm UTC](https://community.stereolabs.com/t/is-setregionofinterest-bug-fixed/8467 "2025-03-26T17:08:06Z")

</div>

Hello! I was wondering if (setRegionOfInterest() not working with object or body tracking? SDK 4.0 - Stereolabs Forums) bug was addressed in future versions of the SDK. In the thread it doesn’t look like there was any u…

---

## [Ingest to SVO2 vs Record ROS 2 bag](https://community.stereolabs.com/t/ingest-to-svo2-vs-record-ros-2-bag/8437)

<div class="topic-metadata">

**Author:** [@Mat198](https://community.stereolabs.com/u/Mat198)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 10:39am UTC](https://community.stereolabs.com/t/ingest-to-svo2-vs-record-ros-2-bag/8437 "2025-03-25T10:39:55Z")

</div>

I have a robot arm with a Zed X camera attached to the tip. My goal is to develop a visual servoing application. I want to record the camera data synced with the joint state data to test my tracking algorithm. I can achi…

---

## [Channel number from zed2](https://community.stereolabs.com/t/channel-number-from-zed2/8350)

<div class="topic-metadata">

**Author:** [@Pelayo](https://community.stereolabs.com/u/Pelayo)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 2:31pm UTC](https://community.stereolabs.com/t/channel-number-from-zed2/8350 "2025-03-18T14:31:44Z")

</div>

I am using the function cv::Mat image\_ocv = slMat2cvMat(image\_zed); with the goal of using the image in OpenCV, but if I try to acquire 3 channels instead of 4, the resulting image is not displayed correctly. Mat imag…

---

## [Segmentation fault while trying to reconnect to the camera stream](https://community.stereolabs.com/t/segmentation-fault-while-trying-to-reconnect-to-the-camera-stream/8266)

<div class="topic-metadata">

**Author:** [@Mat198](https://community.stereolabs.com/u/Mat198)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 5:54pm UTC](https://community.stereolabs.com/t/segmentation-fault-while-trying-to-reconnect-to-the-camera-stream/8266 "2025-03-06T17:54:24Z")

</div>

I’m trying to create software that reconnects to the camera when a problem occurs. After some reconnection attempts, I face the following error: \[New Thread 0x7fffd5e00000 (LWP 359929)\] \[New Thread 0x7fffd5400000 (LWP 3…

---

## [Cannot get precision with ZED 2i](https://community.stereolabs.com/t/cannot-get-precision-with-zed-2i/7972)

<div class="topic-metadata">

**Author:** [@tmrpj](https://community.stereolabs.com/u/tmrpj)\
**Replies:** 11\
**Last updated:** [February 25, 2025, 3:45pm UTC](https://community.stereolabs.com/t/cannot-get-precision-with-zed-2i/7972 "2025-02-25T15:45:42Z")

</div>

Hello. I have a ZED 2i camera connected to my jetson orin nano 8GB board. I also have a GNSS receiver on that board, and NTRIP software to get RTK fix. I have setup a second tty USB port to the receiver where i can en…

---

## [Positional tracking behavior when stereo camera effectively becomes monocular](https://community.stereolabs.com/t/positional-tracking-behavior-when-stereo-camera-effectively-becomes-monocular/8089)

<div class="topic-metadata">

**Author:** [@matanj](https://community.stereolabs.com/u/matanj)\
**Replies:** 6\
**Last updated:** [February 20, 2025, 11:11am UTC](https://community.stereolabs.com/t/positional-tracking-behavior-when-stereo-camera-effectively-becomes-monocular/8089 "2025-02-20T11:11:58Z")

</div>

Hi, When I move the Zed2i camera, in certain scenarios the baseline isn’t sufficient (e.g. looking at distant scene) and I expect the stereo camera to perform effectively like a monocular camera. Does the Positional tr…

---

## [Zed x mini HD 720 invalid resolution](https://community.stereolabs.com/t/zed-x-mini-hd-720-invalid-resolution/7909)

<div class="topic-metadata">

**Author:** [@JCastel358](https://community.stereolabs.com/u/JCastel358)\
**Replies:** 1\
**Last updated:** [January 15, 2025, 10:12am UTC](https://community.stereolabs.com/t/zed-x-mini-hd-720-invalid-resolution/7909 "2025-01-15T10:12:22Z")

</div>

Hello, Im trying to make the zed x mini to run in HD 720. here is the part of my code: // 3) Init ZED sl::Camera zed; sl::InitParameters init\_params; init\_params.sdk\_verbose = true; init\_params.depth…

---

## [Crashing application when starting video stream through hub](https://community.stereolabs.com/t/crashing-application-when-starting-video-stream-through-hub/7728)

<div class="topic-metadata">

**Author:** [@Martijn](https://community.stereolabs.com/u/Martijn)\
**Replies:** 9\
**Last updated:** [January 13, 2025, 2:33pm UTC](https://community.stereolabs.com/t/crashing-application-when-starting-video-stream-through-hub/7728 "2025-01-13T14:33:44Z")

</div>

Hello, (jetson orin with 4.2.2 with latest hub) our application runs fine, but when we open the video page on hub the application crashes. following backtrace: 0x0000fffff3fc8428 in std::\_Optional\_base::\_M\_is\_engaged…

---

## [can't grab the second image from svo2 file recorded by ZED X ONE](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855)

<div class="topic-metadata">

**Author:** [@Laoju](https://community.stereolabs.com/u/Laoju)\
**Replies:** 3\
**Last updated:** [January 13, 2025, 10:36am UTC](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855 "2025-01-13T10:36:44Z")

</div>

Hello I use a ZED X ONE camera to record a svo2 file. Then I use C++ API to exact information, like this: CameraOne zed; InitParametersOne init\_parameters; init\_parameters.input.setFromeSVOFile(argv\[1\]); zed.open(init\_…

---

## [Body Velocity is delayed](https://community.stereolabs.com/t/body-velocity-is-delayed/7845)

<div class="topic-metadata">

**Author:** [@dream](https://community.stereolabs.com/u/dream)\
**Replies:** 3\
**Last updated:** [January 8, 2025, 5:18pm UTC](https://community.stereolabs.com/t/body-velocity-is-delayed/7845 "2025-01-08T17:18:00Z")

</div>

When accessing the velocity on a tracked object/body using multi-cam fusion, the velocity is delayed by a long period of time (possibly half a second or close to a second). I am using this data to real time move a player…

---

## [How to export recordings with BODY\_38 as fbx file](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821)

<div class="topic-metadata">

**Author:** [@dbisig](https://community.stereolabs.com/u/dbisig)\
**Replies:** 11\
**Last updated:** [January 8, 2025, 1:06pm UTC](https://community.stereolabs.com/t/how-to-export-recordings-with-body-38-as-fbx-file/7821 "2025-01-08T13:06:31Z")

</div>

Hi all, I’ve been experimenting with the official example C++ source code for exporting a tracked body as fbx file. While this example works well for bodies in the body 34 format, it doesn’t currently support the body 3…

---

## [Getting segmentation fault during positional tracking ](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606)

<div class="topic-metadata">

**Author:** [@mathanprasannakumar1](https://community.stereolabs.com/u/mathanprasannakumar1)\
**Replies:** 5\
**Last updated:** [December 16, 2024, 10:22am UTC](https://community.stereolabs.com/t/getting-segmentation-fault-during-positional-tracking/7606 "2024-12-16T10:22:44Z")

</div>

Hi , I am working with zed2i cam for positional tracking , While trying out positional tracking examples given in the zed-sdk examples , got segmentation fault. Issue arises only when the area\_file\_path is set to the pr…

---

## [Zed x mini-oculus 3](https://community.stereolabs.com/t/zed-x-mini-oculus-3/7497)

<div class="topic-metadata">

**Author:** [@Mistikyork](https://community.stereolabs.com/u/Mistikyork)\
**Replies:** 17\
**Last updated:** [December 2, 2024, 5:25pm UTC](https://community.stereolabs.com/t/zed-x-mini-oculus-3/7497 "2024-12-02T17:25:06Z")

</div>

Hello, Purchased a zed x mini and a zed box from you… My task is to broadcast the video stream from the camera to oculus quest 3. I found your sample program GitHub - stereolabs/zed-oculus: ZED Viewer for Oculus Rift , b…

[Previous page](https://community.stereolabs.com/c/sw/cpp/7.md?page=2)

[Next page](https://community.stereolabs.com/c/sw/cpp/7.md?page=4)
