GithubHelp home page GithubHelp logo

realsense2sample's Introduction

RealSense SDK 2 Sample Program

This repository is sample program of RealSense SDK 2.x (librealsense v2.x) written in native C++.
This sample program works on cross-platform (Windows, Linux, MacOS).

Environment

  • Visual Studio 2015/2017 / GCC 4.9 / Clang 3.4 (or later)
  • RealSense SDK 2.x (librealsense v2.x)
  • OpenCV 3.4.0 (or later)
  • CMake 3.7.2 (latest release is preferred)

* Part of the sample program (PointCloud) requires viz_module of OpenCV.

License

Copyright © 2018 Tsukasa SUGIURA
Distributed under the MIT License.

Contact

Reference

realsense2sample's People

Contributors

unanancyowen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

realsense2sample's Issues

Compile error for RealSense Sample\PointCloud

Hi,

I am trying to compile the Point Cloud in Visual Studio 2015, during the compilation received an error saying that "Cannot open include file: 'opencv2/viz.hpp': No such file or directory."

Do I need to install the VTK inorder for this to work ?

Advice needed, thank you.

CMake error with realsense2Config.cmake

Hi,

Thank you so much for the examples! I was trying to compile your code, but got some error messages in CMake:

CMake Error at C:/IntelCam/librealsense-2.18.0/build/realsense2Config.cmake:11 (message):
  File or directory C://include referenced by variable realsense2_INCLUDE_DIR
  does not exist !
Call Stack (most recent call first):
  C:/IntelCam/librealsense-2.18.0/build/realsense2Config.cmake:33 (set_and_check)
  CMakeLists.txt:18 (find_package)

The realsense2Config.cmake file under the librealsenses folder looks like this:

get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)

macro(set_and_check _var _file)
  set(${_var} "${_file}")
  if(NOT EXISTS "${_file}")
    message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
  endif()
endmacro()

Actually I know little about the syntax in .cmake files, I just wonder whether it could be an issue related to the .cmake file in librealsense?

Undefined reference

I can't compile any of the examples because I get undefined references, e.g.

GNU-amd64-Linux/realsense.o: In function RealSense::show()': realsense.cpp:(.text+0x20): undefined reference to cv::String::allocate(unsigned int)'
realsense.cpp:(.text+0x6c): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' realsense.cpp:(.text+0x74): undefined reference to cv::String::deallocate()'
realsense.cpp:(.text+0x88): undefined reference to cv::String::allocate(unsigned int)' realsense.cpp:(.text+0xc8): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)'
realsense.cpp:(.text+0xd0): undefined reference to cv::String::deallocate()' realsense.cpp:(.text+0xe0): undefined reference to cv::String::deallocate()'
realsense.cpp:(.text+0xec): undefined reference to cv::String::deallocate()' GNU-amd64-Linux/realsense.o: In function RealSense::update()':
realsense.cpp:(.text+0x120): undefined reference to rs2_pipeline_wait_for_frames' realsense.cpp:(.text+0x148): undefined reference to rs2_frame_add_ref'

I've tried netbeans and eclipse and still get the same.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.