# Global localization-two camera

**URL:** <https://community.stereolabs.com/t/global-localization-two-camera/9147>\
**Category:** C++\
**Tags:** sdk\
**Created:** [June 24, 2025, 8:12am UTC](https://community.stereolabs.com/t/global-localization-two-camera/9147 "2025-06-24T08:12:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![masaan](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@masaan](https://community.stereolabs.com/u/masaan)\
**Post date:** [June 24, 2025, 8:12am UTC](https://community.stereolabs.com/t/global-localization-two-camera/9147/1 "2025-06-24T08:12:59Z")

</div>

![Immagine3](https://community.stereolabs.com/uploads/default/original/2X/0/0206ee5c340315ce0dbd701d5951d4bc8c218e49.png)  
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 will set:  
1)gnss\_calibration\_parameter.gnss\_antenna\_position = sl::float3(0,0,0); //for camera 2  
2)gnss\_calibration\_parameter.gnss\_antenna\_position = sl::float3(-25,-2,0);//for camera 1  
Is this correct? The coordinate systems is right handed, y-down (image - default)

---

<div class="post-metadata">

**Author:** ![TanguyHardelin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/tanguyhardelin/32/1298_2.png) [@TanguyHardelin](https://community.stereolabs.com/u/TanguyHardelin)\
**Post date:** [June 24, 2025, 8:32am UTC](https://community.stereolabs.com/t/global-localization-two-camera/9147/2 "2025-06-24T08:32:48Z")

</div>

Hello,

Currently, the global localization module utilizes a single camera for fusion. While we plan to incorporate data from multiple cameras in the future, this functionality is not yet available.

Regarding your question, the `gnss_antenna_position` must be set in the coordinate system and units that you define in the [InitFusionParameters coordinate system / coordinate\_units](https://www.stereolabs.com/docs/api/structsl_1_1InitFusionParameters.html#a91ec3b7ae3b97080fb3da772ad7b48e3).

Additionally, concerning your note, the tracking reference is indeed the center of the left optics. Please ensure you include the Y-axis component for camera 2.

Best regards, Tanguy

---

<div class="post-metadata">

**Author:** ![masaan](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@masaan](https://community.stereolabs.com/u/masaan)\
**Post date:** [June 25, 2025, 6:46am UTC](https://community.stereolabs.com/t/global-localization-two-camera/9147/3 "2025-06-25T06:46:24Z")

</div>

Hello, I would like to apply global localization on two cameras by making two separate fusions, one for each camera in two separate threads.  
If I position the antenna on the left lens of camera 2, when I have to apply the calibration parameters for GNSS/VIO, I will set:  
1)gnss\_calibration\_parameter.gnss\_antenna\_position = sl::float3(0,+1,0); //for camera 2  
2)gnss\_calibration\_parameter.gnss\_antenna\_position = sl::float3(-25,-3,0);//for camera 1  
Is it correct? Are the signs correct?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![TanguyHardelin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/tanguyhardelin/32/1298_2.png) [@TanguyHardelin](https://community.stereolabs.com/u/TanguyHardelin)\
**Post date:** [June 25, 2025, 8:35am UTC](https://community.stereolabs.com/t/global-localization-two-camera/9147/4 "2025-06-25T08:35:17Z")

</div>

If I understand well your problem, your transformation should be

1. gnss\_calibration\_parameter.gnss\_antenna\_position = sl::float3(0,-1,0); //for camera 2
2. gnss\_calibration\_parameter.gnss\_antenna\_position = sl::float3(-25,-3,0);//for camera 1  
Be careful the previous transformation supposed that your set the unit to CENTIMETER. By default the unit are set to METER.
