aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/aruco_markers/markers_pose_estimation.md
blob: 24597153eae2b30e4d5688caf80e9edc27e602b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Markers pose estimation
=======================

After marker detection, it is possible to estimate markers pose in camera axis.

![Pose estimation](../../img/pose_estimation.png)

``` python
# Estimate markers pose
aruco_detector.estimate_markers_pose()

# Get pose estimation related to each detected markers
for marker_id, marker in aruco_detector.detected_markers.items():

       print(f'marker {marker_id} translation: ', marker.translation)
       print(f'marker {marker_id} rotation: ', marker.rotation)

       # Do something with each marker pose estimation
       ...
```