aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/aruco_markers/markers_pose_estimation.md
blob: 45ef70d1fd8b87a081bd506f393a164c583f1832 (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 [ArUcoMarkers](../../../argaze/#argaze.ArUcoMarkers.ArUcoMarker) detection, it is possible to estimate [ArUcoMarkers](../../../argaze/#argaze.ArUcoMarkers.ArUcoMarker) 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
       ...
```