aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/aruco_markers/markers_pose_estimation.md
blob: 09db3259bc82f131d55e607ebe4557253cfa9c61 (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
       ...
```