Items with no label
3335 Discussions

OR Samples for librealsense not compiling - missing "includes"

SSchm9
Beginner
1,949 Views

Hi,

Working with the following:

ZR300 Camera

Ubuntu 16.04

QT - CMake

https://github.com/IntelRealSense/librealsense GitHub - IntelRealSense/librealsense: Cross-platform API for Intel® RealSense™ devices

https://github.com/IntelRealSense/realsense_samples/tree/master/samples realsense_samples/samples at master · IntelRealSense/realsense_samples · GitHub

---

It appears that the pre-made SDK samples for person recognition and object recognition run just fine when loaded. However, when looking to compile the code for any of the realsense_samples with CMake, errors occur due to missing source code. For example errors referencing the appropriate "includes" are missing for sample or_tutorial_1_gui:

  1. or_data_interface.h
  2. or_configuration_interface.h
  3. or_video_module_impl.h

Essentially, I am looking to test YOR tool set - Your Object Recognition. To do this documentation shows you need to adjust sample code presented in the Object Recognition SDK.

Thanks

0 Kudos
3 Replies
MartyG
Honored Contributor III
439 Views

This is a difficult subject to explain, as the YOR tool is not deeply documented. The first step I would recommend if you have not done so already is to go to the very bottom of the page linked to below, where scripting for YOR is explained.

https://software.intel.com/en-us/documentation/realsense-for-linux-developers-guide/developing-apps Developing Apps with Object Library | Intel® Software

The next part is where it gets tricky. My interpretation of the instructions is you should then go to the top of the article and work through the numbered setup steps, but make the changes to the instructions specified in the YOR section at the bottom of the page

I understand it is not very intuitive and it would probably help if you pasted the YOR instructions into a word processor window so you do not have to keep going back to the bottom of the page to check things!

0 Kudos
SSchm9
Beginner
439 Views

Thanks MartyG,

Looking at this right now: https://software.intel.com/sites/products/realsense/sdk/developer_guide.html# Compiling_the_SDK Intel® RealSense™ SDK for Linux: Developer's Guide - Compile for Qt section.

Still need to get over the hurdle of compiling the SDK samples first before we begin to make the necessary code updates to implement YOR.

0 Kudos
MartyG
Honored Contributor III
439 Views

The SDK's instructions recommend the process below for installing the samples from source. They are then placed in a build folder once compiled.

$ sudo apt install build-essential git cmake libjpeg-dev libopencv-dev

$ git clone http://github.com/IntelRealSense/realsense_samples http://github.com/IntelRealSense/realsense_samples

$ cd realsense_samples

$ mkdir build

$ cd build

$ cmake ..

$ make

0 Kudos
Reply