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

Building source for matalb #9771

Closed
nchu-cha opened this issue Sep 14, 2021 · 4 comments
Closed

Building source for matalb #9771

nchu-cha opened this issue Sep 14, 2021 · 4 comments

Comments

@nchu-cha
Copy link

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model L515
Firmware Version 01.05.08.01
Operating System & Version Win 10
Kernel Version (Linux Only)
Platform PC
SDK Version v2.49.0
Language matlab
Segment others

Issue Description

hello
I'm trying to build the source for matlab, so I follow the readme.md in librealsense/wrappers/matlab/, In the process of building the source, there are some questions I want to ask for help.

  1. When I run the cmake .. -D =ON command, it shows could not find apriling what effect will it cause?
    image

  2. I saw a video that was executed on Linux, and used cmake .. -L command. I had tried this command and it shows GLFW3.3 not found, using internal version. does it matter if I didn't install GLFW3.3?
    image

  3. The second step in readme.md is build the librealsense_mex target, so I copy matlab file in the wrappers, and key make librealsense_mex , then I get an error :
    fatal error: mex.h: No such file or directory
    image
    There is no file called mex.h, is it means that I need to write the mex.h file by myself? If yes, does anyone know how to write a mex.h? If no, where can I get the mex.h file?

thank you

@MartyG-RealSense
Copy link
Collaborator

Hi @nchu-cha If you are using Windows, I would recommend installing the RealSense SDK with the automated installer file from the 'Assets' list of the SDK Releases page if you are not doing so already. The installer will provide the option to install the RealSense MATLAB wrapper for Windows at the same time as installing the SDK.

A full instruction guide for performing this installation can be found at #9023 (comment)

As far as I am aware though, the L515 camera model does not have support in the MATLAB wrapper.

@nchu-cha
Copy link
Author

nchu-cha commented Sep 14, 2021

thanks for your apply, I had successfully install SDK on the Win 10, and also can used MATALB function to connect L515 camera.

When I'm running the MATALB code in the C:\Program Files (x86)\Intel RealSense SDK 2.0\matlab\+realsense , can I execute it on another path? ( for example: change the path to D:\matlab\+realsense )

I'm a little bit confuse in the depth_example.m, the picture below
pipe = realsense.pipeline(); Is there no need to fill in the information in the brackets? Is it because it will auto detect camera?
image

I used to capture the RGB image and DEPTH image in Realsense Viewer (in the picture show, I will click the button of the camera icon), so I had a Color.png for RGB image and a Color.png for depth image, a RAW file of depth information. Then used MATALB code to read all the file, but I found that RGB image and DEPTH image data are not identical. So I think maybe I need to install SDK to get some camera's parameters to conversion. Can you give me some suggestion?
image

thank you

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @nchu-cha for your confirmation that your L515 was able to work with the RealSense MATLAB wrapper. :)

You should be able to move the +realsense folder to a location of your choice and then define a MATLAB search path to it, as described in #2400 (comment)

If the pipe start instruction's brackets are empty then the RealSense SDK should automatically use the default configuration of the particular RealSense camera model that is attached. On the L515 model, the default configuration would be 640x480 depth at 30 FPS (30 is the only FPS available for depth and infrared on L515) and 1280x720 color at 30 FPS.

If you need both depth and color to be the same then you could set them both to 640x480 with a custom cfg configuration. The L515 should have firmware 1.5.8.1 or newer installed in order to use 640x480 color.

image

#3735 has an example of a cfg stream configuration in the MATLAB wrapper.

@nchu-cha
Copy link
Author

thanks for your apply, I'm trying the cfg stream configuration.

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

2 participants