-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Comments
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 |
[Please Ignore - RealSense system comment] |
@delucr Did you get it through? Looking forward to your update. Thanks! |
@RealSenseCustomerSupport, tested it this morning and it works. |
@delucr Thanks for your update! That's great! Close the ticket accordingly. |
@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? |
@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. |
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?
The text was updated successfully, but these errors were encountered: