Including Realsense SDK into my own C++ Project
Hey,
i'm new to the Intel RealSense community and relatively new to C++ development, so please don't hate me :)
For Computer Vision and Point Cloud Processing in research, i came to an dead end in terms of Processing Speed and state of the art filters with Python and open3D, waaay to fast o.O. So i have to get into using C++ and libs like PCL.
Right now i am starting to set up a my Computer Vision Environment for Point Cloud Processing and i was wondering what is the nativ / best way to integrate the SDK 2.0 into my own C++ Project?
I already compiled the SDK with the Examples. Everything works fine in the StandAlone manner. Now if i want to use the rs. functionality in my own code, how do i include it?
I can not find any tutorials on that.
I guess just cloning the whole folder, using CMake to link and sett compiler flags like:
-DBUILD_EXAMPLES=OFF
will work. But is there more to consider, to make it a even more standard "lib-like" package? it feels like the SDK from github is more a show-off of the of the functionality, and not something i would usually include into a project.
one Example: a lot of code (mainly gui) is dependent on the example.hpp file ...
For now, my main interest i in using the SDK to stream data from the camera, do some processing in the middle and than use the SDK to visualize it.
Maybe you have some better way-to-go recommendation. :D
-
Hi Lukas Rauch - welcome to the RealSense community :)
If you are new to developing C++ RealSense applications then the easiest way to integrate RealSense into your own project may be to use Windows and Visual Studio with three props files (configuration 'property sheets') packaged with the RealSense SDK software.
If the full Windows version of the RealSense SDK software is installed then the props files can be found in the SDK folder.
The full RealSense SDK can be installed on Windows by going to the SDK Releases page, scrolling down to the 'Assets' file list for a particular SDK version and clicking on the Intel.RealSense.SDK-WIN10 link to download an automated installer program that will install the SDK when run simply by clicking the 'Next' button a few times during installation.
https://github.com/IntelRealSense/librealsense/releases
Once the SDK is installed and you can access the three props files in the SDK folder, the link below has a C++ Visual Studio tutorial shared by a RealSense user for creating a starter project using the props files.
https://github.com/EduardoWang/visual-studio-real-sense-record-and-playback-project
**********
If you would prefer to use CMake to build the RealSense SDK and applications then you can certainly use that approach instead, with Windows and Linux computers.
The link below has a simple C++ starter-project tutorial for using CMake to build a simple application that only integrates the RealSense SDK and not additional third-party dependencies.
https://github.com/zivsha/librealsense/tree/getting_started_example/examples/getting-started
It is also well worth using the RealSense Viewer application to learn RealSense and then integrate the functions in the Viewer into your own C++ application using code, as the Viewer is a powerful pre-made menu-driven tool with many functions that is also easy to use.
Please sign in to leave a comment.
Comments
1 comment