# What does POSITIONAL\_TRACKING\_STATE = 5 indicate?

**URL:** <https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401>\
**Category:** Software\
**Created:** [January 19, 2024, 4:03pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401 "2024-01-19T16:03:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thandal](https://community.stereolabs.com/user_avatar/community.stereolabs.com/thandal/32/2078_2.png) [@thandal](https://community.stereolabs.com/u/thandal)\
**Post date:** [January 19, 2024, 4:03pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/1 "2024-01-19T16:03:12Z")

</div>

In a dataset, the POSITIONAL\_TRACKING\_STATE is usually 1 (OK), but intermittently it is 5. As far as I can tell from the API docs, the enum should only go up to 4 – see [Positional Tracking Module | API Reference | Stereolabs](https://www.stereolabs.com/docs/api/group __PositionalTracking__ group.html#gae481924a311113375bb3a99748d79e17)

Context: I’m using a ZED2i, SDK v4.0.8. I’ve logged the ros traffic to a bag file, and am reading it with rosbag in python.

Does anyone know what 5 means?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [January 19, 2024, 4:14pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/2 "2024-01-19T16:14:53Z")

</div>

Hi @thandal  
5 is not a valid state.  
Are you getting it by using the SDK natively (C++? Python?) or the ROS wrapper?

---

<div class="post-metadata">

**Author:** ![thandal](https://community.stereolabs.com/user_avatar/community.stereolabs.com/thandal/32/2078_2.png) [@thandal](https://community.stereolabs.com/u/thandal)\
**Post date:** [February 15, 2024, 3:31pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/3 "2024-02-15T15:31:14Z")

</div>

I’m using the ros wrapper, I see this in the /zed/zed\_node/pose/status and /zed/zed\_node/odom/status messages. Usually the status is 1, but it intermittently spikes to 5.

![image](https://community.stereolabs.com/uploads/default/original/2X/3/3c0e72c5ccf68721224ce82024d1115027e28dfc.png)

---

<div class="post-metadata">

**Author:** ![thandal](https://community.stereolabs.com/user_avatar/community.stereolabs.com/thandal/32/2078_2.png) [@thandal](https://community.stereolabs.com/u/thandal)\
**Post date:** [February 15, 2024, 4:03pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/4 "2024-02-15T16:03:03Z")

</div>

Maybe related: when I plot geo\_pose status, it goes from 0 to 1 at exactly the same time that pose/odom status go from 1 to 5!

![image](https://community.stereolabs.com/uploads/default/original/2X/c/c8f75064d9e5fd3cf185e5b5b248cf6a9b08efb3.png)

---

<div class="post-metadata">

**Author:** ![stark117](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@stark117](https://community.stereolabs.com/u/stark117)\
**Post date:** [June 25, 2024, 1:19am UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/5 "2024-06-25T01:19:57Z")

</div>

I am running ROS 1 noetic and I see the same status = 5. Did you figure this out ?

---

<div class="post-metadata">

**Author:** ![thandal](https://community.stereolabs.com/user_avatar/community.stereolabs.com/thandal/32/2078_2.png) [@thandal](https://community.stereolabs.com/u/thandal)\
**Post date:** [June 27, 2024, 2:23pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/6 "2024-06-27T14:23:41Z")

</div>

I think this 5 is SL\_POSITIONAL\_TRACKING\_STATE\_UNAVAILABLE, which was officially added in 4.1

See the enum from here: [Blaming zed-c-api/include/sl/c\_api/types\_c.h at main · stereolabs/zed-c-api · GitHub](https://github.com/stereolabs/zed-c-api/blame/main/include/sl/c_api/types_c.h#L699)

```auto
enum SL_POSITIONAL_TRACKING_STATE {
SL_POSITIONAL_TRACKING_STATE_SEARCHING, /**< \warn DEPRECATED: This state is no longer in use.*/
SL_POSITIONAL_TRACKING_STATE_OK, /**< The positional tracking is working normally.*/
SL_POSITIONAL_TRACKING_STATE_OFF, /**< The positional tracking is not enabled.*/
SL_POSITIONAL_TRACKING_STATE_FPS_TOO_LOW, /**< The effective FPS is too low to give proper results for motion tracking.\n Consider using performance parameters (\ref SL_DEPTH_MODE_PERFORMANCE, low camera resolution (\ref SL_RESOLUTION_VGA / \ref SL_RESOLUTION_SVGA or \ref SL_RESOLUTION_HD720).*/
SL_POSITIONAL_TRACKING_STATE_SEARCHING_FLOOR_PLANE, /**< The camera is searching for the floor plane to locate itself with respect to it.\n The \ref SL_REFERENCE_FRAME_WORLD will be set afterward.*/
SL_POSITIONAL_TRACKING_STATE_UNAVAILABLE, /**< The tracking module was unable to perform tracking from the previous frame to the current frame. */
};

```

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [June 27, 2024, 3:49pm UTC](https://community.stereolabs.com/t/what-does-positional-tracking-state-5-indicate/4401/7 "2024-06-27T15:49:46Z")

</div>

Yes, it’s indeed the value that replaced the old `SEARCHING` status
