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>
7 #include <iostream>
8 
9 int main()
10 {
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 }
int main()
device_list query_devices() const
Definition: rs_context.hpp:112
uint32_t size() const
Definition: rs_device.hpp:711
std::ostream & cout()
#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