Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D435i Pose data? #10233

Closed
MyOtherNamesWereTaken opened this issue Feb 11, 2022 · 9 comments
Closed

D435i Pose data? #10233

MyOtherNamesWereTaken opened this issue Feb 11, 2022 · 9 comments

Comments

@MyOtherNamesWereTaken
Copy link

Camera Model { D435i }
Firmware Version (05.13.00.50)
Operating System & Version { Linux (Ubuntu 14/16/17)
Kernel Version (Linux Only) (5.11.0 -38-generic )
Platform PC
Language {python}
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

Is it possible to get the pose data via Open CV for the D435i?

@MartyG-RealSense
Copy link
Collaborator

Hi @MyOtherNamesWereTaken The D435i model does not have built-in support for pose data. The pose of objects observed by the camera can though be obtained in OpenCV with a SolvePNP algorithm.

OpenCV's official documentation has a Python SolvePNP pose estimation tutorial at the link below.

https://docs.opencv.org/4.x/d7/d53/tutorial_py_pose.html

Another example of an OpenCV SolvePNP object pose tutorial is here:

https://www.pythonpool.com/opencv-solvepnp/

@MyOtherNamesWereTaken
Copy link
Author

https://github.com/alishobeiri/Monocular-Video-Odometery/blob/608c92a33e3981e223a2ef6ddbbf2cb0595a7d44/test.py#L24

I didn't quite find what i was looking for there. I need pose files to pictures i take for visual odometry purposes. Link above provides an example as to how the code is supposed to look like. All im missing is the pose data

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 11, 2022

In the linked-to project, have you set it to the Windows user account path of your own computer instead of using the script's default user account path that relates to the project creator's computer?

https://github.com/alishobeiri/Monocular-Video-Odometery/blob/master/test.py#L9

image

@MyOtherNamesWereTaken
Copy link
Author

The issue is that i dont have any pose data to work with. Im trying to generate those.

@MartyG-RealSense
Copy link
Collaborator

I do not know a way to generate a text file of pose data in an OpenCV application using a RealSense D435i camera, unfortunately.

If you are able to use ROS and rtabmap_ros SLAM navigation then there is a project in the link below that can calculate and visually display the relative position of a D435i camera.

https://shinkansan.github.io/2019-UGRP-DPoom/SLAM

@MrMoe830
Copy link

Hi,Excuse me, I asked a question about point cloud, I sincerely hope you can help me answer it, thank you very much.

https://github.com/IntelRealSense/librealsense/issues/10234#issue-1132482954

@MartyG-RealSense
Copy link
Collaborator

Hi @w-1016-Papman I have posted a reply on your case. Thanks!

@MartyG-RealSense
Copy link
Collaborator

Hi @MyOtherNamesWereTaken Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants