# Slope in downhills

**URL:** <https://community.stereolabs.com/t/slope-in-downhills/6372>\
**Category:** Python\
**Tags:** python, depth\
**Created:** [June 21, 2024, 10:21am UTC](https://community.stereolabs.com/t/slope-in-downhills/6372 "2024-06-21T10:21:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [July 5, 2024, 4:53pm UTC](https://community.stereolabs.com/t/slope-in-downhills/6372/7 "2024-07-05T16:53:14Z")

</div>

Hi @CristianViSa,

I see that you set the set\_gravity\_as\_origin to false in your sample, have you tried with it set to true?

As the floor plane estimation may change for each camera startup, having the gravity as origin may return a more robust world rotation and give you a better slope angle.

---

_[View the full topic](https://community.stereolabs.com/t/slope-in-downhills/6372)._
