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

rs2_transform_point_to_point #5583

Closed
scottrpaterson opened this issue Jan 4, 2020 · 2 comments
Closed

rs2_transform_point_to_point #5583

scottrpaterson opened this issue Jan 4, 2020 · 2 comments

Comments

@scottrpaterson
Copy link

scottrpaterson commented Jan 4, 2020

Camera Model - D435i
Operating System & Version - Windows 10
Language - Python

Issue Description

In the documentation (https://intelrealsense.github.io/librealsense/python_docs/_generated/pyrealsense2.html) I'm not seeing what parameters the function rs2_transform_point_to_point accepts. Is there better documentation somewhere?

How do I use this function? I'm trying to move my viewpoint to a robot arm end effector.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 4, 2020

I found a Python script that makes use of it to act as a reference for you.

#1231 (comment)

image

The 'Extrinsic Camera Parameters' of the Librealsense SDK's projection documentation also provides some explanation about use of rs2_transform_point_to_point

https://dev.intelrealsense.com/docs/projection-in-intel-realsense-sdk-20#section-extrinsic-camera-parameters

It says: "Knowing the extrinsic parameters between two streams allows you to transform points from one coordinate space to another, which can be done by calling rs2_transform_point_to_point. This operation is defined as a standard affine transformation using a 3x3 rotation matrix and a 3-component translation vector".

This documentation section in turn links to another code example for use of the instruction.

/* Transform 3D coordinates relative to one sensor to 3D coordinates relative to another viewpoint */

@RealSenseCustomerSupport
Copy link
Collaborator


Hi @scottrpaterson,

rs2_transform_point_to_point function transforms points from one coordinate space to another.
The function accepts following parameters :

  • "rs2_extrinsics" struct that contains parameters describing relationship between the separate 3D coordinate systems.
  • 3D point coordinates.

Please let us know if you need any further assistance with this matter.
Thank you!

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

No branches or pull requests

3 participants