41#include <visp3/core/vpConfig.h>
42#include <visp3/sensor/vpRealSense2.h>
44#if defined(VISP_HAVE_REALSENSE2) && (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
48#ifdef ENABLE_VISP_NAMESPACE
54 std::cout <<
"RealSense characteristics:\n" << rs << std::endl;
58 std::cout <<
"Product line: " << product << std::endl;
61 std::cout <<
"Depth scale: " << std::setprecision(std::numeric_limits<float>::max_digits10) << rs.
getDepthScale()
66 std::cerr <<
"RealSense error " <<
e.what() << std::endl;
68 catch (
const std::exception &e) {
69 std::cerr <<
e.what() << std::endl;
77#if !defined(VISP_HAVE_REALSENSE2)
78 std::cout <<
"You do not have realsense2 SDK functionality enabled..." << std::endl;
79 std::cout <<
"Tip:" << std::endl;
80 std::cout <<
"- Install librealsense2, configure again ViSP using cmake and build again this example" << std::endl;
error that can be emitted by ViSP classes.
bool open(const rs2::config &cfg=rs2::config())
std::string getProductLine()