# What is the source of \`/imu/data\` orientation when \`pos\_tracking\_enabled: false\`?

**URL:** <https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531>\
**Category:** ROS1\
**Tags:** sdk\
**Created:** [April 4, 2025, 7:42am UTC](https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531 "2025-04-04T07:42:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon1140889141](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@Simon1140889141](https://community.stereolabs.com/u/Simon1140889141)\
**Post date:** [April 4, 2025, 7:42am UTC](https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531/1 "2025-04-04T07:42:45Z")

</div>

Hi [Stereolabs](https://www.stereolabs.com/) team,

I’m using a ZED2i with ROS1, and I only need the following topics for my visual-inertial SLAM pipeline (e.g., VINS-Mono):

- `/zed2i/zed_node/left_raw/image_raw_color`
- `/zed2i/zed_node/imu/data`

In my `common.yaml`, I have explicitly set:

- `depth_mode: 'NONE'`
- `pos_tracking_enabled: false`
- `imu_fusion: false` (inside the `pos_tracking` block)
- `mapping_enabled: false`
- `od_enabled: false`

My core question is:

**In this configuration, how is the orientation field in `/imu/data` computed?**

- Is it the result of an internal AHRS using **gyroscope + accelerometer + magnetometer** only?
- Or does it involve any **visual information fusion** (e.g., from image features or SLAM), even if positional tracking is disabled?

Also, does `pos_tracking_enabled` or `imu_fusion` affect how `/imu/data` orientation is computed?

Thanks for your clarification!

---

<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:** [April 4, 2025, 12:17pm UTC](https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531/2 "2025-04-04T12:17:38Z")

</div>

Hi @Simon1140889141  
Welcome to the [Stereolabs](https://www.stereolabs.com/) community

> [@Simon1140889141](#):
>
> I’m using a ZED2i with ROS1, and I only need the following topics for my visual-inertial SLAM pipeline (e.g., VINS-Mono):
> 
> - `/zed2i/zed_node/left_raw/image_raw_color`
> - `/zed2i/zed_node/imu/data`
> 
> In my `common.yaml`, I have explicitly set:
> 
> - `depth_mode: 'NONE'`
> - `pos_tracking_enabled: false`
> - `imu_fusion: false` (inside the `pos_tracking` block)
> - `mapping_enabled: false`
> - `od_enabled: false`

You must also disable `depth_stabilization` → [zed-ros-wrapper/zed\_wrapper/params/common.yaml at master · stereolabs/zed-ros-wrapper · GitHub](https://github.com/stereolabs/zed-ros-wrapper/blob/master/zed_wrapper/params/common.yaml#L44)

> [@Simon1140889141](#):
>
> Is it the result of an internal AHRS using **gyroscope + accelerometer + magnetometer** only?

This is the case, but magnetometer information is not fused.

> [@Simon1140889141](#):
>
> Also, does `pos_tracking_enabled` or `imu_fusion` affect how `/imu/data` orientation is computed?

It does not affect it.

---

<div class="post-metadata">

**Author:** ![Simon1140889141](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@Simon1140889141](https://community.stereolabs.com/u/Simon1140889141)\
**Post date:** [April 6, 2025, 8:03am UTC](https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531/3 "2025-04-06T08:03:25Z")

</div>

Thank you very much for the clarification!

Just to confirm one more thing:

1. Is it correct that the **magnetometer data is never fused** into either `/zed2i/zed_node/imu/data` or `/zed2i/zed_node/imu/data_raw` (i.e., orientation is computed from only accelerometer + gyroscope)?  
If that’s the case, in what situations (if any) does the magnetometer data actually get fused within the ZED SDK or ROS wrapper?

2. Also, is `pos_tracking_enabled` simply a ROS-side feature provided by the ZED ROS wrapper to enable the SDK’s visual-inertial odometry (VIO)?  
And enabling it **does not change how `/imu/data` or `/imu/data_raw` are computed or published** , correct?

3. One more question — I’m using the official 5-meter “USB 3.0 Type-C Dual Screw Locking Cable” from the [Stereolabs](https://www.stereolabs.com/) store.

Thanks again — your answers are really helping me understand how to cleanly separate raw sensor data from SDK-level fused outputs!

---

<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:** [April 7, 2025, 8:35am UTC](https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531/4 "2025-04-07T08:35:35Z")

</div>

> [@Simon1140889141](#):
>
> Is it correct that the **magnetometer data is never fused** into either `/zed2i/zed_node/imu/data` or `/zed2i/zed_node/imu/data_raw` (i.e., orientation is computed from only accelerometer + gyroscope)?  
> If that’s the case, in what situations (if any) does the magnetometer data actually get fused within the ZED SDK or ROS wrapper?

That’s what I said. The magnetometer data is never fused into Positional Tracking information. You should perform this after a good magnetometer calibration has been performed.

> [@Simon1140889141](#):
>
> Also, is `pos_tracking_enabled` simply a ROS-side feature provided by the ZED ROS wrapper to enable the SDK’s visual-inertial odometry (VIO)?  
> And enabling it **does not change how `/imu/data` or `/imu/data_raw` are computed or published** , correct?

This is correct.

> [@Simon1140889141](#):
>
> One more question — I’m using the official 5-meter “USB 3.0 Type-C Dual Screw Locking Cable” from the [Stereolabs](https://www.stereolabs.com/) store.
> 
> Could this kind of long extension cable introduce **additional or independent jitter** , specifically in ROS when recording with rosbag?

Yes. We recommend ingesting an additional 5V voltage using the microusb ports of the cable. 5W are enough.

---

<div class="post-metadata">

**Author:** ![Simon1140889141](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@Simon1140889141](https://community.stereolabs.com/u/Simon1140889141)\
**Post date:** [April 7, 2025, 12:05pm UTC](https://community.stereolabs.com/t/what-is-the-source-of-imu-data-orientation-when-pos-tracking-enabled-false/8531/5 "2025-04-07T12:05:08Z")

</div>

Thanks a lot for the clear explanations!

This helps me better understand how to properly use the ZED2i for my V-SLAM pipeline. Really appreciate your support!
