Intel RealSense help

Just starting out? Need help? Post your questions and find answers here.
stmdbe2019
User
User
Posts: 89
Joined: Mon Aug 31, 2009 2:11 pm

Intel RealSense help

Post 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
-----
Registered PureBasic Coder.
damn
New User
New User
Posts: 9
Joined: Wed Mar 07, 2018 11:12 am

Re: Intel RealSense help

Post by damn »

Do you make this thing?
infratec
Always Here
Always Here
Posts: 6818
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Intel RealSense help

Post 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.
damn
New User
New User
Posts: 9
Joined: Wed Mar 07, 2018 11:12 am

Re: Intel RealSense help

Post by damn »

I'd never writing wrappers for C-libs. Where I can read about it (some tutorials will be ok)?
infratec
Always Here
Always Here
Posts: 6818
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Intel RealSense help

Post 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.
Post Reply