-
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
unable to open "realsense-file.lib" when building matlab wrapper #6014
Comments
If you are building the MATLAB wrapper from source, there is a Windows installer version of the wrapper that can be easier to use. It can be installed by ticking a check-box on the Windows installation program of the RealSense SDK 2.0, if the box was not ticked already when you installed the SDK. https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab#windows-installer When it is installed, you can find it by going to this location on your computer: C: > Program files (x86) > Intel RealSense SDK 2.0 > matlab > +realsense I recommend checking the folder location first to see if it has already been installed there when you installed the RealSense SDK. As mentioned by the Windows installer installation instructions, you can copy the folder from here to a place where Matlab can find it or add it to Matlab's path |
|
Thanks so much for the update and sharing details of your method with the RealSense community. I'm very pleased that you found a solution! :) Is it okay to close this case now if you have no more problems, please? |
@MartyG-RealSense |
Thanks! I will close the case now. :) |
@FancyBrush can u help me to install this intelrealsense in matlab . im stuck already at this step
|
Hi @ranggo467 Are you attempting to install the MATLAB wrapper on Windows 10 or Linux, please? The wrapper and its installation instructions are designed for Windows 10. |
@MartyG-RealSense i want install matlab wrapper in windows 10 but i dont understand this step... can u teach me from the beginning |
If you are using Windows 10 then it would be easier to install the full RealSense SDK on Windows using the automated installer on the Releases page. This installer is set up to install the MATLAB wrapper as part of the overall SDK installation. On the installer, you should only need to click the 'Next' button a few times to complete SDK installation without changing anything on the list of components that are installed by default. The 'Releases' page is at the link below. At the bottom of the page, there is an 'Assets' file list where the SDK installer program can be downloaded and run. https://github.com/IntelRealSense/librealsense/releases/tag/v2.50.0 |
i already do this step.... but my problem is how to build this, i stuck at step 1 to 3 Building from Source
|
If you have used the SDK installer to install the full SDK and the MATLAB wrapper along with it then you do not have to do any of the instructions in the Building from Source section. You can follow the method below instead.
Copy and paste this +realsense folder to a location on your computer where MATLAB can find it, or you can alternatively add it to MATLAB's path instead. If you choose to define a path for MATLAB to look in, you can add the +realsense folder to the MATLAB search path using the guidance at #2400 |
thanks bro u help me alot i appreciate that |
You are very welcome, @ranggo467 :) |
Btw do u have another way to communicate more easier with u to ask any problem related with intelrealsense? |
You can create a new question on this support forum using the green New Issue button on the front page of the forum at the link below. https://github.com/IntelRealSense/librealsense/issues If you use ROS and have a ROS related question, then the RealSense ROS GitHub will be the best place to post the question. |
Script code for the MATLAB wrapper is almost 1:1 with the SDK's C++ code, with some differences. A good way to research a particular function is to google for the keywords librealsense matlab and add on the end of the search instruction the information that you are looking for. For example: librealsense matlab depth_sensor #3358 (comment) has an example of scripting for using depth_sensor in the MATLAB wrapper. |
Thank bro i will try and update to you later if have any problem |
@MartyG-RealSense https://github.com/IntelRealSense/librealsense/wiki/API-How-To#controlling-the-laser |
There are no tutorial lessons for the MATLAB wrapper other than the examples that you have already tried, so the best learning method is to study the examples to see how they work. Usually when someone wants to know how to program a specific function in the wrapper that is not included in the examples, they post a question on this support forum and then I research it to see if someone else has posted an answer in the past (my own MATLAB programming knowledge is limited). You can post a new question by visiting the front page of this forum at the link below and clicking the New Issue button. https://github.com/IntelRealSense/librealsense/issues/ In regard to your question about controlling the laser, the #3358 (comment) link provided earlier had MATLAB wrapper code for enabling / disabling the IR emitter. Bear in mind that there is an apparent typing mistake in the script in that link where the section highlighted below should be option.emitter_enabled (a full stop inserted after 'option'). When looking at a piece of code, you can get hints about where to insert it in your own script by looking for where the pipe.start() line is. If the code is below the pipe.start() line in the example then also put the code below pipe.start in your own script. Similarly, if the code is above the pipe.start() like then also put it above pipe.start() in your own script. |
thanks bro, can i combine the depth_view_example code with align code together in one coding? because i want get the live view and also to align image at the same time? |
A RealSense user shared their MATLAB wrapper script for depth-color alignment in #9773 (comment) Another RealSense user shared their own MATLAB approach to alignment and then generating a pointcloud in #6763 (comment) |
thanks again bro, sorry if i ask to many question, pointcloud function is to store the 3d data or to show 3d data... do you have example how to store data in pointcloud and function for imwrite? |
There is not a limit on the number of questions that you can ask, so don't worry :) For future questions though, it would be best to create your own new case on this support forum using the green New Issue button on the front page of the forum at the link below. https://github.com/IntelRealSense/librealsense/issues I found a Chinese-language example of a MATLAB RealSense guide for generating a pointcloud and saving depth and RGB with imwrite. https://zhuanlan.zhihu.com/p/384836137 I converted it to English in the PDF document below. |
thanks bro, but i get error at |
Has your script defined the fs reference that the IMU instruction relies on, please? There is also another MATLAB script at #7222 that accesses the IMU in a similar way. Whilst that script did not work correctly, that may have been because an L515 camera was being used in that case. So it may be worth trying if your camera is a 400 Series model. If you are unable to access IMU data through the RealSense SDK, a discussion in the link below looks at ways to access the data with a MATLAB software tool called the Navigation Toolbox. |
thanks bro, do you know how to stream rgb and depth image with both image align. i still dont get it how to do this while stream in matlab |
Another approach to depth-color alignment in the MATLAB wrapper is shared in #3735 |
i already view that but i dont understand this |
#2541 (comment) provides an example of scripting for get_intrinsic, though with non-aligned frames. |
bro i have a question, how to save depth image and rgb image simultaneously, when i try to save by using imwrite its only save rgb image only. I want to save both the image simultaneously. what should i add to my code? This is my code % Make Pipeline object to manage streaming % Make Colorizer object to prettify depth output % Start streaming on an arbitrary camera with default settings for j=1:5 % vidWriterdepthMap = VideoWriter('framesdepth1.avi','Uncompressed AVI'); % retrieve UINT16 depth vector % figure(j) pipe.stop(); |
#9773 (comment) has an example of MATLAB wrapper code written by a RealSense user for saving depth data to PNG file with imwrite. |
do you have example how to setting the distance on depth map using matlab? |
Do you mean converting the raw depth values to real-world distances in meters, please? If that is what you mean then the MATLAB scripting in #9923 (comment) may be helpful. |
tq bro |
Hello, During installation I did not see any MATLAB wrapper selection checkbox. After installation I do not see any matlab folder in the RealSenseSDK2.0 folder. Please help |
Hi @saroshpatel I can confirm that the MATLAB developer package component is not in the 2.54.2 installer program. It is in the installer for 2.54.1 though. As 2.54.2 was a minor release containing bug-fixes only, it should be fine to use 2.54.1 to install the MATLAB component. https://github.com/IntelRealSense/librealsense/releases/tag/v2.54.1 The installer program does not remove files from a previous SDK installation that are not installed in a newer version. So if you prefer to keep your SDK version up to date, you should be able to install 2.54.1 first to obtain the MATLAB wrapper component and then update to 2.54.2 without losing the component. |
Thank you for your help ! that worked out. |
OS: windows 10
device: SR300
matlab: 2018a
VS2019
When I tried to build librealsense_mex in matlab wrapper, LINK error arose, which are "libmx.lib" and "realsense2.lib", and I solved them by adding their path in the project.
Then, I build this again, another LINK error jumps out, saying, unable to open "realsense-file.lib". I find a folder named "realsense-file", but with no .lib file in it.
Where is "realsense-file.lib"? How can I generate it?
The text was updated successfully, but these errors were encountered: