# Height estimation

**URL:** <https://community.stereolabs.com/t/height-estimation/8352>\
**Category:** ZED Mini\
**Created:** [March 17, 2025, 1:16pm UTC](https://community.stereolabs.com/t/height-estimation/8352 "2025-03-17T13:16:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ori](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ori/32/3703_2.png) [@Ori](https://community.stereolabs.com/u/Ori)\
**Post date:** [March 17, 2025, 1:16pm UTC](https://community.stereolabs.com/t/height-estimation/8352/1 "2025-03-17T13:16:46Z")

</div>

Hey,  
while x,y, positional tracking from 5 m distance seems ok, the z estimation is wrong, but it gets better from closer range, what might be the problem?

---

<div class="post-metadata">

**Author:** ![RodolphePerrin](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@RodolphePerrin](https://community.stereolabs.com/u/RodolphePerrin)\
**Post date:** [March 17, 2025, 2:08pm UTC](https://community.stereolabs.com/t/height-estimation/8352/2 "2025-03-17T14:08:57Z")

</div>

Hi Ori,  
Thanks for your message.  
A few questions regarding your issue :

- Can you please run ZED\_Diagnostic\_Tool and send the resulting JSON file? This will allow us to know more information about your system.
- In the case of a GMSL camera, please use ‘sudo ZED\_Diagnostic\_Tool --dmesg’.
- Are you using a specific sample to do your test ?
- What Positional Tracking parameters are you using ? (mode Gen1 or Gen2, imu\_fusion…).

Best,  
Rodolphe Perrin

[Stereolabs](https://www.stereolabs.com/) Support

[Stereolabs](https://www.stereolabs.com/) Support

---

<div class="post-metadata">

**Author:** ![Ori](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ori/32/3703_2.png) [@Ori](https://community.stereolabs.com/u/Ori)\
**Post date:** [March 17, 2025, 2:49pm UTC](https://community.stereolabs.com/t/height-estimation/8352/3 "2025-03-17T14:49:06Z")

</div>

[ZED\_Diagnostic\_Results.json](https://community.stereolabs.com/uploads/short-url/rgfclWrZFyY0uGaYaySF2rbffLe.json) (11.1 KB)  
[common\_stereo.yaml](https://community.stereolabs.com/uploads/short-url/mj1GnKSLCjvRcgF2cz5N4NT6jvg.yaml) (17.6 KB)  
[zedm.yaml](https://community.stereolabs.com/uploads/short-url/5lRzxCBapsJdZnBYQFJXw5gW8D2.yaml) (495 Bytes)

[/quote]

---

<div class="post-metadata">

**Author:** ![RodolphePerrin](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@RodolphePerrin](https://community.stereolabs.com/u/RodolphePerrin)\
**Post date:** [March 17, 2025, 3:08pm UTC](https://community.stereolabs.com/t/height-estimation/8352/4 "2025-03-17T15:08:03Z")

</div>

Thank you for the files.

From what I’m seeing, you’re using Gen\_1 as parameter for positional tracking.  
My recommendation for this would be to try the same tests with Gen\_2 instead ( try with and without imu fusion to see in your case if you see better results).  
With Gen\_2, the drift should be smaller. It performs even better with loop closures ( drift is corrected as the tracked camera sees visual features it has previously collected).

Best,  
Rodolphe Perrin

[Stereolabs](https://www.stereolabs.com/) Support
