Page 1 of 1

Intel RealSense help

Posted: Mon May 07, 2018 9:36 am
by stmdbe2019
I have a camera from Intel RealSense (for artificial intelligent modules to use), camera has C/C++11/Python/Node.JS/Unity/.Net/LabView support but not PureBasic.
how to use there C/C++11 modules and drive it via PureBasic? Can anyone please help so that i can get started.

https://github.com/IntelRealSense/librealsense/releases

Re: Intel RealSense help

Posted: Fri Mar 10, 2023 9:49 am
by damn
Do you make this thing?

Re: Intel RealSense help

Posted: Fri Mar 10, 2023 12:04 pm
by infratec
SInce it works with C, there is a way to make it work in PB.

You need to write a 'wrapper' for the library.

For a complete SDK this is a very big project.
But if you only want to include soem functionalities, like to port this to PB:
https://github.com/IntelRealSense/libre ... distance.c

Then you need only to write a wrapper/importer for the used functions and structures.

Re: Intel RealSense help

Posted: Fri Mar 10, 2023 1:12 pm
by damn
I'd never writing wrappers for C-libs. Where I can read about it (some tutorials will be ok)?

Re: Intel RealSense help

Posted: Fri Mar 10, 2023 1:18 pm
by infratec
There is no tutorial :wink:

You need to define the used structures and used constants, then you have to Import the used functions with

Import or ImportC

An example:
viewtopic.php?p=591869

Or simply type wrapper in the search field of the forum, you will also find other examples.