Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,236 Views

I want to know is there a way to exact the roll pitch yaw angle of the camera through Python SDK.

Jump to solution

Hi, guys

I want to know is there a way to exact the roll, pitch, yaw angle of the camera through Python SDK. Also, is there any complete documents for me to refer all the methods in the SDK? From the Github example I can only learn limited info.

Tags (1)
0 Kudos

Accepted Solutions
Highlighted
Honored Contributor III
27 Views

Re: I want to know is there a way to exact the roll pitch yaw angle of the camera through Python SDK.

Jump to solution

If you mean the documentation directory page is blank, that is its normal appearance for its front page, with menus at the top of the page. You then use the menus to search the SDK function names.

 

If you want to get the physical pitch, roll and yaw of the camera, I believe you will need a camera model that has an Inertial Measurement Unit. The D435i camera has an IMU but the standard D435 model does not.

 

In the past week, Intel published a guide to getting IMU data with the D435i and T265 models. The T265 has an IMU like the D435i but does not have depth sensing built in, so would not be a suitable choice if your project needed depth data as well as yaw-pitch-roll.

 

https://realsense.intel.com/how-to-getting-imu-data-from-d435i-and-t265/?language=en_US

 

View solution in original post

4 Replies
Highlighted
Honored Contributor III
27 Views

Re: I want to know is there a way to exact the roll pitch yaw angle of the camera through Python SDK.

Jump to solution

I did an extensive search but the only reference for Python I could find where it was used was a Python example called opencv_pointcloud_viewer.py. Even in C++ the pitch and yaw are only referenced in one point-cloud example script.

 

The first reference to setting up pitch and yaw is at line 37 of the script, which I have created a jump-link to. You can see the other references easily in the script by doing a 'find' operation on the browser page for the word 'yaw' or 'pitch' so these words are highlighted.

 

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/opencv_pointclou...

 

In regard to searching for SDK instructions, the menu-driven documentation by user UnaNancyOwen is the best available. It draws the information directly from the official documentation sources and arranges it into a user-friendly format.

 

https://unanancyowen.github.io/librealsense2_apireference/

0 Kudos
Highlighted
Beginner
27 Views

Re: I want to know is there a way to exact the roll pitch yaw angle of the camera through Python SDK.

Jump to solution

Marty

Thanks so much for your reply! I have checked the example you've mentioned, that pitch, yaw, roll angle is not the pitch, roll, yaw angle of the camera, they are the orientation angle of the perspective view. You can change them by dragging the display window. The second links you've provided me direct me to a black page somehow. :(

I think we should be able to directly get the Euler angle of the camera. I just don't know how.

Best

Yuan

0 Kudos
Highlighted
Honored Contributor III
28 Views

Re: I want to know is there a way to exact the roll pitch yaw angle of the camera through Python SDK.

Jump to solution

If you mean the documentation directory page is blank, that is its normal appearance for its front page, with menus at the top of the page. You then use the menus to search the SDK function names.

 

If you want to get the physical pitch, roll and yaw of the camera, I believe you will need a camera model that has an Inertial Measurement Unit. The D435i camera has an IMU but the standard D435 model does not.

 

In the past week, Intel published a guide to getting IMU data with the D435i and T265 models. The T265 has an IMU like the D435i but does not have depth sensing built in, so would not be a suitable choice if your project needed depth data as well as yaw-pitch-roll.

 

https://realsense.intel.com/how-to-getting-imu-data-from-d435i-and-t265/?language=en_US

 

View solution in original post

Highlighted
Beginner
27 Views

Re: I want to know is there a way to exact the roll pitch yaw angle of the camera through Python SDK.

Jump to solution

Thank you so much! My sensor is D435i, I think I should be able to extract the Euler angle. I'll have a try today.

0 Kudos