# Tracking Camera's Pose Relative to Drone

Source: https://forum.modalai.com/topic/1420/tracking-camera-s-pose-relative-to-drone
Category: Development Drones (https://forum.modalai.com/category/44/development-drones)
Tags: rb5
Posted: 2022-10-03 13:22:52 UTC by alfa budiman
Replies: 2 · Views: 829

## alfa budiman · 2022-10-03 13:22:52 UTC

I need to know the camera's position and orientation relative to the drone's body frame. This is so I can calculate its homogenous transformation relative to the drone, and then combine that camera imagery to localize detected objects in 3D space. 

I need to know the values of dx, dz and theta from this image:

![55ce6a3a-3095-4837-b71b-16e8975230fc-image.png](https://forum.modalai.com/assets/uploads/files/1664803229987-55ce6a3a-3095-4837-b71b-16e8975230fc-image.png) 
I'm assuming that the camera is centered laterally, so dy=0 (please correct me if this is incorrect), and that there is no roll or yaw with regards to its orientation. Hence the theta is the pitch or how much the camera is rotated along the y axis. Positive direction of y axis in image is out of the page.

## Reply by Guest · 2022-10-03 16:48:57 UTC

Hi,

If you're running the rb5 flight with VOXL SDK on it, you can see the relations between elements in ```/etc/modalai/extrinsics.conf```, if not you can see the file that would've been put there [here](https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/master/misc_files/usr/share/modalai/extrinsic_configs/rb5_flight_v1.conf). We don't have ```tracking-->body``` relation defined directly but we have ```tracking-->px4 imu``` and ```px4_imu-->body``` allowing you to calculate the relation.

## Reply by alfa budiman · 2022-10-03 18:06:34 UTC (in reply to Guest)

Thanks, that's exactly what I'm looking for
