# Aruco marker detection and landing process

**URL:** <https://discuss.px4.io/t/aruco-marker-detection-and-landing-process/49501>\
**Category:** Uncategorized\
**Created:** [September 15, 2026, 5:23am UTC](https://discuss.px4.io/t/aruco-marker-detection-and-landing-process/49501 "2026-09-15T05:23:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akaricsx](https://discuss.px4.io/user_avatar/discuss.px4.io/akaricsx/32/22043_2.png) [@akaricsx](https://discuss.px4.io/u/akaricsx)\
**Post date:** [September 15, 2026, 5:23am UTC](https://discuss.px4.io/t/aruco-marker-detection-and-landing-process/49501/1 "2026-09-15T05:23:03Z")

</div>

Hi everyone!

I am doing a project to simulate aruco marker detection and landing via PX4 and Gazebo on my Ubuntu 20.04 laptop. This is before implementing to a drone in real life (pixhawk). However, I am new to this so I wonder what are the steps to implementing this or are there official documentation regarding it?

Technically my project will run through the drone with its camera, and will be connected/processed on an offboard ground control station (my computer). Upon researching, MAVSDK is preferred over ROS.

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [October 19, 2026, 5:38am UTC](https://discuss.px4.io/t/aruco-marker-detection-and-landing-process/49501/2 "2026-10-19T05:38:29Z")

</div>

Hi @akaricsx,

You can approach this project in stages, starting with SITL before moving to a real Pixhawk-based drone.

I would suggest the following workflow:

1. Set up PX4 SITL and Gazebo, then verify that the vehicle can take off and land normally.

2. Add a downward-facing simulated camera and an ArUco marker on the landing surface.

3. Use OpenCV ArUco detection to estimate the marker pose relative to the camera. This requires camera calibration, a known marker size, and correct coordinate-frame transformations.

4. Convert the marker observations into target-position estimates and connect them to an appropriate PX4 landing-control interface.

5. Test marker loss, detection latency, inaccurate pose estimates, and landing abort behavior in simulation before attempting hardware flights.

PX4 already has a Precision Landing feature, including support for externally provided landing-target positions:

> **[Precision Landing](https://docs.px4.io/main/en/advanced_features/precland)**
>
> Open-source flight stack for drones and autonomous vehicles.

One important limitation: the documented built-in precision landing implementation requires valid global position. If your goal is GPS-denied landing, you will need to address vehicle localization and control separately.

Regarding MAVSDK versus ROS 2: MAVSDK is a reasonable choice for a relatively simple offboard application. ROS 2 becomes attractive when you need camera pipelines, image processing, multiple nodes, and sensor integration. Neither is universally better.

Also, Ubuntu 20.04 is an older environment. For a new setup, I would consider Ubuntu 22.04 with modern Gazebo, unless you specifically need Gazebo Classic.

Are you aiming for marker-assisted landing with GPS available, or fully GPS-denied landing? That distinction will significantly affect the architecture.

Best regards,  
Yiğitcan Öztürk  
PAMILANGA LTD

---

<div class="post-metadata">

**Author:** ![akaricsx](https://discuss.px4.io/user_avatar/discuss.px4.io/akaricsx/32/22043_2.png) [@akaricsx](https://discuss.px4.io/u/akaricsx)\
**Post date:** [October 25, 2026, 3:11am UTC](https://discuss.px4.io/t/aruco-marker-detection-and-landing-process/49501/3 "2026-10-25T03:11:37Z")

</div>

Thank you for your insights @yigitcan-ozturk !

With your roadmap, i successfully was able to test an autonomous aruco marker detection and landing with MAVSDK-Python async commands.

I am actually aiming for GPS available landing. If my pipeline works in SITL, how far of a change is it in real-life? Technically, we will test by direct line of sight (straight-line) road to reduce interference in our SiK Telemetry for now.

Looking forward to your insights!

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [October 25, 2026, 7:44am UTC](https://discuss.px4.io/t/aruco-marker-detection-and-landing-process/49501/4 "2026-10-25T07:44:51Z")

</div>

Hi akaricsx,

Great to hear that you successfully implemented and tested autonomous ArUco marker detection and landing using MAVSDK-Python. Thanks for sharing the progress!

Moving from SITL to real-world testing is definitely achievable, but I would treat it as a separate validation phase rather than a direct deployment.

Since GPS will be available, I would recommend using it for the initial approach and navigation, while relying on the camera-based relative marker position for the final precision-landing phase.

There are several important differences between SITL and real flight:

**1. Camera and marker detection**

Real cameras introduce lens distortion, motion blur, exposure changes, lighting variations and processing latency.

Calibrate the camera and verify marker detection accuracy at different heights and viewing angles before flight.

**2. Coordinate frames and timing**

Make sure the marker pose is correctly transformed from the camera frame into the coordinate frame expected by your controller.

Also verify that timestamps, processing delays and command update rates remain within acceptable limits.

**3. GPS versus visual precision**

GPS is useful for reaching the landing area, but it should not be assumed to provide sufficient accuracy for the final marker-centred descent.

I would validate the transition from GPS-assisted approach to visual alignment carefully.

**4. SiK telemetry and Offboard control**

A clear line of sight is helpful, but I would still measure actual packet loss, latency and connection stability.

If MAVSDK-Python runs on the ground station and sends Offboard commands over SiK telemetry, link interruptions can directly affect control continuity.

For real-world precision landing, an onboard companion computer may eventually provide a more robust architecture.

**5. Failsafe and marker-loss handling**

Before autonomous descent, define what happens when:

- The marker is temporarily lost.

- The marker position estimate becomes unstable.

- Camera frames stop arriving.

- Offboard commands are interrupted.

- The vehicle cannot maintain the required alignment.

The system should have a clearly defined safe response rather than continuing descent using stale visual data.

**Suggested validation sequence**

I would progress through:

1. Camera calibration and stationary marker detection.

2. Ground testing of the complete MAVSDK-to-PX4 control pipeline.

3. Controlled low-altitude hover with marker tracking but no automatic descent.

4. Visual alignment testing with a human pilot ready to take over.

5. Low-altitude precision landing trials in a controlled area.

6. Gradual expansion of operating conditions after repeatab
