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

Matlab get_extrinsics_to error #3080

Closed
delucr opened this issue Jan 16, 2019 · 7 comments
Closed

Matlab get_extrinsics_to error #3080

delucr opened this issue Jan 16, 2019 · 7 comments
Labels

Comments

@delucr
Copy link

delucr commented Jan 16, 2019

Required Info
Camera Model { D435 }
Firmware Version (0.5.10.13.00)
Operating System & Version {Win 10
Kernel Version (Linux Only) (N/A)
Platform PC
SDK Version { 2.0 }
Language {Matlab}
Segment {Other}

Issue Description

I am trying to get the extrinsics properties from IR1 to IR2 in Matlab (R2016b). I followed the API how to for getting the disparity baseline (https://github.com/IntelRealSense/librealsense/wiki/API-How-To#get-disparity-baseline). My code looks like this:

% Make Pipeline object to manage streaming
pipe = realsense.pipeline();

config = realsense.config();
config.enable_all_streams();

profile = pipe.start(config);

ir1_stream = profile.get_stream(realsense.stream.infrared,1)
ir2_stream = profile.get_stream(realsense.stream.infrared,2)

ir1_stream.get_extrinsics_to(ir2_stream)

I get the following error:
Error using librealsense_mex
rs2::stream_profile::get_extrinsics_to: Wrong number of inputs

Error in realsense.stream_profile/get_extrinsics_to (line 80)
extrinsics = realsense.librealsense_mex('rs2::stream_profile', 'get_extrinsics_to', this.objectHandle, to.objectHandle);

This seems to be a problem with the mex wrapper. Thoughts?

@lramati
Copy link
Contributor

lramati commented Jan 16, 2019

This is indeed a mistake on my part. If you take a look at the PR, this can be fixed with a minor edit to line 113 of librealsense_mex.cpp and recompiling the wrapper

@RealSenseCustomerSupport
Copy link
Collaborator

[Please Ignore - RealSense system comment]

@RealSenseCustomerSupport
Copy link
Collaborator

@delucr Did you get it through? Looking forward to your update. Thanks!

@delucr
Copy link
Author

delucr commented Jan 25, 2019

@RealSenseCustomerSupport, tested it this morning and it works.

@RealSenseCustomerSupport
Copy link
Collaborator

@delucr Thanks for your update! That's great! Close the ticket accordingly.

@delucr delucr closed this as completed Jan 28, 2019
@nevynwong
Copy link

@delucr ,I would like to ask how to get the camera parameters, because I need these parameters to convert the depth to point cloud. I refer to your method, but I don't know how to solve the error you mentioned. I am worried now.Can you help me?

@delucr
Copy link
Author

delucr commented May 29, 2019

@nevynwong, if you use the latest release of the SDK and update Matlab library, you shouldn't get the error. If you are using the old code you can fix the error yourself by editing line 113 of librealsense_mex.cpp as mentioned in the above thread.

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

No branches or pull requests

5 participants