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