Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
examples
cmake
hello_librealsense2.cpp
Go to the documentation of this file.
1
2
// License: Apache 2.0. See LICENSE file in root directory.
3
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
4
5
#include <
librealsense2/rs.hpp
>
6
#include <
librealsense2/hpp/rs_internal.hpp
>
7
#include <iostream>
8
9
int
main
()
10
{
11
rs2::context
ctx
;
12
13
std::cout
<<
"hello from librealsense - "
<<
RS2_API_VERSION_STR
<< std::endl;
14
std::cout
<<
"You have "
<< ctx.
query_devices
().
size
() <<
" RealSense devices connected"
<< std::endl;
15
16
return
0;
17
}
rs_internal.hpp
main
int main()
Definition:
hello_librealsense2.cpp:9
rs2::context::query_devices
device_list query_devices() const
Definition:
rs_context.hpp:112
rs2::device_list::size
uint32_t size() const
Definition:
rs_device.hpp:711
rs.hpp
test-got-playback-frames.ctx
ctx
Definition:
test-got-playback-frames.py:165
rs2::context
Definition:
rs_context.hpp:96
Catch::cout
std::ostream & cout()
RS2_API_VERSION_STR
#define RS2_API_VERSION_STR
Definition:
rs.h:43
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:16